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

/* Bootstrap scrolls smoothly (:root). Blazor's enhanced navigation scrolls to the top while it swaps the page, and in
   Safari a smooth scroll during that swap leaves clicks and hover a row or two off from what is drawn (a click on an
   offering opened the "add" menu under it) until something forces a relayout. Same selector, loaded later: wins. */
:root {
    scroll-behavior: auto;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
    padding-bottom: 2rem;
}

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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1I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sZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

/* Bootstrap's own placeholder color (--bs-secondary-color, 75%-opacity near-black) reads almost as dark as typed
   text, so an empty field looks already filled in. One light hint color for every field of the panel; .form-control
   is listed because Bootstrap's rule is that specific (this file loads after Bootstrap, so it wins). */
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #adb5bd;
    opacity: 1;
}

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

/* The settings look (.st-*) is in Shared.Localization's settings-look.css, shared with the admin site; the panel's own parts follow. */
/* The smallest good size of a picture, shown only while there is none: the
   shape's numbers, so a picture of that size fits its frame whole. */
.st-photo-hint { font-size: 12px; line-height: 1.4; color: var(--st-text-3); text-align: center; }
.st-time-chip { display: inline-flex; align-items: center; background: var(--st-bg); border: 0.5px solid var(--st-border); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }
.st-time-chip .st-select { padding: 0 1px; border-radius: 4px; }
.st-time-chip .st-select:hover { background: rgba(0, 0, 0, 0.05); }
/* A member's interval names its branch first (TimeRangeChips with several branches). */
.st-time-chip .chip-branch { color: var(--st-text-2); margin-right: 6px; }

/* The sign-in pages' own look (.st-auth-*) is in Shared.Localization's sign-in.css, shared with the admin site. */
.st-org-list > form + form > .st-row { border-top: 0.5px solid var(--st-border); }
.st-org-list { overflow: hidden; }
.st-org-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.st-org-initial { width: 32px; height: 32px; border-radius: 8px; background: #e3e3e8; color: var(--st-text-2); display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.st-org-text { display: flex; flex-direction: column; min-width: 0; }
.st-org-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-org-current { color: var(--st-accent); display: flex; }
/* A suspended organization in the picker: greyed out, its status instead of the chevron, not clickable. */
.st-org-list > * + .st-org-off { border-top: 0.5px solid var(--st-border); }
.st-org-off .st-org-initial, .st-org-off .st-org-name { opacity: 0.45; }
.st-org-status { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--st-text-2); background: var(--st-bg); border: 0.5px solid var(--st-border); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.st-org-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff3b30; }

/* Segmented tabs and labelled fields inside the settings sheets. */
.settings-page .segmented-control { display: inline-flex; flex-wrap: wrap; background: var(--st-bg); border: 0.5px solid var(--st-border); border-radius: 8px; padding: 2px; gap: 0; margin-bottom: 4px; }
.settings-page .mode-btn { font-size: 13px; padding: 4px 12px; border-radius: 6px; border: 0.5px solid transparent; background: transparent; color: var(--st-text-2); cursor: pointer; }
.settings-page .mode-btn.selected { background: #fff; color: var(--st-text); border-color: var(--st-border); }
.settings-page .edit-fields { display: grid; grid-template-columns: 1fr; gap: 0.6rem; margin-top: 0.6rem; }
.settings-page .edit-fields .field { display: flex; flex-direction: column; gap: 0.25rem; }
.settings-page .edit-fields .field label { font-size: 12px; color: var(--st-text-2); }
.settings-page .field-hint { font-size: 12px; color: var(--st-text-2); margin-top: 8px; }
.settings-page textarea.auto-grow { resize: none; overflow: hidden; min-height: 6rem; }
