html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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;
}

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;
}

/* Strip browser-default spinner buttons from every numeric input across the
   app. Project rule (CLAUDE.md → "Form input conventions"): never show
   up/down spinner arrows on number fields — they're cluttered and steal
   horizontal space. Users type values directly. */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ---------------------------------------------------------------------------
   Library-picker shell. Used by every BkSch001 library lookup modal —
   StatusPicker (SCT1), ShiftPicker (MLB1), and future ones (Asgn, Personnel,
   etc.). Lives outside Blazor's component-scoped CSS so multiple pickers can
   share the same visual shell without each carrying a duplicate copy.

   The .library-picker__grid-wrap rules use ::deep to reach into the QuickGrid
   <table> rendered as a child component — Blazor's CSS-isolation attribute
   selectors don't traverse across components, so we need the deep combinator
   to style QuickGrid's <thead>/<tbody>/<th>/<td>.
   --------------------------------------------------------------------------- */
.library-picker {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 320px;
}

.library-picker__search-row {
    display: flex;
}

.library-picker__search {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
}

.library-picker__msg {
    padding: 12px;
    color: #888;
    text-align: center;
    font-style: italic;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
    flex: 1;
}

.library-picker__grid-wrap {
    flex: 1;
    max-height: 380px;
    overflow-y: auto;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
}

.library-picker__grid-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.library-picker__grid-wrap thead th {
    position: sticky;
    top: 0;
    background: #f0f0f0;
    border-bottom: 1px solid #d0d0d0;
    text-align: left;
    padding: 6px 10px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.library-picker__grid-wrap thead th:hover {
    background: #e6efff;
}

.library-picker__grid-wrap thead th.col-sort-asc,
.library-picker__grid-wrap thead th.col-sort-desc {
    background: #dde7ff;
}

/* `height: 1px` is a well-known table-layout trick: with an explicit value
   (any value — the row will override) the td's resolved height becomes the
   row height, which makes `height: 100%` work on the inner cell <div>.
   Without it, the inner div's content-height leaves whitespace inside taller
   rows (e.g. when a sibling cell wraps long text), and clicks on that
   whitespace land on the td — which has no click handler — instead of the
   div.

   `padding: 0 !important` overrides QuickGrid's default-theme rule
   `.quickgrid[theme=default] > tbody > tr > td { padding: ... 1.4rem ...; }`
   which otherwise leaves a wide un-clickable, un-highlighted strip between
   columns (the padding lives inside the td but outside the cell div). We
   also pass Theme="" to each QuickGrid in our pickers, but the !important
   here is the belt-and-suspenders that survives any future theme change. */
.library-picker__grid-wrap tbody td {
    padding: 0 !important;
    border-bottom: 1px solid #f0f0f0;
    height: 1px;
}

.library-picker__grid-wrap tbody tr:hover {
    background: #f6f9ff;
}

/* QuickGrid 9.0.15 has NO row-level styling parameter (no RowClass), so
   selection has to be marked per-cell. Each picker conditionally adds the
   --selected modifier to every cell div in the chosen row. The cells fill
   their <td>s end-to-end (see height:100% + display:flex above), so the
   visual is indistinguishable from a row-level background. !important keeps
   it above the row :hover tint. Color (#b8d3ff) chosen to be clearly
   distinct from the lighter hover (#f6f9ff). */
.library-picker__cell--selected,
.library-picker__cell--selected:hover {
    background: #b8d3ff !important;
}

/* Flex + height:100% so the click target (and the cursor:pointer + hover
   visuals) span the entire cell, including whitespace under short content
   in tall rows. align-items:center keeps short content vertically centered
   in a tall row instead of stuck to the top. */
.library-picker__cell {
    display: flex;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    padding: 6px 10px;
    cursor: pointer;
    user-select: none;
}

/* Code-column cells: monospace + bold so codes read as values. Numeric
   codes (Status, Shift, Asgn) right-align so digits stack; alphanumeric
   codes (Sector, Unit) left-align since varying lengths look odd hugging
   the right edge. No `width` on either — the div fills the <td> so clicks
   anywhere in the cell land on the handler. */
.library-picker__cell--code,
.library-picker__cell--code-alpha {
    font-family: monospace;
    font-weight: 600;
}

.library-picker__cell--code {
    justify-content: flex-end;
}

.library-picker__cell--code-alpha {
    justify-content: flex-start;
}

/* ---------------------------------------------------------------------------
   Per-picker column tweaks. Each block wrapped by the picker-specific
   modifier on the .library-picker__grid-wrap div (e.g. --shift, --status).
   Add a new block per picker as the project owner asks for adjustments. The shared rules
   above are intentionally generic; everything here is "this picker only".
   --------------------------------------------------------------------------- */

/* ShiftPicker — Code column. Centered, narrow (matches 2-digit shift codes
   where right-align reads goofy). Tweak `width` to taste. */
.library-picker__grid-wrap--shift th:first-child,
.library-picker__grid-wrap--shift td:first-child {
    width: 4rem;
}
.library-picker__grid-wrap--shift td:first-child > .library-picker__cell {
    justify-content: center;
}

/* SectorPicker — Sector column. Narrowed; alpha codes don't need much
   horizontal space. Tweak `width` to taste. */
.library-picker__grid-wrap--sector th:first-child,
.library-picker__grid-wrap--sector td:first-child {
    width: 5rem;
}

/* PersonnelPicker — Emp ID column. Narrowed to the width of a 6-digit code
   (PER1_CODE max). Last/First/Agency get the remaining slack. Tweak to
   taste. */
.library-picker__grid-wrap--personnel th:first-child,
.library-picker__grid-wrap--personnel td:first-child {
    width: 6rem;
}