/* ==== Zaptec Hub theme: "Nordic light" (PI7.0, A1b) ====
   One place for the palette. Change a colour here and the whole site follows; HubThemeTests checks the
   contrast of every text/background pair (WCAG AA) and that nothing is loaded from outside. */
:root {
    --hub-bg: #F5F4F0;            /* warm off-white page */
    --hub-surface: #FFFFFF;       /* cards, tables, sidebar */
    --hub-hover: #F0EEE9;         /* quiet hover on surfaces */
    --hub-text: #1E2A30;          /* deep slate */
    --hub-muted: #5C676D;
    --hub-border: #E2E0DA;
    --hub-border-strong: #CFCBC2;
    --hub-accent: #2C5A66;        /* fjord */
    --hub-accent-hover: #234A54;
    --hub-accent-subtle: #E4EDEE;
    --hub-on-accent: #FFFFFF;
    --hub-success: #3D6B4C;       /* moss */
    --hub-warning: #8A5A12;       /* ochre */
    --hub-danger: #A63D32;        /* lingonberry */
    --hub-info: #3B6580;          /* mist blue */
    --hub-focus: rgba(44, 90, 102, .28);
    --hub-shadow: 0 1px 2px rgba(30, 42, 48, .04), 0 1px 3px rgba(30, 42, 48, .06);
}

/* Bootstrap's own variables, pointed at the theme (app.css loads after bootstrap.min.css). */
:root, [data-bs-theme=light] {
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
    --bs-body-font-size: .95rem;
    --bs-body-line-height: 1.55;
    --bs-body-bg: var(--hub-bg);
    --bs-body-bg-rgb: 245, 244, 240;
    --bs-body-color: var(--hub-text);
    --bs-body-color-rgb: 30, 42, 48;
    --bs-emphasis-color: var(--hub-text);
    --bs-heading-color: var(--hub-text);
    --bs-secondary-color: var(--hub-muted);
    --bs-secondary-bg: #EBE9E3;
    --bs-tertiary-bg: var(--hub-hover);
    --bs-tertiary-bg-rgb: 240, 238, 233;
    --bs-border-color: var(--hub-border);
    --bs-border-color-translucent: rgba(30, 42, 48, .1);
    --bs-border-radius: .5rem;
    --bs-border-radius-sm: .375rem;
    --bs-border-radius-lg: .75rem;
    --bs-link-color: var(--hub-accent);
    --bs-link-color-rgb: 44, 90, 102;
    --bs-link-hover-color: var(--hub-accent-hover);
    --bs-link-hover-color-rgb: 35, 74, 84;
    --bs-focus-ring-color: var(--hub-focus);
    --bs-primary: var(--hub-accent);
    --bs-primary-rgb: 44, 90, 102;
    --bs-primary-bg-subtle: var(--hub-accent-subtle);
    --bs-primary-border-subtle: #BFD2D5;
    --bs-primary-text-emphasis: #1D3E47;
    --bs-secondary: var(--hub-muted);
    --bs-secondary-rgb: 92, 103, 109;
    --bs-secondary-bg-subtle: #EEEDE9;
    --bs-secondary-border-subtle: #D9D7D0;
    --bs-secondary-text-emphasis: #3A4246;
    --bs-success: var(--hub-success);
    --bs-success-rgb: 61, 107, 76;
    --bs-success-bg-subtle: #E6EFE8;
    --bs-success-border-subtle: #C3D6C8;
    --bs-success-text-emphasis: #2A4B35;
    --bs-warning: var(--hub-warning);
    --bs-warning-rgb: 138, 90, 18;
    --bs-warning-bg-subtle: #F7EFDF;
    --bs-warning-border-subtle: #E6D3AE;
    --bs-warning-text-emphasis: #5E3D0B;
    --bs-danger: var(--hub-danger);
    --bs-danger-rgb: 166, 61, 50;
    --bs-danger-bg-subtle: #F7E8E5;
    --bs-danger-border-subtle: #E5C1BB;
    --bs-danger-text-emphasis: #702A22;
    --bs-info: var(--hub-info);
    --bs-info-rgb: 59, 101, 128;
    --bs-info-bg-subtle: #E5EDF2;
    --bs-info-border-subtle: #C0D2DD;
    --bs-info-text-emphasis: #284558;
    --bs-dark-rgb: 30, 42, 48;
    --bs-light-rgb: 240, 238, 233;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
    font-weight: 600;
    letter-spacing: -0.015em;
}

h1 { font-size: 1.75rem; margin-bottom: 1rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }

h1:focus {
    outline: none;
}

/* Buttons: flat, one accent, quiet secondary. */
.btn {
    --bs-btn-font-weight: 500;
    --bs-btn-padding-x: 1rem;
    --bs-btn-focus-box-shadow: 0 0 0 .2rem var(--hub-focus);
    transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}

.btn-sm {
    --bs-btn-padding-x: .7rem;
}

.btn-primary {
    --bs-btn-color: var(--hub-on-accent);
    --bs-btn-bg: var(--hub-accent);
    --bs-btn-border-color: var(--hub-accent);
    --bs-btn-hover-color: var(--hub-on-accent);
    --bs-btn-hover-bg: var(--hub-accent-hover);
    --bs-btn-hover-border-color: var(--hub-accent-hover);
    --bs-btn-active-color: var(--hub-on-accent);
    --bs-btn-active-bg: #1D3E47;
    --bs-btn-active-border-color: #1D3E47;
    --bs-btn-disabled-color: var(--hub-on-accent);
    --bs-btn-disabled-bg: var(--hub-accent);
    --bs-btn-disabled-border-color: var(--hub-accent);
}

.btn-outline-primary {
    --bs-btn-color: var(--hub-accent);
    --bs-btn-border-color: var(--hub-accent);
    --bs-btn-hover-color: var(--hub-on-accent);
    --bs-btn-hover-bg: var(--hub-accent);
    --bs-btn-hover-border-color: var(--hub-accent);
    --bs-btn-active-color: var(--hub-on-accent);
    --bs-btn-active-bg: var(--hub-accent-hover);
    --bs-btn-active-border-color: var(--hub-accent-hover);
    --bs-btn-disabled-color: var(--hub-accent);
    --bs-btn-disabled-border-color: var(--hub-accent);
}

.btn-outline-secondary {
    --bs-btn-color: var(--hub-text);
    --bs-btn-bg: var(--hub-surface);
    --bs-btn-border-color: var(--hub-border-strong);
    --bs-btn-hover-color: var(--hub-text);
    --bs-btn-hover-bg: var(--hub-hover);
    --bs-btn-hover-border-color: #BDB8AE;
    --bs-btn-active-color: var(--hub-text);
    --bs-btn-active-bg: #E6E3DC;
    --bs-btn-active-border-color: #BDB8AE;
    --bs-btn-disabled-color: var(--hub-muted);
    --bs-btn-disabled-border-color: var(--hub-border);
}

.btn-danger {
    --bs-btn-color: var(--hub-on-accent);
    --bs-btn-bg: var(--hub-danger);
    --bs-btn-border-color: var(--hub-danger);
    --bs-btn-hover-color: var(--hub-on-accent);
    --bs-btn-hover-bg: #8E342B;
    --bs-btn-hover-border-color: #8E342B;
    --bs-btn-active-bg: #772B24;
    --bs-btn-active-border-color: #772B24;
    --bs-btn-disabled-bg: var(--hub-danger);
    --bs-btn-disabled-border-color: var(--hub-danger);
}

.btn-outline-danger {
    --bs-btn-color: var(--hub-danger);
    --bs-btn-border-color: var(--hub-danger);
    --bs-btn-hover-color: var(--hub-on-accent);
    --bs-btn-hover-bg: var(--hub-danger);
    --bs-btn-hover-border-color: var(--hub-danger);
    --bs-btn-active-color: var(--hub-on-accent);
    --bs-btn-active-bg: #8E342B;
    --bs-btn-active-border-color: #8E342B;
}

.btn-link {
    --bs-btn-color: var(--hub-accent);
    --bs-btn-hover-color: var(--hub-accent-hover);
    --bs-btn-font-weight: 500;
}

/* Inputs */
.form-control, .form-select {
    background-color: var(--hub-surface);
    border-color: var(--hub-border-strong);
}

.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: var(--hub-accent);
    box-shadow: 0 0 0 .2rem var(--hub-focus);
}

.form-check-input:checked {
    background-color: var(--hub-accent);
    border-color: var(--hub-accent);
}

.form-label {
    font-weight: 500;
}

/* Cards: white tiles with a hairline and a whisper of shadow. */
.card {
    --bs-card-bg: var(--hub-surface);
    --bs-card-border-color: var(--hub-border);
    --bs-card-border-radius: .75rem;
    --bs-card-inner-border-radius: calc(.75rem - 1px);
    --bs-card-cap-bg: transparent;
    box-shadow: var(--hub-shadow);
}

/* Tables: white surface, light rules, small uppercase headers. */
.table {
    --bs-table-bg: var(--hub-surface);
    --bs-table-color: var(--hub-text);
    --bs-table-border-color: var(--hub-border);
    --bs-table-hover-bg: var(--hub-hover);
    --bs-table-hover-color: var(--hub-text);
    --bs-table-striped-bg: #FAF9F6;
}

.table > thead th {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--hub-muted);
    border-bottom-color: var(--hub-border-strong);
    white-space: nowrap;
}

.table-light {
    --bs-table-bg: #FAF9F6;
    --bs-table-color: var(--hub-text);
    --bs-table-border-color: var(--hub-border);
}

.table-warning {
    --bs-table-bg: var(--bs-warning-bg-subtle);
    --bs-table-color: var(--hub-text);
    --bs-table-border-color: var(--bs-warning-border-subtle);
}

.table-responsive, .table-wrap {
    border: 1px solid var(--hub-border);
    border-radius: .75rem;
    background: var(--hub-surface);
}

.table-responsive > .table, .table-wrap > .table {
    margin-bottom: 0;
}

/* Alerts: soft fill with a coloured edge. */
.alert {
    border-left-width: 4px;
}

.alert-danger { border-left-color: var(--hub-danger); }
.alert-warning { border-left-color: var(--hub-warning); }
.alert-success { border-left-color: var(--hub-success); }
.alert-info { border-left-color: var(--hub-info); }
.alert-secondary { border-left-color: var(--hub-muted); }

/* Status badges (StatusBadge): soft pills; the label always carries the meaning, colour only supports it. */
.badge {
    font-weight: 600;
    letter-spacing: .01em;
    border-radius: 999px;
    padding: .35em .7em;
}

.badge.text-bg-primary { background-color: var(--bs-primary-bg-subtle) !important; color: var(--bs-primary-text-emphasis) !important; }
.badge.text-bg-secondary { background-color: var(--bs-secondary-bg-subtle) !important; color: var(--bs-secondary-text-emphasis) !important; }
.badge.text-bg-success { background-color: var(--bs-success-bg-subtle) !important; color: var(--bs-success-text-emphasis) !important; }
.badge.text-bg-warning { background-color: var(--bs-warning-bg-subtle) !important; color: var(--bs-warning-text-emphasis) !important; }
.badge.text-bg-danger { background-color: var(--bs-danger-bg-subtle) !important; color: var(--bs-danger-text-emphasis) !important; }
.badge.text-bg-info { background-color: var(--bs-info-bg-subtle) !important; color: var(--bs-info-text-emphasis) !important; }
.badge.text-bg-dark { background-color: var(--hub-text) !important; color: var(--hub-on-accent) !important; }

/* Lists, modals, toasts */
.list-group {
    --bs-list-group-bg: var(--hub-surface);
    --bs-list-group-border-color: var(--hub-border);
    --bs-list-group-action-hover-bg: var(--hub-hover);
    --bs-list-group-active-bg: var(--hub-accent);
    --bs-list-group-active-border-color: var(--hub-accent);
}

.modal-content {
    border: none;
    border-radius: .75rem;
    box-shadow: 0 10px 30px rgba(30, 42, 48, .18);
}

.content {
    padding-top: 1.75rem;
}

/* Icons for the menu and the home tiles (PI7.0, PI7.1): Bootstrap Icons paths (MIT) as CSS masks, so they take the text colour. No icon font, no package (A1). */
.nav-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex: none;
    background-color: currentColor;
    -webkit-mask: var(--nav-icon) center / contain no-repeat;
    mask: var(--nav-icon) center / contain no-repeat;
}

.nav-icon-home {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8.707 1.5a1 1 0 0 0-1.414 0L.646 8.146a.5.5 0 0 0 .708.708L2 8.207V13.5A1.5 1.5 0 0 0 3.5 15h9a1.5 1.5 0 0 0 1.5-1.5V8.207l.646.647a.5.5 0 0 0 .708-.708L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293zM13 7.207V13.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V7.207l5-5z'/%3E%3C/svg%3E");
}

.nav-icon-upload {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5'/%3E%3Cpath d='M7.646 1.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 2.707V11.5a.5.5 0 0 1-1 0V2.707L5.354 4.854a.5.5 0 1 1-.708-.708z'/%3E%3C/svg%3E");
}

.nav-icon-history {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71z'/%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0'/%3E%3C/svg%3E");
}

.nav-icon-person {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6m2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0m4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4m-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10s-3.516.68-4.168 1.332c-.678.678-.83 1.418-.832 1.664z'/%3E%3C/svg%3E");
}

.nav-icon-people {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M15 14s1 0 1-1-1-4-5-4-5 3-5 4 1 1 1 1zm-7.978-1L7 12.996c.001-.264.167-1.03.76-1.72C8.312 10.629 9.282 10 11 10c1.717 0 2.687.63 3.24 1.276.593.69.758 1.457.76 1.72l-.008.002-.014.002zM11 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4m3-2a3 3 0 1 1-6 0 3 3 0 0 1 6 0M6.936 9.28a6 6 0 0 0-1.23-.247A7 7 0 0 0 5 9c-4 0-5 3-5 4q0 1 1 1h4.216A2.24 2.24 0 0 1 5 13c0-1.01.377-2.042 1.09-2.904.243-.294.526-.569.846-.816M4.92 10A5.5 5.5 0 0 0 4 13H1c0-.26.164-1.03.76-1.724.545-.636 1.492-1.256 3.16-1.275zM1.5 5.5a3 3 0 1 1 6 0 3 3 0 0 1-6 0m3-2a2 2 0 1 0 0 4 2 2 0 0 0 0-4'/%3E%3C/svg%3E");
}

.nav-icon-bookmark {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v13.5a.5.5 0 0 1-.777.416L8 13.101l-5.223 2.815A.5.5 0 0 1 2 15.5zm2-1a1 1 0 0 0-1 1v12.566l4.723-2.482a.5.5 0 0 1 .554 0L13 14.566V2a1 1 0 0 0-1-1z'/%3E%3C/svg%3E");
}

.nav-icon-dot {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E");
}

.nav-icon-flows {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M6 3.5A1.5 1.5 0 0 1 7.5 2h1A1.5 1.5 0 0 1 10 3.5v1A1.5 1.5 0 0 1 8.5 6v1H14a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-1 0V8h-5v.5a.5.5 0 0 1-1 0V8h-5v.5a.5.5 0 0 1-1 0v-1A.5.5 0 0 1 2 7h5.5V6A1.5 1.5 0 0 1 6 4.5zM8.5 5a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5zM0 11.5A1.5 1.5 0 0 1 1.5 10h1A1.5 1.5 0 0 1 4 11.5v1A1.5 1.5 0 0 1 2.5 14h-1A1.5 1.5 0 0 1 0 12.5zm1.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm4.5.5A1.5 1.5 0 0 1 7.5 10h1a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 8.5 14h-1A1.5 1.5 0 0 1 6 12.5zm1.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm4.5.5a1.5 1.5 0 0 1 1.5-1.5h1a1.5 1.5 0 0 1 1.5 1.5v1a1.5 1.5 0 0 1-1.5 1.5h-1a1.5 1.5 0 0 1-1.5-1.5zm1.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z'/%3E%3C/svg%3E");
}


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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 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: var(--hub-accent);
            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: var(--hub-accent-hover);
}

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

/* ---- our own styling on top of the stock template + Bootstrap (plan A1) ---- */

.login-card {
    max-width: 24rem;
}

.account-form {
    max-width: 28rem;
}

/* Combobox: the list floats over the content; the visible rows are capped in code, so it never needs to scroll. */
.combobox-list {
    z-index: 1050;
    top: 100%;
}

.combobox-list .list-group-item-action {
    cursor: pointer;
}

/* FileDropZone: the stock InputFile covers the zone (invisible), so the browser handles click and drop natively. */
.drop-zone {
    position: relative;
    border: 2px dashed var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 2rem 1rem;
    text-align: center;
    background: var(--bs-tertiary-bg);
    transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
}

.drop-zone-active {
    border-color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
}

.drop-zone-error {
    border-color: var(--bs-danger);
}

.drop-zone-disabled {
    opacity: 0.6;
}

.drop-zone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drop-zone-body {
    pointer-events: none;
}

.upload-form {
    max-width: 40rem;
}

/* ==== Home (PI7.1): "Needs your attention" first, then small tiles ==== */
.home-header {
    margin-bottom: 1.5rem;
}

    .home-header h1 {
        margin-bottom: .25rem;
    }

.section-title {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hub-muted);
    margin-bottom: .75rem;
}

.attention-empty {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.25rem;
    background: var(--hub-surface);
    border: 1px solid var(--hub-border);
    border-radius: .75rem;
    box-shadow: var(--hub-shadow);
}

.attention-empty-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    background: var(--bs-success-bg-subtle);
    color: var(--bs-success-text-emphasis);
    font-weight: 700;
}

/* Counters (PI7.1b): one row, each opens History filtered to its kind (PI7.4a). */
.attention-counters {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.attention-counter {
    display: inline-flex;
    align-items: baseline;
    gap: .5rem;
    padding: .7rem 1.1rem;
    background: var(--hub-surface);
    border: 1px solid var(--hub-border);
    border-left: 4px solid var(--hub-muted);
    border-radius: .75rem;
    box-shadow: var(--hub-shadow);
    color: var(--hub-text);
    text-decoration: none;
    transition: border-color .12s ease, box-shadow .12s ease;
}

    .attention-counter:hover {
        color: var(--hub-text);
        border-color: var(--hub-border-strong);
        box-shadow: 0 2px 8px rgba(30, 42, 48, .08);
    }

    .attention-counter:focus-visible {
        outline: none;
        box-shadow: 0 0 0 .2rem var(--hub-focus);
    }

.attention-counter-number {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1;
}

.attention-counter-text {
    font-size: .9rem;
    color: var(--hub-muted);
}

.attention-review { border-left-color: var(--hub-accent); }
.attention-stopped { border-left-color: var(--hub-danger); }
.attention-problems { border-left-color: var(--hub-warning); }
.attention-running { border-left-color: var(--hub-info); }

.hub-tile {
    position: relative; /* the stretched title link covers the tile (PI7.9) */
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem;
    background: var(--hub-surface);
    border: 1px solid var(--hub-border);
    border-radius: .75rem;
    box-shadow: var(--hub-shadow);
    transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}

    .hub-tile-link:hover {
        border-color: var(--hub-border-strong);
        box-shadow: 0 2px 8px rgba(30, 42, 48, .08);
    }

/* PI7.9: a tile with one destination is clickable as a whole. */
.hub-tile-link {
    cursor: pointer;
}

    .hub-tile-link:hover {
        transform: translateY(-1px);
    }

    .hub-tile-link:focus-within {
        border-color: var(--hub-accent);
        box-shadow: 0 0 0 .2rem var(--hub-focus);
    }

    .hub-tile-link .hub-tile-title a {
        color: inherit;
        text-decoration: none;
    }

        .hub-tile-link .hub-tile-title a:focus-visible {
            outline: none; /* the tile shows the focus */
        }

.hub-tile-arrow {
    color: var(--hub-accent);
    font-weight: 600;
    transition: transform .15s ease;
}

.hub-tile-link:hover .hub-tile-arrow {
    transform: translateX(3px);
}

.hub-tile-link:hover .hub-tile-title {
    color: var(--hub-accent);
}

.hub-tile-soon {
    background: transparent;
    box-shadow: none;
    border-style: dashed;
}

    .hub-tile-soon:hover {
        border-color: var(--hub-border);
        box-shadow: none;
    }

.hub-tile-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .4rem;
}

.hub-tile-icon {
    width: 2rem;
    height: 2rem;
    border-radius: .5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    background: var(--hub-accent-subtle);
    color: var(--hub-accent);
}

.hub-tile-soon .hub-tile-icon {
    background: var(--hub-hover);
    color: var(--hub-muted);
}

.hub-tile-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.hub-tile-text {
    font-size: .875rem;
    color: var(--hub-muted);
    margin-bottom: .6rem;
}

.hub-tile-links {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    font-size: .9rem;
    font-weight: 500;
}

    .hub-tile-links a {
        text-decoration: none;
    }

        .hub-tile-links a:hover {
            text-decoration: underline;
        }

/* Review grid (PI4.4b): the decision column needs room for the comboboxes; no overflow wrapper (it would clip their lists). */
.review-table .review-decision-col {
    min-width: 22rem;
}

.review-table .decision-editor .combobox-list {
    z-index: 1050;
}

/* PI7.12: under "Needs attention", the rows with nothing to decide follow, greyed (muted text keeps AA contrast). */
.review-table .review-ready-heading td {
    background: var(--hub-hover);
    color: var(--hub-muted);
    font-size: .875rem;
    font-weight: 600;
}

.review-table .review-row-ready > td {
    color: var(--hub-muted);
}

.review-table td {
    word-break: break-word;
}

/* Import steps (PI4.8). */
.job-timeline-step {
    min-width: 11rem;
    padding: .5rem .75rem;
    border-left: 4px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
}

.job-timeline-done { border-left-color: var(--bs-success); }
.job-timeline-current { border-left-color: var(--bs-info); }
.job-timeline-warning { border-left-color: var(--bs-warning); }
.job-timeline-failed { border-left-color: var(--bs-danger); }
.job-timeline-notreached { opacity: .65; }

.job-timeline-mark {
    display: inline-block;
    width: 1.1rem;
}

/* History (PI4.8): the whole row opens the import. */
.history-row {
    cursor: pointer;
}

.history-toggle {
    width: 2rem;
}
