h1:focus {
    outline: none;
}

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

.invalid {
    outline: 1px solid var(--destructive);
}

.validation-message {
    color: var(--destructive);
}

.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;
}
/* Manrope, served from the portal itself (#1220): a call to Google Fonts would tell Google who opens the
   portal and when. The files are @fontsource-variable/manrope 5.3.0, Latin and Latin Extended only,
   under the SIL Open Font License (fonts/manrope/OFL.txt). */
@font-face {
    font-family: "Manrope Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url(/fonts/manrope/manrope-latin-ext-wght-normal.woff2) format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Manrope Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url(/fonts/manrope/manrope-latin-wght-normal.woff2) format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The portal's colours (#1220): dark only, from the portal design guide Troy approved on 2026-10-18
   (business-os docs/PORTAL-DESIGN.md, section 1); use these, never a new colour. Blazor Blueprint reads
   the same names. Both selectors outrank the kit's own palettes ([data-base-color="zinc"] and its
   .dark), so these win whichever stylesheet loads last. */
:root[data-base-color],
:root[data-base-color].dark {
    color-scheme: dark;
    --background: #081329;
    --foreground: #E8EEF8;
    --card: #0C1C3D;
    --card-foreground: #E8EEF8;
    --popover: #0C1C3D;
    --popover-foreground: #E8EEF8;
    --secondary: #13285A;
    --secondary-foreground: #E8EEF8;
    --accent: #13285A;
    --accent-foreground: #E8EEF8;
    --muted: #13285A;
    --muted-foreground: #93A4C4;
    --selected: #103E91;
    --border: #1C3368;
    --input: #5A78B8;
    --primary: #F2B632;
    --primary-foreground: #2A1E05;
    --ring: #F2B632;
    --status-ok: #5BC28A;
    --status-warning: #F2B632;
    --destructive: #E58A6B;
    --destructive-foreground: #081329;
    --chart-1: #F2B632;
    --chart-2: #5A78B8;
    --chart-3: #5BC28A;
    --chart-4: #93A4C4;
    --chart-5: #E58A6B;
    --sidebar: #0C1C3D;
    --sidebar-foreground: #E8EEF8;
    --sidebar-primary: #103E91;
    --sidebar-primary-foreground: #E8EEF8;
    --sidebar-accent: #13285A;
    --sidebar-accent-foreground: #E8EEF8;
    --sidebar-border: #1C3368;
    --sidebar-ring: #F2B632;
    --font-sans: "Manrope Variable", ui-sans-serif, system-ui, sans-serif;
    /* Panels 12px; the kit makes buttons and boxes 0.8 of it and badges 0.6 (guide, section 2a).
       ThemeService writes the same value inline on <html> (Program.cs, DefaultRadius). */
    --radius: 0.75rem;
}

/* Paper is white: a printed page (a commission statement, the executive report) is black on white. */
@media print {
    :root[data-base-color],
    :root[data-base-color].dark {
        color-scheme: light;
        --background: #FFFFFF;
        --foreground: #000000;
        --card: #FFFFFF;
        --card-foreground: #000000;
        --muted: #FFFFFF;
        --muted-foreground: #000000;
        --border: #000000;
    }
}

body {
    font-size: 14px;
}

/* Everything reachable by Tab shows the amber outline (guide, section 5). The kit's own controls draw theirs. */
:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

/* The portal's own layout. Plain CSS: there is no Tailwind build in this
   project, and Blazor Blueprint's stylesheet only carries its bb:-prefixed
   utilities, so standard utility class names would match nothing. */
.oms-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

/* Signed-in pages (#1220, guide section 3): the side menu, 232px, beside the work area. */
.oms-shell:has(.oms-menu) {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}

.oms-menu {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 12px;
    background: var(--card);
    border-right: 1px solid var(--border);
}

.oms-brand {
    padding: 0 12px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--foreground);
}

.oms-brand span {
    color: var(--primary);
}

/* Shown only below 1024px wide, where the menu collapses to it. */
.oms-menu-button {
    display: none;
}

.oms-menu-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.oms-menu-group {
    display: flex;
    flex-direction: column;
}

.oms-menu-label {
    margin: 0;
    padding: 0 12px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted-foreground);
}

.oms-menu-item {
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    color: var(--foreground);
}

.oms-menu-item:hover {
    background: var(--secondary);
}

/* The selected item: filled with the logo blue, an amber bar on its left edge. */
.oms-menu-item[aria-current="page"] {
    background: var(--selected);
    box-shadow: inset 3px 0 0 var(--primary);
}

/* The signed-in person and their role, at the bottom, with Sign out to their right (as in the reference) so it no
   longer crowds My profile. */
.oms-me {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted-foreground);
}

.oms-me-who {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.oms-me-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--foreground);
    overflow-wrap: anywhere;
}

.oms-me-actions {
    flex-shrink: 0;
}

.oms-links a {
    color: inherit;
}

.oms-me-who a {
    color: var(--foreground);
}

.oms-sign-out {
    margin: 0;
}

.oms-main {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Signed in, pages start at the left of the work area, as in the reference, not centred in it (#1221). */
.oms-shell:has(.oms-menu) .oms-main {
    justify-content: flex-start;
}

/* The work area: 24px top and bottom, 36px left and right (guide, section 2a). It is as tall as the menu, so a
   card keeps its own height rather than stretching to the bottom of the window. */
.oms-shell:has(.oms-menu) .oms-main {
    align-items: flex-start;
    padding: 24px 36px;
}

/* Below 1024px the menu collapses to a button over the page (guide, section 3). */
@media (max-width: 1023.98px) {
    .oms-shell:has(.oms-menu) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
    }

    .oms-menu {
        z-index: 10;
        height: auto;
        max-height: 100vh;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .oms-menu-button {
        display: inline-flex;
    }

    .oms-menu-body {
        display: none;
        flex-basis: 100%;
    }

    .oms-menu-open .oms-menu-body {
        display: flex;
    }

    .oms-shell:has(.oms-menu) .oms-main {
        padding: 16px;
    }
}

.oms-card {
    max-width: 32rem;
    width: 100%;
}

.oms-card.oms-wide {
    max-width: 64rem;
}

.oms-providers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.oms-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.oms-form > div {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.oms-invite {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
}

.oms-select {
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid var(--input, var(--border));
    border-radius: var(--radius);
    background: var(--background);
    color: inherit;
}

.oms-table {
    width: 100%;
    border-collapse: collapse;
}

.oms-table th, .oms-table td {
    text-align: left;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.oms-list, .oms-links {
    padding-left: 1.25rem;
}

.oms-muted {
    color: var(--muted-foreground);
}

/* Sourcing screen (#758) */
.oms-section { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.oms-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1rem; margin: 0; }
.oms-facts dt { font-weight: 600; }
.oms-facts dd { margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.oms-note { color: var(--muted-foreground, #555); margin: 0 0 0.5rem; }

/* Next prospect and the prospect card (#744) */
.oms-prospect-name { font-size: 1.5rem; font-weight: 600; margin: 0 0 0.5rem; }
.oms-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }
.oms-prospect-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 0 2rem; }
.oms-phones { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.oms-phone-number { font-size: 1.25rem; font-weight: 600; margin-right: 0.5rem; }
.oms-phone-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; margin-top: 0.25rem; font-size: 0.9rem; }
.oms-bad .oms-phone-number { text-decoration: line-through; color: var(--muted-foreground); }
/* Google's attribution rules: the logo 16 to 19 px high, 10 px clear on the left, right and top, 5 px below. */
.oms-attribution { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.875rem; color: var(--muted-foreground); margin: 0.75rem 0; }
.oms-attribution img { height: 18px; width: auto; margin: 10px 10px 5px 0; }
.oms-map { width: 100%; height: 16rem; border: 0; border-radius: var(--radius); margin-top: 1.5rem; }
.oms-map-none { display: flex; align-items: center; justify-content: center; background: var(--muted, #f4f4f5); color: var(--muted-foreground); text-align: center; padding: 1rem; height: auto; min-height: 6rem; }
.oms-opening p { margin: 0 0 0.5rem; }
.oms-reasons ul { margin: 0 0 0.5rem; padding-left: 1.25rem; }
.oms-reason-line { font-weight: 500; margin: 0 0 0.5rem; }
.oms-history { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.oms-history li { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
.oms-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1.5rem; }
.oms-prospect a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.oms-prospect a:hover { text-decoration-thickness: 2px; }
.oms-prospect dd, .oms-history li { overflow-wrap: anywhere; }

/* Recording a call (#745) */
.oms-record { margin-top: 0.4rem; }
.oms-steps { margin: 0 0 1rem; padding-left: 1.5rem; list-style: decimal; }
.oms-steps li { margin: 0.25rem 0; }
.oms-call-note { margin-left: 0.5rem; }
.oms-hang-up { font: inherit; padding: 0.25rem 0.75rem; border: 1px solid currentColor; border-radius: 0.375rem; background: transparent; cursor: pointer; }
.oms-outcomes { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; margin-top: 1rem; }
.oms-outcomes p { margin: 0 0 0.5rem; }
.oms-decision-maker { margin: 0.75rem 0; }
.oms-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.oms-note-form { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.oms-note-form textarea { width: 100%; }
.oms-edit-grid { display: grid; grid-template-columns: max-content minmax(0, 24rem); gap: 0.5rem 1rem; align-items: center; margin-bottom: 0.75rem; }
@media (max-width: 40rem) { .oms-edit-grid { grid-template-columns: 1fr; } }

/* The board (#746): six columns side by side, scrolled sideways on a narrow screen. */
.oms-card.oms-full { max-width: 96rem; }
.oms-board { display: grid; grid-template-columns: repeat(6, minmax(11rem, 1fr)); gap: 0.75rem; overflow-x: auto; margin-top: 1.5rem; padding-bottom: 0.5rem; }
.oms-column { background: var(--muted, #f4f4f5); border-radius: var(--radius); padding: 0.6rem; display: flex; flex-direction: column; gap: 0.5rem; min-height: 8rem; }
.oms-column-head { font-size: 0.95rem; font-weight: 600; margin: 0 0 0.25rem; display: flex; justify-content: space-between; }
.oms-board-card { background: var(--background, #fff); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; font-size: 0.875rem; overflow-wrap: anywhere; }
.oms-board-card.oms-expiring { border-color: var(--status-warning); }
.oms-board-name { font-weight: 600; font-size: 0.95rem; color: inherit; }
a.oms-board-name { text-decoration: underline; text-underline-offset: 3px; }
.oms-reassign { margin-top: 0.25rem; }
.oms-reassign .oms-select { max-width: 9rem; }
.oms-due { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.oms-due li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; }
.oms-due a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.oms-due-time { font-variant-numeric: tabular-nums; min-width: 9.5rem; }
.oms-overdue .oms-due-time { font-weight: 600; }

/* The prospects screen (#747): filters in a wrapping grid, a wide table scrolled sideways on a phone. */
.oms-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.75rem 1rem; align-items: end; margin-bottom: 1rem; }
.oms-filters > div { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }
.oms-filters .oms-select { width: 100%; }
.oms-filter-buttons { flex-direction: row !important; gap: 0.5rem; }
.oms-result-bar { justify-content: space-between; margin: 0.5rem 0 1rem; }
.oms-link { text-decoration: underline; text-underline-offset: 3px; color: inherit; }
.oms-bulk { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.25rem 1rem 1rem; margin-bottom: 1rem; }
.oms-bulk .oms-section { margin-top: 0.75rem; }
.oms-confirm { display: flex; flex-direction: column; gap: 0.5rem; max-width: 40rem; }
.oms-confirm p { margin: 0; }
.oms-scroll { overflow-x: auto; }
.oms-prospect-table { font-size: 0.9rem; }
.oms-import-counts { margin-bottom: 1rem; }

/* The personal signup link on the board (#749): a long address must wrap on a phone. */
.oms-signup-link a {
    overflow-wrap: anywhere;
    font-weight: 600;
}

/* Email templates (#750) */
.oms-template-body { white-space: pre-wrap; font-family: inherit; background: var(--muted, #f4f4f5); padding: 0.75rem; border-radius: 0.375rem; }

/* Agent statistics (#754). Figures are links to the lists behind them; numbers line up in columns. */
.oms-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.oms-stats th[scope="col"], .oms-stats td { text-align: right; font-variant-numeric: tabular-nums; }
.oms-stats th[scope="row"] { font-weight: 500; white-space: nowrap; }
.oms-period { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted-foreground, #555); }
.oms-figure { color: inherit; text-decoration: underline; text-decoration-color: var(--border, #ccc); text-underline-offset: 3px; }
.oms-figure:hover, .oms-figure:focus-visible { text-decoration-color: currentColor; }
.oms-hours { max-width: 24rem; }
.oms-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.75rem; }
.oms-tile { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); color: inherit; text-decoration: none; }
.oms-tile:hover, .oms-tile:focus-visible { border-color: currentColor; }
.oms-tile-label { font-size: 0.875rem; }
.oms-tile-value { font-size: 1.5rem; font-weight: 600; }
.oms-subsection { font-size: 0.95rem; font-weight: 600; margin: 1rem 0 0.4rem; }
.oms-drill-value { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.5rem; }
.oms-drill .oms-when { white-space: nowrap; font-variant-numeric: tabular-nums; }
.oms-chart { margin: 0 0 1rem; max-width: 48rem; }
.oms-chart-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.25rem; }
.oms-chart svg { width: 100%; height: auto; display: block; flex: 0 0 auto; }
/* On a phone the chart keeps a readable size and scrolls; row-reverse starts it at today, the right end. */
.oms-chart-scroll { display: flex; flex-direction: row-reverse; overflow-x: auto; }
@media (max-width: 40rem) {
    .oms-chart svg { min-width: 34rem; }
    .oms-stats { font-size: 0.8125rem; }
    .oms-stats th, .oms-stats td { padding: 0.4rem 0.25rem; }
    .oms-stats th[scope="row"] { white-space: normal; padding-left: 0; }
    .oms-period { font-size: 0.7rem; }
}
.oms-nowrap { white-space: nowrap; }
.oms-chart-bar { fill: var(--chart-1); }
.oms-chart-hit { fill: transparent; }
.oms-chart a:hover .oms-chart-hit, .oms-chart a:focus-visible .oms-chart-hit { fill: var(--secondary); }
.oms-chart-grid { stroke: var(--border); stroke-width: 1; }
.oms-chart-base { stroke: var(--input); stroke-width: 1; }
.oms-chart-axis { font-size: 11px; fill: var(--muted-foreground, #555); }
.oms-chart-hatch { stroke: var(--input); stroke-width: 1.5; }
.oms-chart-table { margin-bottom: 1rem; }
.oms-chart-table summary { cursor: pointer; }

/* #751: the consent script the agent reads aloud, and its tick box. */
.oms-script { margin: 0; padding: 0.5rem 0.75rem; border-left: 3px solid var(--border, #d4d4d8); font-style: italic; }
.oms-check { display: flex; gap: 0.5rem; align-items: center; }

/* Commission ledger and statements (#752) */
.oms-money .oms-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.oms-money tfoot th, .oms-money tfoot td { font-weight: 600; }
.oms-money .oms-terms { font-size: 0.8rem; color: var(--muted-foreground, #555); max-width: 18rem; }
.oms-statement { max-width: 72rem; margin: 0 auto; }
.oms-statement-head { margin-bottom: 1rem; }
.oms-statement-head h1 { font-size: 1.5rem; font-weight: 600; margin: 0 0 0.75rem; }
.oms-statement-company { margin: 0; font-weight: 600; letter-spacing: 0.02em; color: var(--muted-foreground, #555); }
.oms-statement-summary .oms-facts dd { justify-content: flex-start; font-variant-numeric: tabular-nums; }
.oms-print { padding: 0.25rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--background); color: inherit; cursor: pointer; }
@media print {
    .oms-menu, .oms-noprint, .oms-print { display: none !important; }
    /* With the menu hidden, the page would fall into the menu's 232px column. */
    .oms-shell:has(.oms-menu) { display: block; }
    .oms-main { padding: 0 !important; }
    .oms-statement { max-width: none; }
    .oms-statement .oms-scroll { overflow: visible; }
    .oms-statement .oms-table th, .oms-statement .oms-table td { padding: 0.25rem 0.4rem; font-size: 9pt; }
    .oms-statement a { color: inherit; text-decoration: none; }
}

/* Replies to an agent's emails on the board (#804): the person's own words, line breaks kept. */
.oms-replies { list-style: none; padding: 0; margin: 0 0 1rem; }
.oms-replies li { padding: 0.5rem 0; border-bottom: 1px solid var(--border, #e5e7eb); }
.oms-reply-words { white-space: pre-line; margin: 0.25rem 0 0; }
.oms-history .oms-reply-words { flex-basis: 100%; margin: 0; }

/* The team page (#755): a period picker, a wide sortable table scrolled sideways, the outcome mix, a heat map and a feed. */
.oms-team-period { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; margin-bottom: 0.5rem; }
.oms-presets { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.oms-preset { padding: 4px 12px; border: 1px solid var(--input); border-radius: 8px; color: inherit; text-decoration: none; font-size: 13px; line-height: 22px; }
/* The chosen period, filled with the logo blue as in the reference. */
.oms-preset[aria-current="page"] { background: var(--selected); color: var(--foreground); border-color: var(--selected); }
.oms-range { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.875rem; }
.oms-range input { padding: 0.15rem 0.3rem; border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); font: inherit; }
.oms-team-showing { display: flex; flex-wrap: wrap; gap: 1rem; align-items: baseline; }
.oms-team th[scope="col"] { vertical-align: bottom; }
.oms-team .oms-team-name, .oms-mix .oms-team-name { text-align: left; position: sticky; left: 0; background: var(--card, #fff); }
.oms-sort { color: inherit; text-decoration: none; }
.oms-sort:hover, .oms-sort:focus-visible { text-decoration: underline; }
.oms-team tfoot th, .oms-team tfoot td, .oms-mix tfoot th, .oms-mix tfoot td { font-weight: 600; border-top: 2px solid var(--border); }
.oms-far { background: var(--secondary); }
.oms-mark { display: block; font-size: 0.75rem; font-weight: 600; color: var(--status-warning); white-space: nowrap; }
.oms-heat td { text-align: center; font-variant-numeric: tabular-nums; font-size: 0.8rem; min-width: 4.5rem; border: 1px solid var(--card); }
.oms-heat th[scope="row"] { text-align: left; }
/* Dark to light through the guide's blues; the busiest cells in amber, the charts' main colour (guide, section 2a). */
.oms-heat-0 { background: var(--background); }
.oms-heat-1 { background: var(--secondary); }
.oms-heat-2 { background: var(--border); }
.oms-heat-3 { background: var(--selected); }
.oms-heat-4 { background: var(--chart-1); color: var(--primary-foreground); }
.oms-heat-key { display: inline-block; padding: 0 0.4rem; margin: 0 0.15rem; border-radius: 3px; }
.oms-team td[data-figure="time_to_first_call"] { min-width: 8.5rem; }
.oms-feed { list-style: none; padding: 0; margin: 0.5rem 0 0; font-size: 0.875rem; }
.oms-feed li { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; padding: 0.35rem 0; border-bottom: 1px solid var(--border, #e5e7eb); }
.oms-feed .oms-when { min-width: 9.5rem; font-variant-numeric: tabular-nums; color: var(--muted-foreground, #555); }
.oms-feed-who { font-weight: 600; min-width: 7rem; }

/* Compliance (#757): a red line should never happen; amber is not measured. */
.oms-red { color: var(--destructive); font-weight: 600; }
.oms-red-row td { background: var(--secondary); }
.oms-clean { color: var(--status-ok); font-weight: 600; }
.oms-amber { color: var(--status-warning); font-weight: 600; }
.oms-checks th { text-align: left; font-weight: normal; }
.oms-block { margin-top: 1.5rem; }
.oms-block h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.oms-block h3 { font-size: 1rem; margin: 0.75rem 0 0.25rem; }
.oms-lookup { max-width: 32rem; }
.oms-lookup-business { margin-top: 1rem; }

/* The executive page (#756): headline tiles with the period before, a funnel with a bar per step, small tables side by side. */
.oms-tile-before { font-size: 0.8rem; color: var(--muted-foreground, #555); }
.oms-funnel .oms-funnel-bar-cell { width: 12rem; min-width: 6rem; text-align: left; }
.oms-funnel-bar { display: block; height: 0.75rem; background: var(--chart-1); border-radius: 2px; min-width: 1px; }
.oms-funnel tr.oms-weakest th, .oms-funnel tr.oms-weakest td { background: var(--secondary); }
.oms-exec-cuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.75rem 1.5rem; align-items: start; }
.oms-exec-cuts .oms-table { width: 100%; }
@media print {
    .oms-exec .oms-scroll { overflow: visible; }
    .oms-exec .oms-table th, .oms-exec .oms-table td { padding: 0.2rem 0.4rem; font-size: 9pt; }
    .oms-exec .oms-funnel-bar { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .oms-exec .oms-exec-cuts { display: block; }
    .oms-exec .oms-exec-cuts .oms-table { margin-bottom: 0.5rem; break-inside: avoid; }
}

/* --- Pages in the approved look (#1221; business-os docs/PORTAL-DESIGN.md, sections 2 to 5) ------------------------ */

/* A menu item's count: "this many need you"; red when it is a failing check. */
.oms-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.oms-badge {
    min-width: 24px;
    padding: 0 8px;
    border-radius: 8px;
    background: var(--selected);
    color: var(--foreground);
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.oms-badge-red {
    background: var(--destructive);
    color: var(--primary-foreground);
}

/* A page: its title and one line of purpose, the one amber action at the top right, then its panels. */
.oms-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 1136px;
}

.oms-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.oms-head h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
}

.oms-lede {
    margin: 8px 0 0;
    font-size: 15px;
    color: var(--muted-foreground);
    max-width: 80ch;
}

/* The one amber action on a screen (guide, section 4), and the outlined buttons beside everything else. Both are links
   when they go somewhere, so they open in a new tab like any link. */
.oms-action,
.oms-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.oms-action {
    padding: 12px 24px;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 15px;
}

.oms-action:hover {
    filter: brightness(1.08);
}

.oms-button {
    padding: 4px 12px;
    border: 1px solid var(--input);
    color: var(--foreground);
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
}

.oms-button:hover {
    background: var(--secondary);
}

.oms-panel {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
}

.oms-panel-alert {
    border-color: var(--destructive);
}

.oms-panel h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.oms-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.oms-panel-note {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--muted-foreground);
}

.oms-quiet-link {
    font-size: 13px;
    color: var(--muted-foreground);
}

/* Rows of things to act on: a mark or a time, what it is, and its one button. */
.oms-rows {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.oms-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.oms-row-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.oms-row-text span {
    font-size: 14px;
    color: var(--muted-foreground);
}

.oms-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
}

.oms-dot-red { background: var(--destructive); }
.oms-dot-amber { background: var(--status-warning); }

.oms-time {
    width: 72px;
    flex-shrink: 0;
    font-weight: 700;
    color: var(--status-warning);
    font-variant-numeric: tabular-nums;
}

.oms-time.oms-late { color: var(--destructive); }

.oms-more summary {
    width: fit-content;
    margin-top: 8px;
    list-style: none;
}

.oms-more summary::-webkit-details-marker { display: none; }

.oms-more ul {
    margin: 12px 0 0;
    padding-left: 16px;
    font-size: 14px;
    color: var(--muted-foreground);
}

/* Two columns at most (guide, section 3): the main list, and a narrower stack of figures beside it. */
.oms-split {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 24px;
    align-items: start;
}

.oms-split > :only-child { grid-column: 1 / -1; }

.oms-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Headline numbers: label above, figure below. */
.oms-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    margin: 16px 0 0;
}

.oms-numbers dt {
    font-size: 13px;
    color: var(--muted-foreground);
}

.oms-numbers dd {
    margin: 4px 0 0;
    font-size: 24px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.oms-revenue {
    margin: 8px 0 0;
    font-size: 32px;
    font-weight: 800;
    color: var(--status-ok);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1023.98px) {
    .oms-head { flex-direction: column; }
    .oms-split { grid-template-columns: minmax(0, 1fr); }
}

/* The calling screen (#1221, reference-calling-screen.png): the card, and how the call went in a 340px panel on the right. */
.oms-page-call { max-width: none; }

.oms-status {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    margin: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.oms-status dt { font-size: 13px; color: var(--muted-foreground); }
.oms-status dd { margin: 4px 0 0; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }

.oms-crumb { margin: 0; font-size: 14px; color: var(--muted-foreground); }
.oms-crumb a { color: var(--foreground); }
.oms-page-body { display: flex; flex-direction: column; gap: 16px; }

.oms-next-empty { max-width: 560px; }
.oms-next-empty .oms-note { margin-top: 12px; }
.oms-next-empty button { margin-top: 16px; }

.oms-call {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.oms-call.oms-call-view { grid-template-columns: minmax(0, 1fr); }

.oms-call-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.oms-call-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.oms-call-head .oms-prospect-name { margin: 0; font-size: 34px; font-weight: 800; line-height: 1.2; }
.oms-call-meta { margin: 8px 0 0; font-size: 15px; color: var(--muted-foreground); }
.oms-call-meta strong { color: var(--foreground); }
.oms-call-head .oms-badges { margin: 12px 0 0; }

/* The score; its workings are its hover, and in full under "More about this business". */
.oms-score { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; cursor: help; }
.oms-score strong { font-size: 32px; font-weight: 800; color: var(--status-ok); font-variant-numeric: tabular-nums; line-height: 1; }
.oms-score span { margin-top: 4px; font-size: 13px; color: var(--muted-foreground); }
.oms-score-none strong { font-size: 17px; color: var(--muted-foreground); }

.oms-phone-panel .oms-phones li { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.oms-phone-panel .oms-phone-number { font-size: 26px; font-weight: 800; text-decoration: none; font-variant-numeric: tabular-nums; }
.oms-phone-panel .oms-phone-facts { font-size: 13px; color: var(--muted-foreground); }
.oms-phone-buttons { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.oms-phone-buttons .oms-record { margin-top: 0; }
.oms-prospect a.oms-action { text-decoration: none; }
.oms-phone-panel .oms-attribution { margin: 12px 0 0; }

.oms-call-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

/* A section label (guide, section 2): 13px, weight 600, the secondary colour, sentence case. */
.oms-label { display: block; margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--muted-foreground); }
.oms-opener { font-size: 17px; line-height: 1.5; }

/* What folds away until opened: the map, the score's workings, the signup link. */
.oms-fold { padding: 16px 24px; }
.oms-fold summary { cursor: pointer; font-weight: 600; }
.oms-fold-body { margin-top: 16px; }
.oms-fold .oms-map { margin-top: 0; }

/* How did the call go: outcome buttons down the right, each with its key. */
.oms-call-side {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
}

.oms-call-side h3 { margin: 0; font-size: 17px; font-weight: 700; }
.oms-call-side .oms-outcomes { margin: 0; padding: 0; border: 0; }
.oms-call-side .oms-actions { margin-top: 0; padding-top: 16px; border-top: 1px solid var(--border); }

.oms-outcome-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.oms-outcome-list hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--border); }

.oms-outcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--secondary);
    color: var(--foreground);
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.oms-outcome:hover { border-color: var(--input); }
.oms-outcome-good { color: var(--status-ok); }
.oms-outcome-stop { color: var(--destructive); }

kbd {
    min-width: 20px;
    padding: 0 4px;
    border: 1px solid var(--input);
    border-radius: 4px;
    font: inherit;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    color: var(--muted-foreground);
}

button kbd { margin-left: 8px; }

@media (max-width: 1279.98px) {
    .oms-call { grid-template-columns: minmax(0, 1fr); }
    .oms-call-side { position: static; }
}

/* Team (#1221, reference-team.png): four headline numbers, the table, a chosen row's other figures beside it. */
.oms-page-wide { max-width: 1400px; }

.oms-head .oms-presets { align-items: center; justify-content: flex-end; }
.oms-pick { position: relative; }
.oms-pick summary { list-style: none; cursor: pointer; }
.oms-pick summary::-webkit-details-marker { display: none; }
.oms-pick[open] .oms-range {
    position: absolute;
    right: 0;
    z-index: 5;
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--popover);
    white-space: nowrap;
}

.oms-tiles-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.oms-headline { display: flex; flex-direction: column; gap: 4px; padding: 16px 24px; }
.oms-headline .oms-label { margin: 0; }
.oms-headline strong { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.oms-headline span:last-child:not(.oms-label) { font-size: 13px; color: var(--muted-foreground); }
.oms-headline .oms-clean { color: var(--status-ok); font-weight: 400; }

.oms-team-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.oms-team-split .oms-team { margin-top: 16px; }
/* Body cells never wrap (guide, section 4a); a long heading may, onto two lines, so all seven columns fit at 1280. */
.oms-team-split .oms-team td, .oms-team-split .oms-team tbody th { white-space: nowrap; padding: 8px 8px; }
.oms-team-split .oms-team thead th { white-space: normal; padding: 8px 8px; vertical-align: bottom; }
.oms-team-split .oms-team th.oms-team-name { text-align: left; }

.oms-row-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--foreground);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.oms-row-button:hover { text-decoration: underline; }
/* The whole row picks itself (#2198, the design guide's "the whole row clickable"). The name button inside holds no click handler:
   its click, by keyboard or mouse, reaches the row's, so a pick runs once. The button is the row's tab stop for picking it; a group
   with a Facebook address has a second one after it, the icon link (#2204), which opens Facebook and picks nothing. */
.oms-row-pick { cursor: pointer; }
.oms-team tr.oms-chosen th, .oms-team tr.oms-chosen td { background: var(--selected); }
.oms-team tr.oms-chosen th { box-shadow: inset 3px 0 0 var(--primary); }

.oms-panel-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14px; }
.oms-panel-table th, .oms-panel-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.oms-panel-table th { font-weight: 400; text-align: left; color: var(--muted-foreground); }
.oms-panel-table td { text-align: right; font-variant-numeric: tabular-nums; }

.oms-how { margin-top: 12px; }
.oms-how summary { width: fit-content; font-size: 13px; color: var(--muted-foreground); text-decoration: underline; cursor: pointer; list-style: none; }
.oms-how summary::-webkit-details-marker { display: none; }
.oms-how .oms-note { margin-top: 8px; max-width: 80ch; }

/* Below 1440 the chosen agent's panel goes under the table, so all seven columns stay in sight. */
@media (max-width: 1439.98px) {
    .oms-team-split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1279.98px) {
    .oms-tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* A long name is cut with an ellipsis (its full text is the button's hover) rather than pushing a column out of sight. */
.oms-team-split .oms-team .oms-row-button { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oms-agent-panel .oms-panel-head { flex-wrap: wrap; }
.oms-agent-panel h2 { overflow-wrap: anywhere; }

/* Compliance (#1221, reference-compliance.png): the six checks with a mark each, a failing one's newest records below. */
.oms-head .oms-lookup { flex-wrap: nowrap; }
.oms-head .oms-lookup button { white-space: nowrap; }
.oms-head .oms-lookup input { width: 340px; }
.oms-checks { margin-top: 8px; }
.oms-checks th { font-weight: 400; text-align: left; }
.oms-checks td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.oms-dot-cell { width: 24px; }
.oms-dot-green { background: var(--status-ok); }
.oms-failing { margin-top: 16px; }
.oms-failing td, .oms-failing th { white-space: nowrap; }
.oms-failing td:last-child { white-space: normal; color: var(--muted-foreground); }
.oms-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }

/* My board (#1221): the signup link as one button, how it works behind a link under it. */
.oms-signup { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 420px; }
.oms-signup .oms-note { overflow-wrap: anywhere; }

/* The executive report's tabs (#1221): the chosen one underlined in amber. */
.oms-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.oms-tab {
    padding: 8px 16px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    color: var(--muted-foreground);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.oms-tab[aria-selected="true"] { color: var(--foreground); border-bottom-color: var(--primary); }
.oms-tab:hover { color: var(--foreground); }
.oms-exec [role="tabpanel"] { display: flex; flex-direction: column; gap: 16px; }
.oms-exec [role="tabpanel"][hidden] { display: none; }
@media print {
    .oms-exec [role="tabpanel"][hidden] { display: flex; }
}

/* The other pages in the page layout (#1221, part 7): a panel's form sits under its heading, and a row's links and
   buttons keep every row the same height without wrapping. */
.oms-panel > h2 + :not(.oms-panel-note), .oms-panel > .oms-panel-note + * { margin-top: 16px; }
.oms-panel p + .oms-note-form { margin-top: 12px; }
.oms-panel .oms-form:last-child { margin-bottom: 0; }
.oms-agents td { height: 53px; white-space: nowrap; }
.oms-row-links { display: inline-flex; gap: 12px; }
.oms-row-actions { text-align: right; }
.oms-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 1100px) { .oms-columns { grid-template-columns: minmax(0, 1fr); } }
.oms-fold-inline { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.oms-fold-inline summary { width: fit-content; font-weight: 600; cursor: pointer; }
.oms-fold-inline[open] summary { margin-bottom: 12px; }
.oms-more-filters { grid-column: 1 / -1; }
.oms-more-filters summary { width: fit-content; font-weight: 600; cursor: pointer; }
.oms-filters-more { margin: 12px 0 0; }
.oms-prospect-table td { white-space: nowrap; }
.oms-prospect-table .oms-business { display: inline-block; max-width: 320px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.oms-also { display: flex; flex-wrap: wrap; gap: 24px; margin: -8px 0 0; font-size: 13px; }
.oms-panel-form { max-width: 560px; }
.oms-panel-form .oms-form > button { align-self: flex-start; }
.oms-template .oms-template-body { margin: 8px 0 12px; }
.oms-fold-inline + .oms-scroll { margin-top: 16px; }
.oms-result-bar form { margin-left: auto; }
.oms-headset .oms-phones { margin: 16px 0; }
.oms-headset .oms-phones li { display: flex; align-items: center; gap: 12px; }
.oms-headset .oms-phone-number { min-width: 160px; margin: 0; font-variant-numeric: tabular-nums; }
.oms-headset .oms-record { margin-top: 0; }
.oms-panel > p + .oms-action { margin-top: 12px; }

/* The Facebook groups screen (#1463, wireframes Troy approved 2026-11-01): a list on the left, the picked group or post on
   the right, and on a phone the two take turns, so logging a post is three presses (the wording, the group, Save post). */
.oms-fb-table tr.oms-chosen th, .oms-fb-table tr.oms-chosen td { background: var(--selected); }
.oms-fb-table tr.oms-chosen th { box-shadow: inset 3px 0 0 var(--primary); }
.oms-fb-table tbody th { font-weight: 400; }
.oms-fb-table td { white-space: nowrap; }
.oms-fb-sub { display: block; margin-top: 4px; font-size: 13px; color: var(--muted-foreground); }
.oms-fb-phone-line, .oms-fb-back { display: none; }
/* #2215: the groups waiting on an admin sit under the Due today list, under a heading the size of a panel's; their notes wrap. */
.oms-fb-waits-head { margin: 24px 0 4px; font-size: 17px; font-weight: 700; }
.oms-fb-table td.oms-fb-wrap { white-space: normal; }
/* A group's name and the icon that opens it on Facebook (#2204) sit in one box: the name may wrap onto more lines, the icon stays
   to its right on the first of them and never drops to a line of its own, with the same gap in every table. The glyph is the row's
   text size; its link is one line tall and wider than the glyph for a bigger target, without making the row taller. The amber
   outline on focus is the global one above. Gap and corner are the design guide's steps (4 px, 8 px). */
.oms-fb-name { display: inline-flex; align-items: flex-start; gap: 4px; max-width: 100%; vertical-align: top; }
.oms-fb-group-link { display: flex; flex: none; align-items: center; height: 1lh; padding: 0 4px; border-radius: 8px; color: var(--muted-foreground); }
.oms-fb-group-link:hover { color: var(--foreground); }
.oms-fb-group-link svg { width: 1em; height: 1em; }
.oms-fb-days { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.oms-fb-chip {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--muted-foreground);
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}
.oms-fb-wrong td, .oms-fb-wrong th { color: var(--muted-foreground); }
.oms-fb-wrong .oms-row-button { color: var(--muted-foreground); text-decoration: line-through; }
.oms-fb-wording {
    max-height: 160px;
    overflow: auto;
    margin: 0;
    padding: 12px 16px;
    border: 1px dashed var(--input);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted-foreground);
    white-space: pre-line;
}
/* #1984: a post's approved pictures, scaled to fit and never altered. Two side by side, also on a phone. */
.oms-fb-pictures { display: flex; gap: 12px; }
.oms-fb-picture { flex: 0 1 200px; min-width: 0; margin: 0; }
.oms-fb-picture img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 10px; }
.oms-fb-picture figcaption { margin-top: 4px; font-size: 13px; color: var(--muted-foreground); }
.oms-fb-picture-label { display: block; }
.oms-fb-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.oms-fb-buttons .oms-button { padding: 8px 16px; font-size: 14px; }
.oms-fb-form { display: flex; flex-direction: column; gap: 12px; }
.oms-fb-form > div, .oms-fb-pair > div, .oms-fb-three > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.oms-fb-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.oms-fb-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; }
.oms-fb-saved { margin: 0; padding: 8px 12px; border: 1px solid var(--status-ok); border-radius: 10px; }
.oms-fb-apart { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.oms-fb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.oms-fb-tools > :nth-child(2) { flex: 1 1 200px; }
.oms-fb-statuses { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); }
.oms-fb-download { margin-left: auto; }

@media (max-width: 767.98px) {
    .oms-fb .oms-fb-wide { display: none; }
    .oms-fb .oms-fb-phone-line { display: block; }
    .oms-fb:not(.oms-fb-picked) .oms-call-side { display: none; }
    .oms-fb.oms-fb-picked .oms-call-main,
    .oms-fb.oms-fb-picked .oms-status,
    .oms-fb.oms-fb-picked .oms-head,
    .oms-fb.oms-fb-picked .oms-tabs { display: none; }
    .oms-fb.oms-fb-picked .oms-fb-back { display: inline-block; align-self: flex-start; margin-bottom: 4px; font-weight: 600; }
    /* Big targets for a thumb: every action in the panel the full width of the screen. */
    .oms-fb .oms-call-side button:not(.oms-row-button), .oms-fb .oms-call-side .oms-button { width: 100%; min-height: 44px; }
    .oms-fb .oms-fb-buttons { flex-direction: column; }
    .oms-fb .oms-status { gap: 8px 20px; }
    .oms-fb .oms-status dd { font-size: 17px; }
    .oms-fb .oms-lede, .oms-fb .oms-how { display: none; }
    .oms-fb .oms-fb-wording { max-height: none; }
}
