﻿:root, body, #app {
    --toolbar-height: 60px;
    --paper-on-paper: var(--mud-palette-background-grey);
    --policy-line-color: gray;
    --policy-barchart-working-color: rgba(98, 178, 47, 0.3);
    --policy-barchart-base-color: rgba(136, 245, 70, 0.3);
    --user-barchart-working-color: rgba(98, 178, 47, 1); /*Dimater Energy Farbe */
    --user-barchart-base-color: rgba(136, 245, 70, 1);
    --user-barchart-error-color: red;
    --dimater-energy-color: rgba(98, 178, 47, 1);
    --mud-nav-link-text-padding: 14px;
    --dimater-energy-dialog-table-header-color: var(--mud-palette-background-grey);
    --mud-table-group-gray: rgba(21,21,33,1);
    --mud-palette-appbar-background: var(--mud-palette-surface);
    --dimater-table-herader-color: rgba(var(--mud-palette-primary-rgb), 0.085);
    overflow-y: hidden;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
}

*.pointer {
    cursor: pointer;
}
#app {
    display: flex;
}

.hover-parent:hover .show-on-hover-parent {
    display: initial;
}

.show-on-hover-parent {
    display: none;
}

.hidden {
    display: none;
}

.h-100 {
    height: 100%;
}

.flex-card {
    display: flex;
}

    .flex-card > .e-card-content {
        flex-grow: 1;
    }

.dimater-dialog-background-class {
    backdrop-filter: blur(10px);
}


.dialog-toolbar-button {
    background-color: inherit !important;
    box-shadow: unset !important;
}
 
.dimater-dialog-toolbar {
    background-color: var(--mud-palette-background-grey);
    border-radius: var(--mud-default-borderradius)
}

.dimater-energy-dialog-table {
    background-color: var(--mud-palette-background-grey) !important;
}


.dimater-mixedyear-table-row {
    height: 46px;
    max-height: 46px;
    min-height: 46px;
}

#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;
    }

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

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

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

/********************Contract Data Grid************************/

.contract-data-grid tbody.mud-table-body > tr:has(.view-contract-condition-table),
.contract-data-grid tbody.mud-table-body > tr:has(.view-contract-condition-table):hover {
    background-color: color-mix(in srgb, var(--mud-palette-surface) 65%, var(--mud-palette-background)) !important;
}

.contract-data-grid tbody.mud-table-body > tr > td[colspan="1000"] {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

.contract-data-grid tbody.mud-table-body > tr > td[colspan="1000"] .mud-card-header > .mud-card-header-avatar:is(:empty) {
    display: none;
}

.view-contract-condition-table td {
    padding: 6px !important;
    font-size: var(--mud-typography-body1-size) !important;
}

.view-contract-condition-table tr td:nth-child(1) {
    padding-left: 0 !important;
}

.view-contract-condition-table tr td:nth-child(2) {
    text-align: right;
}

.view-contract-condition-table tr td:nth-child(3) {
    max-width: 45px;
    padding-right: 0 !important;
    font-size: var(--mud-typography-subtitle2-size) !important;
}

.contract-data-grid .data-grid-fast-filters > .mud-select {
    flex: 1;
}

/**************Delivery points timeframe table*****************/

.offer-delivery-points-timeframe-main-container {
    background-color: var(--mud-palette-surface);
}

.offer-delivery-points-timeframe-table-wrapper {
    height: 500px;
    overflow: auto;
    background-color: var(--mud-palette-surface);
}

.offer-delivery-points-timeframe-table {
    padding: 8px 24px 8px 24px;
}

.offer-delivery-points-timeframe-table .mud-table-container {
    max-height: 100%;
    overflow: initial;
}

.offer-delivery-points-timeframe-table table {
    height: 100%;
}

.offer-delivery-points-timeframe-table th {
    position: sticky;
    top: 0;
    background-color: var(--mud-palette-surface);
    z-index: calc(var(--mud-zindex-dialog) + 3);
}

.offer-delivery-points-timeframe-table td:nth-of-type(2) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow-x: hidden;
}

.offer-delivery-points-timeframe-table tr td:nth-of-type(1) {
    border: none;
}

.offer-delivery-points-timeframe-table .row.header {
    display: flex;
    align-items: center;
}

.offer-delivery-points-timeframe-table .row .current-day-line-wrapper {
    width: 10px;
    height: calc(100% + 1px);
    position: absolute;
    bottom: 0;
    transform: translate(-50%, 0);
    z-index: calc(var(--mud-zindex-dialog) + 2);
}

.offer-delivery-points-timeframe-table .row.header .current-day-line-wrapper {
    height: 50%;
    bottom: -16px;
}

.offer-delivery-points-timeframe-table .row.header .years-container {
    width: 100%;
    height:32px;
    display:block;
    position: relative;  
    overflow:hidden; 
}

.offer-delivery-points-timeframe-table .row.header .years-container .year-wrapper {
    height: 100%;
    display: flex;
    justify-content: center;
    position: absolute;
    border-left: 1px solid;
    overflow: hidden;
}

.offer-delivery-points-timeframe-table .row.header .years-container .year-wrapper:last-of-type {
    border-right: 1px solid;
}

.offer-delivery-points-timeframe-table:not(:has(tbody tr:nth-of-type(n+1))) thead th .current-day-line-wrapper {
    display: none;
}

.offer-delivery-points-timeframe-table .row .current-day-line-wrapper .line {
    width: 1.5px;
    height: 100%;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, 0);
    background-color: var(--mud-palette-primary);
    backface-visibility: hidden;
}

.offer-delivery-points-timeframe-table .row .current-day-line-wrapper .mud-tooltip-root {
    width: 100%;
    height: 100%;
    position: absolute;
}

.offer-delivery-points-timeframe-table .row {
    width: 100%;
    height: 100%;
    min-height: 64px !important;
    display: block;
    position: relative;
    overflow: initial !important;
}

.offer-delivery-points-timeframe-table .offer-delivery-point-existing-contract {
    height: 80%;
    background-color: var(--mud-palette-info-hover);
    position: absolute;
    overflow: hidden;
    display: flex;
}

.offer-delivery-points-timeframe-table .offer-delivery-point-existing-contract .mud-tooltip-root {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

/**************Eon Dpsu Revision calculation*****************/

.dimater-mud-tabs-eon-dspu-revision-calculation {
    height: 100%;
}

.dimater-mud-tabs-eon-dspu-revision-calculation .mud-tab {
    justify-content: flex-start;
    min-width: 250px;
}

.dimater-mud-tabs-eon-dspu-revision-calculation .mud-tabs-panels {
    overflow: auto;
}

.dimater-mud-tabs-eon-dspu-revision-calculation .mud-tabs-toolbar {
    min-width: 250px;
    overflow: auto;
}

.dimater-mud-tabs-eon-dspu-revision-calculation tbody.mud-table-body > tr:not(:has(td:nth-of-type(2))) {
    background-color: color-mix(in srgb, var(--mud-palette-surface) 65%, var(--mud-palette-background)) !important;
}

.dimater-mud-tabs-eon-dspu-revision-calculation tbody.mud-table-body .errors-list {
    list-style: circle;
}

.dimater-mud-tabs-eon-dspu-revision-calculation .data-grid-toolbar .mud-input-control {
    min-width: 136px;
    flex: 1;
}

/******************Edit Offer Position Dialog******************/
.edit-offer-position-dialog {
    .offer-position-delivery-point-grid {
        .mud-table-container {
            height: 500px !important;

            @media (max-height: 1160px) {
                max-height: 400px;
            }

            @media (max-height: 1060px) {
                max-height: 350px;
            }
            
            @media (max-height: 1010px) {
                max-height: 300px;
            }
            
            @media (max-height: 970px) {
                max-height: 250px;
            }
        }
    }
}

.dimater-chart-size-max-width {
    min-width: 380px;
    max-width: 585px
}
.dimater-chart-size-flex {
    width: 50%
}
