h1:focus {
    outline: none;
}

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

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* Radius before ThemeService writes its own (0.5rem default) inline on <html>. */
:root {
    --radius: 0.5rem;
}

/* 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: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Signed-in pages: a header bar over a column of cards. */
.oms-shell:has(.oms-header) {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
}

.oms-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid var(--border);
}

.oms-brand {
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

.oms-nav {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.oms-nav a, .oms-links a {
    color: inherit;
}

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

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

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

.oms-shell:has(.oms-header) .oms-main {
    padding: 2rem;
}

.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: #5E5E5E; 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-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; }

/* Phone width: the header wraps instead of pushing the page sideways. */
@media (max-width: 40rem) {
    .oms-header { flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0.75rem 1rem; }
    .oms-nav { order: 3; flex-basis: 100%; flex-wrap: wrap; }
    .oms-who { margin-left: auto; }
    .oms-shell:has(.oms-header) .oms-main { padding: 1rem; }
}

/* Recording a call (#745) */
.oms-record { margin-top: 0.4rem; }
.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-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: #d97706; }
.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; }
