input-table .mud-input-control mud-select {
    margin: 0 !important;
}

.input-table .mud-input-control > .mud-input-control-input-container > div.mud-input.mud-input-text {
    margin-top: 0 !important;
}

.input-table .mud-input-control {
    margin-top: 0 !important;
}

.input-table .mud-simple-table.mud-table-bordered .mud-table-container table tbody tr td {
    padding: 5px !important
}

.grey-expansion-headers .mud-expand-panel .mud-expand-panel-header {
    background-color: var(--mud-palette-table-striped);
    font-size: 20px;
}

.grey-expansion-headers .mud-expand-panel .mud-expand-panel-content {
    padding: 16px 24px 16px;
}

.light-toolbar, .mud-tabs.light-toolbar .mud-tabs-toolbar {
    background-color: var(--mud-palette-table-striped);
    border: 1px solid var(--mud-palette-table-lines);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.mud-tabs.light-toolbar .mud-tabs-panels {
    background: var(--mud-palette-surface);
}

.mud-drawer-content > .mud-navmenu .mud-nav-link .mud-icon-root:first-child + .mud-nav-link-text {
    transition: 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mud-drawer--closed.mud-drawer-mini > .mud-drawer-content > .mud-navmenu .mud-nav-link .mud-icon-root:first-child + .mud-nav-link-text {
    display: initial !important;
    visibility: hidden;
    opacity: 0;
}

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

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

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

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg2Ni4wNTQ3IDI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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");
    }


.checkbox-with-border-bottom {
    border-bottom: 1px solid var(--mud-palette-gray-light) !important;
    height: 100%;
}

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

.mud-text-with-border {
    border-bottom: 1px solid var(--mud-palette-gray-light) !important;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.claim-list-actions .mud-button {
    padding: 0 7px;
    text-transform: none;
    font-size: 12px;
    white-space: nowrap;
}

    .claim-list-actions .mud-button .mud-button-icon-start {
        margin: 0 !important;
        margin-inline-end: 5px !important;
    }

.mud-dialog-no-spacing .mud-dialog-content {
    padding: 0 !important;
    margin: 0 !important;
}

.bordered-input {
    border: 1px solid #e1e1e1 !important;
    border-radius: 3px;
}

    .bordered-input input {
        padding: 4px 0px !important;
    }

    .bordered-input svg {
        font-size: 16px;
        margin-right: 2px;
    }

.centered-input input {
    text-align: center;
}

body.chat-open {
    overflow: hidden !important;
    padding-right: 10px !important;
}

.chat-drawer {
    padding: 0px !important;
    padding-top: 55px !important;
}

.chat-drawer-close-button {
    position: absolute !important;
    top: 5px;
    right: 10px;
}

.chat-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-bubble-box {
    flex: 1;
    overflow-y: auto;
    border-top: 1px solid #e1e1e1;
    padding: 10px;
}

.chat-input-box {
    flex-shrink: 0;
    padding: 12px;
    border-top: 1px solid #e1e1e1;
    box-shadow: 0 0 9px -1px #e4e4e4;
}

.chat-bubble {
    padding-bottom: 20px !important;
    min-width: 100px !important;
}

    .chat-bubble .mud-typography {
        white-space: pre-wrap;
        word-wrap: break-word;
    }

.chat-time {
    font-size: 10px;
    font-weight: bold;
    position: absolute !important;
    bottom: 5px;
    right: 10px;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat-bubble-animate-left {
    animation: slideInFromLeft 0.3s ease-out;
}

.chat-bubble-animate-right {
    animation: slideInFromRight 0.3s ease-out;
}

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

    to {
        transform: rotate(360deg);
    }
}

.mud-fab-spin svg {
    animation: spin 2s linear infinite;
}


.mud-table-dense * .mud-table-row .mud-table-cell {
    padding: 2px 10px 2px 10px !important;
}

.mud-chip.mud-chip-size-small {
    border-radius: 12px;
    font-size: 11px !important;
    height: 20px !important;
    padding: 0 10px !important;
}


.tabs-100-h .mud-tabs-tabbar {
    height: 100%;
}

.annualplan-badge {
    font-size: 10px !important;
}

.annualplan-unplanned-chip-anchor {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-100%, -50%);
    z-index: 1;
}

.annualplan-unplanned-chip {
    background-color: var(--mud-palette-error);
    color: var(--mud-palette-error-text);
    border-radius: 10px;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 500;
    line-height: 18px;
    height: 18px;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.compact-list-item {
    padding: 0 !important;
    border-bottom: 1px solid #e1e1e1 !important;
}

.selected {
    background-color: rgb(71 167 245 / 31%) !important;
}


.tertiary-tab {
    background: var(--mud-palette-tertiary-hover);
    transition: 0.3s !important;
}

    .tertiary-tab .mud-tabs-scroll-button {
        background: var(--mud-palette-tertiary-hover);
    }

    .tertiary-tab-active, .tertiary-tab .mud-tab:hover {
        background: var(--mud-palette-tertiary-lighten) !important;
        color: white !important;
        border-style: solid;
        border-width: 2px;
        border-color: var(--mud-palette-tertiary-darken);
        border-left: none;
        border-right: none;
    }
/* ---------------------------------------------------------------------------
   ColorHexPicker

   Without a fixed chip width the MudColorPicker field stretches to fill the row,
   pushing the remove button and "Add Color" to the far edge of the form with a
   gap of dead space between them and the value they belong to.
   --------------------------------------------------------------------------- */

.cms-colors__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.cms-colors__head .mud-input-label {
    position: static;
    transform: none;
    margin: 0;
}

.cms-colors__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

/* One color: swatch, value and its remove button read as a single control. */
.cms-colors__chip {
    display: flex;
    align-items: center;
    gap: 2px;
}

.cms-colors__field {
    width: 160px;
    flex: 0 0 160px;
    margin: 0;
}

.cms-colors + .mud-input-label,
.cms-colors > .mud-typography-caption {
    display: block;
    margin-top: 6px;
}

/* View mode: a color is just a swatch and its value, with no controls. */
.cms-colors__chip--readonly {
    gap: 8px;
}

/* Click-to-expand thumbnails (wwwroot/js/image-viewer.js). Above MudBlazor's dialogs. */
.image-viewer-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

.image-viewer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.image-viewer-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.image-viewer-close-line {
    position: absolute;
    top: calc(50% - 0.125rem);
    left: 0;
    width: 3rem;
    height: 0.25rem;
    border-radius: 9999px;
    background-color: white;
}

.image-viewer-close-line.first {
    transform: rotate(45deg);
}

.image-viewer-close-line.second {
    transform: rotate(-45deg);
}

.image-viewer-expanded-image {
    position: fixed;
    z-index: 2001;
    opacity: 0;
    pointer-events: none;
    border-radius: 0.5rem;
    object-fit: contain;
    background: var(--mud-palette-surface);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition-property: top, left, width, height, opacity;
    transition-timing-function: ease;
    cursor: zoom-out;
}

img[data-image-viewer] {
    cursor: zoom-in;
}

/* The thumbnail's hover hint that it expands. */
.image-thumb {
    position: relative;
}

.image-thumb .image-thumb-zoom {
    position: absolute;
    right: 4px;
    bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease;
}

.image-thumb:hover .image-thumb-zoom {
    opacity: 1;
}
