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

a, .btn-link {
    color: #006bb7;
}

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

h1:focus {
    outline: none;
}

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

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

:root {
    --first-op-color: #4e85f6ff;
    --second-op-color: #ef8c56ff;
    --third-op-color: #729b44ff;
    --selected_row_color: var(--mud-palette-table-hover);
}

:root .input-success .mud-input-underline:after {
    transform: scaleX(1);
    border-bottom-color: var(--mud-palette-success)
}

:root .input-warning .mud-input-underline:after {
    transform: scaleX(1);
    border-bottom-color: var(--mud-palette-warning)
}

:root strong , b {
    font-weight: 600 !important;
}

@font-face {
    font-family: 'Merienda';
    src: url('../fonts/Merienda-VariableFont_wght.ttf') format('truetype');
}

.splash-screen {
    position: fixed;
    inset: 0;
    background-color: #FFFFFF;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}


.logo {
    fill: #4DB6AC;
}

.pulsate {
    width: 150px;
    animation: pulsate 1.5s infinite ease-in-out;
}


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

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.mud-nav-link:hover {
    background-color: var(--mud-palette-table-hover) !important; /* Theme: TableHover */
}

/* ==== Pump configuration page ====================================================================
   Moved out of per-component <style> blocks (2026-09-11): a block inside a component is not scoped,
   it is emitted once per instance (29 copies of .op-output in one page batch) and where two blocks
   defined the same class the last one in DOM order won. The rules below are the ones that won. */

.cfg-section {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Larger, bold input labels on the configuration page only (was an unscoped rule in the
   operating point card that hit every input while the page was shown). */
.pump-configuration .mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    font-size: 1.25rem;
    font-weight: bold;
    height: 30px;
}

.pump-configuration .mud-input-control > .mud-input-control-input-container > div.mud-input.mud-input-text.mud-input-text-with-label {
    margin-top: 18px;
}

/* Output tables and rows (OutputArea / ConfigRow / OutputRow / NumericOutput / OperatingPointCmp). */
.op-output {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: right;
    text-align: right;
    padding-right: 8px;
    padding-left: 8px;
}

.op-caption {
    display: flex;
    align-items: center;
    justify-content: left;
    text-align: left;
    font: inherit;
    font-weight: bold;
    padding-left: 24px !important;
}

.op-unit {
    display: flex;
    align-items: center;
    justify-content: left;
    text-align: right;
    font: inherit;
    font-weight: bold;
}

/* Magnet coupling info dialog rows. */
.mci-caption {
    display: flex;
    align-items: center;
    justify-content: left;
    text-align: left;
    font: inherit;
    font-weight: bold;
}

/* Validation colouring of magnet coupling and motor select items. */
.result-valid {
    color: #2E7D32 !important;
    font-weight: bold !important;
}

.result-error {
    color: #C62828 !important;
}

.result-problem {
    color: #FF8F00 !important;
}

.result-notstandard {
    color: gray !important;
}

/* ScatterPlot: chart image and HTML legend. */
.plot-image {
    width: 100%;
    height: auto;
    display: block;
}

.plot-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 20px;
    padding: 8px 4px 2px;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.7);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

/* Line swatch for ScatterLine data sets. */
.legend-swatch {
    width: 22px;
    height: 3px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Diamond for marker / data point sets. */
.legend-diamond {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    transform: rotate(45deg);
}

/* MudAutocomplete and the FilterablePicker (a text field with a clickable adornment) render the
   dropdown arrow as a real icon button (hover square + ripple), while MudSelect shows a plain
   arrow icon. Make their arrows look like the select's. */
.mud-autocomplete .mud-input-adornment-icon-button:hover,
.filterable-picker .mud-input-adornment-icon-button:hover {
    background-color: transparent;
}

.mud-autocomplete .mud-input-adornment-icon-button .mud-ripple-effect,
.filterable-picker .mud-input-adornment-icon-button .mud-ripple-effect {
    display: none;
}

/* FilterablePicker: plain rows instead of MudSelect items to keep the full list small on the
   circuit. The rows are styled through the list so they need no class attribute of their own;
   only the current value (.selected) and the keyboard highlight (.active) carry one. */
.filterable-picker {
    position: relative;
    width: 100%;
}

/* The list mirrors a dense MudSelect (MudList + MudListItem): 300px max height, 8px list padding,
   36px rows = 4px padding + body2 text with 4px margins, 16px gutters, MudBlazor hover and
   selected colours, no radius. Keep these in step with MudBlazor's .mud-list-item rules. */
.filterable-picker-popover {
    max-height: 300px;
    display: flex;
    flex-direction: column;
}

.plain-picker-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px 0;
}

.plain-picker-list > button {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    font-family: var(--mud-typography-body2-family);
    font-size: var(--mud-typography-body2-size);
    font-weight: var(--mud-typography-body2-weight);
    line-height: var(--mud-typography-body2-lineheight);
    letter-spacing: var(--mud-typography-body2-letterspacing);
    text-align: left;
    cursor: pointer;
    transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

.plain-picker-list > button:hover,
.plain-picker-list > button:focus-visible,
.plain-picker-list > button.active {
    background-color: var(--mud-palette-action-default-hover);
    outline: none;
}

.plain-picker-list > button.selected {
    color: var(--mud-palette-primary);
    background-color: var(--mud-palette-primary-hover);
}