html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

.mud-tab-active {
    color: #BAF400;
}

.mud-picker {
    background-color: white !important;
    color: black !important;
    border-radius: 8px !important;
    border: 1px solid #D6D6D6;
}

    /* Make the text inside the date picker black */
    .mud-picker .mud-input-control {
        background-color: white !important;
        border-radius: 8px !important;
    }

        .mud-picker .mud-input-control .mud-input-control-input-container {
            background-color: white !important;
            border-radius: 8px !important;
        }

            .mud-picker .mud-input-control .mud-input-control-input-container .mud-input {
                background-color: white !important;
                color: black;
                border-radius: 8px !important;
            }

                .mud-picker .mud-input-control .mud-input-control-input-container .mud-input .mud-input-filled {
                    background-color: white !important;
                    color: black;
                    border-radius: 8px !important;
                }
    /* Optional: placeholder text in picker */
    .mud-picker .mud-input-input::placeholder {
        color: #666 !important;
    }

.mud-shrink ~ label.mud-input-label.mud-input-label-inputcontrol {
    color: #1A1A34 !important;
}

    .mud-shrink ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-filled.mud-input-label-margin-dense, .mud-input:focus-within ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-filled.mud-input-label-margin-dense {
        transform: translate(16px, 7px) scale(0.75) !important;
    }

.mud-input > input.mud-input-root.mud-input-root-filled.mud-input-root-adorned-end, div.mud-input-slot.mud-input-root.mud-input-root-filled.mud-input-root-adorned-end {
    padding-right: 0;
    padding-inline-end: 0;
    padding-inline-start: 16px !important;
}

.mud-tab:hover {
    background-color: rgba(241,241,241,0.1) !important;
}

.mud-tabs-tabbar .mud-tabs-tabbar-inner {
    height: 60px !important;
}

.mud-tabs-tabbar-content {
    height: 100% !important;
}

    .mud-tabs-tabbar-content .mud-tabs-tabbar-wrapper {
        align-items: center !important;
        height: 100% !important;
    }

        .mud-tabs-tabbar-content .mud-tabs-tabbar-wrapper .d-inline-block {
            height: 100% !important;
        }

            .mud-tabs-tabbar-content .mud-tabs-tabbar-wrapper .d-inline-block *:not(p) {
                height: 100% !important;
            }

.mud-button-root.btn-gradient {
    position: relative;
    overflow: hidden;
    background-color: #1A1A34;
    color: #fff; /* text stays visible */
    border: 1px solid #fff;
    border-radius: 9999px;
    transition: background 0.5s ease-in-out;
}

    .mud-button-root.btn-gradient::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: #1A1A34;
        background: linear-gradient(45deg, #F3F3F300, #FDFDFD80);
        background-position: left top;
        opacity: 0; /* hidden by default */
        transition: opacity 0.5s ease-in-out, background-position 1s ease-in-out;
        z-index: 0; /* behind text */
    }

    .mud-button-root.btn-gradient:hover::before {
        opacity: 1; /* fade in */
        background-position: right bottom; /* animate sheen movement */
    }

    .mud-button-root.btn-gradient span,
    .mud-button-root.btn-gradient svg {
        position: relative;
        z-index: 1; /* keep text & icons above the gradient */
    }


@-webkit-keyframes Animation {
    0% {
        background-position: 10% 0%
    }

    50% {
        background-position: 91% 100%
    }

    100% {
        background-position: 10% 0%
    }
}

.mud-fab {
    background-color: white !important;
}

    .mud-fab:disabled {
        background-color: var(--mud-palette-action-disabled-background) !important;
    }

    .mud-fab .mud-icon-root {
        fill: white !important;
    }

.mud-input-adornment .mud-icon-root.mud-svg-icon {
    fill: #1A1A34 !important;
}

.mud-fab:not(.ener-grid-fab-opened) .mud-fab-label .mud-icon-root.mud-svg-icon {
    fill: #1A1A34 !important;
}

.mud-tab-slider {
    background: rgb(190 242 100 / var(--tw-text-opacity, 1)) !important;
}

.mud-tab-active-text {
    color: rgb(190 242 100 / var(--tw-text-opacity, 1)) !important;
}

.mud-appbar {
    z-index: 5 !important;
}

.mud-tabs-tabbar {
    background-color: rgba(200, 181, 246, 0.05) !important;
}

.mud-table-pagination-select .mud-input .mud-input-root {
    color: #1A1A34 !important;
}

.selected {
    background-color: rgba(200, 181, 246, 0.2) !important;
}

    .selected > .mud-typography {
        font-weight: bold !important;
    }

    .selected > div > .mud-typography {
        font-weight: bold !important;
    }

.mud-table-body {
    border-top: hidden !important;
}

.mud-list-item-text {
    color: #1A1A34;
}

.ener-date-picker * {
    max-height: 52px;
}

.ener-date-picker input.mud-input-root {
    font-size: var(--mud-typography-h6-size) !important;
    font-family: var(--mud-typography-h6-family) !important;
    font-weight: var(--mud-typography-h6-weight) !important;
    line-height: var(--mud-typography-h6-lineheight) !important;
    letter-spacing: var(--mud-typography-h6-letterspacing) !important;
    text-transform: var(--mud-typography-h6-text-transform) !important;
}

.mud-table-body .mud-typography-body1 {
    color: #1A1A34 !important;
}

.mud-table-body .mud-typography-h2 {
    color: #1A1A34 !important;
}

.mud-table-body .mud-typography-h6:not(.mud-secondary-text) {
    color: #1A1A34 !important;
}

.mud-table-body svg {
    fill: #1A1A34 !important;
}

.op-row {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
}

.op-card {
    flex: 1 1 0;
    min-width: 0;
    background: #FAFAFA;
    border-radius: 16px !important;
    padding: 12px 16px;
    box-shadow: 0 8px 14px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
}

.op-card--result {
    background: #BAF400;
    color: #000;
    box-shadow: 0 14px 24px rgba(0,215,118,.35);
}

.op-sign {
    flex: 0 0 auto;
    font-weight: 400;
    font-size: 28px;
    line-height: 1;
    color: #1f2937;
}

.op-information {
    border-right-width: 1px !important;
    border-style: solid !important;
}

.op-header {
    background-color: #F3F4F6;
    height: 60px;
}

.op-footer {
    background-color: #F3F4F6;
    border-bottom-right-radius: 16px !important;
    border-bottom-left-radius: 16px !important;
}

    .op-footer * {
        color: #1A1A34 !important;
    }

.op-footer-square {
    background-color: #F3F4F6;
}

    .op-footer-square * {
        color: #1A1A34 !important;
    }

.mud-picker-container .mud-toolbar {
    display: none !important;
}

.mud-picker-calendar-container .mud-picker-calendar-day:not(:disabled) p {
    color: #1A1A34 !important;
}

.mud-input-numeric-spin svg.mud-icon-root {
    fill: #1A1A34 !important;
}

.mud-input-adornment-text {
    color: #1A1A34 !important;
}

.ener-numeric-picker .mud-input-control-input-container * {
    max-height: 52px !important;
}

.ener-numeric-picker input {
    color: #1A1A34 !important;
}

.ener-date-picker-fab:hover {
    background: linear-gradient(25deg, #D1D5DC, #FFFFFF);
    background-color: #D1D5DC !important;
}

.ener-grid-fab {
    border: 1px solid #1A1A34 !important;
}

.ener-grid-fab-opened {
    border: 1px solid #1A1A34 !important;
    background-color: #1A1A34 !important;
}

.ener-grid-fab-opened svg {
    fill: #FFFFFF !important;
}

.ener-grid-fab:hover {
    background: linear-gradient(45deg, #FFFFFF, #C8B5F6);
}

.mud-appbar {
    z-index: 21 !important;
}

.mud-input-helper-text {
    color: #6A7282 !important;
}

.scrolled {
    z-index: 200 !important;
    padding-bottom: 4px;
    background-color: rgba(26, 26, 52, 0.5) !important;
    backdrop-filter: blur(16px);
}

.mud-table-root .mud-table-body .mud-table-cell {
    font-size: var(--mud-typography-h5-size);
    font-family: var(--mud-typography-h5-family);
    font-weight: var(--mud-typography-h5-weight);
    line-height: var(--mud-typography-h5-lineheight);
    letter-spacing: var(--mud-typography-h5-letterspacing);
    text-transform: var(--mud-typography-h5-text-transform);
    color: var(--mud-palette-info) !important;
    --mud-ripple-color: var(--mud-palette-info) !important;
    padding: 0.7em !important;
}

#complexChart {
    overflow: visible !important;
}

.sf-tooltip-custom {
    width: 192px;
    padding: 20px;
    margin: auto;
    z-index: 10000 !important;
    background-color: #fff;
    opacity: 0.8;
}

.dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

    .item span {
        color: black;
    }

    .item:last-child {
        margin-bottom: 0;
    }

.yellow {
    background-color: #FFD700;
}

.red {
    background-color: #FF6347;
}

.green {
    background-color: #32CD32;
}

.blue {
    background-color: #1E90FF;
}

.purple {
    background-color: #800080;
}