/* Hydro's visual tokens applied to App's retained Bootstrap content. Status/audit colours supplied by job data remain intact. */
:root { --bs-primary:var(--mud-palette-primary);--bs-primary-rgb:var(--mud-palette-primary-rgb);--bs-secondary:var(--mud-palette-secondary);--bs-secondary-rgb:var(--mud-palette-secondary-rgb);--bs-success:var(--mud-palette-success);--bs-success-rgb:var(--mud-palette-success-rgb);--bs-danger:var(--mud-palette-error);--bs-danger-rgb:var(--mud-palette-error-rgb);--bs-warning-rgb:var(--mud-palette-warning-rgb);--bs-info-rgb:var(--mud-palette-info-rgb); }
html, body { font-family:var(--mud-typography-default-family);color:var(--mud-palette-text-primary);background:var(--mud-palette-background); }
.card { background:var(--mud-palette-surface);border:1px solid var(--mud-palette-divider);border-radius:20px;box-shadow:0 4px 16px rgba(24,55,70,.08); }
.card-header { border-color:var(--mud-palette-divider); }
.card-body.text-secondary {color:var(--mud-palette-text-primary)!important;}
.form-control { color:var(--mud-palette-text-primary);background:var(--mud-palette-surface);border-color:var(--mud-palette-divider);border-radius:12px; }
.form-control:focus {border-color:var(--mud-palette-primary);box-shadow:0 0 0 .2rem rgba(0,168,176,.18);}
.nav-divider {width:calc(100% - 40px);margin:4px 20px;opacity:.45;}
/* Compact App navigation retains the Hydro colours, geometry and drawer width. */
.mud-drawer-content {overflow-x:hidden;}
.app-sidebar {width:100%;min-width:0;overflow-x:hidden;}
.mud-drawer .app-sidebar .mud-nav-link {width:calc(100% - 20px);margin:3px 10px;padding-top:4px;padding-bottom:4px;min-width:0;}
.app-sidebar .mud-nav-link-text {white-space:normal;overflow-wrap:anywhere;min-width:0;line-height:1.4;}
.app-sidebar .mud-nav-link-icon {flex-shrink:0;}
.mud-drawer .mud-nav-group .mud-nav-link-icon {color:var(--mud-palette-drawer-icon);}

body {font-size:var(--mud-typography-default-size);line-height:var(--mud-typography-default-lineheight);}
h1 {font-family:var(--mud-typography-h1-family);font-size:var(--mud-typography-h1-size);font-weight:var(--mud-typography-h1-weight);line-height:var(--mud-typography-h1-lineheight);}
h2 {font-family:var(--mud-typography-h2-family);font-size:var(--mud-typography-h2-size);font-weight:var(--mud-typography-h2-weight);line-height:var(--mud-typography-h2-lineheight);}
h3 {font-family:var(--mud-typography-h3-family);font-size:var(--mud-typography-h3-size);font-weight:var(--mud-typography-h3-weight);line-height:var(--mud-typography-h3-lineheight);}
h4 {font-family:var(--mud-typography-h4-family);font-size:var(--mud-typography-h4-size);font-weight:var(--mud-typography-h4-weight);line-height:var(--mud-typography-h4-lineheight);}
h5 {font-family:var(--mud-typography-h5-family);font-size:var(--mud-typography-h5-size);font-weight:var(--mud-typography-h5-weight);line-height:var(--mud-typography-h5-lineheight);}
h6 {font-family:var(--mud-typography-h6-family);font-size:var(--mud-typography-h6-size);font-weight:var(--mud-typography-h6-weight);line-height:var(--mud-typography-h6-lineheight);}
.card > .card-header:first-child {border-radius:19px 19px 0 0;}
.card > .card-header:last-child {border-bottom-left-radius:19px;border-bottom-right-radius:19px;}

.version-notice {white-space:normal;max-width:100%;line-height:1.5;overflow-wrap:anywhere;}
.btn {border-radius:999px;}
.btn-primary {background:var(--mud-palette-primary);border-color:var(--mud-palette-primary);color:var(--mud-palette-primary-text);}
.btn-outline-primary {color:var(--mud-palette-primary);border-color:var(--mud-palette-primary);}
.btn-outline-primary:hover,.btn-outline-primary:active,.btn-primary:hover {background:var(--mud-palette-primary-darken);border-color:var(--mud-palette-primary-darken);color:var(--mud-palette-primary-text);}
.page-link {color:var(--mud-palette-primary);background:var(--mud-palette-surface);border-color:var(--mud-palette-divider);}
.page-item.active .page-link {background:var(--mud-palette-primary);border-color:var(--mud-palette-primary);color:var(--mud-palette-primary-text);}

/* Both notification providers sit below the fixed Hydro header. Keep their own
   stacking order, colours, controls and timing; only constrain placement/content. */
:root { --app-notification-top:calc(var(--mud-appbar-height, 64px) + 12px + env(safe-area-inset-top, 0px)); }
#mud-snackbar-container.app-notifications.mud-snackbar-location-top-right,
.blazored-toast-container.position-topright {
    top:var(--app-notification-top);
    right:calc(12px + env(safe-area-inset-right, 0px));
    left:auto;
    width:min(420px, calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
    max-height:calc(100dvh - var(--app-notification-top) - 12px - env(safe-area-inset-bottom, 0px));
    overflow-y:auto;
    overflow-x:hidden;
    box-sizing:border-box;
}
#mud-snackbar-container.app-notifications .mud-snackbar,
.blazored-toast-container.position-topright .blazored-toast {
    width:100%;
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
}
#mud-snackbar-container.app-notifications .mud-snackbar-content-message,
.blazored-toast-container.position-topright .blazored-toast-message {
    min-width:0;
    white-space:normal;
    overflow-wrap:anywhere;
}
