.validation-message {
    color: red;
}

#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+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."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

/*EGPP*/

.mud-select .mud-select-input {
    padding: 0.5rem;
    box-sizing: border-box;
}

.containerMargin {
    margin: 3rem;
    padding: 0rem 3rem 3rem 3rem;
}

.subsectionMargin {
    margin: 3rem;
    padding: 0rem 3rem 0rem 3rem;
}

@media (max-width: 600px) {
    .containerMargin {
        margin: 1.5rem;
        padding: 0rem 1.5rem 1.5rem 1.5rem;
    }

    .subsectionMargin {
        margin: 1.5rem;
        padding: 0rem 1.5rem 0rem 1.5rem;
    }

}

.mud-input-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--mud-palette-text-primary);
}

.culture-selector-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    gap: 0.3rem;
}

.globe-icon {
    font-size: 24px;
    cursor: pointer;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 5px;
    z-index: 1000;
    min-width: 122px;
    background-color: white;
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.language-option {
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

    .language-option:hover {
        background-color: #e0e0e0;
    }

.flex-align-center {
    display: flex;
    align-items: center;
}

.text-muted {
    color: #797979;
}

.form-divider {
    border-width: 3px;
}

.color-grey {
    color: #797979;
}

.background-color-gray {
    background-color: var( --mud-palette-background);
}

.background-color-white {
    background-color: white;
}

.color-white {
    color: white;
}

.mud-typography:focus {
    outline: none;
}

.font-weight-500 {
    font-weight: 500;
}

.font-weight-600 {
    font-weight: 600;
}

.color-text-primary {
    color: var(--mud-palette-text-primary)
}

.color-text-secondary {
    color: var(--mud-palette-text-secondary)
}

.width-100 {
    width: 100% !important;
}

/* Navigation Bar */

.search-bar .mud-input-control-input-container .mud-input .mud-input-slot {
    font-size: 0.75rem;
}

.custom-navmenu-popover {
    min-width: 175px;
    max-width: 300px;
    width: auto;
}

.profile-card {
    padding: 16px;
    min-width: 200px;
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo-wrapper {
    max-width: 100%;
    height: auto;
    width: auto;
    display: flex;
    align-items: center;
}

.responsive-logo {
    width: 100%;
    height: auto;
    max-width: 180px; 
}

@media (min-width: 768px) {
    .responsive-logo {
        max-width: 180px;
    }
}

@media (min-width: 1024px) {
    .responsive-logo {
        max-width: 200px;
    }
}

.eg-logo-text {
    color: #FFF;
    font-family: Neo Sans W1G, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20.02px;
    letter-spacing: 0.15px;
    cursor: pointer;
}

.logo-icon {
    width: auto;
    height: 16px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.workorder-menu-item:not(.disabled):hover {
    background-color: var(--mud-palette-action-default-hover);
    cursor: pointer;
}

.workorder-menu-item.selected {
    background-color: var(--mud-palette-primary-lighten);
    color: var(--mud-palette-primary-darken);
    font-weight: 500;
}

.workorder-menu-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: transparent !important;
}

.new-button {
    display: flex;
    width: 135px;
    height: var(--width-height-button-md, 36px);
    padding: var(--padding-margin-padding-3-xs, 6px) var(--padding-margin-padding-lg, 16px);
    justify-content: center;
    align-items: center;
    gap: var(--padding-margin-padding-2-xs, 8px);
    border-radius: var(--Border-Radius-mud-default-border-radius, 4px);
    background: #066769;
    color: var(--mud-palette-primary-text);
}

.mobile-menu-item:hover {
    background-color: var(--mud-palette-action-default-hover) !important;
}

.mobile-menu-item.selected {
    background-color: var(--mud-palette-primary-lighten) !important;
}

.user-avatar {
    background-color: #066769 !important;
    color: white;
    font-weight: bold;
}

.release-notes-button {
    min-width: unset !important;
    display: inline-flex;
    align-items: center;
    margin-right: 0;
    overflow: hidden;
    white-space: nowrap;
    width: 25px;
    transition: width 0.3s ease;
    text-transform: none !important;
}

    .release-notes-button:hover {
        width: 130px;
    }

.release-notes-button-text {
    display: none;
    margin-left: 8px;
}

.release-notes-button:hover .release-notes-button-text {
    display: inline;
}

/*Form Buttons*/

.fixed-button-wrapper {
    position: fixed;
    top: 64px; /* default desktop app bar height */
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 1rem;
    background: transparent;
}

@media (max-width: 600px) {
    .fixed-button-wrapper {
        top: 56px; /* default mobile app bar height */
    }
}

.button-wrapper {
    position: relative;
    background-color: transparent;
    display: inline-flex;
    min-width: 120px;
    max-width: fit-content;
}
    .button-wrapper::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: transparent;
        z-index: -1;
    }
    .button-wrapper:hover::before {
        background-color: transparent;
    }

/* Utilization */

.utilizationItemMargin {
    margin: 3rem;
    padding: 0rem 3rem 0rem 3rem;
}

@media (max-width: 600px) {

    .utilizationItemMargin {
        margin: 1.5rem;
    }
}

/* Installation Address DAR (temporary) */

.fill-container {
    height: 100%;
    width: 100%;
}

/* Overview Start */
.overview-wrapper {
    --mud-palette-surface: var(--mud-palette-background-gray);
    background-color: var(--mud-palette-surface);
}
.overview-header-tabs {
    flex: 1 1 100%;
    max-width: 100%;
}
@media (min-width: 600px) {
    .overview-header-tabs {
        flex: 1 1 65%;
        min-width: 0;
        max-width: 65%;
    }
}

.table-text-truncate-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.grey-text {
    color: #616161;
    opacity: 0.8;
}

.overview-table-header thead th {
    height: 64px;
    min-height: 64px;
}
.overview-table-header .mud-table-cell .column-header {
    display: inline-flex;
    gap: 6px;
}
.overview-table-header .sortable-column-header {
    color: var(--mud-palette-text-primary);
    font-size: var(--mud-typography-body2-size);
    font-weight: var(--mud-typography-subtitle2-weight);
    line-height: var(--mud-typography-body2-lineheight);
    letter-spacing: var(--mud-typography-body2-letterspacing);
}

.overview-table-row {
    height: 64px;
    min-height: 64px;
    background: white;
    transition: background-color 0.3s ease;
    font-size: var(--mud-typography-body2-size) !important;
    font-weight: var(--mud-typography-body2-weight) !important;
}
    .overview-table-row:hover {
        background: var(--mud-palette-table-lines);
    }

.overview-table-cell {
    max-width: 275px;
    min-width: 173px;
}

.border-color-table-line {
    border-color: var(--mud-palette-table-lines);
}

.overflow-y-auto {
    overflow-y: auto;
}
    
.min-h-300 {
    min-height: 300px;
}

.background-color-gray-lighter {
    background-color: var(--mud-palette-gray-lighter);
}

.rounded-input .mud-input-outlined-border {
    border-radius: 8px !important;
    border: 1px solid #E0E0E0 !important;
}

.consumption-category-icons-wrapper {
    width: 52px;
    gap: 4px;
}

.disable-consumption-category-icon {
    color: #B0B0B0; 
    pointer-events: none;
}

/* Overview End */

.custom-disabled-text {
    color: #c4c4c4 !important;
    opacity: 0.7; /* Slight fade effect */
}

.rotating-hourglass {
    animation: spin 2s linear infinite;
    color: #c4c4c4 !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.scroller {
    white-space: pre-line;
    word-wrap: break-word;
    max-width: 400px;
    max-height: 100px;
    overflow-y: auto;
}

.status-container {
    min-width: 300px;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.status-wrapper {
    min-width: 300px;
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
}

.mud-chip {
    display: inline-flex !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 4px 8px !important;
    margin: 0 !important;
}

@media (min-zoom: 250%) {
    .status-wrapper {
        min-width: 400px !important;
    }

    .mud-chip {
        font-size: 14px !important;
        padding: 2px 6px !important;
    }
}

.scrollable-table {
    max-height: 300px;
    overflow-y: auto;
    display: block;
}

    .scrollable-table .mud-table-container {
        overflow-y: auto;
    }

    .scrollable-table .mud-table-head th {
        position: sticky;
        top: 0;
        z-index: 1;
        background-color: #066769;
        color: white;
    }
.table-header {
    background-color: #066769;
    color: white !important;
}
.custom-text {
    color: #757575;
    font-size: 0.8em;
}
.admin-icon {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-left: 12px;
    margin-top: 3px;
    gap: 0.3rem;
}

    .admin-icon:hover {
        transform: scale(1.1); 
        color: aliceblue 
    }

#app {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #ffffff;
}

.loading-container {
    text-align: center;
}

.logo {
    width: 220px;
    height: auto;
    margin-bottom: 40px;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

    .dots span {
        width: 12px;
        height: 12px;
        background-color: #000;
        border-radius: 50%;
        animation: bounce 1.2s infinite ease-in-out;
    }

        .dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-12px);
    }
}
@media (max-width: 768px) {
    .admin-table td,
    .admin-table th {
        white-space: normal;
        word-break: break-word;
        font-size: 0.875rem;
        padding: 8px;
    }

    .admin-table .mud-button {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .admin-table .mud-table-cell {
        vertical-align: top;
    }
    .sortable-header {
        padding: 0.5rem;
        min-width: 120px;
        white-space: nowrap;
    }

    .sort-label-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    @media (max-width: 600px) {
        .sortable-header {
            font-size: 0.75rem;
            padding: 0.25rem;
        }

        .sort-label-wrapper {
            flex-direction: column;
            align-items: flex-start;
        }
    }

}

/* About Modal Start */
.about-dialog-scroll-content {
    max-height: 70vh;
    overflow-y: auto;
    padding: 24px;
    box-sizing: border-box;
}

.application-info-card {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease-in-out;
    display: flex;
    align-items: center;
}

    .application-info-card:hover {
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    }

.app-info-icon-box {
    background-color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.12);
}

.about-page-subtitle {
    font-size: 1.05rem;
}

.license-version-chip-wrap {
    white-space: normal !important;
}

.license-name-chip {
    display: inline-block;
    border: 1px solid #4caf50;
    color: #4caf50;
    border-radius: 16px;
    background-color: transparent;
    font-size: 0.72rem;
    line-height: 1.2;
    padding: 4px 6px;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.tools-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 16px 0;
    transform: scale(0.9);
}

.tool-box {
    width: 150px;
    height: 130px;
    background-color: #D0E6E680;
    color: #066769;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    cursor: default;
}

    .tool-box:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    }

.tool-overlay {
    background-color: #008B8B33;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease-in-out;
}

.tool-box:hover .tool-overlay {
    background-color: #066769AA;
    color: #f5f5f5;
}

.tool-icon svg {
    width: 36px;
    height: 36px;
}
/* About Modal End */

.admin-table.full-width {
    width: 100%;
    min-width: 1200px; /* keeps it wide even if screen is small */
}

/* Release Notes Start */
.whats-new-title-icon {
    opacity: 0.07;
    font-size: 180px;
}

.current-version-badge {
    background: linear-gradient(45deg, #66BB6A, #A5D6A7);
    color: white;
    border-radius: 16px;
    font-weight: 500;
}

.rounded-16 {
    border-radius: 16px !important;
}

.release-note-child-content-background {
    background-color: #F0FDFD;
    border-radius: 16px;
}

.pdf-viewer-height {
    height: calc(100vh - 150px);
}

.new-features-icon-color {
    color: #4CAF50;
}

.enhancements-icon-color {
    color: #03A9F4;
}

.resolved-issues-icon-color {
    color: #F44336;
}

.general-notes-icon-color {
    color: #9E9E9E;
}

.instructions-workarounds-icon-color {
    color: #FFC107;
}

.clickable-block {
    display: block !important;
    text-decoration: none !important;
}

.instruction-workaround-card {
    transition: box-shadow 0.3s ease;
    width: 250px;
    border-radius: 12px;
}
    .instruction-workaround-card:hover {
        box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15) !important;
    }
/* Release Notes End */