:root {
    --primary-color: #da7600; /* orange */
    --primary-color-darken: #b16100; /* darker orange */
    --primary-color-lighten: #ff8c00; /* lighter orange */
    --primary-text: white;
    --appbar-height: 64px;
}

#blazor-error-ui {
    background: red;
    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: 9999;
}

    #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."
    }

a {
    color: var(--mud-palette-primary);
}

/*
.app-bar .mud-nav-link .mud-nav-link-text {
    text-align: center;
    margin-left: 0;
    margin-inline-start: 0;
}
*/

body {
    height: 100vh;
    background-color: #f5f5f5;
}

strong, b {
    font-weight: 600;
}

@media only screen and (max-width: 600px) {
    .mud-appbar {
        height: 52px;
    }
}

@media only screen and (max-width: 600px) {
    .mud-input.mud-input-outlined.mud-input-adorned-start.mud-shrink {
        height: 42px;
    }
}

.mud-breadcrumb-item.mud-disabled > a {
    color: rgb(66, 66, 66); /* near black */
    font-weight: 500;
}

.mud-button {
    border-radius: 25px;
}

.mud-button-label {
    text-transform: none; /* prevent button text from being ALL CAPS */
}

.mud-dialog-actions {
    justify-content: center !important;
}

#app-main-menu-drawer .mud-drawer-content {
    min-height: 100%;
    height: unset;
    max-height: unset;
}

.mud-drawer.mud-drawer-temporary.mud-drawer-pos-top.mud-drawer--open:not(.mud-drawer--initial).advanced-search-drawer.advanced-search-drawer-closed {
    display: none;
    visibility: hidden;
}

.mud-drawer.mud-drawer-temporary.mud-drawer-pos-top.mud-drawer--open:not(.mud-drawer--initial).advanced-search-drawer.advanced-search-drawer-open {
    display: flex;
    visibility: visible;
    top: 65px;
    left: 241px;
    width: calc(100% - 241px);
}

@media only screen and (max-width: 600px) {
    .mud-drawer.mud-drawer-temporary.mud-drawer-pos-top.mud-drawer--open:not(.mud-drawer--initial).advanced-search-drawer.advanced-search-drawer-open {
        top: 49px;
        left: 0;
        width: 100%;
    }
}

.mud-drawer.mud-drawer-temporary.mud-drawer-pos-top.mud-drawer--open:not(.mud-drawer--initial).advanced-search-drawer.advanced-search-drawer-open {
    animation: none;
}

.mud-drawer.mud-drawer-temporary.mud-drawer-pos-top.mud-drawer--closed:not(.mud-drawer--initial).advanced-search-drawer.advanced-search-drawer-closed {
    animation: none;
}

.mud-grid-spacing-xs-6 {
    width: calc(100% + 24px);
    margin: -12px;
}

.mud-grid-spacing-xs-6 > .mud-grid-item {
    padding: 12px;
}

.mud-input {
    background-color: white;
}

.mud-input-control {
    margin-top: 16px !important;
}

    .mud-input-control.mt-0 {
        margin-top: 0 !important;
    }

        .mud-input-control.mt-0 > .mud-input-control-input-container > div.mud-input.mud-input-text {
            margin-top: 0 !important;
        }

    .mud-input-control.mud-table-pagination-select {
        margin-top: 0 !important;
    }

    .mud-input-control.mud-input-control-boolean-input {
        margin-top: 0 !important;
    }

        .mud-input-control.mud-input-control-boolean-input.small-buttons .mud-radio-group .mud-icon-button {
            padding: 4px !important;
        }

.mud-list-extended {
    background-color: white !important;
}

.mud-list-subheader-extended {
    background-color: white !important;
}

.mud-nav-group > .mud-nav-link > .mud-nav-link-text {
    font-weight: 400;
}

.mud-picker.mt-0 > .mud-input-control {
    margin-top: 0 !important;
}

.mud-picker-container .mud-toolbar {
    margin-left: 0 !important;
}

.mud-progress-linear.mud-progress-linear-color-info:not(.mud-progress-linear-buffer) .mud-progress-linear-bar {
    background-color: var(--primary-color);
}

.mud-table-dense * .mud-checkbox span {
    padding: 3px;
}

.mud-table-dense * .mud-icon-button {
    padding: 3px;
}

.mud-table-dense * .mud-table-row .mud-table-cell {
    padding-top: 4px !important;
    padding-right: 8px !important;
    padding-bottom: 4px !important;
    padding-left: 8px !important;
}

    @media only screen and (min-width: 600px) {
        .mud-table-dense * .mud-table-row .mud-table-cell:first-of-type {
            padding-left: 12px !important;
        }
    }

    .mud-table-dense * .mud-table-row .mud-table-cell.column-cell-align-right {
        text-align: right;
        padding-right: 60px !important;
    }

    .mud-table-dense * .mud-table-row .mud-table-cell.column-cell-align-right-no-sort {
        text-align: right;
        /*padding-right: 12px !important;*/
    }

.mud-table-dense * .mud-table-row .mud-table-cell.column-header-align-right-no-sort {
    text-align: right;
    /*padding-right: 12px !important;*/
}

.mud-data-grid .mud-table-cell.column-header-align-right-no-sort .column-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.mud-tabs-tabbar {
    /*background-color: var(--mud-palette-background);*/
    background-color: unset;
}

.app-alert-text {
    background-color: red;
    color: white;
    font-size: smaller;
    text-align: center;
}

.background-color-white {
    background-color: white;
}

.background-color-primary {
    background-color: var(--primary-color);
}

.bottom-right-fixed-container {
    position: fixed;
    bottom: 20px;
    right: 0;
    /*background-color: rgba(255, 255, 255, .7);*/
    background-color: white;
    box-shadow: 0 3px 20px rgba(0, 0, 0, .1);
    border-radius: 50px 0 0 50px;
    padding: 15px;
    display: flex;
    align-items: center;
    z-index: 2;
}

.column-cell-smaller {
    width: 35px;
}

.column-cell-small {
    width: 50px;
}

.column-header {
    font-weight: 600;
    line-height: 1.2rem;
}

.column-header-align-right .column-header {
    float: right;
}

.detail-header-container {
    background-color: #454545;
    color: white;
    margin-top: 0;
    margin-left: -24px !important;
    margin-bottom: 0;
    position: sticky;
    top: 64px;
    width: calc(100% - -48px);
    z-index: 3;
}

    .detail-header-container .mud-icon-button {
        background-color: #727272;
        color: white;
    }

.font-size-smaller {
    font-size: smaller;
}

.font-size-x-small {
    font-size: x-small;
}

.global-search-input {
    background-color: white;
    border-radius: var(--mud-default-borderradius);
    margin-top: 0 !important;
}

    .global-search-input.mud-input-control > .mud-input-control-input-container > div.mud-input.mud-input-text {
        margin-top: 0 !important;
    }

    .global-search-input .mud-input.mud-input-outlined.mud-input-adorned-start.mud-shrink {
        border-radius: var(--mud-default-borderradius);
    }

    @media screen and (max-width: 600px) {
        .detail-header-container {
        top: 48px;
    }
}

.icon-color-white .mud-icon-root.mud-svg-icon {
    fill: white !important;
}

.link-header-text {
    font-size: .875rem;
    font-weight: 500;
}

.max-width-100pct {
    max-width: 100%;
}

.max-width-200px {
    max-width: 200px;
}

.payment-request-item-header-container {
    background-color: #454545;
    border-radius: 5px;
    color: white;
}

.read-only-label {
    font-size: .75rem;
    font-family: inherit;
}

.read-only-text {
    font-size: 1rem;
    font-family: inherit;
}

.small-item-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #9d9d9d;
    text-transform: uppercase;
}

.status-pill {
    /* circle shape, size and position */
    /* for overlapping in top-right corner
        position: absolute;
        right: -0.7em;
        top: -0.7em;
    */
    /*right: -2.5em;*/
    /*top: 0em;*/
    min-width: 1em; /* or width, explained below. */
    height: 1em;
    /*border-radius: 0.8em;*/ /* or 50%, explained below. */
    border-radius: 1.6em;
    /*border: 0.05em solid white;*/
    /*background-color: red;*/
    background-color: #e3e3e3;
    /* number size and position */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
    color: white;
    /* 
        If you want the indicator to be a circle no matter how big the count, 
        change min-width to width and set border-radius to 50%. 
        The CSS above is designed to stretch horizontally if the count gets large.
    */
    padding: 0.3em !important;
    font-weight: bold;
}

    .status-pill.border-white {
        border: 0.05em solid white;
    }

    .status-pill.color-blue {
        background-color: #35a7c9;
    }

    .status-pill.color-gray, .status-pill.color-grey {
        background-color: #e3e3e3; /* this is the default */
    }

    .status-pill.color-green {
        background-color: #73a33a;
    }

    .status-pill.color-red {
        background-color: #c41919;
    }

    .status-pill.color-yellow {
        background-color: #f8ac26;
    }

    .status-pill.has-text {
        min-width: 2.5em;
        height: 1.5em;
    }

.text-align-right {
    text-align: right !important;
}

.text-error {
    color: var(--mud-palette-error);
}

.text-success {
    color: var(--mud-palette-success);
}

.truncate-800px {
    max-width: 800px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.white-space-nowrap {
    white-space: nowrap;
}

@media screen and (min-width: 600px) {
    .main-menu-button {
        display: none !important;
    }
}

.table-with-pager {
    border-bottom: 1px solid var(--mud-palette-table-lines) !important;
}
