﻿/* EM5-only additions. EM4's look comes from css/site, page, checkboxes and print (copied unchanged). */

/* Blazor form validation */
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #a7141d; }
.validation-message { color: #a7141d; font-size: .875rem; }

/* Blazor unhandled-error bar */
#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-ui .report { margin-left: 1rem; font-weight: 600; }

/* Help (Pages/Help.razor): a problem's questions and hint only for "Something's not working" (CSS alone, as it's a plain
   server page; a browser without :has() shows them all). */
.help-page { max-width: 760px; }
.help-form:not(:has(#type-problem:checked)) .help-problem-only { display: none !important; }
.help-form:has(#type-problem:checked) .help-not-problem { display: none !important; }
.help-sent-with { overflow-wrap: anywhere; }
@media (pointer: coarse) { .help-paste-hint { display: none; } }

/* Help's side panel (em.js): down the right over the page, which narrows to make room on a wide screen; the whole screen
   on a phone. The Help page inside it (HelpLayout) has no top bar or menu. */
.em-help-panel {
    background: #fff;
    bottom: 0;
    box-shadow: -2px 0 12px rgba(0, 0, 0, .18);
    display: flex;
    flex-direction: column;
    max-width: 100%;
    position: fixed;
    right: 0;
    top: 0;
    width: 420px;
    z-index: 1060;
}
.em-help-panel[hidden] { display: none !important; }
.em-help-panel-head {
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    padding: .4rem .5rem .4rem 1rem;
}
.em-help-panel-title { font-size: 1.15rem; font-weight: 600; }
.em-help-panel-close { color: inherit; font-size: 1.15rem; padding: .2rem .5rem; text-decoration: none; }
.em-help-panel-frame { border: 0; flex: 1 1 auto; width: 100%; }
.help-in-panel { background: #fff; min-height: 100vh; padding: 1rem; }
@media (max-width: 767.98px) {
    .em-help-panel { box-shadow: none; width: 100%; }
    body:has(#em-help-panel:not([hidden])) { overflow: hidden; }
}
@media (min-width: 1200px) {
    body:has(#em-help-panel:not([hidden])) .wrapper { padding-right: 420px; }
    body:has(#em-help-panel:not([hidden])) #blazor-error-ui { right: 420px; width: auto; }
    /* A page's buttons (site.scss .sticky, fixed top right) go back into the page beside its heading, as on a phone,
       so they're neither under the panel nor over the menu. */
    body:has(#em-help-panel:not([hidden])) .sticky {
        flex-wrap: wrap;
        justify-content: flex-end;
        position: relative !important;
        right: auto !important;
        top: auto !important;
    }
}

/* Blazor moves focus to the page heading after navigation; don't draw a box round it. */
h1:focus, h1:focus-visible { outline: none; }

/* Action links are <a role="button"> without an href (so Blazor never treats them as navigation). */
a[role="button"] { cursor: pointer; }

/* Attachments pop-up: the attachment being previewed, and its buttons in the gap above the preview (site.css .attachmentpreview). */
.attachment-selected { background-color: #f5f7fa; }
.attachmentpreview .em-attachment-tools { position: absolute; top: -42px; left: 0; }
/* Add Attachments: a drop area with the file box lying invisibly over it (click to choose, or drop files on it), and on
   phones and tablets a Take Photo button made the same way. "or drag them here" only where there's a mouse. */
.em-dropzone {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
    min-height: 8rem; padding: 1rem; border: 2px dashed #adb5bd; border-radius: 0.375rem; background-color: #f8f9fa; text-align: center;
}
.em-dropzone > .fa-cloud-arrow-up { font-size: 2rem; color: #6c757d; }
.em-dropzone:hover, .em-dropzone:focus-within, .em-dropzone-over { border-color: var(--bs-primary); background-color: var(--bs-primary-bg-subtle); }
.em-dropzone-busy { opacity: 0.6; }
.em-file-overlay { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.em-file-overlay:disabled { cursor: default; }
.em-camera { display: none; }
@media (pointer: coarse) {
    .em-camera { display: block; }
    .em-dropzone-drag { display: none; }
    .em-dropzone { min-height: 6rem; }
}

/* Drag-and-drop reordering (kit tasks and parts; EM4 used the same dashed marker). */
[data-em-drag] { cursor: grab; }
/* Parts lists on orders, jobs, purchase orders, kits and the counter: on white (James, 13 Oct 2026). The rows are white too so their
   edges meet the white toolbar above; received rows (purchase orders) and the drop target keep their colours.
   The rows sit in from the edges by --em-partslist-gap, their text in line with the buttons above. */
.em-partslist { --em-partslist-gap: 2rem; background-color: #ffffff; display: flow-root; padding: 0 var(--em-partslist-gap); }
@media (max-width: 991.98px) {
    .em-partslist { --em-partslist-gap: 0.75rem; }
}
.em-partslist > .row:not(.em-drop-target) { background-color: #ffffff; }
.em-partslist > p { margin: 0; padding: 0.5rem 0; }
/* The heading and each line's divider run right across the white; their text stays in by the gap (James, 13 Oct 2026). */
.em-partslist > .row {
    margin-left: calc(-1 * var(--em-partslist-gap)); margin-right: calc(-1 * var(--em-partslist-gap));
    padding-left: calc(var(--em-partslist-gap) - 0.5 * var(--bs-gutter-x)); padding-right: calc(var(--em-partslist-gap) - 0.5 * var(--bs-gutter-x));
}
/* Inside a white .inner panel (kits), the list reaches out over the panel's 20px padding to its edges too. */
.inner > .em-partslist { margin-left: -20px; margin-right: -20px; }
/* Their column headings: the sidebar's dark grey (.navbar-static-side) with white text and a little more room above. */
.em-partslist > .row.em-partslist-head { background-color: #333333; color: #ffffff; padding-top: 0.6rem; padding-bottom: 0.4rem; }
/* The quote's parts list on a laptop or wider (James, 17 and 18 Nov 2026): Bootstrap's twelfths left an amount about 64px at
   1024px wide, so £31,289.60 ran into the next column. A grid whose rows share its columns (subgrid): each column as wide
   as its widest amount, the description takes the rest. A narrower gutter, the text still in by --em-partslist-gap.
   Narrower screens stack the lines as on orders and jobs, which keep their twelfths. */
@media (min-width: 992px) {
    .em-partslist.em-quote-lines { display: grid; grid-template-columns: auto minmax(8rem, 1fr) repeat(7, auto); }
    .em-partslist.em-quote-lines > .row { --bs-gutter-x: 0.8rem; display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; }
    .em-partslist.em-quote-lines > .row > * { width: auto; max-width: none; }
    .em-partslist.em-quote-lines > p { grid-column: 1 / -1; }
}
/* Quiet light grey badges on part lines (a job or order line's invoice, a sub-assembly), rather than Bootstrap's bright info blue. */
.badge.em-badge-grey { background-color: #dee2e6; color: #212529; }
a.badge.em-badge-grey:hover { background-color: #ced4da; color: #212529; }
/* A part line's purchase order: light blue, so it stands apart from the grey invoice badge (James, 17 Oct 2026). */
.badge.em-badge-po { background-color: #cfe2ff; color: #052c65; }
a.badge.em-badge-po:hover { background-color: #b6d4fe; color: #052c65; }

/* Greyed-out (disabled) buttons are light grey everywhere (James, 14 Oct 2026), not Bootstrap's faded blue: EM4's CSS
   only restyles a button's normal state. Status pickers keep their colours (their own, more specific, rules); link and
   grid icon buttons have no box, so they just fade. */
.btn { --bs-btn-disabled-bg: #e9ecef; --bs-btn-disabled-border-color: #dee2e6; --bs-btn-disabled-color: #868e96; --bs-btn-disabled-opacity: 1; }
.btn-link, .btn-grid { --bs-btn-disabled-bg: transparent; --bs-btn-disabled-border-color: transparent; --bs-btn-disabled-opacity: 0.5; }
.em-drop-target { border-top: 2px dashed #0d6efd !important; background-color: #f0f4ff; }
.em-dragging { opacity: .4; }
.em-drag-handle { cursor: grab; color: #6c757d; }

/* Unit stock cards */
.unit-card .card-header .orderstatus { margin-left: .5rem; }

.em-picker-list { max-height: 50vh; overflow-y: auto; }
/* The Quote / Estimate switch beside the quote number: smaller than btn-sm. */
.quote-kind .btn { padding: .1rem .5rem; font-size: .75rem; }
/* The quotes list's Q / E badge, just after the number. */
.quote-kind-letter { padding: .25em .35em; margin-left: 3px; vertical-align: .1em; }

/* Invoices list: EM4's large totals, but normal size on phones so the row fits. */
@media (max-width: 767.98px) {
    .gridmain .em-inv-money .subtotal { font-size: 1.1em; }
}

/* EM4 EM.css .urgent: an open task (or order) due today or earlier. */
.dispatchdate.urgent { background-color: #b60000; color: #fff; padding: 0 .4em; border-radius: .25rem; }

/* Time sheet (EM4 page.css .days): let the day bar wrap on a phone. */
.days.em-days { display: flex; flex-wrap: wrap; }
.days.em-days li { flex: 1 1 auto; }
.days.em-days a, .days.em-days .totalheader { display: block; cursor: pointer; }
@media (max-width: 575.98px) {
    .days.em-days li { flex: 1 1 25%; }
    .days.em-days a, .days.em-days .totalheader { padding: 6px 4px; font-size: .85em; }
    .timenav .title, .timenav .date { font-size: 1.2em; }
    .timetype { width: auto; }
}

/* Time analysis chart */
.em-viz-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: baseline; }
.em-viz-grid { stroke: #e3e2dc; stroke-width: 1; }
.em-viz-axis { fill: #6b6a62; font-size: 11px; }

/* Dashboard (EM4 page.scss .dashboarditem / .dashboardchart) */
.dashboarditem { border: 1px solid #dbdbdb; display: block; margin: 0 0 16px; background-color: #dbdbdb; }
.dashboarditem .title { padding: 10px; font-size: 1.15rem; display: block; color: #ff9933; background-color: #333; }
.dashboarditem .total { background-color: #333; font-size: 2rem; display: block; text-align: center; padding: 6px 10px 14px; color: #fff; }
.dashboarditem .footer { color: #333; background-color: #dbdbdb; padding: 10px; display: block; text-align: center; }
.dashboardchart { background: #fff; padding: 12px 14px; margin: 0 0 16px; }
.em-viz-hit { fill: transparent; }
.em-viz-hit:hover { fill: rgba(0, 0, 0, .04); }
.em-rank-row { margin-bottom: 8px; }
.em-rank-track { height: 10px; background: #f0efe9; border-radius: 4px; }
.em-rank-bar { height: 10px; border-radius: 0 4px 4px 0; }

/* Aged debt badges (EM4 page.scss) */
.thirtydays { background-color: #cef442; color: #000; }
.sixtydays { background-color: #f48942; color: #000; }
.ninetydays { background-color: #b60003; color: #fff; }

/* Pop-ups (EmModal) never run off the screen: a long one (e.g. many notes) scrolls inside itself (James, 8 Oct 2026).
   EM4's .modalfixednoscroll is fixed at the top (100px down from 768px wide) with no height limit. */
.modalform.modalfixednoscroll { max-height: 100vh; overflow-y: auto; }
@media (min-width: 768px) {
    .modalform.modalfixednoscroll { max-height: calc(100vh - 120px); }
}

/* ----- Print preview (EM4 Controls/PrintPreview.ascx, site.css .modalform / .modalformfixed) ----- */
.modalbg {
    background-color: #ffffff;
    position: fixed;
    inset: 0;
    z-index: 2500;
    opacity: 0.5;
}

#printpreview.modalformfixed {
    position: fixed;
    z-index: 2600;
    inset: 20px;
    margin: 0;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgb(51, 51, 51);
    overflow: hidden;
}

#printpreview .inner {
    padding: 10px 40px;
    background-color: #ffffff;
}

#printpreview .closebutton {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 2700;
}

#printpreview .closebutton a {
    color: #333;
}

#printpreview .iframeprintpreview {
    position: absolute;
    left: 25px;
    right: 25px;
    top: 130px;
    bottom: 25px;
}

#printpreview .iframeprintpreview iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #dee2e6;
}

body.em-preview-open {
    overflow: hidden;
}

/* ----- Status buttons (EM4 Site.scss .orderstatus, shown as EM4's btnStatus drop-down) -----
   The colours come from site.scss; these keep them when the button is hovered or its menu is open,
   where Bootstrap would otherwise swap in its own button colours. */
.status-picker .dropdown-item.orderstatus-current { font-weight: 700; }
.status-picker .dropdown-item.orderstatus-current::after { content: " \2713"; }
.status-picker .btn.orderstatus:hover, .status-picker .btn.orderstatus.show, .status-picker .dropdown-item:hover { filter: brightness(0.92); }
.status-picker .btn.ordernew { --bs-btn-bg: #99ff33; --bs-btn-color: #000000; --bs-btn-border-color: #99ff33; --bs-btn-hover-bg: #99ff33; --bs-btn-hover-color: #000000; --bs-btn-hover-border-color: #99ff33; --bs-btn-active-bg: #99ff33; --bs-btn-active-color: #000000; --bs-btn-active-border-color: #99ff33; --bs-btn-disabled-bg: #99ff33; --bs-btn-disabled-color: #000000; }
.status-picker .dropdown-item.ordernew, .status-picker .dropdown-item.ordernew:hover, .status-picker .dropdown-item.ordernew:focus, .status-picker .dropdown-item.ordernew:active { background-color: #99ff33; color: #000000; }
.status-picker .btn.orderplaced { --bs-btn-bg: #b63000; --bs-btn-color: #ffffff; --bs-btn-border-color: #b63000; --bs-btn-hover-bg: #b63000; --bs-btn-hover-color: #ffffff; --bs-btn-hover-border-color: #b63000; --bs-btn-active-bg: #b63000; --bs-btn-active-color: #ffffff; --bs-btn-active-border-color: #b63000; --bs-btn-disabled-bg: #b63000; --bs-btn-disabled-color: #ffffff; }
.status-picker .dropdown-item.orderplaced, .status-picker .dropdown-item.orderplaced:hover, .status-picker .dropdown-item.orderplaced:focus, .status-picker .dropdown-item.orderplaced:active { background-color: #b63000; color: #ffffff; }
.status-picker .btn.orderinprogress { --bs-btn-bg: #ff9966; --bs-btn-color: #000000; --bs-btn-border-color: #ff9966; --bs-btn-hover-bg: #ff9966; --bs-btn-hover-color: #000000; --bs-btn-hover-border-color: #ff9966; --bs-btn-active-bg: #ff9966; --bs-btn-active-color: #000000; --bs-btn-active-border-color: #ff9966; --bs-btn-disabled-bg: #ff9966; --bs-btn-disabled-color: #000000; }
.status-picker .dropdown-item.orderinprogress, .status-picker .dropdown-item.orderinprogress:hover, .status-picker .dropdown-item.orderinprogress:focus, .status-picker .dropdown-item.orderinprogress:active { background-color: #ff9966; color: #000000; }
.status-picker .btn.orderwaiting { --bs-btn-bg: #ffff66; --bs-btn-color: #000000; --bs-btn-border-color: #ffff66; --bs-btn-hover-bg: #ffff66; --bs-btn-hover-color: #000000; --bs-btn-hover-border-color: #ffff66; --bs-btn-active-bg: #ffff66; --bs-btn-active-color: #000000; --bs-btn-active-border-color: #ffff66; --bs-btn-disabled-bg: #ffff66; --bs-btn-disabled-color: #000000; }
.status-picker .dropdown-item.orderwaiting, .status-picker .dropdown-item.orderwaiting:hover, .status-picker .dropdown-item.orderwaiting:focus, .status-picker .dropdown-item.orderwaiting:active { background-color: #ffff66; color: #000000; }
.status-picker .btn.ordercomplete { --bs-btn-bg: #ffffff; --bs-btn-color: #000000; --bs-btn-border-color: #ffffff; --bs-btn-hover-bg: #ffffff; --bs-btn-hover-color: #000000; --bs-btn-hover-border-color: #ffffff; --bs-btn-active-bg: #ffffff; --bs-btn-active-color: #000000; --bs-btn-active-border-color: #ffffff; --bs-btn-disabled-bg: #ffffff; --bs-btn-disabled-color: #000000; }
.status-picker .dropdown-item.ordercomplete, .status-picker .dropdown-item.ordercomplete:hover, .status-picker .dropdown-item.ordercomplete:focus, .status-picker .dropdown-item.ordercomplete:active { background-color: #ffffff; color: #000000; }
.status-picker .btn.ordercanceled { --bs-btn-bg: #99ccff; --bs-btn-color: #000066; --bs-btn-border-color: #99ccff; --bs-btn-hover-bg: #99ccff; --bs-btn-hover-color: #000066; --bs-btn-hover-border-color: #99ccff; --bs-btn-active-bg: #99ccff; --bs-btn-active-color: #000066; --bs-btn-active-border-color: #99ccff; --bs-btn-disabled-bg: #99ccff; --bs-btn-disabled-color: #000066; }
.status-picker .dropdown-item.ordercanceled, .status-picker .dropdown-item.ordercanceled:hover, .status-picker .dropdown-item.ordercanceled:focus, .status-picker .dropdown-item.ordercanceled:active { background-color: #99ccff; color: #000066; }
.status-picker .btn.readytoinvoice { --bs-btn-bg: #336600; --bs-btn-color: #ffffff; --bs-btn-border-color: #336600; --bs-btn-hover-bg: #336600; --bs-btn-hover-color: #ffffff; --bs-btn-hover-border-color: #336600; --bs-btn-active-bg: #336600; --bs-btn-active-color: #ffffff; --bs-btn-active-border-color: #336600; --bs-btn-disabled-bg: #336600; --bs-btn-disabled-color: #ffffff; }
.status-picker .dropdown-item.readytoinvoice, .status-picker .dropdown-item.readytoinvoice:hover, .status-picker .dropdown-item.readytoinvoice:focus, .status-picker .dropdown-item.readytoinvoice:active { background-color: #336600; color: #ffffff; }
.status-picker .btn.warranty { --bs-btn-bg: #333333; --bs-btn-color: #ffffff; --bs-btn-border-color: #333333; --bs-btn-hover-bg: #333333; --bs-btn-hover-color: #ffffff; --bs-btn-hover-border-color: #333333; --bs-btn-active-bg: #333333; --bs-btn-active-color: #ffffff; --bs-btn-active-border-color: #333333; --bs-btn-disabled-bg: #333333; --bs-btn-disabled-color: #ffffff; }
.status-picker .dropdown-item.warranty, .status-picker .dropdown-item.warranty:hover, .status-picker .dropdown-item.warranty:focus, .status-picker .dropdown-item.warranty:active { background-color: #333333; color: #ffffff; }
.status-picker .btn.overdue { --bs-btn-bg: #b63000; --bs-btn-color: #ffffff; --bs-btn-border-color: #b63000; --bs-btn-hover-bg: #b63000; --bs-btn-hover-color: #ffffff; --bs-btn-hover-border-color: #b63000; --bs-btn-active-bg: #b63000; --bs-btn-active-color: #ffffff; --bs-btn-active-border-color: #b63000; --bs-btn-disabled-bg: #b63000; --bs-btn-disabled-color: #ffffff; }
.status-picker .dropdown-item.overdue, .status-picker .dropdown-item.overdue:hover, .status-picker .dropdown-item.overdue:focus, .status-picker .dropdown-item.overdue:active { background-color: #b63000; color: #ffffff; }
.status-picker .btn.jobcardcomplete { --bs-btn-bg: #1762c8; --bs-btn-color: #ffffff; --bs-btn-border-color: #1762c8; --bs-btn-hover-bg: #1762c8; --bs-btn-hover-color: #ffffff; --bs-btn-hover-border-color: #1762c8; --bs-btn-active-bg: #1762c8; --bs-btn-active-color: #ffffff; --bs-btn-active-border-color: #1762c8; --bs-btn-disabled-bg: #1762c8; --bs-btn-disabled-color: #ffffff; }
.status-picker .dropdown-item.jobcardcomplete, .status-picker .dropdown-item.jobcardcomplete:hover, .status-picker .dropdown-item.jobcardcomplete:focus, .status-picker .dropdown-item.jobcardcomplete:active { background-color: #1762c8; color: #ffffff; }

/* Parts add box: ex. VAT and inc. VAT totals stacked and right-aligned, with fixed-width labels so the figures line up. */
.partsadd-totals { display: inline-block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.partsadd-totals sup { display: inline-block; width: 3.6em; margin-left: .25em; text-align: left; top: 0; font-size: .75em; }

/* ----- Public site on the root domain (Components/Layout/PublicLayout, Pages/Public) ----- */
body.em-public { background: #ffffff; font-family: 'Ebrima', 'Open Sans', sans-serif; color: #333333; display: flex; flex-direction: column; min-height: 100vh; }
.pub-header { background: #333333; border-bottom: 3px solid #F09901; }
.pub-header .navbar-brand { font-weight: 600; }
/* The EM logo with the app's white border (site.css .logo). */
.pub-logo { height: 42px; border: 3px solid #ffffff; }
.pub-brand-enquiry { color: #F09901; }
.pub-header .nav-link { color: #ffffff; }
.pub-header .nav-link:hover, .pub-header .nav-link:focus { color: #F09901; }
.pub-login { font-weight: 600; }
.pub-main { flex: 1 0 auto; }
.pub-hero { background: #333333 url('images/EMBackground.jpg') center / cover no-repeat; color: #ffffff; padding: 4.5rem 0; position: relative; }
.pub-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.pub-hero > .container { position: relative; }
.pub-hero h1 { font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); }
.pub-hero h2 { font-weight: 700; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.pub-hero .lead { max-width: 46rem; }
.pub-hero-small { padding: 2.5rem 0; }
.pub-card { background: #ffffff; border: 1px solid #e3e3e3; border-top: 3px solid #F09901; border-radius: 4px; padding: 1.5rem; }
.pub-card h2 { font-size: 1.25rem; font-weight: 600; }
.pub-card h2 i { color: #F09901; margin-right: 0.25rem; }
.pub-card ul { padding-left: 1.1rem; }
.pub-band { background: #f4f4f4; padding: 2rem 0; }
/* Screenshots (PublicScreenshot): framed, click to enlarge. */
.pub-shot { margin: 0; }
.pub-shot-open { display: block; width: 100%; padding: 0; border: 1px solid #d9d9d9; border-radius: 6px; overflow: hidden; background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); cursor: zoom-in; transition: transform .15s ease, box-shadow .15s ease; }
.pub-shot-open:hover, .pub-shot-open:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.pub-shot-open img { display: block; width: 100%; height: auto; }
.pub-shot figcaption { font-size: 0.875rem; color: #555555; margin-top: 0.5rem; text-align: center; }
.pub-shot-phone { max-width: 260px; margin-left: auto; margin-right: auto; }
.pub-shot-phone .pub-shot-open { border-radius: 18px; border: 6px solid #333333; }
.pub-hero .pub-shot-open { border-color: rgba(255, 255, 255, 0.35); }
/* Features page: each feature's words beside its screenshot, level with its top. */
.pub-feature { padding: 3rem 0; }
.pub-feature + .pub-feature { border-top: 1px solid #e9e9e9; }
.pub-feature-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.75rem; }
.pub-feature-title i { color: #F09901; margin-right: 0.4rem; }
.pub-feature-intro { font-size: 1.1rem; color: #555555; margin-bottom: 1.25rem; }
.pub-ticklist, .pub-card .pub-ticklist { list-style: none; padding: 0; }
.pub-ticklist li { position: relative; padding-left: 1.6rem; margin-bottom: 0.6rem; }
.pub-ticklist li i { position: absolute; left: 0; top: 0.3rem; color: #F09901; font-size: 0.9rem; }
.pub-footer { background: #333333; color: #cccccc; padding: 2.5rem 0 1.5rem; font-size: 0.875rem; flex-shrink: 0; }
.pub-footer a { color: #ffffff; text-decoration: none; }
.pub-footer a:hover, .pub-footer a:focus-visible { color: #F09901; text-decoration: underline; }
.pub-footer li { margin-bottom: 0.35rem; }
.pub-footer-brand { font-size: 1.1rem; font-weight: 600; }
.pub-logo-sm { height: 32px; border-width: 2px; }
.pub-footer-heading { color: #ffffff; font-size: 0.8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 0.75rem; }
.pub-footer-legal { border-top: 1px solid #4a4a4a; margin-top: 2rem; padding-top: 1rem; font-size: 0.8rem; color: #b5b5b5; }
.pub-tagline { color: #F09901; font-style: normal; }
/* EM orange with dark text: white on this orange is too faint to read comfortably (WCAG contrast). */
body.em-public .btn-warning { background-color: #F09901; border-color: #F09901; color: #1f1f1f; font-weight: 600; }
body.em-public .btn-warning:hover, body.em-public .btn-warning:focus-visible { background-color: #ffad1f; border-color: #ffad1f; color: #1f1f1f; }
/* Home page: the line above the headline, the ticks under the buttons and "Why Enquiry Manager". */
.pub-eyebrow { color: #F09901; font-weight: 600; letter-spacing: .02em; margin-bottom: 0.5rem; }
.pub-ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.95rem; }
.pub-ticks i { color: #F09901; margin-right: 0.35rem; }
.pub-why { background: #f4f4f4; padding: 3rem 0; }
.pub-why h3 { font-size: 1.1rem; font-weight: 600; }
.pub-why h3 i { color: #F09901; margin-right: 0.35rem; }
/* Contact page: the details beside the form. */
.pub-contact-details dt { font-weight: 600; margin-top: 0.75rem; }
.pub-contact-details dt:first-child { margin-top: 0; }
.pub-contact-details dt i { color: #F09901; width: 1.25rem; }
.pub-contact-details dd { margin: 0 0 0 1.25rem; }
/* The contact form's spam trap: off-screen, so people never see or fill it in. */
.pub-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Add part: the line's own exchange rate (dealers not in pounds). */
.partsadd-rate { width: 7rem; }

/* Showroom mode (top bar): cost prices and profit are hidden while a customer can see the screen. */
body.showroom .cost-only { display: none !important; }
.showroom-toggle .showroom-on { display: none; }
body.showroom .showroom-toggle { color: #fff; background-color: #ed5565; border-radius: 3px; }
body.showroom .showroom-toggle .showroom-on { display: inline; }
body.showroom .showroom-toggle .showroom-off { display: none; }

/* Dashboard charts in EM4's Highcharts style: centred title, legend boxed underneath. */
.em-viz-em4 .em-viz-title { font-size: 1.05rem; font-weight: 400; text-align: center; color: #333; margin: 0 0 6px; }
.em-viz-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; width: fit-content; max-width: 100%;
    margin: 6px auto 0; padding: 3px 10px; border: 1px solid #909090; border-radius: 5px; font-size: .85rem; color: #333; }
.em-viz-legend svg { vertical-align: -1px; margin-right: 3px; }
/* Data table under a chart: every other column light grey, to read the months down (James, 8 Oct 2026). */
.em-viz-table > :is(thead, tbody) > tr > :nth-child(even) { --bs-table-bg: #f0f0f0; }
.em-pie-slice:hover { opacity: .85; }
.dashboard-picker { margin-bottom: 16px; }
.dashboard-picker .input-group-text { background: #fff; }

/* A job's / order's invoices, beside its totals. */
.linked-invoices { margin-top: 10px; }
.linked-invoices .inner { background: #fff; padding: 8px 12px; }

/* EM4 import analyser (Hoobal admin). */
.em4-check { background: #fff; border-bottom: 1px solid #e3e2dc; padding: 6px 10px; }
.em4-check > summary { cursor: pointer; list-style-position: inside; }
.em4-log { max-height: 16rem; overflow-y: auto; font-family: var(--bs-font-monospace); white-space: pre-wrap; }
.em4-num { width: 6rem; text-align: right; }

/* The settings' quote footer under the quote page's footer text (printed at the foot of every PDF page), its lines kept. */
.quote-page-footer { white-space: pre-line; }

/* Job card: the unit's notes keep their line breaks when the unit details are expanded. */
.unit-notes { white-space: pre-line; }
/* A customer's units as a tree (Units tab, job page): each row indented by how deep it's fitted (--unit-depth, from 0),
   with a line down the left like a folder tree; its buttons wrap under the name on a phone. */
.unit-tree-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 .25rem; border-top: 1px solid #e3e2dc; padding: .25rem 0;
    margin-left: calc(var(--unit-depth, 0) * 1.25rem); padding-left: .5rem; border-left: 2px solid #e3e2dc; }
.unit-tree-name { flex: 1 1 12rem; min-width: 0; }
.unit-tree-buttons { flex: 0 0 auto; white-space: nowrap; margin-left: auto; }
.unit-tree-row.unit-tree-current { background-color: #fff8e1; }
/* A change of owner in a unit's service history: a marker between owners, not work done. */
div.servicehist.servicehist-owner { background-color: #f5f7fa; border-style: dashed; }
.servicehist-owner .title { font-size: 12pt; }

/* Kit categories: the category a dragged one will go inside. */
.kit-cat-drop { outline: 2px dashed #0d6efd; outline-offset: -2px; background-color: #f0f4ff !important; }
/* The kit category tree's open / close arrows (a gap the same width where there's nothing inside), and Expand all / Collapse all. */
.kit-cat-toggle { display: inline-block; width: 1rem; text-align: center; color: #6c757d; cursor: pointer; }
.list-group-item.active .kit-cat-toggle { color: inherit; }
.kit-tree-tools { text-align: right; margin-bottom: 0.25rem; }

/* Platform admin dealer page: notes and contact notes keep their line breaks. */
.dealer-note, .dealer-contact-notes { white-space: pre-line; }

/* Jobs calendar (Pages/Jobs/JobCalendar.razor, FullCalendar 6). EM4's dark buttons; jobs booked in but not
   booked yet are dashed and paler. */
.em-calendar { --fc-button-bg-color: #333333; --fc-button-border-color: #333333; --fc-button-hover-bg-color: #555555; --fc-button-hover-border-color: #555555;
    --fc-button-active-bg-color: #000000; --fc-button-active-border-color: #000000; --fc-today-bg-color: #fffbe0; --fc-now-indicator-color: #dc3545; }
.em-calendar .fc .fc-toolbar-title { font-size: 1.25rem; }
.em-calendar .fc .fc-button { font-size: 0.85rem; padding: 0.3rem 0.6rem; }
.em-calendar .fc-event { cursor: pointer; }
.em-calendar .fc-daygrid-event.em-calendar-unbooked { border-style: dashed; border-width: 2px; opacity: 0.75; }
.em-calendar .fc-list-event.em-calendar-unbooked { opacity: 0.75; }
/* On the calendar page, bookings look like the Jobs to book cards: white, with the status (or engineer) colour down the
   left. FullCalendar gives the whole border that colour, so the other three sides go back to the cards' grey. */
.em-calendar :is(.fc-daygrid-event, .fc-timegrid-event).em-calendar-stripe { border-width: 1px 1px 1px 5px; border-radius: 3px;
    border-top-color: #d5d6d7 !important; border-right-color: #d5d6d7 !important; border-bottom-color: #d5d6d7 !important; }
.em-calendar :is(.fc-daygrid-event, .fc-timegrid-event).em-calendar-stripe:hover { background-color: #f7f7f7 !important; }
.em-calendar .fc-daygrid-event.em-calendar-unbooked.em-calendar-stripe { border-style: dashed dashed dashed solid; border-width: 2px 2px 2px 5px;
    border-top-color: #999999 !important; border-right-color: #999999 !important; border-bottom-color: #999999 !important; }
.em-calendar-dot { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 50%; margin-right: 0.3rem; vertical-align: -0.05rem;
    border: 1px solid #999999; }
.em-calendar-dot-unbooked { background: #ffffff; border: 2px dashed #999999; }
.em-calendar-card { display: inline-block; width: 1rem; height: 0.75rem; margin-right: 0.3rem; vertical-align: -0.05rem; background: #ffffff;
    border: 1px solid #d5d6d7; border-left: 4px solid #999999; border-radius: 2px; }
.em-booking-engineers { max-height: 14rem; overflow-y: auto; border: 1px solid #e5e6e7; padding: 0.4rem 0.6rem; }
@media (max-width: 767.98px) {
    .em-calendar .fc .fc-toolbar { flex-wrap: wrap; gap: 0.4rem; }
}

/* The calendar's "Jobs to book" panel: beside the calendar on a wide screen (staying in view as the page scrolls),
   under it on a narrow one. Each job has its status colour down the left and can be dragged onto the calendar. */
.em-calendar-layout { display: flex; gap: 1rem; align-items: flex-start; }
.em-calendar-layout > .em-calendar { flex: 1 1 auto; min-width: 0; }
.em-calendar-jobs { flex: 0 0 19rem; position: sticky; top: 5rem; max-height: calc(100vh - 6rem); overflow-y: auto; }
.em-calendar-jobs h3 { font-size: 1.1rem; }
.em-cal-job { border: 1px solid #e5e6e7; border-left: 5px solid #999999; border-radius: 3px; padding: 0.35rem 0.5rem; margin-bottom: 0.4rem;
    font-size: 0.85rem; background-color: #ffffff; cursor: grab; }
.em-cal-job:hover { background-color: #f7f7f7; }
@media (max-width: 991.98px) {
    .em-calendar-layout { flex-direction: column; align-items: stretch; }
    .em-calendar-jobs { flex-basis: auto; position: static; max-height: none; }
}

/* A job's calendar pop-up (Pages/Jobs/JobCalendarPopup.razor): this job's bookings stand out from the branch's others,
   and on a phone the pop-up fills the screen wherever the page was scrolled to (EM4's fixed pop-up sat at the top). */
.em-calendar .em-calendar-this-job { font-weight: 600; box-shadow: 0 0 0 2px #0b3d91; }
@media (max-width: 767.98px) {
    .modalform.modalformfixed.em-modal-fill { position: fixed; inset: 0; }
}

/* Supplier invoices (Pages/Purchasing/SupplierInvoices.razor, EM4 PurchaseOrderInvoices.aspx): the invoices down the left,
   the scanned invoice in the middle and the purchase order's parts on the right on a wide screen, the parts under the
   invoice on a smaller one. On a phone the list gives way to the invoice picked (with a button back to it). */
.em-pinv { display: grid; gap: 1rem; align-items: start; grid-template-columns: 16rem minmax(0, 1fr); grid-template-areas: "list doc" "list parts"; }
.em-pinv-list { grid-area: list; position: sticky; top: 5rem; max-height: calc(100vh - 6rem); overflow-y: auto; }
.em-pinv-doc { grid-area: doc; min-width: 0; }
.em-pinv-parts { grid-area: parts; min-width: 0; }
@media (min-width: 1400px) {
    .em-pinv { grid-template-columns: 16rem minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "list doc parts"; }
    .em-pinv-parts { position: sticky; top: 5rem; max-height: calc(100vh - 6rem); overflow-y: auto; }
}
@media (max-width: 991.98px) {
    .em-pinv { grid-template-columns: minmax(0, 1fr); grid-template-areas: "list" "doc" "parts"; }
    .em-pinv-list { position: static; max-height: none; overflow: visible; }
    .em-pinv-open .em-pinv-list { display: none; }
}
/* Each invoice in the list is a white card; the one open is EM4's red (site.css .gridmain .selected). */
.em-pinv-item { display: block; width: 100%; text-align: left; background-color: #ffffff; border: 1px solid #e5e6e7; border-radius: 3px;
    padding: 0.4rem 0.6rem; margin-bottom: 0.4rem; color: inherit; }
.em-pinv-item:hover { background-color: #f7f7f7; }
.em-pinv-item.selected { background-color: #a7141d; border-color: #a7141d; color: #ffffff; }
.em-pinv-item .orderstatus { padding: 1px 6px; font-size: 0.8rem; }
.em-pinv-meta { color: #6c757d; margin-top: 0.2rem; }
.em-pinv-item.selected .em-pinv-meta { color: #f3d5d7; }
.em-pinv-figures { display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; margin-top: 0.6rem; }
/* The scanned invoice fills the rest of the screen under its details (about 22rem with the page heading above them). */
.em-pinv-frame { display: block; width: 100%; height: calc(100vh - 22rem); min-height: 28rem; }
@media (max-width: 991.98px) {
    .em-pinv-frame { height: 75vh; }
}
/* The parts: a table where there's room, otherwise each part's figures on a line under it. */
.em-pinv-partlist { container-type: inline-size; background-color: #ffffff; margin-bottom: 0.5rem; }
.em-pinv-part { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.15rem 0.4rem; padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #dee2e6; font-size: 0.875rem; }
.em-pinv-part > :first-child { grid-column: 1 / -1; }
.em-pinv-part > :not(:first-child) { text-align: right; white-space: nowrap; }
.em-pinv-part-head { background-color: #333333; color: #ffffff; font-weight: 600; font-size: 0.8rem; }
.em-pinv-part-head > :not(:first-child) { white-space: normal; }
.em-pinv-part.goodsreceived a { color: #ffffff; }
@container (min-width: 34rem) {
    .em-pinv-part { grid-template-columns: minmax(0, 1fr) 3rem 4.5rem 5rem 5rem 5.5rem; }
    .em-pinv-part > :first-child { grid-column: auto; }
}

/* ----- Prop Calc (the paid add-on): the iOS app's look inside EM's page. Dark headline panel with copper figures,
   white cards of label / value rows, figures in a monospaced face. ----- */
.em-pc-mono, .em-pc-headline, .em-pc-stat, .em-pc-row strong, .em-pc-list-headline, .em-pc-bars { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
.em-pc-card { background: #ffffff; border: 1px solid rgba(23, 25, 28, .09); border-radius: 6px; margin-bottom: .75rem; }
.em-pc-pad { padding: .85rem 1rem; }
.em-pc-card-title, .em-pc-caption { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8A8E95; }
.em-pc-card-title { padding: .7rem 1rem .2rem; }
.em-pc-caption-light { color: rgba(255, 255, 255, .5); }
.em-pc-heading { font-size: 1.1rem; margin: 0 0 .5rem; }
.em-pc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .5rem 1rem; border-top: 1px solid rgba(23, 25, 28, .07); color: #2A2D32; }
.em-pc-card > .em-pc-row:first-child { border-top: 0; }
.em-pc-row strong { color: #17191C; font-weight: 600; text-align: right; }
.em-pc-muted { color: #8A8E95; }
.em-pc-field { padding: .35rem 1rem .5rem; }
.em-pc-field label { display: block; font-size: .85rem; color: #6B6F76; margin-bottom: .15rem; }
.em-pc-note { font-size: .82rem; color: #6B6F76; margin: .6rem 0 0; }
.em-pc-notes { white-space: pre-line; }
.em-pc-panel { background: #17191C; color: #ffffff; border-radius: 12px; padding: 1.1rem 1.25rem 1.2rem; margin-bottom: .75rem; overflow: hidden;
    background-image: radial-gradient(circle at 105% -10%, transparent 120px, rgba(179, 102, 58, .35) 121px, transparent 123px); }
.em-pc-headline { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; font-size: 2.6rem; font-weight: 600; line-height: 1.1; margin-top: .4rem; }
.em-pc-headline-small { font-size: 1.7rem; }
.em-pc-times { font-size: 1.4rem; font-weight: 400; color: rgba(255, 255, 255, .4); }
.em-pc-unit { font-size: .85rem; font-weight: 400; color: rgba(255, 255, 255, .5); }
.em-pc-copper-lite { color: #E4924F; }
.em-pc-copper { color: #B3663A; }
.em-pc-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.em-pc-chips span { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .75rem; text-transform: uppercase;
    background: rgba(255, 255, 255, .09); color: rgba(255, 255, 255, .82); border-radius: 6px; padding: .3rem .6rem; }
.em-pc-notice { display: flex; gap: .5rem; align-items: baseline; border-radius: 6px; padding: .55rem .8rem; margin-bottom: .75rem; font-size: .9rem; }
.em-pc-notice-alarm { background: rgba(192, 68, 47, .09); color: #C0442F; }
.em-pc-notice-ok { background: rgba(78, 122, 85, .1); color: #4E7A55; }
.em-pc-ok { color: #4E7A55; }
.em-pc-caution { color: #C98A2E; }
.em-pc-alarm { color: #C0442F; }
.em-pc-gauge { position: relative; height: 8px; border-radius: 4px; background: #EDE8DF; margin-top: .75rem; }
.em-pc-gauge-fill { height: 8px; border-radius: 4px; }
.em-pc-gauge-fill.em-pc-ok { background-color: #4E7A55; }
.em-pc-gauge-fill.em-pc-caution { background-color: #C98A2E; }
.em-pc-gauge-fill.em-pc-alarm { background-color: #C0442F; }
.em-pc-gauge-limit { position: absolute; top: -3px; width: 2px; height: 14px; background: rgba(23, 25, 28, .3); }
.em-pc-scale { font-size: .72rem; color: #8A8E95; margin-top: .5rem; text-transform: uppercase; letter-spacing: .04em; }
.em-pc-stat { font-size: 1.9rem; font-weight: 600; line-height: 1.2; margin-top: .3rem; color: #17191C; }
.em-pc-stat.em-pc-copper { color: #B3663A; }
.em-pc-stat small { font-size: .8rem; font-weight: 400; color: #8A8E95; }
.em-pc-bars { display: flex; align-items: flex-end; gap: .4rem; height: 9rem; margin-top: .8rem; }
.em-pc-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.em-pc-bar-fill { width: 100%; border-radius: 4px; background: rgba(23, 25, 28, .14); }
.em-pc-bar-fill.em-pc-bar-full { background: #B3663A; }
.em-pc-bar-speed { font-size: .7rem; color: #6B6F76; margin-top: .3rem; }
.em-pc-bar-hp { font-size: .65rem; color: #A0A4AB; }
.em-pc-drawing { width: 128px; height: 128px; flex: none; }
.em-pc-disc { fill: none; stroke: rgba(23, 25, 28, .1); stroke-dasharray: 4 5; }
.em-pc-blade { fill: rgba(179, 102, 58, .75); stroke: #B3663A; stroke-width: 1; }
.em-pc-hub { fill: #17191C; stroke: #E4924F; stroke-width: 1; }
.em-pc-spin { transform-origin: 110px 110px; animation: em-pc-turn 2s linear infinite; }
@keyframes em-pc-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .em-pc-spin { animation: none; } }
.em-pc-constraints { display: flex; width: 100%; justify-content: space-between; align-items: center; background: none; border: 0;
    padding: .7rem 1rem; color: #4A4E55; font-weight: 500; text-align: left; }
.em-pc-jet-head { padding: .7rem 1rem .5rem; }
.em-pc-tag { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .7rem; border-radius: 4px; padding: .15rem .45rem; }
.em-pc-tag.em-pc-caution { background: rgba(201, 138, 46, .1); }
.em-pc-tag.em-pc-alarm { background: rgba(192, 68, 47, .1); }
.em-pc-ruled-out { opacity: .5; }
.em-pc-saved { background: #ffffff; border-left: 4px solid #B3663A; padding: .6rem .9rem; margin: .5rem 0 1rem; }
.em-pc-list-headline { font-size: 1.15rem; font-weight: 600; color: #B3663A; }
.em-pc-help dt { font-weight: 600; }
.em-pc-help dd { color: #6B6F76; margin-bottom: .6rem; }
@media (max-width: 575.98px) {
    .em-pc-headline { font-size: 2.1rem; }
}
.em-pc-disclaimer { display: flex; gap: .5rem; align-items: baseline; background: #fff8e6; border: 1px solid #C98A2E; border-radius: 6px;
    color: #6b4a12; padding: .55rem .8rem; margin: .5rem 0 1rem; font-size: .9rem; font-weight: 500; }
.em-pc-disclaimer i { color: #C98A2E; }

/* ----- Admin → Document Layouts → labels (Pages/Admin/Layouts/LabelLineList) ----- */
.label-text { width: 9.5rem; }

/* ----- A small status badge (EM4 .orderstatus, less padding), e.g. the stock page's last stock take ----- */
.orderstatus.orderstatus-sm { padding: 1px 6px; font-size: .75rem; line-height: 1.4; vertical-align: middle; }

/* ----- The stock page's tabs (Pages/Stock/StockDetails): all on white, so its panels are white on phones too ----- */
.stock-tabs .inner { background-color: #fff; }

/* A location's Adjust and Move are one button group (James, 27 Oct 2026): side by side where the column has room,
   stacked and still joined where it doesn't (laptop widths, where the stock levels are narrow). */
.stock-level-actions { container-type: inline-size; }
@container (max-width: 6.75rem) {
    .stock-level-actions .btn-group { flex-direction: column; align-items: stretch; }
    .stock-level-actions .btn-group > .btn.btn:not(:last-child) { border-radius: var(--bs-btn-border-radius) var(--bs-btn-border-radius) 0 0; }
    .stock-level-actions .btn-group > .btn.btn:not(:first-child) {
        border-radius: 0 0 var(--bs-btn-border-radius) var(--bs-btn-border-radius);
        margin-left: 0;
        margin-top: calc(-1 * var(--bs-border-width));
    }
}

/* ----- A message from the print preview's Email, wherever the page (Shared/DocumentEmailFromPreview) ----- */
.em-toast { position: fixed; top: 70px; right: 16px; left: 16px; z-index: 3000; max-width: 460px; margin-left: auto; }

/* Shared/HtmlEditor: the editable box and the colour button (James, 19 Oct 2026). */
.em-html-area { min-height: 10rem; max-height: 24rem; overflow-y: auto; }
.em-html-area img { max-width: 100%; }
.em-html-colour { width: 1.4rem; height: 1.1rem; padding: 0; border: 0; background: none; vertical-align: middle; cursor: pointer; }
/* The sender's email signature under an email pop-up's message, looking as it will in the email (Shared/EmailSignaturePreview). */
.em-email-signature { font-family: Arial, sans-serif; font-size: 10pt; background: #fff; max-height: 12rem; overflow: auto; }
.em-email-signature img { max-width: 100%; height: auto; }
/* A pop-up opened from another pop-up (Shared/EmailContactsPicker): on top of it, and its background dims the one beneath. */
.modalform.em-modal-over { z-index: 2800; }
.modalform.em-modal-over + .modalbg { z-index: 2700; }
/* Layout/TopBar on phones: the branch button takes what the rest of the bar leaves and its name is cut short to fit, so Logout
   stays on screen. The min-widths let each level shrink; the name is the span so the dropdown's arrow stays. */
@media (max-width: 767.98px) {
    .navbar-expand > .navbar-nav, .branch-switch, .branch-switch .dropdown { min-width: 0; }
    .branch-switch .btn-plain { display: flex; align-items: center; gap: .25rem; max-width: 100%; padding-left: .25rem; padding-right: .25rem; }
    .branch-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* MRP month by month (James, 23 Nov 2026): the part column stays put while the months scroll across. */
.em-months th:first-child, .em-months td:first-child { position: sticky; left: 0; z-index: 1; background-color: var(--bs-body-bg); min-width: 12rem; }
.em-months td { vertical-align: top; }
.em-months-moves { font-size: .75em; }
