﻿h1:focus {
    outline: none;
}

/* ---------- Fonts --------------------------------------------------------
   Site-wide font is IBM Plex Sans, self-hosted (SIL Open Font License; license
   text in fonts/IBMPlexSans-OFL.txt). Four weights are shipped: 400 body,
   500 labels / nav, 600 headings / buttons, 700 strong emphasis.

   Everything points at ONE token, --ss-font (defined in :root below), so trying
   or reverting a font is a one-line change. The Euclid Circular A faces are
   still registered after Plex but nothing references them now; to go back,
   point --ss-font at 'Euclid Circular A' (its Bold file is mapped to weight 400
   there). `font-display: swap` so first paint isn't blocked. */
@font-face {
    font-family: 'IBM Plex Sans';
    src: url('fonts/ibm-plex-sans-latin-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('fonts/ibm-plex-sans-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('fonts/ibm-plex-sans-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('fonts/ibm-plex-sans-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Legacy brand face (unused; see note above). */
@font-face {
    font-family: 'EuclidCircularA-Bold';
    src: url('fonts/EuclidCircularA-Bold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EuclidCircularA-Light';
    src: url('fonts/EuclidCircularA-Light.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Euclid Circular A';
    src: url('fonts/EuclidCircularA-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Euclid Circular A';
    src: url('fonts/EuclidCircularA-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Register the Bold cut as the family's default (400) weight so anything
   that doesn't set an explicit weight still renders in Bold — that's what
   "default font: EuclidCircularA-Bold" means for us. */
@font-face {
    font-family: 'Euclid Circular A';
    src: url('fonts/EuclidCircularA-Bold.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html,
body {
    font-family: var(--ss-font);
    font-weight: 400;
}

/* The one font token. MudBlazor, Bootstrap and (through inheritance)
   DevExpress all read from it. */
:root {
    --ss-font: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* MudBlazor exposes typography families as CSS custom properties;
       pointing them at the token means every MudText / MudButton / etc.
       picks the font up without touching individual components. */
    --mud-typography-default-family: var(--ss-font);
    --mud-typography-h1-family: var(--ss-font);
    --mud-typography-h2-family: var(--ss-font);
    --mud-typography-h3-family: var(--ss-font);
    --mud-typography-h4-family: var(--ss-font);
    --mud-typography-h5-family: var(--ss-font);
    --mud-typography-h6-family: var(--ss-font);
    --mud-typography-subtitle1-family: var(--ss-font);
    --mud-typography-subtitle2-family: var(--ss-font);
    --mud-typography-body1-family: var(--ss-font);
    --mud-typography-body2-family: var(--ss-font);
    --mud-typography-button-family: var(--ss-font);
    --mud-typography-caption-family: var(--ss-font);
    --mud-typography-overline-family: var(--ss-font);

    /* Bootstrap 5 */
    --bs-body-font-family: var(--ss-font);
    --bs-font-sans-serif: var(--ss-font);
}

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

/* ---------- App-wide card chrome -----------------------------------------
   Shared header for any "section card" rendered inside MudPaper. Pinned
   here in app.css (not in a scoped razor.css file) so every page picks up
   the same brand color without copy/paste, and so future cards default to
   the right look. Navy (#21274d) matches the navbar / dashboard cards. */
.ss-card-header {
    background-color: #21274d;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #1a1f3e;
}

/* Dashboard cards that sit side by side at a fixed height (Installer Workload, Activity): the header stays put and the
   body (flex: 1, min-height: 0) scrolls when its content is taller than the card. */
.ss-dash-fixed-card {
    display: flex !important;
    flex-direction: column !important;
    height: 440px !important;
}

.ss-dash-fixed-card > .ss-card-header {
    flex: 0 0 auto;
}

/* The height of the small dashboard cards (Jobs Waiting To Be Accepted, Upcoming Reminders, Locations), so they always match. */
:root {
    --ss-small-card-h: 220px;
}

/* A dashboard card that is one big number (Locations): the same look as Jobs Waiting To Be Accepted. Global because the
   MudPaper that is the card is a component, so a component's scoped CSS never reaches it. */
.ss-count-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    height: var(--ss-small-card-h);
    overflow: hidden !important;
}

.ss-count-card > .ss-count-body {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    min-height: 110px;
}

.ss-count-number {
    font-size: 2.75rem;
    font-weight: 700;
    color: #325D88;
    line-height: 1;
}

/* A card header with the title on the left and company pills (or other controls) on the right. */
.ss-card-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Hide DevExpress DxMenu chevron on the customer-portal icon-only parent
   trigger. Placed in the global stylesheet (not scoped razor.css) because
   DxMenu renders the arrow element outside our CssClass'd host, so
   Blazor's scoped attribute selectors can't reach it. The exact class
   varies by DX version, so we cover multiple candidates and also hide any
   sibling SVG/image inside the host (our own icon is `<i class="bi …">`,
   never an SVG, so it's safe). */
.ss-nav-icon-host .dxbl-menu-dropdown-toggle,
.ss-nav-icon-host .dxbl-arrow,
.ss-nav-icon-host .dxbl-menu-item-expand-icon,
.ss-nav-icon-host .dxbl-menu-item-toggle,
.ss-nav-icon-host .dxbl-menu-item-toggle-btn,
.ss-nav-icon-host > .dxbl-image,
.ss-nav-icon-host .dxbl-menu-item-text + .dxbl-image,
.ss-nav-icon-host > svg,
.ss-nav-icon-host .dxbl-menu-item-text ~ svg,
.ss-nav-icon-host .dxbl-menu-item-text ~ .dxbl-image {
    display: none !important;
}

/* Belt-and-suspenders: DevExpress may render the dropdown-toggle SVG as a
   sibling of our CssClass'd host, outside `.ss-nav-icon-host`. Hide it
   whenever it lives inside a menu item that also contains our icon trigger. */
.dxbl-menu-item:has(.ss-nav-icon-trigger) .dxbl-menu-dropdown-toggle,
.dxbl-menu-item:has(.ss-nav-icon-host) .dxbl-menu-dropdown-toggle,
li:has(> .ss-nav-icon-host) .dxbl-menu-dropdown-toggle,
li:has(.ss-nav-icon-trigger) .dxbl-menu-dropdown-toggle {
    display: none !important;
}

/* ---------- SS TopNav DxMenu popup ----------------------------------------
   DxMenu renders its dropdown in a portal outside the TopNavBar component's
   DOM subtree, so scoped `::deep` selectors in TopNavBar.razor.css never
   reach it. These rules live in the global stylesheet so they actually
   apply. Kept in one block for easy tweaking. */

.dxbl-menu-popup,
.dxbl-menu-popup .dxbl-menu-items,
.dxbl-menu-sub {
    background-color: #ffffff !important;
    border: 1px solid #e5e7ef !important;
    border-radius: 10px !important;
    box-shadow: 0 14px 32px rgba(21, 27, 55, 0.20),
                0 2px 6px rgba(21, 27, 55, 0.08) !important;
    padding: 0.4rem !important;
    min-width: 15rem;
}

/* DX inner list resets */
.dxbl-menu-popup .dxbl-menu-items {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dxbl-menu-popup .dxbl-menu-item {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 6px !important;
    overflow: hidden;
}

.dxbl-menu-popup .dxbl-menu-item:hover,
.dxbl-menu-popup .dxbl-menu-item:focus-within,
.dxbl-menu-popup .dxbl-menu-item.dxbl-active {
    background-color: #f4f5fa !important;
    box-shadow: none !important;
    outline: none !important;
}

/* The link/label we render inside each DxMenuItem.TextTemplate. */
.ss-nav-subitem {
    display: flex !important;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.55rem 0.9rem 0.55rem 0.85rem !important;
    color: #21274d !important;
    text-decoration: none !important;
    font-family: var(--ss-font) !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.005em !important;
    text-transform: none !important;
    line-height: 1.25 !important;
    border-left: 3px solid transparent !important;
    border-radius: 6px !important;
    background: transparent !important;
    transition: color 120ms ease-in-out,
                background-color 120ms ease-in-out,
                border-color 120ms ease-in-out;
}

.ss-nav-subitem:hover {
    color: #d35400 !important;
    background-color: #f4f5fa !important;
    border-left-color: #d35400 !important;
}

.ss-nav-subitem-active {
    color: #21274d !important;
    font-weight: 600 !important;
    background-color: #f0f2fa !important;
    border-left-color: #ffd400 !important;
}

/* Full-row accent. ss-nav-hover.js tags the wrapper DevExpress renders around
   each dropdown label as .ss-nav-row (+ .ss-nav-row-active for the current
   page), so the hover / selected treatment spans the whole row instead of
   hugging the text. The bar is an inset shadow so nothing shifts by 3px. The
   label's own bg/bar are neutralised inside a row so they don't double up;
   outside a row (script not run) the label styling above still applies. */
.ss-nav-row {
    border-radius: 6px;
    transition: background-color 120ms ease-in-out,
                box-shadow 120ms ease-in-out;
}

.ss-nav-row:hover {
    background-color: #f4f5fa !important;
    box-shadow: inset 3px 0 0 #d35400;
}

.ss-nav-row:hover .ss-nav-subitem {
    color: #d35400 !important;
}

.ss-nav-row-active,
.ss-nav-row-active:hover {
    background-color: #f0f2fa !important;
    box-shadow: inset 3px 0 0 #ffd400;
}

.ss-nav-row-active:hover .ss-nav-subitem {
    color: #21274d !important;
}

.ss-nav-row .ss-nav-subitem,
.ss-nav-row .ss-nav-subitem:hover,
.ss-nav-row .ss-nav-subitem-active {
    background-color: transparent !important;
    border-left-color: transparent !important;
}

/* Nested-parent submenu label: rendered as a span (no href) so clicking
   the label opens the sub-submenu instead of navigating. DevExpress renders
   its own chevron for parent items — no need to add ours. */
.ss-nav-subitem-parent {
    cursor: pointer;
    user-select: none;
}

/* =================================================================
   Jobs Search page — Info & Photo hover popovers
   -----------------------------------------------------------------
   MudPopover portals its content through MudPopoverProvider (which
   lives at MainLayout root), so the rendered DOM is OUTSIDE any
   page-scoped CSS boundary. All popover content styling therefore
   has to live here as global, unscoped CSS.
   ================================================================= */

/* Reset MudPopover paper defaults on both hover popovers so our
   inner div fully controls the visual chrome (background, radius,
   shadow). MudPopover still handles the fixed positioning. */
.mud-popover.ss-info-hover-popover,
.mud-popover.ss-photo-hover-popover {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
    z-index: 1400;
    pointer-events: auto;
}

/* ---------- Info popover ---------- */
.ss-info-hover-inner {
    width: 340px;
    background-color: #21274d;
    color: #ffffff;
    text-align: left;
    padding: 0.75rem 0.95rem;
    font-size: 0.8rem;
    line-height: 1.4;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    margin-right: 6px;
    white-space: normal;
    word-break: break-word;
    box-sizing: border-box;
}

.ss-job-info-body {
    text-align: left;
}

    .ss-job-info-body hr {
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.25);
        margin: 0.4rem 0;
    }

.ss-job-info-title {
    font-weight: 600;
    text-align: left;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: #f6c99a;
}

.ss-job-info-loading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.25rem 0;
    color: #ffffff;
}

/* ---------- Photo popover ---------- */
.ss-photo-hover-inner {
    background-color: #21274d;
    padding: 6px;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    margin-right: 6px;
}

.ss-photo-hover-empty {
    color: #ffffff;
    padding: 8px 12px;
    font-size: 0.8rem;
    min-width: 160px;
    text-align: center;
}

.ss-job-photo-slide {
    position: relative;
    display: inline-block;
    vertical-align: top;
    border-radius: 4px;
    overflow: hidden;
}

.ss-job-photo-hero {
    display: block;
    max-width: 340px;
    max-height: 340px;
    width: auto;
    height: auto;
}

.ss-job-photo-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.02em;
}

.ss-job-photo-counter {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.ss-job-photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    .ss-job-photo-nav:hover {
        background-color: rgba(211, 84, 0, 0.85);
    }

.ss-job-photo-prev {
    left: 8px;
}

.ss-job-photo-next {
    right: 8px;
}

/* =================================================================
   Jobs Search page — Show Map dialog (JobMapDialog)
   -----------------------------------------------------------------
   MudDialogProvider portals dialogs to the top of the DOM, which
   puts them OUTSIDE any scoped CSS boundary. All sizing / layout
   rules therefore have to live here as global, unscoped CSS.

   Selector uses `.mud-dialog.ss-job-map-dialog` (two classes, no
   !important-vs-!important war) so it beats MudBlazor's own size
   classes like `.mud-dialog-width-xxl` on specificity.
   ================================================================= */
.mud-dialog.ss-job-map-dialog {
    width: 80vw;
    max-width: 80vw;
    min-width: 80vw;
    height: 80vh;
    max-height: 80vh;
    min-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mud-dialog.ss-job-map-dialog .mud-dialog-title {
    background-color: #21274d;
    color: #ffffff;
    padding: 0.4rem 0.75rem;
    margin: 0;
    flex: 0 0 auto;
    line-height: 1;
}

.mud-dialog.ss-job-map-dialog .mud-dialog-title .mud-icon-button,
.mud-dialog.ss-job-map-dialog .mud-dialog-title .mud-icon-root {
    color: #ffffff !important;
}

/* Kill the default 16px padding around .mud-dialog-content so the
   iframe butts up against the title bar with no gap, and force
   flex-fill so the map takes every remaining pixel. min-height: 0
   is required for flex children to actually shrink/grow inside a
   fixed-height parent. */
.mud-dialog.ss-job-map-dialog .mud-dialog-content {
    padding: 0;
    margin: 0;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background-color: #eef1f8;
    overflow: hidden;
    max-height: none;
}

.ss-job-map-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    min-height: 2rem;
}

/* Trim the tooltip-wrapped close button so the title bar stays
   tight and doesn't creep on hover. */
.mud-dialog.ss-job-map-dialog .ss-job-map-title .mud-icon-button {
    padding: 0.25rem;
}

.ss-job-map-frame {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #eef1f8;
}

.ss-job-map-error {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b03030;
    padding: 2rem;
    text-align: center;
    font-size: 1rem;
}

/* =================================================================
   ConfirmDialog — reusable confirm-then-act modal (Accept, Delete,
   bulk actions). Rounded shell, navy title bar with icon+label, and
   comfortable body/action padding so it doesn't feel cramped.
   ================================================================= */
.mud-dialog.ss-confirm-dialog {
    border-radius: 12px;
    overflow: hidden;
    min-width: 380px;
    max-width: 480px;
}

.mud-dialog.ss-confirm-dialog .mud-dialog-title {
    background-color: #21274d;
    color: #ffffff;
    padding: 0.6rem 0.9rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Only the close button in the title should be forced white — the
   caller-coloured MudIcon at the start of the title keeps its own
   colour (green check, red trash, amber alert, …). */
.mud-dialog.ss-confirm-dialog .mud-dialog-title .mud-icon-button {
    color: #ffffff !important;
    padding: 0.25rem;
}

.mud-dialog.ss-confirm-dialog .ss-confirm-body {
    padding: 1.25rem 0.25rem 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.82);
}

.mud-dialog.ss-confirm-dialog .mud-dialog-actions {
    padding: 0.5rem 0.75rem 0.75rem;
}

/* =================================================================
   JobSearchPage row-menu — bump the item font-size a touch and
   thicken the dividers so the menu reads without squinting. Targets
   the MudMenu's popover via PopoverClass="ss-jobs-row-menu-popover".
   ================================================================= */
.mud-popover.ss-jobs-row-menu-popover .mud-list-item {
    font-size: 0.95rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.mud-popover.ss-jobs-row-menu-popover .mud-list-item .mud-nav-link-text,
.mud-popover.ss-jobs-row-menu-popover .mud-list-item .mud-menu-item-text {
    font-size: 0.95rem;
}

.mud-popover.ss-jobs-row-menu-popover .mud-divider {
    border-top-width: 2px;
    border-top-color: rgba(0, 0, 0, 0.4);
    margin: 0.35rem 0;
}

/* Public pages (home, sign up): the app bar is taller than MudBlazor's default, so the toolbar inside it
   has to fill it for the logo and buttons to sit in the vertical middle. */
.mud-appbar .mud-toolbar.ss-public-toolbar {
    height: 88px;
    min-height: 88px;
    align-items: center;
}

/* The public pages' mobile menu is a MudDrawer outside a MudLayout, so MudBlazor positions it `absolute`.
   Parked off-screen at right:-300px it then widened the page and could be scrolled into view sideways.
   Fixed positioning keeps it out of the page's scroll width. */
.mud-drawer.ss-public-drawer,
.mud-drawer.ss-nav-drawer {
    position: fixed;
}

/* The signed-in app's small-screen menu (TopNavBar). Sits above the support chat button (z-index 1100)
   but below dialogs, so an action started from the menu opens over it. */
.mud-drawer.ss-nav-drawer {
    z-index: 1300;
}

/* MudBlazor puts the dimming overlay one above the drawer by default; keep it just below the raised drawer. */
.mud-drawer.ss-nav-drawer + .mud-drawer-overlay {
    z-index: 1299;
}

/* The drawer is always rendered (the switch to the horizontal menu is CSS, at 1600px). If the window is
   widened while it is open, take it and its overlay away with the hamburger. */
@media (min-width: 1600px) {
    .mud-drawer.ss-nav-drawer,
    .mud-drawer.ss-nav-drawer + .mud-drawer-overlay {
        display: none !important;
    }
}

.ss-nav-drawer .mud-drawer-header.ss-nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 64px;
    padding: 0 0.5rem 0 1rem;
    background-color: #21274d;
    color: #ffffff;
}

.ss-nav-drawer .ss-nav-drawer-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Finger-sized rows, in the same navy / yellow as the desktop menu. */
.ss-nav-drawer .mud-nav-link {
    min-height: 48px;
    font-family: var(--ss-font);
    font-weight: 500;
    color: #21274d;
    text-decoration: none;
}

.ss-nav-drawer .mud-nav-link.active:not(.mud-nav-link-disabled) {
    color: #21274d;
    font-weight: 600;
    background-color: #f0f2fa;
    box-shadow: inset 3px 0 0 #ffd400;
}

.ss-nav-drawer .mud-navgroup-expand-icon {
    color: #21274d;
}
