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

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

a, .btn-link {
    color: var(--mud-palette-primary);
}

.btn-primary {
    color: var(--mud-palette-primary-text);
    background-color: var(--mud-palette-primary);
    border-color: var(--mud-palette-primary-darken);
}

/* Bootstrap 5.1 fixes its own blue for the button's hover, focus and press, and for a link's hover; the scheme's
   primary, darker, instead (the user, 2026-10-30: Staffing Science's teal turned blue on Login). */
.btn-primary:hover,
.btn-primary:focus,
.btn-check:focus + .btn-primary,
.btn-primary:active,
.btn-primary:active:focus {
    color: var(--mud-palette-primary-text);
    background-color: var(--mud-palette-primary-darken);
    border-color: var(--mud-palette-primary-darken);
}

a:hover, .btn-link:hover {
    color: var(--mud-palette-primary-darken);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem var(--mud-palette-surface), 0 0 0 0.25rem var(--mud-palette-primary);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--mud-palette-success);
}

.invalid {
    outline: 1px solid var(--mud-palette-error);
}

.validation-message {
    color: var(--mud-palette-error);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0id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zkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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: var(--mud-palette-lines-inputs);
}

.bodypanel {
    background-color: transparent;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    page-break-inside: avoid;
}

/* Home's cards (2026-10-28), laid out as ZakiLibrary's Book sections: each row wraps rather than squashing, and every
   card in a line is as tall as the tallest (flexbox's stretch). Unlike Zaki's sections they never get bigger than
   their own width (--card-basis, 220px unless a card sets its own), however wide the screen; but they give a little
   before a row wraps (2026-10-30, the user): a row's cards narrow together to 180px (--card-min) before the last
   drops to the next line. Wrapping goes by the 180px start; growing stops at the 220px cap. */
.home-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.home-card {
    flex: 1 1 var(--card-min, 180px);
    max-width: var(--card-basis, 220px);
}

/* The administration row's cards, smaller (2026-11-05), with smaller titles and images (Home.razor). At most 180px wide,
   so "Management" (one word, so it can't wrap) fits at h6; a card never shrinks below its longest word (min-width
   auto). MudBlazor's h6 line height is 1.6 to h5's 1.334, so a two-line title looked double-spaced: it takes h5's. */
.home-cards-small {
    --card-min: 140px;
    --card-basis: 180px;
    --mud-typography-h6-lineheight: var(--mud-typography-h5-lineheight);
}

/* A card that opens a page is a link around the card (2026-11-05): no link colour or underline, and the card fills
   the link, so a row's cards stay as tall as each other. */
.home-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-card-fill {
    height: 100%;
}

/* A module's image (ModuleImage.razor, 2026-10-30): the SVG is a stencil painted in the scheme's primary colour, so it
   follows the colour scheme; "coming soon" ones in a light grey. Shown whole and inset a little (the sidebar's logo;
   4px, from 16px, the user, 2026-11-05: a section's drawing 102px of its 110px box, NavMenu.razor); Home's cards size
   it themselves (below). */
.module-image {
    width: 100%;
    background-color: var(--mud-palette-primary);
    -webkit-mask: var(--module-image) center / contain no-repeat content-box;
    mask: var(--module-image) center / contain no-repeat content-box;
    padding: 4px;
    box-sizing: border-box;
}

.module-image-muted {
    background-color: var(--mud-palette-lines-inputs);
}

/* On Home's cards the picture is 100% of the image area's height, and grows to 125% (cropped at the edges, as it was
   when it filled the card: f096b12) when a card that opens a page is pointed at or reached by keyboard (the user,
   2026-11-05). A percentage size animates smoothly where "contain" or "cover" can't. Still for those who've asked for
   less motion. */
.home-card .module-image {
    padding: 0;
    -webkit-mask-size: auto 100%;
    mask-size: auto 100%;
    transition: -webkit-mask-size 0.2s ease-out, mask-size 0.2s ease-out;
}

.home-card-link:hover .module-image,
.home-card-link:focus-visible .module-image {
    -webkit-mask-size: auto 125%;
    mask-size: auto 125%;
}

@media (prefers-reduced-motion: reduce) {
    .home-card .module-image {
        transition: none;
    }
}

/* A job plan session on the Clinicians page's Job Plans tab (2026-10-28): solid when it runs every week, striped in a
   lighter primary when only in some weeks, so the difference doesn't rest on colour alone. */
.jobplan-session {
    width: 100%;
    height: 100%;
    border: 1px solid var(--mud-palette-surface);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--mud-palette-primary);
}

.jobplan-session-part-week {
    background: repeating-linear-gradient(45deg, var(--mud-palette-primary) 0 8px, color-mix(in srgb, var(--mud-palette-primary) 70%, var(--mud-palette-surface)) 8px 16px);
}

    .jobplan-session-part-week .mud-typography {
        text-shadow: 0 0 3px color-mix(in srgb, var(--mud-palette-primary) 70%, black);
    }

/* The Job Plans calendar's week stands for every week of a plan, so its headers show day names only, not this week's
   dates ("Mon 26"). The calendar draws each as one piece of text with no template, Monday first (FirstDayOfWeek), so
   the text is hidden and the day name drawn in its place; the cell keeps its aria-label. */
.jobplan-week .mud-cal-week-header > div:not(:first-child) {
    font-size: 0;
}

    .jobplan-week .mud-cal-week-header > div:not(:first-child)::before {
        font-size: 0.875rem;
    }

.jobplan-week .mud-cal-week-header > div:nth-child(2)::before { content: "Mon"; }
.jobplan-week .mud-cal-week-header > div:nth-child(3)::before { content: "Tue"; }
.jobplan-week .mud-cal-week-header > div:nth-child(4)::before { content: "Wed"; }
.jobplan-week .mud-cal-week-header > div:nth-child(5)::before { content: "Thu"; }
.jobplan-week .mud-cal-week-header > div:nth-child(6)::before { content: "Fri"; }
.jobplan-week .mud-cal-week-header > div:nth-child(7)::before { content: "Sat"; }
.jobplan-week .mud-cal-week-header > div:nth-child(8)::before { content: "Sun"; }

.mud-expand-panel-header {
    padding: 0px !important;
}

/* Tabs in sentence case, as buttons are (2026-10-29): MudBlazor's CSS sets tabs in capitals, outside the theme. */
.mud-tab {
    text-transform: none;
}

.tabHeader {
    text-transform: none;
    border-right: none;
    min-height: 10px !important;
}

/* Service Capacity's report colours: Standard's, the defaults. The layouts set the organisation's scheme's over them
   (AppTheme.ReportStyle; docs/colour-design.md, stage 3). Bands: 1 Review / Normal working time, 2 Rationalise,
   3 Optimal / Out of hours. */
:root {
    --report-band-1: #c0e6f5;
    --report-band-2: #f5e6c0;
    --report-band-3: #daf2d0;
    --csp-color: #13beec;
    --osp-color: #ec4113;
    --msp-color: #00a9a5;
    --ci-color: #8e8e8e;
    --demand-color: #ad13ec;
    --activity-color: #ec4113;
}

/*This is for highlighting an updated control*/
@keyframes pulse-animation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 8px color-mix(in srgb, var(--mud-palette-primary) 40%, transparent);
    }

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

.pulse {
    animation: pulse-animation 0.4s ease-out;
}

/* The transparent file input stretched over an import drop area (MudFileUpload InputClass;
   MudBlazor 9 made InputStyle obsolete). Clicking or dropping on the area reaches the input. */
.file-upload-overlay-input {
    opacity: 0;
    cursor: pointer;
}

.file-upload-overlay-input::file-selector-button {
    cursor: pointer;
}

.file-upload-overlay-input:disabled,
.file-upload-overlay-input:disabled::file-selector-button {
    cursor: default;
}

/* The input is the only keyboard way to choose a file (#65), and it's transparent, so its own focus ring can't be
   seen: the drop area under it shows the focus instead (WCAG 2.4.7). MudFileUpload puts the input just before its
   custom content. */
.file-upload-overlay-input:focus-visible + .mud-file-upload-custom-content .import-drop-zone {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

/* A date field is a date wide, not stretched to its row (docs/code-quality.md, House style; the user, 2026-11-07):
   dd/mm/yyyy with the calendar and clear buttons, in the dense outlined style. On a MudDatePicker's Class. */
.date-field {
    width: 190px;
    max-width: 100%;
    flex: none;
}

/* The row selected in user management's departments table (UserManagement_AccessEditor). */
.um-selected > td {
    background-color: var(--mud-palette-primary-hover) !important;
}

/* Dark mode (docs/colour-design.md, stage 4, 2026-10-30). Heron.MudCalendar's hover and selected cell are a 5% black,
   invisible on a dark background: MudBlazor's own hover colour instead, which has a dark version. */
@media (hover: hover) {
    .mud-cal-month-link:hover,
    .mud-cal-week-link:hover {
        background-color: var(--mud-palette-action-default-hover);
    }
}

.cell-selected {
    background-color: var(--mud-palette-action-default-hover);
}

/* The page area is all the page's colour (the user, 2026-10-30): MudBlazor's tab bars, layout papers and tables take
   the surface colour, which in dark (and Staffing Science's light) made each tab one lighter block; boxes are told apart
   by their thin lines, as .bodypanel's are. Dialogs, menus and tooltips are drawn outside it, so keep the surface and
   stand out. MainLayout only: print stays on white paper. Charts draw on it too (ThemeColours.Ground). */
.page-area {
    --mud-palette-surface: var(--mud-palette-background);
}

/* The same for the sidebar, in its own colour (white in Staffing Science's light, its page a near-white): its logo
   sat in a paper of the surface colour, a lighter block on the sidebar (the user, 2026-10-30). */
.mud-drawer {
    --mud-palette-surface: var(--mud-palette-drawer-background);
}

/* The sidebar is the page's colour, or near it, in both modes, its edge the cards' thin line and no shadow (MainLayout's drawer has
   no elevation; the user, 2026-10-30): a shadow marks the edge in light but not on a dark page. */
.mud-drawer.mud-drawer-pos-left {
    border-right: 1px solid var(--mud-palette-lines-default);
}

/* Bootstrap's inputs on the account pages stay white otherwise. */
.form-control,
.form-control:focus {
    background-color: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    border-color: var(--mud-palette-lines-inputs);
}

.form-floating > label {
    color: var(--mud-palette-text-secondary);
}

/* A password box's show/hide button (#52; account-forms.js): an eye at the box's right end, the typed text kept clear
   of it. The eye while the password is dots, the crossed eye while it's shown. */
.password-field > .form-control {
    padding-right: 3rem;
}

/* Edge draws an eye of its own in a password box: hidden, so there's one (Microsoft's ::-ms-reveal). */
.password-field > .form-control::-ms-reveal {
    display: none;
}

/* The height is Bootstrap 5.1's floating box (calc(3.5rem + 2px)): check it, and the label's stacking, on an upgrade. */
.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: calc(3.5rem + 2px);
    width: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: none;
    color: var(--mud-palette-text-secondary);
    cursor: pointer;
}

.password-toggle:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: -4px;
    border-radius: 6px;
}

.password-toggle[aria-pressed="false"] .password-toggle-hide,
.password-toggle[aria-pressed="true"] .password-toggle-show {
    display: none;
}

/* A form being sent (account-forms.js, data-signing-in): its fields go, and a loading circle shows until the next page
   opens (#52). */
.signing-in-show {
    display: none;
}

form.signing-in .signing-in-hide {
    display: none;
}

/* The last attempt's error (StatusMessage, above the form) goes too, so it isn't shown beside "Signing in". */
section:has(> form.signing-in) > .alert {
    display: none;
}

form.signing-in .signing-in-show {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
}
