/*Global Variables*/
:root {
    --card-border-color: #636161ad;
}

h1:focus {
    outline: none;
}

.border-right {
    border-right: 1px solid var(--mud-palette-table-lines)
}

.matrix-table td, .matrix-table th {
    text-align: center
}

.matrix-table {
    border-top: 1px solid var(--mud-palette-table-lines);
    border-spacing: 0;
}

.table-header {
    font-weight: 500;
    line-height: 1.5rem;
    position: sticky;
    left: 0;
    background-color: white;
}

.mud-tooltip-root {
    display: flex !important;
}

#blazor-error-ui {
    background: lightyellow;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    right: 0;
    left: auto;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 25rem;
    z-index: 1000;
    color: initial;
}

    #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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5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rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.bread-crumb {
    color: #0369a1
}

    .bread-crumb:hover {
        color: #0ea5e9;
        text-decoration: underline;
    }

/* Custom App CSS */

/* Removes stupid ripple effect*/
.mud-ripple:after {
    transition: unset !important;
}

.mud-ripple-icon:after {
    transition: unset !important;
}

/* Fixes Search Border */
.mud-input-outlined-border {
    border: 0px;
}

body {
    background-color: #F0F2F5;
}

body {
    --mud-appbar-height: 50px;
}

.search-input .mud-input {
    background-color: #fff;
    border-radius: 4px;
}

    .search-input .mud-input > input {
        padding: 7px !important;
        margin-top: 5px !important;
    }

.top-nav .mud-nav-link .mud-nav-link-text {
    margin-left: 0px;
}

.pulse-error {
    animation-name: transition-to-red;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-direction: alternate-reverse;
    animation-timing-function: ease;
}


@keyframes transition-to-red {
    from {
    }

    to {
        color: red;
    }
}

@keyframes blink {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.8);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(255, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.strong {
    font-weight: 700;
}


.flowsheet-label-cell {
    height: 57px;
    align-content: center;
    text-align: center;
    border-bottom: 1px solid var(--mud-palette-table-lines);
    border-left: none;
    padding: 0 16px;
    border-right: 1px solid var(--mud-palette-table-lines);
}

.medication-flowsheet-label-cell {
    height: 77px;
    align-content: center;
    text-align: center;
    border-bottom: 1px solid rgba(6, 6, 6, 0.84);
    border-left: none;
    padding: 0 16px;
    border-right: 1px solid rgba(6, 6, 6, 0.84);
}

    .medication-flowsheet-label-cell > .mud-input-control > .mud-input-control-input-container > .mud-input > .mud-input-slot > .flatpickr-input {
        font-size: 14px;
        background: rgb(207 234 250);
        width: 131px;
    }

.center-cell {
    text-align: center;
    vertical-align: middle;
}

.bordered-table {
    border-collapse: collapse;
    width: 10%;
}

    .bordered-table th,
    .bordered-table td {
        border: 1px solid var(--mud-palette-table-lines);
        padding: 1rem;
    }

    .bordered-table th {
        background-color: #F0F2F5;
        min-width: 250px;
    }

.mud-table-scrollable {
    height: 200px;
    overflow-y: auto;
}

    .mud-table-scrollable table {
        width: 100%;
        border-collapse: collapse;
    }

    .mud-table-scrollable thead th {
        position: sticky;
        top: 0;
        background-color: white;
        z-index: 10;
    }

.horizontal-spin {
    animation: spin-y 1s infinite linear; /* Adjust duration and timing function as needed */
}

@keyframes spin-y {
    from {
        transform: rotateY(0deg);
    }

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

.mud-field-warning .mud-input-control-helper-container .mud-input-helper-text {
    color: rgba(255,152,0,1);
}

.mud-field-warning .mud-input-control-input-container .mud-input-label {
    color: rgba(255,152,0,1) !important;
}

.mud-field-warning > .mud-input-control-input-container > .mud-input > fieldset {
    border-color: rgba(255,152,0,1);
}

.short > div > div > div {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.select-group .mud-list-item-icon {
    display: none;
}

.card-border {
    border-color: var(--card-border-color);
}

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

.mud-field-error > .mud-input-control-input-container > .mud-input > fieldset {
    border-color: var(--mud-palette-error-darken) !important;
    border-width: 2px;
}

.mud-field-success > .mud-input-control-input-container > .mud-input > fieldset {
    border-color: var(--mud-palette-success-lighten) !important;
    border-width: 2px;
}

.narrow .mud-input-root {
    padding: 4px !important;
}

.alert-tag > .mud-alert-position > .mud-alert-message {
    padding: 2px 0px !important;
}

.avatar-white {
    color: #fff;
    border: 1px solid #fff;
}

.selected {
    background-color: #1E88E5 !important;
}

    .selected > td {
        color: white !important;
    }

        .selected > td .mud-input {
            color: white !important;
        }
}

.error-count {
    color: #f44336;
    font-weight: bold;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
    
    100% {
        transform: scale(1);
    }
}
