html, body {
    font-family: Helvetica, Arial, sans-serif;
}

/* The STM Assist panel is a temporary right-hand MudDrawer mounted outside MudLayout. While
   CLOSED, MudBlazor parks it at right:-400px, absolutely positioned against the body, so it adds
   400px to the page width on every page. That horizontal scrollbar then eats 10px of viewport
   height, which is enough to push a VERTICAL scrollbar onto pages whose table is sized to the
   window - the table fits the window, the leftover scrollbar does not.

   Nothing in Connect wants the page to scroll sideways; the tables scroll inside themselves. Use
   `clip` rather than `hidden` so body does not become a scroll container (which would break
   position:sticky inside it). The drawer still slides in and out normally - it is only clipped
   while parked off-screen. */
body {
    overflow-x: clip;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    /*background-color: #1b6ec2;*/
    background-color: darkblue;
    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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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");
}

code {
    color: #c02d76;
}

.font-factoria {
    font-family: 'Factoria', Helvetica, Arial, sans-serif;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 1rem;
}

.mr-4 {
    margin-right: 1.5rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-3 {
    margin-left: 1rem;
}

.ml-4 {
    margin-left: 1.5rem;
}

/* standard text css classes */
.h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.h3 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.h4 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.h5 {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.h6 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.text-center {
    text-align: center;
}

.text-bold {
    font-weight: bold;
}

.text-start {
    text-align: left;
}
.text-end {
    text-align: right;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}
.text-justify {
    text-align: justify;
}
.text-nowrap {
    white-space: nowrap;
}

.text-wrap {
    white-space: pre-wrap; /* preserve newlines but allow wrapping */
    word-break: break-word; /* break long words/strings */
    overflow-wrap: anywhere; /* be aggressive about wrapping if needed */
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-lowercase {
    text-transform: lowercase;
}
.text-uppercase {
    text-transform: uppercase;
}
.text-capitalize {
    text-transform: capitalize;
}
.text-decoration-none {
    text-decoration: none !important;
}
.text-decoration-underline {
    text-decoration: underline !important;
}
.text-decoration-line-through {
    text-decoration: line-through !important;
}

.text-muted {
    color: rgba(0,0,0,0.6);
}

/*.text-muted {
    color: #6c757d !important;
}*/

.text-red {
    color: red !important;
}

/* standard classes */

.fw-bold {
    font-weight: 700 !important
}

.w-100 {
    width: 100% !important;
}

.w-50 {
    width: 50% !important;
}

.w-25 {
    width: 25% !important;
}

/* Global dialog styles */
.connect-dialog .mud-dialog-title {
    padding: 0 !important;
    margin: 0 !important;
}

.connect-dialog-title {
    /*    width: 100%;
    padding: 0 !important;
    margin: 0 !important;*/
    background: var(--mud-palette-primary);
    min-height: 50px;
    display: flex;
    align-items: center;
    /*    display: flex;
    align-items: center;
    margin-bottom: 20px !important;*/
}

.connect-dialog-title .mud-typography {
    color: white;
    font-family: Factoria, sans-serif;
/*    letter-spacing: 1px;
    font-size: 22px;*/
/*    margin: 0;*/
}

.connect-dialog .mud-dialog {
    padding-top: 0 !important;
}

/* Outlined, click-to-open trigger for the custom DropDownPicker component - makes it read as a
   dropdown (bordered box + chevron) instead of plain text next to an icon button. */
.stm-dropdown-trigger {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border: 1.5px solid #94a3b8;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
    transition: border-color .15s ease;
}

.stm-dropdown-trigger:hover,
.stm-dropdown-trigger:focus-visible {
    border-color: #003399;
}

.stm-dropdown-trigger.stm-dropdown-trigger-error {
    border-color: #e53e3e;
}

.stm-dropdown-trigger-text {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stm-dropdown-trigger-text.stm-dropdown-trigger-placeholder {
    font-weight: 400;
    color: #4a5568;
}

.stm-dropdown-trigger-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: #4a5568;
}

.stm-dropdown-trigger-icon svg {
    display: block;
}



.title-grid {
    background-color: white;
    color: var(--mud-palette-primary);
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.title-toolbar {
    background-color: white;
    color: var(--mud-palette-primary);
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-height: 64px;
    padding-top: 16px;
    padding-bottom: 16px;
    padding-left: 16px;
    padding-right: 16px;
}

.dense-select-fix .mud-input-root {
    min-height: 40px !important;
    height: 40px !important;
    font-size: 0.875rem;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex;
    align-items: center;
}

.dense-select-fix .mud-input-slot {
    line-height: 40px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex;
    align-items: center;
    height: 40px !important;
}

.section-highlight {
    border-left: 6px solid var(--mud-palette-primary);
    background: white;
}

.table-flex {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: auto;
    display: flex;
    flex-direction: column;
}

/* set row height of tables to make rows more narrow and padded*/
.mud-table tr {
    height: 40px;
}

.mud-table td, .mud-table th {
    padding: 4px;
}

.eta-past {
    color: red !important;
    font-weight: bold;
}

.eta-soon {
    color: #ff9800 !important; /* blue */
    font-weight: bold;
}

.void-item {
    color: red !important;
    text-decoration: line-through;
}

.dense-daterangepicker .mud-input-slot {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    min-height: 32px !important;
    font-size: 0.875rem; /* Optional: reduce font size for denser appearance */
}

/* this makes the expansion very dense for use on se detail row in dispatch and other expansions */
.mud-expansion-panel-header {
    min-height: 32px !important;
    padding: 2px 8px !important;
}

.mud-expansion-panel-title {
    font-size: 0.90rem !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mud-expansion-title-stack {
    min-height: 28px;
    padding: 0;
    margin: 0;
}

.mud-expansion-title-text {
    font-size: 0.95rem !important;
    font-weight: 500;
    margin: 0 !important;
    padding: 0 !important;
}

.mud-expansion-title-btn {
    font-size: 1.1rem !important;
    margin-right: 20px !important;
    padding: 0 !important;
    min-width: 28px !important;
    height: 28px !important;
}
/* ------------------------------------------------------------------------------------------------- */

/* ------------------------------------------------------------------------------------------------- */
.after-hours-chip {
    /* midnight blue background */
    /* background: #071527; /* dark midnight blue */ */ color: #FAFAFA !important; /* near-white text */
    border-radius: 20px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.04); /* very subtle edge */
    font-weight: 600;
    box-shadow: none; /* explicitly remove glow/raised look */
    transform: none;
}

/* moon icon tint (yellow) and ensure other icons unaffected */
.after-hours-chip .mud-icon-root,
.after-hours-chip .mud-chip-icon {
    color: #FFD54F !important; /* moon yellow tint */
    opacity: 1;
}

.after-hours-chip .mud-typography,
.after-hours-chip .mud-text {
    color: #FAFAFA !important;
}
/* ------------------------------------------------------------------------------------------------- */

/* when nested in a mudtable that is bordered true the borders show up.  don't like this solution
   but it works for now */
/* Override parent/ancestor bordered table styles for this child table */
.no-border-table,
.no-border-table .mud-table-root,
.no-border-table table,
.no-border-table .mud-table {
    border: none !important;
    box-shadow: none !important;
    border-collapse: collapse;
    border-spacing: 0;
}

/* Remove cell borders that may be applied by the parent .mud-table-bordered rules */
.no-border-table th,
.no-border-table td {
    border: none !important;
    border-bottom: 0 !important;
    border-top: 0 !important;
    box-shadow: none !important;
}

/* Dynamic Data Editor row styles */
.row-dirty td { background-color: #FFF9C4 !important; }
.row-delete td { background-color: #EF5350 !important; color: white !important; }
.row-undelete td { background-color: #66BB6A !important; color: white !important; }
.row-inactive td { background-color: #FFCDD2 !important; }

/* ── ETL Pipelines designer (Modules/Admin/EtlPipelines) ───────────────────────────────────── */
.etl-designer { display: grid; grid-template-columns: 325px 1fr 360px; gap: 8px; height: calc(100vh - 190px); min-height: 520px; padding: 8px; }
.etl-tree { overflow: auto; }
.etl-canvas { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.etl-props { overflow: auto; }
.etl-workflow-bar { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid var(--mud-palette-lines-default); flex-wrap: wrap; }
.etl-canvas-toolbar { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid var(--mud-palette-lines-default); flex-wrap: wrap; }
.etl-canvas-host { flex: 1; position: relative; min-height: 300px; background: #fafbfc; background-image: radial-gradient(circle, #d9dde3 1px, transparent 1px); background-size: 20px 20px; }
.etl-canvas-host .diagram-canvas { width: 100%; height: 100%; }
.etl-canvas-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--mud-palette-text-secondary); gap: 8px; }
.etl-node { position: relative; width: 200px; border-radius: 8px; background: #fff; border: 2px solid #90a4ae; box-shadow: 0 1px 3px rgba(0,0,0,.15); font-size: 12px; user-select: none; }
.etl-node-selected { box-shadow: 0 0 0 3px rgba(25,118,210,.35); }
.etl-node-inactive { opacity: .5; }
.etl-node-header { display: flex; align-items: center; padding: 4px 8px; border-radius: 6px 6px 0 0; color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 10px; }
.etl-node-title { padding: 6px 8px 2px; font-weight: 600; font-size: 13px; color: #263238; }
.etl-node-summary { padding: 0 8px 6px; color: #607d8b; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etl-node-status { margin-left: auto; padding: 0 6px; border-radius: 8px; background: rgba(255,255,255,.3); text-transform: none; }
.etl-node-extract   { border-color: #1976d2; } .etl-node-extract   .etl-node-header { background: #1976d2; }
.etl-node-process   { border-color: #2e7d32; } .etl-node-process   .etl-node-header { background: #2e7d32; }
.etl-node-sql       { border-color: #00838f; } .etl-node-sql       .etl-node-header { background: #00838f; }
.etl-node-notify    { border-color: #ef6c00; } .etl-node-notify    .etl-node-header { background: #ef6c00; }
.etl-node-decision  { border-color: #f9a825; } .etl-node-decision  .etl-node-header { background: #f9a825; color: #212121; }
.etl-node-union     { border-color: #6a1b9a; } .etl-node-union     .etl-node-header { background: #6a1b9a; }
.etl-node-multicast { border-color: #8e24aa; } .etl-node-multicast .etl-node-header { background: #8e24aa; }
.etl-node-sub       { border-color: #455a64; } .etl-node-sub       .etl-node-header { background: #455a64; }
.etl-node-delay     { border-color: #757575; } .etl-node-delay     .etl-node-header { background: #757575; }
.etl-node-generic   { border-color: #90a4ae; } .etl-node-generic   .etl-node-header { background: #90a4ae; }
.etl-port { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #546e7a; position: absolute; top: 50%; margin-top: -7px; cursor: crosshair; }
.etl-port.left { left: -8px; } .etl-port.right { right: -8px; }
.etl-port:hover, .etl-port.has-links { background: #1976d2; border-color: #1976d2; }
.etl-meta { background: var(--mud-palette-background-gray); }
.etl-condition { border: 1px dashed var(--mud-palette-lines-default); }
/* Workflow Event condition builder */
.wf-cond-summary { background: var(--mud-palette-background-gray); border-left: 3px solid var(--mud-palette-primary); }
/* Condition editor: one colour per nesting level, shared by the editor's group cards and the outline summary. */
.wf-depth-0 { --wf-depth: #1565c0; --wf-depth-tint: rgba(21, 101, 192, .05); }
.wf-depth-1 { --wf-depth: #7b1fa2; --wf-depth-tint: rgba(123, 31, 162, .05); }
.wf-depth-2 { --wf-depth: #00897b; --wf-depth-tint: rgba(0, 137, 123, .06); }
.wf-depth-3 { --wf-depth: #ef6c00; --wf-depth-tint: rgba(239, 108, 0, .06); }
.wf-cond-group { border: 1px solid var(--mud-palette-lines-default); border-left: 4px solid var(--wf-depth); border-radius: 8px; padding: 8px 10px; margin-top: 4px;
                 display: flex; flex-direction: column; gap: 4px; background: var(--wf-depth-tint); }
.wf-cond-group-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wf-cond-group-hint { font-size: 12px; color: var(--mud-palette-text-secondary); }
.wf-cond-fold { margin: -4px -4px -4px -6px; }
.wf-cond-switch { display: inline-flex; border: 1px solid var(--wf-depth); border-radius: 14px; overflow: hidden; }
.wf-cond-switch button { border: 0; background: transparent; color: var(--wf-depth); font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 2px 10px; cursor: pointer; }
.wf-cond-switch button.on { background: var(--wf-depth); color: #fff; }
.wf-cond-switch button:disabled { cursor: default; }
.wf-cond-joiner { display: flex; align-items: center; gap: 6px; margin: 0 0 0 14px; }
.wf-cond-joiner span { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--wf-depth); border: 1px solid var(--wf-depth); border-radius: 10px; padding: 0 7px; background: var(--mud-palette-surface); }
.wf-cond-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default);
               border-radius: 6px; padding: 8px 6px 6px 10px; }
.wf-cond-row-kind { width: 230px; flex: 0 0 auto; }
.wf-cond-row .wf-cond-part { flex: 0 1 auto; min-width: 150px; max-width: 380px; }
.wf-cond-row-remove { margin-left: auto; }
.wf-cond-clickable { cursor: pointer; }
.wf-cond-clickable:hover { background: var(--mud-palette-action-default-hover); }
.wf-cond-dialog-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.wf-cond-dialog-editor { max-height: 70vh; overflow: auto; padding-right: 4px; }
.wf-cond-dialog-side { position: sticky; top: 0; background: var(--mud-palette-background-gray); max-height: 70vh; overflow: auto; }
@media (max-width: 960px) { .wf-cond-dialog-grid { grid-template-columns: 1fr; } }
/* The outline summary. */
.wf-sum { font-size: 13px; line-height: 1.5; }
.wf-sum-group { border-left: 3px solid var(--wf-depth); padding-left: 8px; margin: 2px 0; }
.wf-sum-head { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--wf-depth); }
.wf-sum-item { position: relative; padding-left: 10px; }
.wf-sum-item::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; border-top: 1px solid var(--wf-depth); }
.etl-pre { white-space: pre-wrap; font-size: 11px; font-family: Consolas, monospace; margin: 0; max-height: 240px; overflow: auto; }
/* Runs tab, event steps: one changed attribute per line in the In / Out cells. */
.etl-change { font-size: 12px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: Consolas, monospace; }
.etl-canvas-inner { position: absolute; inset: 0; }
.etl-columns .etl-cell .mud-input { font-size: 12px; }
.etl-columns .etl-cell-num { max-width: 64px; }
.etl-columns .etl-cell-num .mud-input { font-size: 12px; }
.etl-columns td { padding: 2px 6px !important; }
.etl-activity-row { cursor: pointer; }
.etl-banner, .etl-banner .mud-alert-message, .etl-banner .mud-alert-icon { color: #fff !important; }
.etl-run-filters .mud-input-control { margin-top: 0; }

/* Runs tab: cap the run list so the run detail below it stays on screen.
   At 250 rows the list ran several screens long and pushed the detail panel - the reason you open a
   run in the first place - off the bottom, so reading a failure meant scrolling the whole page away
   from the list you were picking from. max-height rather than height, so a short list still collapses
   to its natural size instead of leaving dead space. The header is sticky inside the scroller;
   it needs an opaque background or rows show through it, and it takes the palette variable so that
   holds in dark mode too. */
.etl-runs-scroll { max-height: 42vh; overflow: auto; }
.etl-runs-scroll thead th { position: sticky; top: 0; z-index: 2; background: var(--mud-palette-surface); }
/* A click anywhere on a run row opens its detail. */
.etl-runs-scroll tbody tr { cursor: pointer; }
/* The run whose detail is open (or loading) below the list - stays marked so it is clear which one was clicked. */
.etl-runs-scroll tr.etl-run-selected > td { background: color-mix(in srgb, var(--mud-palette-primary) 16%, var(--mud-palette-surface)); font-weight: 500; }
.etl-runs-scroll tr.etl-run-selected > td:first-child { box-shadow: inset 4px 0 0 var(--mud-palette-primary); }

/* Create-event validation summary.
   Sits in the create form's title toolbar, under the Cancel/Create buttons, and pushes the form
   down rather than sharing space with them. It replaced a right-aligned <ValidationSummary /> that
   the toolbar's old 70px max-height clipped entirely - dispatchers pressed Create, nothing visibly
   happened, and the reason was off-screen. Full width and left-aligned so it reads as a block. */
.create-event-validation {
    width: 100%;
}

.create-event-validation-list {
    margin: 4px 0 0 0;
    padding-left: 22px;
    list-style: disc;
}

.create-event-validation-list li {
    margin-bottom: 2px;
}
