html, body {
    height: 100%;
}

/* Show an image while loading */
body[loading=true] {
    background-image: url('images/coda-logo-white.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

h1:focus {
    outline: none;
}

/* Need this as a global style as the tooltip popover is parented outside if the component */
.coda-help-indicator-text {
    max-width: 200px;
}

/* for displaying a bigger icon */
svg.coda-icon-bigger {
    font-size: 3.5rem;
}

/* for displaying a huge icon */
svg.coda-icon-huge {
    font-size: 7rem;
}

/* For the main paper on a page */
.coda-section {
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 16px;
    padding-bottom: 32px;
    background-color: var(--mud-palette-background)!important;
}

/* For displaying a fab button or table of secondary options from a fab button */
.coda-fab-bottom-right,
.coda-fab-table {
    position: fixed !important;
    z-index: 1500;
    bottom: 80px;
    right: 32px;
}

.coda-fab-table > tbody > tr > td {
    padding: 8px;
}

.coda-center {
    text-align: center;
}

.coda-right {
    text-align: right!important;
}

.coda-fab-table > tbody > tr > td:first-child {
    color: var(--mud-palette-primary-text);
    font-family: var(--mud-typography-button-family);
    font-size: var(--mud-typography-body1-size);
    font-weight: var(--mud-typography-button-weight);
    line-height: var(--mud-typography-button-lineheight);
    letter-spacing: var(--mud-typography-button-letterspacing);
    text-align: right;
}

/* For displaying an extra dard overlay when using fab secondary buttons */
.coda-overlay-dark {
    background-color: rgb(33 33 33 / 85%);
    border-color: rgb(33 33 33 / 85%);
}

/* For the plain table of references for the confirmation page add a bit of a gap between the two columns */
table.references-summary tr > td:last-child {
    padding-left: 6px;
}

@media (max-width: 960px) {

    table.references-summary tr {
        display: revert;
    }

    table.references-summary tr > td {
        display: block;
        border-bottom: none;
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: unset !important;
    }
}

div.bulk-order-summary-container {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
}

/* For the summary table of bulk order submission results */
table.bulk-order-summary {
    width: 100%;
}
    table.bulk-order-summary tr > td.percentage {
        width: 35px;
        text-align: right;
        padding-right: 8px;
    }

@media (max-width: 960px) {

    table.bulk-order-summary tr {
        display: revert;
    }

        table.bulk-order-summary tr > td {
            display: block;
            border-bottom: none;
            padding-left: 0 !important;
            padding-right: 0 !important;
            max-width: unset !important;
        }
}

/* Use as a dialog title css class */
.coda-dialog-title {
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-white);
}

.coda-dialog-title > button {
    color: var(--mud-palette-white);
}

/* Style a coda avatar that also has additional details to display alongside it  */
coda-avatar-detail {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    cursor: default;
}

    coda-avatar-detail > div {
        display: flex;
        flex-direction: column;
    }

        coda-avatar-detail > div > p {
            line-height: 1em;
            margin-top: 2px;
            margin-bottom: 2px;
            margin-left: 5px;
            margin-right: 5px;
        }

            coda-avatar-detail > div > p:first-of-type {
                margin-top: 0;
            }

            coda-avatar-detail > div > p:last-of-type {
                margin-bottom: 0;
            }


/* Class that can be used when opening a dialog to blur the background */
.blurred-backdrop {
    backdrop-filter: blur(5px);
}

/* To use with icons that use stroke and not fill */
.icon-stroke-color {
    stroke: currentColor; 
}

/* To use with icons that we want to display as timeline content */
svg.timeline-icon-large {
    font-size: 8rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Override some time line classes to enable a large item dot */
div.mud-timeline-item.coda-delivery div.mud-timeline-dot-size-large {
    width: 450px;
    height: fit-content;
    background-color: white;
    border: 1px solid silver;
    border-radius: 15px;
}

div.mud-timeline-item.coda-delivery div.mud-timeline-dot-size-large div.mud-timeline-item-dot-inner {
    background-color: transparent;
    display: flex;
    flex-direction: column;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 15px;
}

div.mud-timeline-item.coda-delivery div.mud-timeline-item-content {
    max-width: calc(50% - 225px);
}

div.mud-timeline-item.coda-delivery svg.timeline-icon-huge {
    font-size: 7rem;
}

/* Make the large timeline dot smaller on small screens */
@media (max-width: 960px) {

    div.mud-timeline-item.coda-delivery div.mud-timeline-dot-size-large {
        width: 350px;
    }

    div.mud-timeline-item.coda-delivery div.mud-timeline-item-content {
        max-width: calc(50% - 175px);
    }
}


.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMT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