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;
}
/* ---- NCloudCare Web ---- */
/* sign-in (static page, no MudBlazor) */
.bare { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #eef2f7; font-family: Roboto, Arial, sans-serif; }
.login-card { background: #fff; padding: 32px; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.08); width: 340px; }
.login-card h1 { font-size: 20px; margin: 0 0 20px; color: #1e3a5f; }
.login-card label { display: block; font-size: 13px; color: #444; margin: 12px 0 4px; }
.login-card input { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid #c8d0da; border-radius: 4px; font-size: 14px; }
.login-card button { margin-top: 20px; width: 100%; padding: 10px; background: #1e5aa8; color: #fff; border: 0; border-radius: 4px; font-size: 15px; cursor: pointer; }
.login-error { background: #fdecea; color: #b3261e; padding: 8px 10px; border-radius: 4px; font-size: 13px; }
.login-note { background: #eef3fb; color: #1e3a5f; padding: 8px 10px; border-radius: 4px; font-size: 13px; }

.login-card .remember { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; }
.login-card .company-fixed { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border: 1px solid #e1e6ee; border-radius: 4px; background: #f6f8fb; font-size: 14px; font-weight: 500; }
.login-card .company-fixed a { font-size: 12px; font-weight: 400; color: #1e5aa8; }
.login-card .remember input { width: auto; }
.legacy-mark { font-size: 11px; color: #8a94a6; margin-left: 2px; }

.login-card .version { margin-top: 16px; font-size: 11px; color: #8a94a6; text-align: center; }

/* Numbers in simple tables */
.tr { text-align: right; }

/* Order items toolbar: buttons in one row, the Disc % box right next to its button */
.line-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.line-tools .disc-group { display: inline-flex; align-items: center; gap: 6px; }
.line-tools .disc-input { flex: 0 0 110px; width: 110px; margin: 0; }

/* Order items: item finder, qty and Add stay together */
.add-group { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.add-group .add-item { width: 340px; max-width: 100%; }
.add-group .add-qty { flex: 0 0 80px; width: 80px; margin: 0; }

/* Line discount as in OrderPad's cart: struck-through amount before discount, the discount in green */
.gross { text-decoration: line-through; opacity: .6; font-size: .8em; }
.line-disc { color: var(--mud-palette-success); font-size: .85em; }

/* Order lines: the item number with its small marks, the name on one line (cut, whole on hover) */
.line-item { white-space: nowrap; }
.line-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: clamp(160px, 22vw, 360px); }
.line-mark { display: inline-block; margin-left: 4px; padding: 0 5px; border: 1px solid var(--mud-palette-lines-default); border-radius: 9px;
             background: none; font: inherit; font-size: 11px; line-height: 16px; vertical-align: middle; }
.line-mark.tier { color: var(--mud-palette-info-darken); border-color: var(--mud-palette-info); }
.line-mark.free { color: var(--mud-palette-success-darken); border-color: var(--mud-palette-success); }
.line-mark.bo { color: var(--mud-palette-warning-text); background: var(--mud-palette-warning); border-color: var(--mud-palette-warning); }
.line-mark.manual { color: var(--mud-palette-warning-darken); border-color: var(--mud-palette-warning); }
.line-mark.charge { color: var(--mud-palette-secondary-darken); border-color: var(--mud-palette-secondary); }
.line-mark.not-invoiced { color: var(--mud-palette-warning-darken); border-color: var(--mud-palette-warning); }
/* The invoice screen: a waiting charge / deduction line of the order, its Correct / Remove buttons and the row being corrected. */
.invoice-charge-lines td.charge-actions { white-space: nowrap; text-align: right; }
.invoice-charge-lines tr.charge-editing td { vertical-align: middle; background: var(--mud-palette-background-gray); }
/* The line under a margin report's total: the goods alone, without charge / deduction lines (Docs/sales/non-stock-lines.md 11). */
tr.goods-only td { font-size: .92em; opacity: .8; border-top: 0; }
button.line-mark { color: var(--mud-palette-primary); border-color: var(--mud-palette-primary); cursor: pointer; }
button.line-mark:disabled { opacity: .5; cursor: default; }

/* Order item search */
.small-note { font-size: .78em; opacity: .7; }
/* A link word shown in its place while there is nothing to open yet (dashboard "UPS" before a tracking #) */
.link-off { color: var(--mud-palette-text-disabled); cursor: default; }
.item-search td { vertical-align: top; }
.item-detail td { background: var(--mud-palette-background-gray); }
.detail-grid { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: .9em; }
.detail-grid .small-note { margin-right: 6px; }
.item-search .add-group { flex-wrap: nowrap; }
.item-search td:last-child { white-space: nowrap; width: 190px; }
.bo-group td { background: var(--mud-palette-background-gray); }

/* Customer notes and purchase history */
.note-row { padding: 6px 0; border-bottom: 1px solid var(--mud-palette-lines-default); }
.note-row:last-of-type { border-bottom: none; }
.note-text { white-space: pre-wrap; font-size: .92em; margin: 2px 0 0 2px; }
.history-table td { vertical-align: middle; }
.history-table td:last-child { width: 100px; }

/* Language picker on the sign-in page */
.login-card .lang-links { display: flex; gap: 12px; justify-content: center; margin-top: 16px; font-size: 13px; }
.login-card .lang-links a { color: #1e5aa8; }

/* ==== Look (Docs/ui-design.md, user 2026-09-28 "기능이 아니라 디자인만") ====
   Grey page, white cards, bold navy titles, quiet tables, one accent. Colours of the MudBlazor side are in WebTheme.cs. */
:root {
    --nc-bg: #f4f6f9;
    --nc-surface: #ffffff;
    --nc-line: #e2e6ec;
    --nc-title: #1e3a5f;
    --nc-muted: #6b7584;
    --nc-head-bg: #f6f7f9;
    --nc-head-text: #5f6b7a;
    --nc-radius: 8px;
}

/* Page titles: every h5 in the content is a page title today — navy and bold (weight in WebTheme) even before a page is converted. */
.mud-main-content .mud-typography-h5 { color: var(--nc-title); }

/* Flat cards: a hairline instead of a shadow, so white blocks read on the grey page. */
.mud-main-content .mud-paper.mud-elevation-1,
.mud-main-content .mud-table.mud-elevation-1 { box-shadow: none; border: 1px solid var(--nc-line); border-radius: var(--nc-radius); }
.mud-main-content .mud-table.mud-elevation-1 { overflow: hidden; }   /* the grey header row stays inside the round corners */
.mud-main-content .mud-paper-outlined { border-color: var(--nc-line); }

/* Tables: small grey header on a light grey row, hairline rows, tabular figures so columns of numbers line up. */
.mud-main-content .mud-table-root { font-variant-numeric: tabular-nums; }
.mud-main-content .mud-table-root .mud-table-head .mud-table-cell,
.mud-main-content .mud-simple-table table thead th {
    font-size: .75rem; font-weight: 500; color: var(--nc-head-text); background: var(--nc-head-bg);
    letter-spacing: .01em; line-height: 1.3; white-space: nowrap;
}
.mud-main-content .mud-table-head .mud-table-sort-label { color: inherit; }
.mud-main-content .mud-table-dense .mud-table-row .mud-table-cell { padding-top: 7px; padding-bottom: 7px; }
.mud-main-content .mud-simple-table.mud-table-dense table td { padding-top: 6px; padding-bottom: 6px; }
.mud-main-content .mud-table-pagination { border-top: 1px solid var(--nc-line); }
.tr { font-variant-numeric: tabular-nums; }

/* Striped lists start with a WHITE row, so the grey header row and the first line do not run together (user 2026-09-28:
   "줄은 흰색줄이 먼저 나오게"). MudBlazor greys the odd rows; grey the even ones instead, keep the hover colour. */
.mud-table-striped .mud-table-container .mud-table-root .mud-table-body:not(.mud-table-body-virtualized) .mud-table-row:nth-of-type(odd),
.mud-simple-table.mud-table-striped .mud-table-container table tbody tr:nth-of-type(odd) { background-color: transparent; }
.mud-table-striped .mud-table-container .mud-table-root .mud-table-body:not(.mud-table-body-virtualized) .mud-table-row:nth-of-type(even),
.mud-simple-table.mud-table-striped .mud-table-container table tbody tr:nth-of-type(even) { background-color: var(--mud-palette-table-striped); }
@media (hover: hover) and (pointer: fine) {
    .mud-table-hover.mud-table-striped .mud-table-container .mud-table-root .mud-table-body:not(.mud-table-body-virtualized) .mud-table-row:hover,
    .mud-simple-table.mud-table-hover.mud-table-striped .mud-table-container table tbody tr:hover { background-color: var(--mud-palette-table-hover); }
}

/* ---- PageHeader ---- */
.nc-page-header { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--nc-line); }
.nc-page-loc { font-size: .72rem; font-weight: 500; letter-spacing: .04em; color: var(--nc-muted); margin: 0 0 2px; }
.nc-page-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.nc-page-titlebox { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; flex: 1 1 auto; }
.nc-page-back { margin-left: -6px; }
.nc-page-title { margin: 0; font-size: 1.375rem; font-weight: 600; line-height: 1.3; color: var(--nc-title); overflow-wrap: anywhere; }
.nc-page-chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nc-page-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
.nc-page-sub { margin-top: 4px; font-size: .8125rem; color: var(--nc-muted); }
@media (max-width: 600px) {
    .nc-page-actions { margin-left: 0; justify-content: flex-start; width: 100%; }
    .nc-page-title { font-size: 1.2rem; }
}

/* ---- Cards (FilterCard, TableCard, detail cards with CardHead) ---- */
.nc-card { background: var(--nc-surface); border: 1px solid var(--nc-line); border-radius: var(--nc-radius); box-shadow: none; }
.mud-main-content .nc-card.mud-paper { box-shadow: none; }
.nc-filter { padding: 12px 16px; margin-bottom: 16px; }
.nc-table-card { margin-bottom: 16px; overflow: hidden; }
.nc-table-card > .mud-table,
.nc-table-card > .mud-table.mud-elevation-1 { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.nc-table-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 12px; border-bottom: 1px solid var(--nc-line); }
.nc-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; }
.nc-card-title { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--nc-title); }
.nc-card-after { margin-left: 6px; font-weight: 400; color: var(--nc-muted); font-size: .875rem; }
.nc-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }

/* ---- StatusChip: grey draft/waiting, blue open, amber packing/picking, green done, red lock/void ---- */
.nc-status {
    display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 11px;
    font-size: .75rem; font-weight: 500; line-height: 1; white-space: nowrap; vertical-align: middle; border: 1px solid transparent;
}
.nc-status-grey  { background: #eef0f3; color: #4a5361; border-color: #e1e4e9; }
.nc-status-blue  { background: #e8f0fb; color: #1e5aa8; border-color: #d3e2f6; }
.nc-status-amber { background: #fdf3e1; color: #8a5a00; border-color: #f6e2bb; }
.nc-status-green { background: #e7f5ec; color: #1f7a45; border-color: #cdebd8; }
.nc-status-red   { background: #fdecec; color: #b3261e; border-color: #f7d4d2; }

/* ---- WriteGuardNotice: one small chip ---- */
.nc-guard { cursor: help; }
.nc-guard .nc-guard-icon { font-size: 14px; width: 14px; height: 14px; }
.nc-guard-row { display: flex; justify-content: flex-end; margin: -6px 0 6px; }

/* The grey page is for the screen only; a printed page stays white. The settlement statement preview is a sheet of paper
   on the grey page. */
.mud-main-content .stmt { background: #fff; padding: 24px; border: 1px solid var(--nc-line); border-radius: var(--nc-radius); }
@media print {
    body, .mud-layout, .mud-main-content { background: #fff !important; }
    .mud-main-content .stmt { border: 0; padding: 0; }
}

/* Date pickers: the calendar is wider than a narrow field (Style="width:160px"), and the popover took the field's width,
   which cut the calendar off (user 2026-09-28). Let the popover grow to its content. */
.mud-picker-popover-paper,
.mud-popover:has(> .mud-picker-popover-paper) { min-width: max-content; }

/* Narrow fields (user 2026-10-03, iPad: "날자부분이 다 잘리는거 같아" — "다 그런거 같아"). The grid's columns follow the window, not
   the room the side menu leaves, so on an iPad or a laptop with the menu open a md=2 column was about 100px and a date showed as
   "1" beside its clear and calendar buttons; a Style="width:160px" date with a clear button lost its first digits too.
   - A date box is never narrower than its date and both buttons: MM/dd/yyyy at the input's 16px is 86px; an outlined box adds
     14px padding, the clear button 26px and the calendar button 36px (171px) — 11.5rem leaves room for another font. A text-variant
     box (in table rows) has no padding: 10rem. min-width wins over a page's Style width, so those pages need no change.
   - A select in a filter grid is never narrower than a short choice ("Posted", "Everyone"): 10rem for its column — a fixed width,
     not the text's, so a long value cannot push the row off the page.
   A grid column holding one grows to it and the row wraps. Wide screens are unchanged (their columns are wider already). */
.mud-picker.mud-picker-inline { min-width: 10rem; }
.mud-picker.mud-picker-inline:has(.mud-input-outlined) { min-width: 11.5rem; }
.mud-grid-item:has(> .mud-picker.mud-picker-inline) { min-width: min-content; }
.mud-grid-item:has(> .mud-select) { min-width: 10rem; }
/* The same minimum on the BOX itself (user 2026-10-06, the new accounting pages: a From / To of Style="width:150px" cut after
   "01/01/202" — "여기도 다 수정됐는데 날자 잘리게 나오네?"). MudBlazor puts a picker's Style on its inner .mud-input — the box with the
   border — not on the .mud-picker root, so the root's min-width above left such a box as narrow as its page said: 85 date boxes
   of the site had a width below the minimum, on old pages and new. min-width wins over an inline width and over max-width, so
   no page changes, and it does not depend on the window: desktop, a laptop with the menu open and an iPad alike. */
.mud-picker.mud-picker-inline .mud-input { min-width: 10rem; }
.mud-picker.mud-picker-inline .mud-input.mud-input-outlined { min-width: 11.5rem; }

/* Customer List: the address is one cell of two lines (street lines; city, state zip), and its header carries the two sorts the
   city and state columns had (owner 2026-10-06). */
.cust-addr { min-width: 14rem; line-height: 1.3; }
.cust-addr > div:empty { display: none; }
.cust-addr-head .cust-addr-sorts { display: flex; gap: 0.75rem; font-size: 0.75rem; font-weight: 400; }

/* nCloudCare */
.care-sort { cursor: pointer; color: inherit; text-decoration: none; user-select: none; white-space: nowrap; }
.care-sort:hover { text-decoration: underline; }
.care-member-link { color: inherit; text-decoration: none; }
.care-member-link:hover { text-decoration: underline; }
.care-status { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: .78rem; line-height: 1.5; background: #eceff1; color: #37474f; white-space: nowrap; }
.care-status-1 { background: #e3f4e8; color: #1b6b34; }
.care-status-2 { background: #eceff1; color: #546e7a; }
.care-status-3 { background: #fff4d6; color: #8a5a00; }
.care-status-9 { background: #ede7f6; color: #4527a0; }
.care-kv { display: grid; grid-template-columns: 170px 1fr; gap: 4px 14px; font-size: .9rem; }
.care-kv dt { color: #607d8b; }
.care-kv dd { margin: 0; min-height: 1.3em; word-break: break-word; }
.care-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.care-card { padding: 14px 16px; }
.care-pre { white-space: pre-wrap; }
.care-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 14px; }
.care-form .wide { grid-column: 1 / -1; }
.care-sheet { width: 100%; border-collapse: collapse; font-size: .9rem; }
.care-sheet th { text-align: left; font-weight: 600; color: #546e7a; padding: 8px 10px; border-bottom: 1px solid #e0e0e0; white-space: nowrap; }
.care-sheet td { padding: 4px 10px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.care-sheet td:nth-child(4), .care-sheet td:nth-child(5) { white-space: nowrap; }
.care-day-sheet td:nth-child(6) { white-space: nowrap; }
.care-day-sheet tr.is-picked td { background: #f1f7fe; }
.care-day-sheet tr.is-in td:nth-child(2) { box-shadow: inset 3px 0 0 #f0a500; }
.care-day-sheet tr.is-left td:nth-child(2) { box-shadow: inset 3px 0 0 #2e9e55; }
.care-day-sheet tr.is-in td:first-child, .care-day-sheet tr.is-left td:first-child { box-shadow: none; }
.care-pick-all, .care-pick-row { width: 17px; height: 17px; cursor: pointer; vertical-align: middle; }
/* A list with many columns (Employees, Invoices, Assessments, and the lists of files under Accounting, whose file names keep a
   width of their own): the columns stand closer together, so the last one — a row's buttons, the claim, the draft — is inside
   the card on an office laptop (1280 and 1366 px wide) instead of cut off at its edge. The card's own edges keep their 16px.
   A column's name may take two lines on Assessments; a phone number is never broken. */
.mud-main-content .care-table-tight.mud-simple-table table th, .mud-main-content .care-table-tight.mud-simple-table table td { padding-left: 8px; padding-right: 8px; }
.mud-main-content .care-table-tight.mud-simple-table table th:first-child, .mud-main-content .care-table-tight.mud-simple-table table td:first-child { padding-left: 16px; }
.mud-main-content .care-table-tight.mud-simple-table table th:last-child, .mud-main-content .care-table-tight.mud-simple-table table td:last-child { padding-right: 16px; }
.mud-main-content .care-table-tight.care-assess-watch table thead th { white-space: normal; }
.care-staff-phone, .care-staff-acts { white-space: nowrap; }
.care-staff-acts { text-align: right; }
.care-staff-acts .care-mini:first-child { margin-left: 0; }
.care-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 14px; margin-bottom: 8px; position: sticky; top: 64px; z-index: 5; border: 1px solid transparent; }
.care-bulk.on { border-color: #90caf9; background: #f6faff; }
.care-bulk-count { min-width: 92px; color: #1e3a6b; }
.care-bulk-part { display: inline-flex; align-items: center; gap: 6px; }
.care-pick { padding: 5px 8px; border: 1px solid #cfd8dc; border-radius: 4px; font: inherit; background: #fff; }
.care-sheet tr.is-in td:first-child { box-shadow: inset 3px 0 0 #f0a500; }
.care-sheet tr.is-left td:first-child { box-shadow: inset 3px 0 0 #2e9e55; }
.care-sheet tr:hover td { background: #fafbfc; }
.care-time { width: 88px; padding: 4px 6px; border: 1px solid #cfd8dc; border-radius: 4px; font: inherit; background: #fff; }
.care-note { width: 100%; min-width: 120px; padding: 4px 6px; border: 1px solid #cfd8dc; border-radius: 4px; font: inherit; background: #fff; }
.care-time:focus, .care-note:focus { outline: 2px solid #90caf9; border-color: #1976d2; }
.care-time:disabled, .care-note:disabled { background: #f5f5f5; color: #9e9e9e; }
.care-mini { margin-left: 4px; padding: 2px 8px; border: 1px solid #cfd8dc; border-radius: 4px; background: #fff; font-size: .78rem; cursor: pointer; color: #37474f; }
.care-mini:hover:not(:disabled) { background: #eceff1; }
.care-mini:disabled { opacity: .5; cursor: default; }
.care-remove { border-color: transparent; color: #b71c1c; }
.care-row-error { color: #c62828; font-size: .8rem; margin-top: 2px; }
.care-totals { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 12px 16px; font-size: .9rem; }
.care-totals b { font-size: 1.15rem; margin-right: 6px; }

/* nCloudCare — the invoice on paper */
.care-print-page { background: #eceff1; min-height: 100vh; padding: 18px 12px 40px; font-family: "Helvetica Neue", Arial, sans-serif; color: #111; }
.care-print-tools { max-width: 8.5in; margin: 0 auto 10px; font-size: .9rem; }
.care-print-tools button { padding: 6px 16px; margin-right: 12px; border: 1px solid #1565c0; background: #1976d2; color: #fff; border-radius: 4px; cursor: pointer; font: inherit; }
.care-sheet-paper { position: relative; max-width: 8.5in; min-height: 10in; margin: 0 auto; background: #fff; padding: .6in .65in; box-shadow: 0 1px 6px rgba(0, 0, 0, .18); font-size: 10.5pt; line-height: 1.4; overflow: hidden; }
.care-watermark { position: absolute; top: 38%; left: 0; right: 0; text-align: center; font-size: 96pt; font-weight: 700; letter-spacing: .1em; color: rgba(183, 28, 28, .12); transform: rotate(-24deg); text-transform: uppercase; pointer-events: none; }
.care-inv-head { display: flex; justify-content: space-between; gap: 24px; border-bottom: 2px solid #111; padding-bottom: 14px; }
.care-inv-provider { font-size: 15pt; font-weight: 700; }
.care-inv-title { text-align: right; }
.care-inv-title h1 { margin: 0 0 6px; font-size: 20pt; letter-spacing: .12em; }
.care-inv-title table { margin-left: auto; border-collapse: collapse; }
.care-inv-title th { text-align: right; font-weight: 400; color: #555; padding: 1px 10px 1px 0; }
.care-inv-title td { text-align: right; font-weight: 600; }
.care-inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 18px 0; }
.care-inv-parties h2 { margin: 0 0 4px; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .08em; color: #555; font-weight: 600; }
.care-inv-lines { width: 100%; border-collapse: collapse; }
.care-inv-lines th { text-align: left; border-bottom: 1px solid #111; padding: 5px 6px; font-size: 9pt; text-transform: uppercase; letter-spacing: .04em; }
.care-inv-lines td { padding: 4px 6px; border-bottom: 1px solid #e0e0e0; }
.care-inv-lines .num { text-align: right; }
.care-inv-lines .dow { color: #777; font-size: 9pt; }
.care-inv-lines tfoot td { border-bottom: none; font-weight: 600; padding-top: 8px; }
.care-inv-lines tfoot tr:first-child td { border-top: 2px solid #111; }
.care-inv-lines thead { display: table-header-group; }
.care-inv-lines tr { page-break-inside: avoid; }
.care-sheet-paper + .care-sheet-paper { margin-top: 18px; }
.care-print-count { margin-left: 14px; font-weight: 600; }
.care-print-missing { margin-left: 14px; color: #b45309; }
@media print {
    @page { size: letter; margin: .5in; }
    .care-print-page { background: #fff; padding: 0; }
    .care-print-tools { display: none; }
    .care-sheet-paper { box-shadow: none; max-width: none; min-height: 0; padding: 0; margin: 0; }
    /* A batch: every invoice starts its own page. */
    .care-sheet-paper + .care-sheet-paper { margin-top: 0; break-before: page; page-break-before: always; }
}

/* nCloudCare — the first page */
.care-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 8px; }
.care-tile { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; text-decoration: none; color: inherit; transition: box-shadow .15s; }
.care-tile:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.care-tile b { font-size: 2rem; line-height: 1.1; color: #1e3a6b; }
.care-tile span { color: #455a64; }
.care-tile small { color: #8a5a00; }
.care-tile-warn b { color: #b45309; }

/* nCloudCare — the month's attendance grid, the meals */
.care-month-wrap { overflow-x: auto; padding: 4px; }
.care-month-grid { border-collapse: collapse; font-size: .78rem; white-space: nowrap; }
.care-month-grid th, .care-month-grid td { border: 1px solid #e3e7ea; padding: 2px 4px; text-align: center; min-width: 22px; }
.care-month-grid th { background: #f5f7f8; font-weight: 600; color: #455a64; }
.care-month-grid th div { font-weight: 400; font-size: .68rem; color: #78909c; }
.care-month-grid th.we { background: #eceff1; }
.care-month-grid .who { text-align: left; padding: 2px 8px; position: sticky; left: 0; background: #fff; }
.care-month-grid th.who { background: #f5f7f8; }
.care-month-grid td.in { color: #2e7d32; }
.care-month-grid td.in.open { color: #f0a500; }
.care-month-grid .sum { font-weight: 600; background: #fafbfc; padding: 2px 8px; }
.care-month-grid tfoot td { font-weight: 600; background: #f5f7f8; }
.care-meals tr.we td { background: #fafafa; }
.care-meal { width: 70px; text-align: right; }

/* nCloudCare — attachments in the note dialog */
.care-note-file-line { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.care-attach { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; padding: 8px 10px; border: 1px dashed #b0bec5; border-radius: 6px; }

/* nCloudCare — the claim forms on plain paper (CMS-1500, UB-04): the boxes with their numbers, filled in */
.care-claim { padding: .35in .4in; font-size: 7.5pt; line-height: 1.25; min-height: 10.2in; }
.cf-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 6px; }
.cf-title { font-size: 12pt; font-weight: 700; letter-spacing: .04em; }
.cf-sub { font-size: 6pt; color: #555; }
.cf-carrier { text-align: right; font-size: 8.5pt; }
/* Lines once each: a row draws its left edge, a box its right and bottom; the first row of a form (and the first after the
   service lines) draws the top. */
.cf-row { display: grid; grid-template-columns: repeat(24, 1fr); border-left: .6pt solid #555; }
.cf-top + .cf-row, .cf-row.cf-first { border-top: .6pt solid #555; }
.cf-low .cf { min-height: 21pt; }
/* Two boxes one above the other inside a row (22 over 23; 3a over 3b). */
.cf-stack { grid-column: span var(--s, 4); display: grid; grid-template-rows: 1fr 1fr; }
.cf-stack .cf, .cf-tall .cf-stack .cf { grid-column: auto; min-height: 21pt; }
.cf-dx { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1pt 8pt; font-size: 8.5pt; }
.cf-ind { font-family: "Courier New", Courier, monospace; font-size: 8.5pt; color: #111; }
.cf-ids { display: grid; grid-template-columns: 1fr 1fr; margin-top: auto; border-top: .6pt solid #555; margin-left: -3pt; margin-right: -3pt; padding: 1pt 3pt 0; font-size: 6pt; color: #444; }
.cf-ids b { font-family: "Courier New", Courier, monospace; font-size: 8.5pt; color: #111; }
.cf-ids span + span { border-left: .6pt solid #555; padding-left: 3pt; }
.cf-npi { font-family: inherit !important; font-size: 5.5pt !important; font-weight: 400 !important; color: #444; }
.cf-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 3pt; font-size: 5.5pt; color: #444; }
.cf { grid-column: span var(--s, 4); border-right: .6pt solid #555; border-bottom: .6pt solid #555; padding: 1.5pt 3pt 2pt; min-height: 25pt; display: flex; flex-direction: column; overflow: hidden; }
.cf-tall .cf { min-height: 52pt; }
.cf-l { font-size: 5.3pt; color: #444; text-transform: uppercase; letter-spacing: .02em; }
.cf-v { font-size: 9pt; font-weight: 600; font-family: "Courier New", Courier, monospace; word-break: break-word; }
.cf-checks { font-family: inherit; font-weight: 400; font-size: 7.5pt; }
.cf-small { font-size: 7.5pt; font-weight: 400; }
.cf-lines { width: 100%; border-collapse: collapse; table-layout: auto; }
.cf-lines th { border: .6pt solid #555; border-top: 0; font-size: 5.3pt; font-weight: 400; color: #444; text-transform: uppercase; padding: 1.5pt 2pt; text-align: center; vertical-align: top; }
.cf-lines td { border: .6pt solid #555; height: 17pt; padding: 1pt 3pt; font-size: 8.5pt; font-weight: 600; font-family: "Courier New", Courier, monospace; text-align: center; white-space: nowrap; }
.cf-lines td.n { text-align: left; }
.cf-lines td.num { text-align: right; }
.cf-lines td.cents { width: 16pt; }
.cf-lines td.code, .cf-lines td.desc { text-align: left; }
.cf-ub-lines td { height: 13pt; font-size: 8pt; }
.care-ub .cf-tall .cf { min-height: 44pt; }
.cf-lines tr.cf-totals td { font-weight: 700; background: #f3f3f3; }
.cf-lines tbody tr:last-child td { border-bottom: .6pt solid #555; }
.care-claim { overflow: visible; }
.care-print-forms a { margin-left: 12px; }
@media print { .care-claim { padding: 0; min-height: 0; } .cf-lines tr.cf-totals td { background: none; } }

/* Claim file dialog: the two forms to choose from, and why invoices were left out. */
.care-claim-forms { display: flex; gap: 10px; flex-wrap: wrap; }
.care-claim-form { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #d5dbe5; border-radius: 8px; cursor: pointer; }
.care-claim-form.on { border-color: #90caf9; background: #f6faff; }
.care-claim-left-out { margin: 4px 0 6px 18px; font-size: 13.5px; }
.care-claim-again { display: block; font-size: 13.5px; }
.care-claim-sent { color: #1e6b3a; white-space: nowrap; }

/* Billing Codes: one block per insurance; a code's earlier lines hang under the line in effect. */
.care-code-payer { padding: 0; overflow: hidden; }
.care-code-payer-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #e6eaf0; background: #f8fafc; }
.care-code-payer-name { font-size: 15px; color: #1e3a6b; }
.care-code-table tr.care-code-first td { border-top: 1px solid #dfe5ee; }
.care-code-table tr.care-code-earlier td { color: #6b7686; background: #fbfcfd; border-top: 0; }
.care-code-table tr.care-code-earlier td b { font-weight: 500; }
.care-code-link { color: #9aa5b5; margin: 0 4px 0 10px; }

/* A member's photos: the picture (front) large, the other angles as small ones beside it. */
.care-photo-row { display: flex; gap: 14px; align-items: flex-start; }
.care-photo-main { flex: 0 0 132px; }
.care-photo-main img, .care-photo-main .care-photo-blank { display: block; width: 132px; height: 165px; object-fit: cover; border-radius: 8px; border: 1px solid #dfe5ee; background: #f1f4f8; }
.care-photo-thumbs { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.care-photo-thumb { margin: 0; width: 84px; font-size: .78rem; color: #37474f; }
.care-photo-thumb img { display: block; width: 84px; height: 105px; object-fit: cover; border-radius: 6px; border: 1px solid #dfe5ee; background: #f1f4f8; }
.care-photo-thumb.is-default img { border: 2px solid #1e5bb8; }
.care-photo-thumb figcaption { margin-top: 3px; line-height: 1.25; }
.care-photo-thumb figcaption .small-note { display: block; }
.care-photo-mark { color: #1e5bb8; }
.care-photo-acts { display: flex; gap: 4px; margin-top: 3px; }
.care-photo-acts .care-mini { margin-left: 0; padding: 1px 6px; }
.care-photo-missing { display: block; margin-top: 10px; }
/* The camera dialog: the live picture with a face guide on the left, the angles on the right. */
.care-photo-take { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.care-photo-stage { position: relative; flex: 1 1 420px; min-width: 280px; aspect-ratio: 4 / 3; background: #10151c; border-radius: 8px; overflow: hidden; }
.care-photo-video { width: 100%; height: 100%; object-fit: contain; display: block; }
.care-photo-oval { position: absolute; left: 50%; top: 50%; width: 34%; height: 62%; transform: translate(-50%, -52%); border: 2px dashed rgba(255, 255, 255, .75); border-radius: 50%; pointer-events: none; }
.care-photo-nocam { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; padding: 20px; color: #dfe5ee; text-align: center; font-size: .9rem; }
.care-photo-side { flex: 0 1 250px; min-width: 220px; }
.care-photo-now { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; margin-bottom: 10px; border-radius: 6px; background: #eef4fd; color: #1e3a6b; }
.care-photo-now b { font-size: 1.05rem; }
.care-photo-poses { display: flex; flex-direction: column; gap: 4px; }
.care-photo-pose { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.care-photo-pose:hover { background: #f4f6f9; }
.care-photo-pose.is-now { border-color: #1e5bb8; background: #f4f8ff; }
.care-photo-pose img, .care-photo-pose .care-photo-blank { flex: 0 0 36px; width: 36px; height: 45px; object-fit: cover; border-radius: 4px; border: 1px solid #dfe5ee; background: #f1f4f8; }
.care-photo-pose-name { flex: 1; }
.care-photo-saved { display: block; color: #1b6b34; }
.care-photo-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.care-photo-file-label { margin-left: 8px; padding: 5px 10px; }
.care-photo-file-label.is-off { opacity: .5; pointer-events: none; }
/* The member's picture in the list: small. No picture = a dashed box; a picture that cannot be loaded = a red "!" (not the same thing). */
.care-member-photo { padding-top: 3px !important; padding-bottom: 3px !important; }
/* Ten columns on a laptop with the menu open (1280 px, a company with several centers): half the usual side padding, so the
   last column is not cut off (2026-10-14, when Enrolled came in). */
.care-member-table th, .care-member-table td { padding-left: 8px !important; padding-right: 8px !important; }
/* The days a member comes, at a glance: a lit box for each. Grey when they are the days of an authorization not running today. */
.care-member-native { font-size: .8rem; color: #5f6b7a; }
.care-member-days { white-space: nowrap; }
.care-day { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 20px; margin-right: 1px; border-radius: 3px; font-size: .72rem; color: #b6c0cc; background: #f3f5f8; }
.care-day.on { color: #fff; font-weight: 600; background: var(--mud-palette-primary); }
.care-day.on.is-past { background: #aab4c0; }
.care-day-any { font-size: .8rem; font-weight: 600; color: var(--mud-palette-primary); }
.care-day-any.is-past { color: #8996a5; }
.care-start-estimated { margin-right: 2px; color: #8996a5; cursor: help; }
.care-member-payer { font-size: .8rem; line-height: 1.25; min-width: 120px; max-width: 190px; }
.care-member-flags .care-status { display: inline-block; margin: 1px 3px 1px 0; white-space: nowrap; }
/* Eight tabs on a laptop with the menu open, in English too (AUTHORIZATIONS is long): less padding than MudBlazor's. */
.care-member-tabs .mud-tab { padding-left: 8px; padding-right: 8px; letter-spacing: 0; }
/* A member's Summary: the first tab. Shorter labels than the Profile's, and the week drawn large. */
.care-summary { align-items: start; }
.care-summary .care-kv { grid-template-columns: 104px minmax(0, 1fr); }
.care-summary .care-kv dd .care-status { display: inline-block; white-space: normal; }
.care-summary-days { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 12px; }
.care-summary-days .care-day { width: 36px; height: 32px; margin-right: 0; border-radius: 5px; font-size: .9rem; }
.care-summary-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.care-summary-allergies .care-status { display: inline-block; margin: 0 4px 3px 0; }
.care-summary-no-contact { margin-top: 10px; }
.care-summary-contacts { margin-top: 8px; border-top: 1px solid rgba(0, 0, 0, .06); }
.care-summary-quiet { color: #607d8b; text-decoration: none; font-size: .85rem; }
.care-summary-quiet:hover { text-decoration: underline; }
@media (max-width: 600px) { .care-summary { grid-template-columns: minmax(0, 1fr); } }
/* MudBlazor sets the cell's display with a longer selector: without !important the phone stays and the last column is cut off on a laptop. */
@media (max-width: 1499px) {
    .care-member-table .care-member-phone { display: none !important; }
    .care-member-table th, .care-member-table td { padding-left: 5px !important; padding-right: 5px !important; }
    .care-member-payer { min-width: 92px; }
    .care-member-flags .care-status { white-space: normal; }
    .care-day { width: 16px; }
}
.care-member-pic { position: relative; display: block; width: 32px; height: 40px; border-radius: 5px; border: 1px dashed #dfe5ee; overflow: hidden; }
.care-member-pic.has-photo { border-style: solid; background: #f1f4f8; }
.care-member-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.care-member-pic.is-gone { border: 1px dashed #d9a0a0; background: #fdf3f3; }
.care-member-pic.is-gone img { display: none; }
.care-member-pic.is-gone::after { content: "!"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #b3261e; font-weight: 700; }
/* Faces at the door: the consent line on a member's photo card. */
.care-face-consent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #edf0f4; font-size: .85rem; }
.care-face-consent-what { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1; }
/* The camera page: the live picture large, what it saw beside it. */
.care-camera { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.care-camera-stage { position: relative; flex: 2 1 520px; min-width: 300px; aspect-ratio: 16 / 9; background: #10151c; border-radius: 8px; overflow: hidden; }
.care-camera-video, .care-camera-overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.care-camera-side { flex: 1 1 280px; min-width: 260px; }
.care-camera-recent { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.care-camera-seen { display: flex; align-items: baseline; gap: 8px; padding: 5px 8px; border-radius: 6px; background: #f4f6f9; border-left: 3px solid #b8c0cc; }
.care-camera-seen-1 { border-left-color: #2e9e57; background: #eef8f1; }
.care-camera-seen-2 { border-left-color: #e39b2d; background: #fdf6ea; }
.care-camera-time { font-variant-numeric: tabular-nums; color: #5b6676; font-size: .85rem; }
/* The camera log: the faces a camera kept, small, with their time. */
.care-camera-crops { display: flex; flex-wrap: wrap; gap: 6px; }
.care-camera-crop { position: relative; display: inline-flex; flex-direction: column; align-items: center; width: 48px; font-size: .7rem; color: #5b6676; }
.care-camera-crop img { display: block; width: 46px; height: 46px; object-fit: cover; border-radius: 5px; border: 2px solid #b8c0cc; background: #f1f4f8; }
.care-camera-crop-1 img { border-color: #2e9e57; }
.care-camera-crop-2 img { border-color: #e39b2d; }
.care-camera-not { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; line-height: 19px; padding: 0; border: 1px solid #d9a0a0; border-radius: 50%; background: #fff; color: #b3261e; font-size: 15px; font-weight: 700; cursor: pointer; }
.care-camera-not:disabled { opacity: .4; cursor: default; }
.care-camera-row.is-done td { background: #fbfcfd; }
.care-time { padding: 4px 6px; border: 1px solid #cfd8dc; border-radius: 4px; font: inherit; width: 104px; }
.care-camera-unknowns { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.care-camera-unknown-one { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.care-camera-names { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.care-camera-name-chip { padding: 2px 8px; border: 1px solid #dfe5ee; border-radius: 12px; font-size: .82rem; color: #37474f; text-decoration: none; }
.care-face-consent.is-missing { margin-top: 12px; padding: 10px 12px; border: 1px solid #f0c36d; border-radius: 6px; background: #fff8e6; }
.care-face-consent.is-missing .care-face-consent-set { border-color: #c98a00; background: #fff; font-weight: 600; }
.care-camera-waiting .care-camera-names { display: inline-flex; margin: 4px 0 0 6px; }
.care-camera-acts { white-space: nowrap; }
.care-camera-acts .care-mini { padding: 4px 10px; }
.care-camera-wrong { border-color: #d9a0a0; color: #b3261e; }
.care-camera-move-who { display: inline-block; width: 200px; vertical-align: middle; margin-right: 4px; }
.care-camera-crops { padding: 6px 4px 0 0; gap: 10px; }
.care-camera-live { min-height: 1.6em; margin: 6px 0; padding: 6px 10px; border-radius: 6px; background: #eef4fd; color: #1e3a6b; font-weight: 600; }

/* Tools › Old Photos: the counts of a look or an import, one line each. */
.care-old-photos-result { width: 100%; border-collapse: collapse; }
.care-old-photos-result th { text-align: left; font-weight: 500; padding: 8px 16px; }
.care-old-photos-result td { padding: 8px 16px; }
.care-old-photos-result tr + tr { border-top: 1px solid rgba(0, 0, 0, .06); }

/* Daily Attendance: the two ride boxes of a line (pick-up, drop-off). */
/* The two boxes sit side by side where there is room and one above the other on a narrow screen — never pushing the line's last button off the card. */
.care-rides { white-space: normal; }
.care-day-sheet .care-note { min-width: 80px; }
.care-ride { display: inline-flex; align-items: center; gap: 3px; margin-right: 8px; white-space: nowrap; font-size: .8rem; color: #546e7a; cursor: pointer; }
.care-ride input { margin: 0; }

/* Member: the social security number — its last four digits, and for those allowed a button that shows the whole of it. */
.care-ssn { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.care-ssn .mud-button-root { min-width: 0; padding: 0 6px; line-height: 1.3; text-transform: none; }
.care-ssn-whole { font-variant-numeric: tabular-nums; letter-spacing: .04em; font-weight: 600; }

/* Member page: short lists inside a card (financial lines, the newest Client Log notes). */
.care-brief { width: 100%; border-collapse: collapse; font-size: .9rem; }
.care-brief td { padding: 6px 0; vertical-align: top; }
.care-brief tr + tr td { border-top: 1px solid rgba(0, 0, 0, .06); }
.care-brief-date { width: 96px; color: #607d8b; white-space: nowrap; font-variant-numeric: tabular-nums; }
.care-brief-amount { width: 120px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-right: 12px !important; }
.care-brief-tools { width: 96px; text-align: right; white-space: nowrap; }
.care-brief-text { color: #37474f; }
.care-mini-link { font-size: .82rem; color: #1c5aa6; text-decoration: none; }
.care-mini-link:hover { text-decoration: underline; }
.care-recent-notes-open { margin-bottom: 6px; }

/* Member page, Health tab. A severe allergy is said in red — on its line and beside the member's name on every tab (that chip
   wraps when there are many). An empty list says which kind of empty it is, with the button that changes the answer beside it. */
.care-status-alert { background: #ffebee; color: #c62828; font-weight: 600; }
.care-allergy-chip { white-space: normal; }
.care-health-answer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.care-health-hint { margin-top: 6px; }
.care-med-stopped-fold { margin-top: 10px; }
.care-dx-bring { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; }
@media (max-width: 600px) {
    /* Three or four small buttons beside a line do not fit a phone: they go under each other. */
    .care-health-tools { white-space: normal; }
    .care-health-tools .care-mini { margin-bottom: 3px; }
}

/* Care plan (PCSP): the State's form as one long page — a panel a section, in the form's order; its sections listed beside it
   (above it on a narrow screen) with what is open in each; the form's own instructions in quiet text over the questions. A bar
   that stays in sight holds Save and Complete. An answer that was filled in beforehand has an amber edge until somebody
   confirmed it with the participant. A completed plan is the same page with the answers as text. */
.care-plan-bar { position: sticky; top: 56px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 8px 14px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(30, 58, 95, .07); }
.care-plan-bar-buttons { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
a.care-plan-sum-open { cursor: pointer; }
.care-plan { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 16px; align-items: start; }
.care-plan-nav { position: sticky; top: 124px; padding: 8px 6px; max-height: calc(100vh - 140px); overflow-y: auto; }
.care-plan.is-read .care-plan-nav { top: 64px; max-height: calc(100vh - 80px); }
.care-plan-nav-row { display: flex; align-items: baseline; gap: 8px; padding: 6px 10px; border-radius: 6px; color: #37474f; text-decoration: none; font-size: .875rem; line-height: 1.35; }
.care-plan-nav-row:hover { background: #f1f4f8; }
.care-plan-nav-no { flex: 0 0 10px; color: var(--nc-muted); font-variant-numeric: tabular-nums; }
.care-plan-nav-title { flex: 1 1 auto; min-width: 0; }
.care-plan-nav-counts { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.care-plan-nav-counts .care-watch-left, .care-plan-nav-counts .care-status { min-width: 26px; padding: 0 7px; font-size: .78rem; line-height: 1.5; text-align: center; }
.care-plan-nav-done { color: #1b6b34; font-weight: 600; }
.care-plan-section { margin-bottom: 16px; scroll-margin-top: 124px; }
.care-plan-section-counts { font-size: .8rem; }
.care-plan-block + .care-plan-block { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--nc-line); }
.care-plan-block-title { margin: 0 0 6px; font-size: .95rem; font-weight: 600; color: #37474f; }
.care-plan-help { margin: 0 0 12px; max-width: 84ch; font-size: .82rem; line-height: 1.5; color: var(--nc-muted); }
.care-plan-statement { margin: 0 0 12px; max-width: 84ch; font-size: .92rem; line-height: 1.6; color: #263238; }
.care-plan-later { margin: 0; }
.care-plan-q { min-width: 0; scroll-margin-top: 150px; border-radius: 4px; }
.care-plan-q-text { display: block; margin: 2px 0 4px; font-size: .9rem; line-height: 1.45; color: #263238; }
.care-plan-choices, .care-plan-choices .mud-radio-group { display: flex; flex-wrap: wrap; gap: 0 18px; }
.care-plan-k-choice .care-plan-choices .mud-radio-group { flex-direction: column; align-items: flex-start; }
.care-plan-given { font-size: .9rem; font-weight: 600; color: #263238; }
.care-plan-line > .care-plan-k-fixed { align-self: center; }
/* A place that stands alone in its table keeps its width when the places under "If yes, …" come in beside it. */
.care-plan .care-form { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
/* A whole name or a one-line address takes two places' room — where the form is wide enough to have two. */
@media (min-width: 640px) { .care-plan .care-form > .roomy { grid-column: span 2; } }
/* Said to a screen reader, not shown: the words stand in the heading right above. */
.care-plan-unseen { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.care-plan-q.is-marked, .care-plan-lines.is-marked { box-shadow: inset 3px 0 0 #f0a500; padding-left: 12px; }
/* The mark is a thing to do with its box to tick: one tap, and it is gone. */
.care-plan-confirm { display: inline-flex; align-items: center; gap: 7px; margin: 5px 0 6px; padding: 3px 10px 3px 8px; border: 0; border-radius: 12px; background: #fff4d6; color: #8a5a00; font: inherit; font-size: .8rem; line-height: 1.5; text-align: left; cursor: pointer; }
.care-plan-confirm:hover { background: #ffe9b0; }
.care-plan-confirm:focus-visible { outline: 2px solid #f0a500; outline-offset: 1px; }
.care-plan-confirm-box { flex: 0 0 13px; width: 13px; height: 13px; border: 1.5px solid #8a5a00; border-radius: 3px; background: #fff; }
.care-plan-lines > .care-plan-confirm { margin-top: 0; margin-bottom: 10px; }
.care-plan-q.is-shown, .care-plan-lines.is-shown, .care-plan-open.is-shown { outline: 2px solid #90caf9; outline-offset: 4px; }
.care-plan-box { margin-bottom: 10px; padding: 10px 12px 12px; border: 1px solid var(--nc-line); border-radius: 6px; background: #fcfdfe; }
.care-plan-box-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.care-plan-box-title { font-size: .9rem; font-weight: 600; color: #37474f; }
.care-plan-subhead { margin-top: 2px; font-size: .8rem; font-weight: 600; color: var(--nc-muted); }
.care-plan-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px; gap: 8px 12px; align-items: start; margin-bottom: 8px; }
.care-plan-line-3 { grid-template-columns: minmax(110px, .45fr) minmax(0, 1fr) minmax(0, 1fr); }
.care-plan-line .care-plan-remove { align-self: center; margin: 0; padding: 2px 6px; }
.care-plan-add { margin: 2px 0 0; }
/* Completing: first the paper, then what the paper says. */
.care-plan-step { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 12px; font-size: .9rem; line-height: 1.45; color: #263238; }
.care-plan-step b { margin-right: 4px; color: var(--nc-title); }
.care-plan-open-section { margin: 12px 0 2px; font-size: .9rem; font-weight: 600; color: #37474f; }
.care-plan-open-list { margin: 0; padding-left: 20px; font-size: .9rem; line-height: 1.75; }
.care-plan-open-list a { color: #1c5aa6; text-decoration: none; }
.care-plan-open-list a:hover { text-decoration: underline; }
/* A completed plan: the question in small grey letters, the answer under it as it was written. */
.care-plan.is-read .care-plan-q-text { margin: 0 0 1px; font-size: .8rem; color: #607d8b; }
.care-plan-a { min-height: 1.4em; font-size: .92rem; color: #111; word-break: break-word; }
.care-plan.is-read .care-plan-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 0; padding: 5px 0; border-top: 1px solid rgba(0, 0, 0, .06); }
.care-plan.is-read .care-plan-line-3 { grid-template-columns: minmax(90px, .45fr) minmax(0, 1fr) minmax(0, 1fr); }
.care-plan.is-read .care-plan-line-head { border-top: 0; font-size: .75rem; font-weight: 500; color: var(--nc-head-text); }
.care-plan-older { margin-top: 10px; }
/* A member's care plans, and the Care Plans list: a line opens what it is about. */
.care-plans-rule { margin-top: 10px; max-width: 84ch; }
.care-plans-table td a:not(.care-mini-link), .care-plan-watch td a:not(.care-mini-link) { color: inherit; text-decoration: none; }
.care-plans-table td a:hover, .care-plan-watch td a:hover { text-decoration: underline; }
.care-plan-sums .care-watch-sum.is-chosen { padding-bottom: 1px; border-bottom: 2px solid #1e5aa8; }
/* On a phone the table scrolls sideways in its card: the member's name keeps its width, and is not broken into three lines. */
.care-plan-watch td:first-child { min-width: 170px; }
.care-plans-table td:first-child { min-width: 110px; }
a.care-plan-chip { text-decoration: none; white-space: normal; }
a.care-plan-chip:hover { text-decoration: underline; }
@media (max-width: 1100px) {
    /* The sections go above the form, and scroll away with it; the bar stays. */
    .care-plan { grid-template-columns: minmax(0, 1fr); }
    .care-plan .care-plan-nav, .care-plan.is-read .care-plan-nav { position: static; max-height: none; }
    .care-plan-section, .care-plan-q { scroll-margin-top: 170px; }
}
@media (max-width: 600px) {
    /* The bar in two lines: what stands, then the two buttons. */
    .care-plan-bar { padding: 8px 10px; gap: 6px 10px; }
    .care-plan-bar .care-watch-sum { font-size: .82rem; }
    .care-plan-bar .care-watch-sum b { font-size: 1.05rem; }
    .care-plan-bar-buttons { margin-left: 0; }
    /* A row of a list: its places under each other, the ✕ beside the first. */
    .care-plan:not(.is-read) .care-plan-line { grid-template-columns: minmax(0, 1fr) 28px; }
    .care-plan:not(.is-read) .care-plan-line > .care-plan-q { grid-column: 1; }
    .care-plan:not(.is-read) .care-plan-line > .care-plan-remove { grid-column: 2; grid-row: 1; }
    .care-plan:not(.is-read) .care-plan-line-3 { grid-template-columns: minmax(0, 1fr); margin-bottom: 14px; }
}

/* Authorization Watch: the four counts on top, the lists under them; Home's to-do board. */
.care-watch-sums { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .9rem; }
.care-watch-sum { color: #607d8b; text-decoration: none; }
.care-watch-sum b { font-size: 1.15rem; color: #37474f; margin-right: 2px; }
.care-watch-sum-on b { color: #c62828; }
.care-watch-head, .care-board-head { margin: 22px 0 8px; font-size: 1rem; font-weight: 600; color: #1e3a5f; scroll-margin-top: 80px; }
.care-watch td a { color: inherit; text-decoration: none; }
.care-watch td a:hover { text-decoration: underline; }
.care-watch-left { display: inline-block; min-width: 34px; padding: 1px 8px; border-radius: 10px; text-align: center; font-variant-numeric: tabular-nums; background: #eceff1; color: #37474f; }
.care-watch-left-2 { background: #fff3e0; color: #e65100; }
.care-watch-left-3 { background: #ffebee; color: #c62828; font-weight: 600; }
.care-board-clear { max-width: 720px; }

/* Closed days, days away: what is past is quieter. */
tr.is-past td { color: #90a4ae; }
.care-away-add { margin-left: 6px; padding: 0 6px; font-size: .72rem; color: #78909c; }

/* Old SSNs: what this site itself sees of the key (never the key). */
.care-old-ssn-how { margin-top: 4px; }
.care-old-ssn-sees { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.care-old-ssn-ok { color: #2e7d32; font-weight: 600; }
.care-old-ssn-missing { color: #c62828; font-weight: 600; }

/* Transportation — the regular list (Riders): van tabs, the add box, weekday ticks. */
.care-rider-sums { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: .9rem; }
.care-rider-sum { border: 0; border-bottom: 2px solid transparent; background: none; padding: 2px 0; font: inherit; color: #607d8b; cursor: pointer; }
.care-rider-sum b { font-size: 1.15rem; color: #37474f; margin-right: 3px; }
.care-rider-sum.is-warn b { color: #c62828; }
.care-rider-sum.is-on { border-bottom-color: #1976d2; color: #1e3a5f; }
.care-rider-sum.is-still { cursor: default; }
.care-van-tabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 6px; margin: 0 0 8px; border-bottom: 1px solid var(--nc-line); }
.care-van-tab { margin-bottom: -1px; padding: 7px 14px; border: 1px solid var(--nc-line); border-radius: 8px 8px 0 0; background: #f6f7f9; font: inherit; font-size: .9rem; color: #546e7a; cursor: pointer; }
.care-van-tab.is-on { background: #fff; border-bottom-color: #fff; color: #1e3a5f; font-weight: 600; }
.care-van-tab.is-idle { font-style: italic; }
.care-van-tab-n { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 6px; border-radius: 10px; background: #e3e8ee; color: #37474f; font-size: .75rem; font-weight: 600; font-style: normal; text-align: center; }
.care-way { display: inline-flex; }
.care-van-tabs .care-way { margin-bottom: 6px; }
.care-way-tab { padding: 5px 12px; border: 1px solid #cfd8dc; background: #fff; font: inherit; font-size: .85rem; color: #546e7a; cursor: pointer; white-space: nowrap; }
.care-way-tab:first-child { border-radius: 6px 0 0 6px; }
.care-way-tab:last-child { border-radius: 0 6px 6px 0; border-left: 0; }
.care-way-tab.is-on { background: #1e5aa8; border-color: #1e5aa8; color: #fff; }
.care-way-tab.is-on .care-van-tab-n { background: rgba(255, 255, 255, .25); color: #fff; }
.care-way-tab:disabled { opacity: .6; cursor: default; }
.care-both-ways { display: inline-flex; align-items: center; gap: 5px; margin: 0 10px 9px 0; font-size: .82rem; color: #546e7a; cursor: pointer; }
.care-rider-add { padding: 10px 14px; margin-bottom: 8px; }
.care-rider-add-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.care-rider-find { position: relative; flex: 1 1 320px; max-width: 520px; }
.care-rider-box { padding: 7px 10px; font-size: .95rem; }
.care-rider-picks { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; max-height: 340px; margin-top: 2px; overflow-y: auto; background: #fff; border: 1px solid #b0bec5; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); }
.care-rider-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 6px 10px; border: 0; background: none; font: inherit; font-size: .9rem; text-align: left; cursor: pointer; }
.care-rider-pick.is-on, .care-rider-pick:hover { background: #e8f1fc; }
.care-rider-pick-none { padding: 8px 10px; }
.care-rider-defaults, .care-rider-fill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.care-rider-default { display: inline-flex; align-items: center; gap: 3px; font-size: .82rem; color: #455a64; cursor: pointer; }
.care-rider-fill .care-fill-first { width: 92px; }
.care-rider-fill .care-fill-minutes { width: 58px; }
.care-riders td, .care-riders th, .care-candidate-list td, .care-candidate-list th { padding-left: 8px; padding-right: 8px; }
.care-riders td:nth-child(4), .care-candidate-list td:nth-child(4), .care-candidate-list td:nth-child(5) { white-space: normal; }
.care-sheet .care-rider-day, .care-sheet .care-rider-dayhead { width: 26px; padding-left: 2px; padding-right: 2px; text-align: center; white-space: nowrap; }
.care-rider-day input { width: 16px; height: 16px; cursor: pointer; vertical-align: middle; }
.care-rider-place { color: #607d8b; font-variant-numeric: tabular-nums; }
.care-riders .care-rider-time { width: 82px; }
.care-rider-missing { color: #c62828; font-size: .82rem; }
.care-rider-pickup { margin-right: 4px; font-size: .7rem; padding: 0 6px; }
.care-rider-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; color: #546e7a; }
.care-rider-sub .mud-icon-root { font-size: 1.05rem; }
.care-rider-pick-native { margin-left: 6px; }
.care-native { margin-left: 5px; white-space: nowrap; }
.care-rider-pick-no { margin-left: 8px; }
.care-rider-tools { white-space: nowrap; text-align: right; }
.care-rider-move { width: 84px; margin-left: 4px; padding: 2px 4px; font-size: .78rem; }
.care-rider-fill { margin-left: auto; }
.care-riders-foot { display: block; margin: -8px 0 16px; }
.care-candidate-list { margin-top: 8px; }
.care-vehicles td { white-space: nowrap; }
.care-vehicles td.care-vehicle-note { white-space: normal; }
.care-drivers-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: -4px 0 4px; font-size: .9rem; color: #37474f; }

/* Transportation — the day's log: a block a van, a line a rider. */
.care-log-totals { margin-bottom: 10px; }
.care-log-totals span.is-warn b { color: #b45309; }
.care-log-totals span.is-bad b { color: #c62828; }
.care-log-block { margin-bottom: 14px; }
.care-log-block-none { border-color: #ef9a9a; }
.care-log-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 9px 14px; background: #f8fafc; border-bottom: 1px solid var(--nc-line); }
.care-log-block-none .care-log-head { background: #fff5f5; }
.care-log-van { font-size: 1rem; color: #1e3a6b; }
.care-log-nobody { padding: 10px 14px; }
.care-log-lines td, .care-log-lines th { padding-left: 6px; padding-right: 6px; }
.care-log-reason { margin-left: 5px; }
.care-log-marked { margin-top: 2px; }
.care-log-on, .care-log-off { white-space: nowrap; }
.care-log-lines td { padding-top: 6px; padding-bottom: 6px; vertical-align: top; }
.care-log-lines td:nth-child(4), .care-log-lines td:nth-child(5) { white-space: normal; }
.care-log-line.is-plan td, .care-log-line.is-away td, .care-log-line.is-cancelled td { color: #90a4ae; }
.care-log-tag { padding: 0 6px; font-size: .7rem; }
.care-log-changed { background: #fff3e0; color: #e65100; }
.care-ride-on { background: #e3f0fd; color: #0d4f9e; }
.care-ride-noshow { background: #ffebee; color: #c62828; }
.care-log-tools { white-space: normal; }
.care-log-tools .care-mini { margin: 0 4px 3px 0; }
.care-log-move { width: 118px; padding: 2px 4px; font-size: .78rem; }
.care-van-arrived { margin-bottom: 8px; }

/* Transportation — the day on paper: one van and way a page. */
.care-sheet-paper.care-trip { padding: .45in; font-size: 9.5pt; }
.care-trip-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 2px solid #111; }
.care-trip-van { font-size: 17pt; font-weight: 700; line-height: 1.2; }
.care-trip-day { font-size: 11pt; }
.care-trip-center { color: #444; }
.care-trip-facts { border-collapse: collapse; }
.care-trip-facts th { padding: 1px 10px 1px 0; text-align: right; font-weight: 400; color: #555; }
.care-trip-facts td { min-width: 1.4in; border-bottom: 1px solid #999; font-weight: 600; }
.care-trip-lines { width: 100%; border-collapse: collapse; table-layout: fixed; }
.care-trip-lines th { padding: 4px; border-bottom: 1px solid #111; text-align: left; font-size: 7.5pt; text-transform: uppercase; letter-spacing: .03em; }
.care-trip-lines td { padding: 5px 4px; border-bottom: 1px solid #c8c8c8; vertical-align: top; overflow-wrap: anywhere; }
.care-trip-lines thead { display: table-header-group; }
.care-trip-lines tr { page-break-inside: avoid; }
.care-trip-lines .n { width: .28in; }
.care-trip-lines .t { width: .64in; }
.care-trip-lines .who { width: 1.35in; }
.care-trip-lines .tel { width: .92in; }
.care-trip-lines .note { width: 1in; }
.care-trip-lines .box { width: .6in; text-align: center; white-space: nowrap; font-size: 8.5pt; }
.care-trip-lines .res { width: .8in; }
.care-trip-apt { font-weight: 700; }
.care-trip-pickup, .care-trip-mobility { font-size: 7.5pt; font-weight: 700; text-transform: uppercase; }
.care-trip-missing { color: #b71c1c; }
.care-trip-box { display: inline-block; width: .3in; height: .22in; border: 1px solid #333; }
.care-trip-lines tr.is-cancelled td, .care-trip-lines tr.is-away td { color: #777; }
.care-trip-lines tr.is-cancelled .who b { text-decoration: line-through; }
.care-trip-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: .4in; }
.care-trip-printed { color: #555; font-size: 8.5pt; }
.care-trip-notice { margin-top: .5in; font-size: 13pt; }
@media print { .care-sheet-paper.care-trip { padding: 0; } }

/* nCloudCare — the attendance record a plan takes a copy of (the same blocks on the screen and on paper). Black on white only:
   nothing is said by a colour. A block's head (whose it is, the column names) is a thead, so the browser repeats it on every
   page the block runs over; a short block is not split. */
.care-sheet-paper.care-rec { padding: .5in; font-size: 10pt; overflow: visible; }
.care-rec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #111; }
.care-rec-company { font-size: 14pt; font-weight: 700; line-height: 1.25; }
.care-rec-center { font-weight: 600; }
.care-rec-title { text-align: right; }
.care-rec-title h1 { margin: 0 0 4px; font-size: 14pt; letter-spacing: .08em; text-transform: uppercase; }
.care-rec-title table { margin-left: auto; border-collapse: collapse; }
.care-rec-title th { padding: 0 10px 0 0; text-align: right; font-weight: 400; color: #444; white-space: nowrap; }
.care-rec-title td { text-align: right; font-weight: 600; }
.care-rec-note { margin-top: 2px; font-size: 8.5pt; color: #444; }
.care-rec-lines { width: 100%; margin-bottom: 14px; border-collapse: collapse; table-layout: fixed; }
.care-rec-lines thead { display: table-header-group; }
.care-rec-lines tr { page-break-inside: avoid; break-inside: avoid; }
.care-rec-lines.care-rec-keep { page-break-inside: avoid; break-inside: avoid; }
.care-rec-who th { padding: 6px 4px 3px; border-bottom: 1px solid #111; text-align: left; font-weight: 400; }
.care-rec-name { font-size: 11.5pt; font-weight: 700; }
.care-rec-native { margin-left: 8px; font-weight: 400; }
.care-rec-ids { display: block; font-size: 8.5pt; }
.care-rec-ids > span + span { margin-left: 14px; }
.care-rec-of { float: right; padding-top: 3px; font-size: 8pt; color: #444; }
.care-rec-cols th { padding: 3px 4px; border-bottom: 1px solid #111; text-align: left; font-size: 7.5pt; text-transform: uppercase; letter-spacing: .03em; }
.care-rec-lines td { padding: 3px 4px; border-bottom: 1px solid #c8c8c8; vertical-align: top; overflow-wrap: anywhere; }
.care-rec-lines .d { width: 1.05in; }
.care-rec-lines .w { width: .6in; }
.care-rec-lines .t { width: 1.05in; }
.care-rec-lines .h { width: .7in; }
.care-rec-lines .i { width: .35in; }
.care-rec-lines .no { width: 1in; }
.care-rec-lines col.n { width: 1.3in; }
.care-rec-lines .num { text-align: right; }
.care-rec-lines.care-rec-plans { table-layout: auto; }
.care-rec-line.is-open .n { font-weight: 700; }
.care-rec-lines tr.care-rec-sum td { border-top: 1px solid #111; border-bottom: none; font-weight: 600; }
.care-rec-lines tr.care-rec-sum { page-break-before: avoid; break-before: avoid; }
.care-rec-totals { margin: 10px 0 0; padding-top: 8px; border-top: 2px solid #111; font-weight: 700; page-break-before: avoid; break-before: avoid; }
.care-rec-none { margin-top: .4in; font-size: 12pt; }
.care-rec-foot { font-size: 8.5pt; color: #444; }
@media print { .care-sheet-paper.care-rec { padding: 0; } }
/* On the screen the same blocks sit in a card, a few at a time. */
.care-rec-preview { padding: 12px 16px; font-size: .86rem; color: #111; }
.care-rec-preview .care-rec-lines { max-width: 8in; }
.care-rec-plan { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 6px 0 10px; padding-bottom: 4px; border-bottom: 2px solid #111; font-size: 1.05rem; }

/* nCloudCare — the member face sheet: one member on one Letter page, the paper taken along in an emergency and the cover of the
   participant record. Black on white only, and nothing is said by a background (a browser prints none unless asked): what must
   be seen is said by a frame and by words. The sheet is a table of one column so that its head — the member's name and number —
   is repeated by the browser on every page a long sheet runs over. Its own head is the attendance record's (.care-rec-head). */
.care-sheet-paper.care-face { padding: .5in; font-size: 10pt; line-height: 1.27; overflow: visible; }
.care-face .care-rec-head { margin-bottom: 0; }
.care-face-sheet { width: 100%; border-collapse: collapse; table-layout: fixed; }
.care-face-sheet thead { display: table-header-group; }
.care-face-sheet > thead > tr > th, .care-face-sheet > tbody > tr > td { padding: 0; text-align: left; font-weight: 400; vertical-align: top; }
.care-face-who { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0 5px; border-bottom: 1px solid #111; }
.care-face-name { font-size: 17pt; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.care-face-native { margin-left: 10px; font-size: 13pt; font-weight: 400; }
.care-face-no { white-space: nowrap; font-size: 10pt; }
.care-face-no b { font-size: 13pt; }
/* A block is not split over two pages; a list that may be long (.is-long) is, between its lines. */
.care-face-block { margin-top: 7px; page-break-inside: avoid; break-inside: avoid; }
.care-face-block.is-long { page-break-inside: auto; break-inside: auto; }
.care-face h2 { margin: 0 0 3px; padding-bottom: 1px; border-bottom: 1px solid #111; font-size: 8pt; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; page-break-after: avoid; break-after: avoid; }
.care-face h3 { margin: 5px 0 1px; font-size: 7.5pt; font-weight: 400; color: #333; letter-spacing: .03em; text-transform: uppercase; page-break-after: avoid; break-after: avoid; }
.care-face-two { display: table; width: 100%; table-layout: fixed; border-collapse: collapse; }
.care-face-two > div { display: table-cell; vertical-align: top; }
.care-face-two > div:first-child { padding-right: .14in; }
.care-face-two > div + div { padding-left: .14in; }
.care-face-two > .is-wide { width: 56%; }
/* Who it is: the picture (or the initials) and the facts beside it. */
.care-face-id { display: table; width: 100%; border-collapse: collapse; }
.care-face-photo, .care-face-facts { display: table-cell; vertical-align: top; }
.care-face-photo { width: 1in; padding-right: .16in; }
.care-face-photo img, .care-face-initials { display: block; width: 1in; height: 1.24in; border: 1px solid #111; }
.care-face-photo img { object-fit: cover; }
.care-face-photo img[hidden], .care-face-initials[hidden] { display: none; }
.care-face-initials { font-size: 26pt; font-weight: 700; line-height: 1.24in; text-align: center; letter-spacing: .04em; color: #333; overflow: hidden; }
.care-face-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr); gap: 3px 10px; margin: 0; }
.care-face-kv.is-one { grid-template-columns: max-content minmax(0, 1fr); row-gap: 2px; }
.care-face-kv dt { font-size: 8pt; line-height: 1.65; color: #333; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.care-face-kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.care-face-kv dd.is-row { grid-column: 2 / -1; }
.care-face-kv dd.is-plain, .care-face-quiet { font-weight: 400; }
.care-face-big { font-size: 11.5pt; }
/* What is not written down is said, in other letters: an empty place on paper says nothing. */
.care-face-none { font-style: italic; font-weight: 400; }
div.care-face-none { padding: 1px 0 3px; }
/* Allergies: the loudest block of the sheet. Three answers that must never be taken for one another — a list in a heavy frame,
   "none" (somebody asked) in a thin one, "not asked yet" in a broken one — and each is also said in words. */
.care-face-allergies { margin-top: 7px; padding: 5px 9px 6px; border: 3pt solid #000; page-break-inside: avoid; break-inside: avoid; }
.care-face-allergies > h2 { margin-bottom: 1px; border-bottom: none; font-size: 10pt; letter-spacing: .12em; }
.care-face-allergies.is-none { border: 1pt solid #000; }
.care-face-allergies.is-unknown { border: 3pt dashed #000; }
.care-face-allergy { font-size: 13pt; line-height: 1.3; overflow-wrap: anywhere; }
.care-face-allergy .care-face-kind { font-size: 9pt; }
.care-face-allergy .care-face-more { display: block; margin-bottom: 2px; font-size: 9.5pt; }
.care-face-tag { display: inline-block; margin-right: 6px; padding: 0 5px; border: 1.5pt solid #000; font-size: 8pt; font-weight: 700; line-height: 1.45; letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }
.care-face-answer { font-size: 13pt; font-weight: 700; }
.care-face-why { font-size: 9.5pt; }
/* The medications say the same three things, more quietly. */
.care-face-medications.is-none, .care-face-medications.is-unknown { padding: 4px 9px 5px; border: 1pt solid #000; }
.care-face-medications.is-unknown { border: 1.5pt dashed #000; }
.care-face-medications.is-none > h2, .care-face-medications.is-unknown > h2 { margin-bottom: 1px; border-bottom: none; }
.care-face-medications .care-face-answer { font-size: 11pt; }
/* The lists: contacts, doctors, diagnoses, medications. */
.care-face-lines { width: 100%; border-collapse: collapse; table-layout: fixed; }
.care-face-lines thead { display: table-header-group; }
.care-face-lines tr { page-break-inside: avoid; break-inside: avoid; }
.care-face-lines th { padding: 1px 6px 1px 0; text-align: left; font-size: 7.5pt; font-weight: 400; color: #333; text-transform: uppercase; letter-spacing: .03em; }
.care-face-lines td { padding: 2px 6px 2px 0; border-bottom: 1px solid #bbb; vertical-align: top; overflow-wrap: anywhere; }
.care-face-lines td:last-child, .care-face-lines th:last-child { padding-right: 0; }
.care-face-lines .tel { width: 1.02in; }
.care-face-lines .code { width: .8in; font-weight: 700; white-space: nowrap; }
.care-face-lines .med { width: 30%; }
.care-face-lines .dir { width: 38%; }
.care-face-sub { font-size: 8.5pt; font-weight: 400; }
.care-face-lines b + span.care-face-sub { margin-left: 6px; }
.care-face-left-out { margin-top: 2px; font-style: italic; }
.care-face-notes > div { overflow-wrap: anywhere; }
.care-face-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 9px; padding-top: 3px; border-top: 1px solid #111; font-size: 8.5pt; page-break-inside: avoid; break-inside: avoid; }
/* The sheet that could not be read: said on the screen and, if somebody prints it all the same, on the paper. */
.care-face-error { max-width: 8.5in; margin: 0 auto; padding: 18px 20px; border: 2px solid #b71c1c; background: #fff; }
.care-face-error p { margin: 0 0 12px; font-weight: 600; }
.care-face-error a { margin-right: 14px; color: #1565c0; text-decoration: underline; }
.care-face-error a.care-face-retry { display: inline-block; padding: 6px 16px; border: 1px solid #1565c0; border-radius: 4px; background: #1976d2; color: #fff; text-decoration: none; }
@media print { .care-sheet-paper.care-face { padding: 0; } }

/* nCloudCare — the care plan on paper (.care-plan-print-…): New York's Person Centered Service Plan as the State's template lays
   it out — a centered heading a section, boxed tables with a grey heading row, the form's words heavy and the answer after
   them. Black on white. The grey of a heading row is asked for (print-color-adjust), since a browser prints no background by
   itself; the row is centered and heavy besides, so the form reads the same without it. The sheet is a table of one column
   whose head — the center's name and address, as the State's form has them on every page — the browser repeats; the words in
   the page's margin (whose plan, DRAFT, the page number) are set by the sheet itself, which knows them. Tables: a short one is
   kept on a page, a row is not divided, a heading row and its instructions stay with the row after them. In two languages
   (.is-two) the Korean line stands under or beside the English in lighter letters. */
.care-sheet-paper.care-plan-print { padding: .55in .6in; font-family: "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; font-size: 10pt; line-height: 1.28; color: #000; overflow: visible; word-break: keep-all; }
.care-plan-print-pages { width: 100%; border-collapse: collapse; table-layout: fixed; }
.care-plan-print-pages > thead { display: table-header-group; }
.care-plan-print-pages > thead > tr > th { padding: 0 0 7pt; text-align: center; font-weight: 400; }
.care-plan-print-pages > tbody > tr > td { padding: 0; text-align: left; vertical-align: top; }
.care-plan-print-center { font-size: 13pt; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.care-plan-print-address { font-size: 10.5pt; overflow-wrap: anywhere; }
/* The words of the margin in a line of the head, for a browser that prints nothing in the margin: the sheet hides the line
   where the margin is printed. Never on the screen. */
.care-plan-print-run { display: none; margin-top: 3pt; padding-top: 2pt; border-top: .5pt solid #000; font-size: 8.5pt; overflow-wrap: anywhere; }
.care-plan-print-ko { margin-left: .15em; font-weight: 400; font-style: normal; }
.care-plan-print-ko.is-under, div.care-plan-print-ko, p.care-plan-print-ko { display: block; margin-left: 0; }
.care-plan-print-title { margin: 1pt 0 4pt; text-align: center; font-size: 19pt; font-weight: 400; line-height: 1.15; }
.care-plan-print-title .care-plan-print-ko { font-size: 12pt; line-height: 1.3; }
/* Ours, under the title: what kind of plan, whose, and — in a heavy frame — that a draft is one. */
.care-plan-print-about { margin: 0 0 4pt; text-align: center; font-size: 9pt; }
.care-plan-print-draft { display: inline-block; margin: 2pt 0 4pt; padding: 3pt 12pt; border: 2.25pt solid #000; text-align: left; }
.care-plan-print-draft > b { margin-right: 10pt; font-size: 15pt; font-weight: 800; letter-spacing: .08em; vertical-align: middle; }
.care-plan-print-draft > b .care-plan-print-ko { font-weight: 700; letter-spacing: 0; }
.care-plan-print-draft > span { display: inline-block; font-size: 9.5pt; vertical-align: middle; }
.care-plan-print-facts > span { display: inline-block; margin: 0 8pt; }
.care-plan-print-facts > span.is-row { display: block; }
.care-plan-print-section { margin: 11pt 0 3pt; text-align: center; font-size: 13pt; font-weight: 700; line-height: 1.2; page-break-inside: avoid; break-inside: avoid; page-break-after: avoid; break-after: avoid; }
.care-plan-print-section .care-plan-print-ko { font-size: 10.5pt; line-height: 1.3; }
/* A table of the form. */
.care-plan-print-box { width: 100%; margin: 0 0 8pt; border-collapse: collapse; table-layout: fixed; }
.care-plan-print-box.is-kept { page-break-inside: avoid; break-inside: avoid; }
.care-plan-print-box > thead { display: table-header-group; }
.care-plan-print-box th, .care-plan-print-box td { padding: 2.5pt 5pt 3pt; border: .75pt solid #000; text-align: left; font-weight: 400; vertical-align: top; overflow-wrap: anywhere; }
.care-plan-print-box tr { page-break-inside: avoid; break-inside: avoid; }
.care-plan-print-box tr.is-long { page-break-inside: auto; break-inside: auto; }
.care-plan-print-box tr.care-plan-print-stay { page-break-after: avoid; break-after: avoid; }
.care-plan-print-box th.care-plan-print-head, .care-plan-print-box th.care-plan-print-side.is-first { background: #d9d9d9; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.care-plan-print-box th.care-plan-print-head { text-align: center; font-weight: 700; }
.care-plan-print-box .care-plan-print-cols th { text-align: center; font-weight: 700; }
.care-plan-print-box th.care-plan-print-side { font-weight: 700; }
.care-plan-print-cols .care-plan-print-ko, .care-plan-print-side .care-plan-print-ko { font-size: 9.5pt; }
.care-plan-print-opening { margin-bottom: 5pt; page-break-after: avoid; break-after: avoid; }
/* The State's instructions: kept, small. The statement that is signed is no instruction: it is read before signing. */
.care-plan-print-note { font-size: 8.5pt; font-style: italic; line-height: 1.25; }
.care-plan-print-note p, .care-plan-print-statement p { margin: 0; }
.care-plan-print-note p + p { margin-top: 3pt; }
.care-plan-print-statement { font-size: 10pt; font-style: italic; line-height: 1.35; }
.care-plan-print-box td.care-plan-print-statement { padding: 5pt 7pt 6pt; }
.care-plan-print-statement p.care-plan-print-ko { margin-top: 6pt; font-size: 10.5pt; line-height: 1.5; }
/* A question: the form's words heavy, the answer after them as it was written. */
.care-plan-print-q + .care-plan-print-q { margin-top: 6pt; }
.care-plan-print-label { font-weight: 700; }
.care-plan-print-ask > .care-plan-print-label { margin-right: .1em; }
.care-plan-print-q > .care-plan-print-ko { font-size: 9.5pt; }
.care-plan-print-text { white-space: pre-wrap; }
/* Room to write in by hand: a line after a short question, ruled lines under a long one, an empty cell of some height. */
.care-plan-print-ask.is-open { display: flex; align-items: flex-end; gap: 5pt; }
.care-plan-print-ask.is-open > .care-plan-print-label { flex: 0 1 auto; margin-right: 0; }
.care-plan-print-fill { display: inline-block; flex: 1 1 1in; min-width: .9in; height: 1.5em; border-bottom: .75pt solid #000; }
.care-plan-print-fill.is-short { width: 1.5in; height: 1.15em; vertical-align: bottom; }
.care-plan-print-write { display: block; }
.care-plan-print-write > span { display: block; height: .29in; border-bottom: .5pt solid #000; }
.care-plan-print-room { min-height: 20pt; }
/* A box of the form, ticked for the answer; the answer's words are heavy too. */
.care-plan-print-choice { display: inline-block; margin-right: .6em; white-space: nowrap; }
.care-plan-print-choice:last-child { margin-right: 0; }
.care-plan-print-boxes.is-pair { display: inline-block; white-space: nowrap; }
.care-plan-print-list td > .care-plan-print-boxes.is-pair { display: inline; white-space: normal; }
.care-plan-print-choice.is-on { font-weight: 700; }
.care-plan-print-boxes.is-stacked > .care-plan-print-choice { display: block; margin: 1.5pt 0; font-size: 8.5pt; white-space: normal; }
.care-plan-print-tick { display: inline-block; position: relative; box-sizing: border-box; width: 8.5pt; height: 8.5pt; margin-right: 3pt; border: 1pt solid #000; vertical-align: -1pt; }
.care-plan-print-choice.is-on > .care-plan-print-tick::after { content: ""; position: absolute; left: 1.7pt; top: -.9pt; width: 2.3pt; height: 5.4pt; border: solid #000; border-width: 0 1.5pt 1.5pt 0; transform: rotate(40deg); }
.care-plan-print-boxes + .care-plan-print-na { margin-left: .5em; }
.care-plan-print-list td > .care-plan-print-said > .care-plan-print-ko { display: block; margin-left: 0; font-size: 9.5pt; }
/* What the plan keeps in parts and the form prints in one cell: each under a caption of ours, in smaller, slanted letters. */
.care-plan-print-part { margin-top: 3pt; }
.care-plan-print-caption { margin-right: .3em; font-size: 8.5pt; font-style: italic; }
.care-plan-print-part.is-wide > .care-plan-print-caption { display: block; margin-right: 0; page-break-after: avoid; break-after: avoid; }
.care-plan-print-part.is-wide > .care-plan-print-said { display: block; orphans: 2; widows: 2; }
.care-plan-print-part > .care-plan-print-choice { font-size: 9pt; }
/* Where the plan is signed: a line, and under it in small letters who and when once that is recorded. */
.care-plan-print-sign-line { height: .52in; border-bottom: 1pt solid #000; }
.care-plan-print-below { display: block; margin-top: 2pt; font-size: 8pt; line-height: 1.3; }
.care-plan-print-sign .care-plan-print-below > span { display: inline-block; margin-right: 12pt; }
.care-plan-print-recorded { font-size: 9.5pt; font-weight: 700; }
/* Ours, apart from the State's block: the staff member who completed the plan. */
.care-plan-print-staff { margin-top: 10pt; padding: 5pt 8pt 6pt; border: .75pt dashed #000; page-break-inside: avoid; break-inside: avoid; page-break-before: avoid; break-before: avoid; }
.care-plan-print-staff-head { font-size: 8.5pt; font-weight: 700; }
.care-plan-print-staff-lines { display: flex; align-items: flex-end; gap: .25in; }
.care-plan-print-staff-lines > div { flex: 1 1 0; min-width: 0; }
.care-plan-print-staff-lines > div.is-date { flex: 0 0 1.4in; }
.care-plan-print-staff-lines .care-plan-print-fill { display: flex; align-items: flex-end; width: 100%; min-width: 0; height: .42in; font-size: 10.5pt; overflow-wrap: anywhere; }
/* DRAFT across every page of a draft: a browser prints what is fixed to the page on each one. Light enough to write over. */
.care-plan-print-watermark { display: none; }
.care-plan-print-langs { margin-left: 14px; }
.care-plan-print-langs a { display: inline-block; margin-left: 6px; padding: 2px 10px; border: 1px solid #90a4ae; border-radius: 4px; color: #1565c0; text-decoration: none; }
.care-plan-print-langs a.is-on { border-color: #1565c0; background: #1976d2; color: #fff; }
@media print {
    .care-sheet-paper.care-plan-print { padding: 0; }
    .care-plan-print-run { display: block; }
    .care-plan-print-watermark { display: block; position: fixed; top: 36%; left: 0; right: 0; text-align: center; font-family: "Helvetica Neue", Arial, sans-serif; font-size: 120pt; font-weight: 800; letter-spacing: .08em; color: rgba(0, 0, 0, .08); transform: rotate(-30deg); pointer-events: none; z-index: 2; }
}

/* ---- The document file and the staff records (Components/Pages/Documents): a person's checklist and lines, the two due lists,
   the kinds. A link that is drawn as one of the small buttons (Employees → Records) looks like them. */
a.care-mini { display: inline-block; text-decoration: none; }
/* The checklist: the kind, where the person stands, what can be done — three columns, one block a kind on a phone. */
.care-doc-checks { display: grid; grid-template-columns: minmax(200px, 1.2fr) minmax(220px, 1.8fr) auto; gap: 7px 14px; align-items: center; font-size: .9rem; }
.care-doc-check { display: contents; }
.care-doc-check-group { grid-column: 1 / -1; margin-top: 8px; font-size: .76rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: #607d8b; }
.care-doc-check-group:first-child { margin-top: 0; }
/* The chip that says where the person stands can be a sentence ("6.5 of 6 hours — enough until 09/11/2027"): on a narrow
   screen it wraps rather than pushing the page wide. */
.care-doc-check-said, .care-doc-due .care-status { white-space: normal; }
.care-doc-check-acts { white-space: nowrap; text-align: right; }
.care-doc-rule { margin-top: 12px; max-width: 100ch; }
.care-doc-checklist .nc-card-after { font-size: .85rem; }
.care-doc-no-start { color: #c62828; font-weight: 600; }
.care-doc-lines.mud-simple-table table td, .care-doc-watch.mud-simple-table table td { vertical-align: top; }
.care-doc-line-details { max-width: 380px; }
.care-doc-file-box { margin-top: 4px; }
/* The due lists. */
.care-doc-watch td a:not(.care-mini-link) { color: inherit; text-decoration: none; }
.care-doc-watch td a:hover { text-decoration: underline; }
.care-doc-sums .care-watch-sum.is-chosen { padding-bottom: 1px; border-bottom: 2px solid #1e5aa8; }
.care-doc-due { padding: 1px 0; }
/* Staff Records: a narrow column a required kind, its name wrapped above; on a phone the columns give way to one cell that
   lists what is due. */
.care-doc-staff.mud-simple-table table .care-doc-col { padding-left: 5px; padding-right: 5px; }
.care-doc-staff.mud-simple-table table th.care-doc-col { width: 80px; min-width: 72px; white-space: normal; font-size: .72rem; line-height: 1.25; vertical-align: bottom; }
/* A long name (the TB test, with what counts as one) is cut after four lines; the whole of it is the column's tooltip. */
.care-doc-col-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; overflow-wrap: anywhere; }
.care-doc-staff td.care-doc-cell { white-space: nowrap; }
.mud-simple-table table .care-doc-narrow { display: none; }
.care-doc-kind-rules { font-size: .85rem; }
.care-doc-rule-line { margin-top: 2px; max-width: 72ch; }
.care-doc-kinds .nc-table-toolbar .nc-card-head { margin-bottom: 0; width: 100%; }
@media (max-width: 700px) {
    .care-doc-checks { display: block; }
    .care-doc-check { display: block; padding: 8px 0; border-top: 1px solid #eceff1; }
    .care-doc-check-acts { margin-top: 4px; text-align: left; }
    .care-doc-check-acts .care-mini:first-child { margin-left: 0; }
    .mud-simple-table table .care-doc-wide, .care-doc-staff.mud-simple-table table .care-doc-col { display: none; }
    .care-doc-staff.mud-simple-table table .care-doc-narrow { display: table-cell; }
}

/* nCloudCare — incident reports (.care-incident-…). The form: five short cards; an answer that may stay open is a row of radios
   ending in "Not recorded"; what only a "yes" can have (who, where, when) opens under its answer, set in from it. The list: the
   period's numbers (buttons that narrow it), the last twelve months by kind in a table that scrolls sideways on a phone, and on
   a phone the two widest columns of the list go. */
.care-incident-q-text { display: block; margin: 2px 0; font-size: .9rem; line-height: 1.45; color: #263238; }
.care-incident-choices, .care-incident-choices .mud-radio-group { display: flex; flex-wrap: wrap; gap: 0 18px; }
.care-incident-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 14px; }
.care-incident-pairs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.care-incident-pairs > .mud-input-control, .care-incident-told { max-width: 640px; margin: 0 0 10px 12px; }
.care-incident-told { display: grid; gap: 8px; padding-left: 12px; border-left: 3px solid var(--nc-line); }
.care-incident-when-told { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.care-incident-when-told > * { flex: 1 1 170px; max-width: 230px; }
.care-incident-picks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.care-incident-pick { margin-left: 0; white-space: normal; text-align: left; }
.care-incident-pick.is-emergency { border-color: #90caf9; background: #f1f7fe; }
.care-incident-who { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px 14px; align-items: start; }
.care-incident-center-of { padding-top: 8px; }
.care-incident-sums .care-rider-sum b { margin-right: 6px; }
.care-incident-year-scroll { overflow-x: auto; }
.care-incident-year { width: 100%; min-width: 660px; border-collapse: collapse; font-size: .85rem; }
.care-incident-year th, .care-incident-year td { padding: 4px 8px; border-bottom: 1px solid #f0f0f0; text-align: left; white-space: nowrap; }
.care-incident-year th { border-bottom-color: #e0e0e0; font-weight: 600; color: #546e7a; vertical-align: bottom; }
.care-incident-year th .small-note { display: block; font-weight: 400; }
.care-incident-year .num { text-align: right; font-variant-numeric: tabular-nums; }
.care-incident-year td.is-zero { color: #b0bec5; }
.care-incident-year tr.care-incident-year-all td { border-top: 1px solid #90a4ae; border-bottom: 0; font-weight: 600; }
.care-incident-list .care-incident-summary { max-width: 420px; }
.care-incident-list .care-incident-kinds-cell { min-width: 9.5rem; max-width: 230px; word-break: keep-all; }
.care-incident-list .care-incident-when { white-space: nowrap; }
.care-incident-list td a { color: inherit; text-decoration: none; }
.care-incident-list td a:hover { text-decoration: underline; }
/* The report as it is read — on paper, and on the screen once it is reviewed: black on white, a box ticked for each kind and
   each answer, an empty line where nothing was written (it can be written in by hand). Sizes follow the letter size around it. */
.care-incident-block { margin-top: 8px; page-break-inside: avoid; break-inside: avoid; }
.care-incident-block.is-long { page-break-inside: auto; break-inside: auto; }
.care-incident-sheet h2 { margin: 0 0 4px; padding-bottom: 1px; border-bottom: 1px solid #111; font-size: .8em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; page-break-after: avoid; break-after: avoid; }
.care-incident-sheet h3 { margin: 4px 0 1px; font-size: .78em; font-weight: 400; color: #333; letter-spacing: .03em; text-transform: uppercase; page-break-after: avoid; break-after: avoid; }
.care-incident-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr); gap: 3px 10px; margin: 0; }
.care-incident-facts dt, .care-incident-ask { font-size: .78em; line-height: 1.7; color: #333; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.care-incident-facts dd { min-height: 1.3em; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.care-incident-facts dd.is-row { grid-column: 2 / -1; font-weight: 400; }
.care-incident-facts dd:empty, .care-incident-fill:empty { border-bottom: .75pt solid #000; }
.care-incident-s-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 10px; margin: 2px 0 4px; }
.care-incident-choice { display: inline-block; margin-right: 1em; white-space: nowrap; }
.care-incident-s-kinds > .care-incident-choice { margin-right: 0; white-space: normal; overflow-wrap: anywhere; }
.care-incident-choice.is-on { font-weight: 700; }
.care-incident-tick { display: inline-block; position: relative; box-sizing: border-box; width: .85em; height: .85em; margin-right: .35em; border: 1pt solid #000; vertical-align: -.08em; }
.care-incident-choice.is-on > .care-incident-tick::after { content: ""; position: absolute; left: .19em; top: -.06em; width: .22em; height: .5em; border: solid #000; border-width: 0 1.5pt 1.5pt 0; transform: rotate(40deg); }
.care-incident-asked { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 10px; margin: 2px 0; }
.care-incident-asked > .care-incident-ask { flex: 0 0 auto; min-width: 11em; }
.care-incident-more { display: inline-flex; flex: 1 1 15em; align-items: baseline; gap: 0 6px; min-width: 0; }
.care-incident-fill { display: inline-block; flex: 1 1 6em; min-width: 4.5em; min-height: 1.3em; font-weight: 600; overflow-wrap: anywhere; }
.care-incident-fill.is-when { flex: 0 1 10.5em; }
/* Who was told: the name, the relation and the phone are one cell beside the day and time. The cell takes the room its text
   needs — on a line of its own under the boxes when the line is full — instead of what three boxes leave of the line, where
   "Jennifer Kim (Daughter) 646-555-0171" stood four lines tall with the number cut in two. */
.care-incident-s-contact > .care-incident-more, .care-incident-s-plan > .care-incident-more { flex: 1 1 auto; min-width: min(15em, 100%); }
.care-incident-s-contact .care-incident-fill:not(.is-when), .care-incident-s-plan .care-incident-fill:not(.is-when) { flex-basis: auto; }
.care-incident-s-contact .care-incident-fill.is-when, .care-incident-s-plan .care-incident-fill.is-when { flex-shrink: 0; width: 10.5em; }
.care-incident-number { white-space: nowrap; }
.care-incident-text { min-height: 1.3em; white-space: pre-wrap; overflow-wrap: anywhere; }
.care-incident-text:empty { min-height: 1.3em; border-bottom: .75pt solid #000; }
.care-incident-text:empty:not(.is-short)::before { content: ""; display: block; height: 1.3em; border-bottom: .75pt solid #000; }
.care-incident-read { font-size: .9rem; color: #111; }
.care-incident-read .care-incident-block:first-child { margin-top: 0; }
.care-incident-read-by { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--nc-line); }
/* On paper: the attendance record's head (.care-rec-head), the blocks, then who reports and who reviewed, each with a line to sign. */
.care-sheet-paper.care-incident { padding: .5in; font-family: "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; font-size: 10pt; line-height: 1.3; overflow: visible; }
.care-incident .care-rec-head { margin-bottom: 0; }
.care-incident-signs { margin-top: 10px; padding-top: 2px; border-top: 2px solid #111; page-break-inside: avoid; break-inside: avoid; }
.care-incident-sign { display: flex; align-items: flex-end; gap: .22in; margin-top: 9px; }
.care-incident-sign > div { display: flex; flex: 1 1 0; align-items: flex-end; gap: 0 6px; min-width: 0; }
.care-incident-sign > div.is-date { flex: 0 0 1.75in; }
.care-incident-sign .care-incident-fill { min-height: 1.5em; border-bottom: .75pt solid #000; }
.care-incident-note { margin-top: 8px; }
.care-incident-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; padding-top: 3px; border-top: 1px solid #111; font-size: 8.5pt; page-break-inside: avoid; break-inside: avoid; }
@media print { .care-sheet-paper.care-incident { padding: 0; } }
@media (max-width: 600px) {
    .care-incident-list th.care-incident-wide, .care-incident-list td.care-incident-wide { display: none !important; }
    .care-incident-who { grid-template-columns: minmax(0, 1fr); }
    .care-incident-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 6px; }
    .care-incident-pairs > .mud-input-control, .care-incident-told { margin-left: 0; }
    .care-incident-facts { grid-template-columns: max-content minmax(0, 1fr); }
    .care-incident-facts dd.is-row { grid-column: 2; }
    .care-incident-s-kinds { grid-template-columns: minmax(0, 1fr); }
}

/* nCloudCare — the functional assessment (.care-assess-…). The editor is the care plan's page — its bar, its sections beside
   the form, its questions — with a table of its own for the five activities of daily living and a box that says what the
   answers show of the regulation's condition. An answer that still reads as it was filled in beforehand has the care plan's
   amber edge, and says in a line where it came from. */
.care-assess-adls { display: grid; gap: 4px; }
.care-assess-adl { display: grid; grid-template-columns: minmax(110px, .55fr) minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; align-items: start; padding: 4px 0 4px 12px; border-radius: 4px; scroll-margin-top: 150px; }
.care-assess-adl-head { padding: 0 0 0 12px; font-size: .75rem; font-weight: 500; color: var(--nc-head-text); }
.care-assess-adl-name { align-self: center; font-size: .9rem; font-weight: 600; color: #263238; }
.care-assess-named { margin-left: 2px; color: #c62828; }
.care-assess-adl.is-marked { box-shadow: inset 3px 0 0 #f0a500; }
.care-assess-adl > .care-assess-from { grid-column: 2 / -1; margin-top: 0; }
.care-assess-from { margin: 3px 0 4px; font-size: .78rem; line-height: 1.4; color: #8a5a00; }
.care-assess-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 14px; }
.care-assess-after-yesno { margin-top: 4px; }
.care-assess-onpaper { margin-top: 8px; }
.care-assess-onpaper .care-plan-help { margin: 2px 0 0; }
.care-assess-next-help { margin-top: 2px; }
.care-assess-elig { padding: 10px 14px 12px; border: 1px solid var(--nc-line); border-left-width: 4px; border-radius: 6px; background: #fcfdfe; }
.care-assess-elig-impaired { border-left-color: #2e7d32; }
.care-assess-elig-neither { border-left-color: #c62828; }
.care-assess-elig-open { border-left-color: #f0a500; }
.care-assess-elig-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.care-assess-elig-title { font-size: .9rem; font-weight: 600; color: #37474f; }
.care-assess-elig-grounds { margin: 0 0 8px; padding: 0; list-style: none; font-size: .9rem; line-height: 1.5; }
.care-assess-elig-grounds li { display: flex; gap: 8px; color: #546e7a; }
.care-assess-elig-grounds li.is-on { color: #1b6b34; }
.care-assess-elig-mark { flex: 0 0 14px; font-weight: 700; }
.care-assess-elig-rule { max-width: 96ch; line-height: 1.45; }
.care-assess-files .care-attach { max-width: 560px; }
.care-assess-before-how { margin-top: 4px; }
.care-assess-table td.care-assess-shows { min-width: 180px; }
.care-assess-watch td:first-child { min-width: 170px; }
/* A completed assessment: the table as text, a line an activity. */
.care-assess.is-read .care-assess-adl { padding: 5px 0; border-top: 1px solid rgba(0, 0, 0, .06); }
.care-assess.is-read .care-assess-adl-head { padding: 0; border-top: 0; }
@media (max-width: 760px) {
    /* An activity's places under each other; on a completed assessment each says what it is, since the table's head is gone. */
    .care-assess-adl { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 8px 0 10px 12px; border-top: 1px solid var(--nc-line); }
    .care-assess-adl-head { display: none; }
    .care-assess-adl > .care-assess-from { grid-column: 1; }
    .care-assess.is-read .care-assess-adl { gap: 1px; }
    .care-assess.is-read .care-assess-adl > [data-label]::before { content: attr(data-label) ": "; font-size: .8rem; color: #607d8b; }
}
/* The assessment on paper: the face sheet's page (its head, its blocks, the line of whose sheet it is repeated on every page),
   with the form's two boxes, room to write on a draft, and a line to sign. Black on white. */
.care-assess-print .care-face-name { font-size: 14pt; }
/* The bar above the sheet — the assessment's and the care plan's, which is built the same — says more in English than fits the
   sheet's width ("Completed assessment" stood half on a second line). It is as wide as its line needs, centered over the
   sheet; in a window too narrow for that it breaks between its parts, never inside one. On the screen only — on paper the bar
   is not there (.care-print-tools). */
@media screen {
    .care-assess-print-tools, .care-plan-print-tools { display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; width: fit-content; min-width: min(8.5in, 100%); max-width: 100%; }
}
.care-assess-print-q { margin-top: 3px; page-break-inside: avoid; break-inside: avoid; }
.care-assess-print-label { font-size: 8.5pt; color: #333; }
.care-assess-print-said { font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
/* A longer answer stands under its question; a few words — and "Not recorded" — beside it. */
.care-assess-print-q > .care-assess-print-said { display: block; margin-bottom: 2px; }
.care-assess-print-q.is-line > .care-assess-print-said, .care-assess-print-q > .care-face-none { display: inline; margin-left: 8px; }
.care-assess-print-boxes { margin-left: 8px; }
.care-assess-print-box { display: inline-block; margin-right: 12px; white-space: nowrap; }
/* A box of the form, drawn: a frame, and an X in it when it is ticked — the same size beside English and beside Korean words. */
.care-assess-print-tick { display: inline-block; width: 8.5pt; height: 8.5pt; margin-right: 2.5pt; border: .9pt solid #000; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: 700; line-height: 8.5pt; text-align: center; vertical-align: -1pt; }
/* The conclusion, the line to sign and the foot are not parted over two pages (a very long conclusion still runs on). */
.care-assess-print-end { page-break-inside: avoid; break-inside: avoid; }
div.care-assess-print-write { height: .26in; border-bottom: .75pt solid #777; }
span.care-assess-print-write { display: inline-block; min-width: 1.6in; height: 1em; border-bottom: .75pt solid #777; }
.care-assess-print-elig { margin: 4px 0 6px; padding: 5px 9px 6px; border: 1.5pt solid #000; page-break-inside: avoid; break-inside: avoid; }
.care-assess-print-statement { margin-top: 3px; font-weight: 700; }
.care-assess-print-rule { margin-top: 3px; font-size: 7.5pt; line-height: 1.3; }
.care-assess-print-onpaper { margin-top: 4px; font-style: italic; }
.care-assess-print-legend { margin-top: 2px; }
.care-assess-print .care-face-lines .adl { width: 1.25in; }
.care-assess-print .care-face-lines .level { width: 2.1in; }
.care-assess-print .care-face-lines td { height: .24in; }
.care-assess-print-sign { display: flex; align-items: flex-end; gap: .3in; margin-top: .28in; page-break-inside: avoid; break-inside: avoid; }
.care-assess-print-sign > div { flex: 1 1 0; min-width: 0; }
.care-assess-print-sign > div.is-date { flex: 0 0 1.6in; }
.care-assess-print-sign-line { height: .42in; border-bottom: 1pt solid #000; }
/* A signature given on the screen, drawn on its line (2026-10-15): the picture sits on the line as ink would, its foot on it. */
.care-plan-print-sign-line.has-ink, .care-assess-print-sign-line.has-ink { display: flex; align-items: flex-end; }
.care-sign-ink { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: left bottom; }
.care-plan-print-staff-lines .care-plan-print-fill .care-sign-ink { height: .4in; }
.care-signed-on-screen { margin-top: 4pt; font-size: 8pt; color: #333; }

/* nCloudCare — signing on the screen (2026-10-15): the paper to read, then the boxes to sign in. On an iPad the box takes the
   finger: no scrolling, no text selection, no magnifier while a signature is drawn. */
.care-sign-langs { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: .9rem; }
.care-sign-doc { background: #eceff1; padding: 14px 8px; border-radius: 6px; font-family: "Helvetica Neue", Arial, sans-serif; color: #111; }
.care-sign-doc .care-sheet-paper { min-height: 0; }
.care-sign-form { max-width: 8.5in; margin: 16px auto 40px; }
.care-sign-form-title { margin: 0 0 10px; font-size: 1.15rem; font-weight: 600; }
.care-sign-assessor { margin-bottom: 2px; }
.care-sign-assessor-note { font-size: .85rem; margin-bottom: 6px; }
.care-sign-pad { margin: 14px 0 18px; }
.care-sign-pad-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.care-sign-pad-label { font-weight: 600; }
.care-sign-pad-box { position: relative; height: 190px; border: 1px solid #90a4ae; border-radius: 6px; background: #fff; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.care-sign-pad-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; border-radius: 6px; }
.care-sign-pad-line { position: absolute; left: 18px; right: 18px; bottom: 42px; border-bottom: 1.5px solid #b0bec5; color: #90a4ae; font-size: 15px; line-height: 1.2; pointer-events: none; }
.care-sign-pad-hint { position: absolute; left: 0; right: 0; top: 38%; text-align: center; color: #90a4ae; pointer-events: none; }
.care-sign-pad-name { margin-top: 4px; color: #455a64; }
.care-sign-pad.is-disabled .care-sign-pad-box { opacity: .6; }
.care-sign-pad.is-disabled .care-sign-pad-canvas { cursor: default; }
.care-sign-busy { display: flex; align-items: center; gap: 8px; margin: 8px 0; color: #455a64; }
.care-sign-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.care-sign-done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
@media (max-width: 700px) {
    .care-sign-doc { padding: 6px 0; }
    .care-sign-doc .care-sheet-paper { padding: 16px 14px; }
    .care-sign-pad-box { height: 160px; }
}
.care-assess-print-below { display: block; margin-top: 2pt; font-size: 8pt; }
/* DRAFT across every page of a draft with questions open: a browser prints what is fixed to the page on each one. */
.care-assess-print-watermark { display: none; }
@media print {
    .care-assess-print-watermark { display: block; position: fixed; top: 36%; left: 0; right: 0; text-align: center; font-size: 110pt; font-weight: 800; letter-spacing: .08em; color: rgba(0, 0, 0, .08); transform: rotate(-30deg); pointer-events: none; z-index: 2; }
}

/* Transportation — the course on a map (CourseCard: Riders, the Transport Log). A stop is a round numbered pin, the center a
   square one; the same pin stands in the list beside the map, so a number there is found on the map at a glance. The map is a
   stacking context of its own (z-index 0): Leaflet's panes go up to 1000 and must stay under the menu and the dialogs. */
.care-course { margin: 0 0 16px; }
.care-log-block .care-course { margin: 0; border: 0; border-top: 1px solid var(--nc-line); border-radius: 0; }
.care-course .nc-card-actions { gap: 6px 10px; }
.care-course-body { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-start; }
.care-course-mapbox { flex: 3 1 420px; min-width: 0; }
.care-course-map { position: relative; z-index: 0; height: 420px; border: 1px solid var(--nc-line); border-radius: 8px; background: #eef1f4; }
.care-course-legend { margin-top: 4px; }
.care-course-notiles { margin-bottom: 6px; padding: 6px 10px; border: 1px solid #f0c36d; border-radius: 6px; background: #fff8e1; color: #6d4c00; font-size: .85rem; }
.care-course-side { flex: 1 1 240px; max-width: 380px; max-height: 452px; overflow-y: auto; }
.care-course-side-title { margin-bottom: 4px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #607d8b; }
.care-course-miss { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid #eef1f4; font-size: .88rem; }
.care-course-miss-who { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.care-course-miss-why { display: block; }
.care-course-retry { margin: 8px 0 0; }
.care-course-marker { background: none; border: 0; }
.care-course-pin { box-sizing: border-box; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid #fff; border-radius: 50%; background: #1e5aa8; color: #fff; font: 700 12px/1 Arial, sans-serif; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.care-course-pin.is-center { border-radius: 6px; background: #c62828; font-size: 15px; }
.care-course-pin.is-moved { background: #e65100; }
.care-course-pin.is-none { background: #b0bec5; box-shadow: none; }
.care-course-popup b { display: block; }
.care-course-edit { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; color: #546e7a; cursor: pointer; }
.care-course-days { display: inline-flex; flex-wrap: wrap; }
.care-course-day { margin-left: -1px; padding: 2px 7px; border: 1px solid #cfd8dc; background: #fff; font: inherit; font-size: .78rem; color: #546e7a; cursor: pointer; }
.care-course-day:first-child { margin-left: 0; border-radius: 4px 0 0 4px; }
.care-course-day:last-child { border-radius: 0 4px 4px 0; }
.care-course-day.is-on { position: relative; background: #1e5aa8; border-color: #1e5aa8; color: #fff; }
.care-course-progress { margin-bottom: 8px; }
.care-course-results { max-height: 190px; margin: 4px 0 0; padding-left: 18px; overflow-y: auto; font-size: .85rem; }
.care-course-result { color: #37474f; }
.care-course-result.is-nomatch, .care-course-result.is-noanswer, .care-course-result.is-nottried { color: #8a5a00; }
.care-course-matched { margin-left: 8px; }
/* The order suggested by distance (Riders) and the order as driven (the Transport Log's dialog): what would move is tinted. */
.care-suggest-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.care-rider-row.is-moved td { background: #fff8e1; }
.care-rider-was { white-space: nowrap; }
.care-driven { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-bottom: 8px; }
.care-driven-head { margin-bottom: 4px; font-weight: 600; color: #37474f; }
.care-driven ol { margin: 0; padding-left: 28px; }
.care-driven li { padding: 2px 4px; }
.care-driven li.is-still { color: #78909c; }
.care-driven li.is-moved { background: #fff3e0; }
.care-driven-at { margin-left: 6px; color: #0d4f9e; font-variant-numeric: tabular-nums; white-space: nowrap; }
.care-driven-was { margin-left: 8px; white-space: nowrap; }
/* The odometer of a van's run on the Transport Log, and on the printed sheet. */
.care-log-odo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 6px 14px; border-bottom: 1px solid var(--nc-line); font-size: .88rem; }
.care-log-odo-title { font-weight: 600; color: #37474f; }
.care-log-odo label { display: inline-flex; align-items: center; gap: 5px; color: #546e7a; }
.care-log-odo .care-time { width: 92px; font-variant-numeric: tabular-nums; }
.care-log-odo-note { color: #8a5a00; }
.care-log-map.is-on { background: #e3f0fd; border-color: #90caf9; }
.care-trip-odo { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1in .35in; margin-top: .3in; }
.care-trip-odo-title { font-weight: 700; }
.care-trip-odo b { display: inline-block; min-width: .9in; min-height: 1.1em; padding: 0 4px; border-bottom: 1px solid #333; text-align: right; vertical-align: bottom; }
.care-trip-odo + .care-trip-foot { margin-top: .3in; }
@media (max-width: 600px) {
    .care-course-map { height: 320px; }
    .care-course-side { max-width: none; }
    .care-driven { grid-template-columns: 1fr; }
}

/* Receivables (who owes what, by age) and the eligibility inquiry screen. Figures stand to the right; a payer's name is the
   button that opens its invoices; the totals line is ruled off. On paper the report uses the attendance record's sheet
   (.care-rec) with money columns. */
.care-recv-num { text-align: right !important; white-space: nowrap; }
.care-recv-open { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: #1c5aa6; cursor: pointer; text-align: left; }
.care-recv-open:hover { text-decoration: underline; }
.care-recv-private { margin-left: 6px; }
.care-recv-payers tr.is-open > td { background: #eef4fb; }
.care-recv-payers tr.care-recv-sum > td, .care-recv-credit-table tr.care-recv-sum > td { border-top: 2px solid #90a4ae; font-weight: 600; }
.care-recv-how { margin: -4px 2px 12px; }
.care-recv-hint, .care-elig-hint { margin: -8px 2px 14px; }
.care-recv-detail-head { align-items: baseline; }
.care-recv-pager { padding: 8px 12px; }
.care-recv-claim-note { margin: 0; padding: 6px 12px 10px; }
.care-recv-invoices a.care-invoice-link, .care-recv-credit-table a.care-invoice-link { color: #1c5aa6; text-decoration: none; }
.care-recv-invoices a.care-invoice-link:hover, .care-recv-credit-table a.care-invoice-link:hover { text-decoration: underline; }
.care-elig-sender { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: .9rem; }
.care-elig-scroll { max-height: 420px; overflow: auto; }
.care-elig-inside { font-size: .84rem; line-height: 1.5; }
.care-elig-files-title { margin: 22px 0 10px; font-size: 1.05rem; font-weight: 600; }
.care-elig-files tr.is-new > td { background: #f1f8e9; }
.care-elig-problem { margin-top: 2px; }
/* A private payer is nobody to ask: its line is there, in grey, and nothing on it is red. */
.care-elig-payers tr.is-private > td { color: var(--nc-muted); }
.care-elig-made .care-mini { margin-left: 10px; text-decoration: none; }
.care-elig-made-more { margin-left: 6px; }
.care-recv-sheet .care-recv-lines { table-layout: auto; font-size: 9pt; }
.care-recv-sheet .care-recv-lines th.num, .care-recv-sheet .care-recv-lines td.num { text-align: right; white-space: nowrap; }
.care-recv-sheet .care-recv-lines.care-recv-invoices { table-layout: fixed; font-size: 8pt; }
.care-recv-invoices .no { width: .8in; }
.care-recv-invoices .p { width: 1.2in; }
.care-recv-invoices .d, .care-recv-credit-table .d { width: .75in; }
.care-recv-invoices .m { width: .68in; }
.care-recv-invoices .a { width: .45in; }
.care-recv-invoices .c { width: .85in; }
.care-recv-sheet .care-recv-payer-total, .care-recv-sheet .care-recv-balance { font-weight: 700; }
.care-recv-part { margin: 14px 0 2px; font-size: 11pt; }
.care-recv-memberno { font-size: 7.5pt; color: #444; }
.care-recv-sheet .care-recv-how { margin: 10px 0 0; }

/* Remittances (835): the list, a remittance's page, the import's preview and the last look before posting. The lines' table is
   one component for the preview and for the page: a coloured edge says at a glance what a line is (to post, posted, has a
   warning, not matched, held back), the amount the remittance pays stands out, and on a narrow screen every line is a block
   with each number under its name. */
.care-remits td a { color: inherit; text-decoration: none; }
/* The payer's name keeps two words to a line; the room comes from the long column names, which may take two lines here. */
.mud-main-content .care-remits.mud-simple-table table thead th { white-space: normal; }
.care-remits td:nth-child(2) { min-width: 9rem; }
.care-remit-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; width: 100%; }
.care-remit-writes { font-size: .85rem; color: #37474f; overflow-wrap: anywhere; }
.care-remit-bar-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-left: auto; }
.care-remit-picked { font-size: .85rem; color: var(--nc-muted); white-space: nowrap; }
.care-remit-mismatch-more { margin-top: 4px; font-weight: 400; }
.care-remit-unexplained { color: #b71c1c; }
.care-remit-lines-wrap { overflow-x: auto; }
.care-remit-lines { width: 100%; border-collapse: collapse; font-size: .875rem; }
.care-remit-lines th { padding: 8px 10px; text-align: left; font-size: .75rem; font-weight: 500; color: var(--nc-head-text); background: var(--nc-head-bg); border-bottom: 1px solid var(--nc-line); white-space: nowrap; }
.care-remit-lines td { padding: 8px 10px; border-bottom: 1px solid var(--nc-line); vertical-align: top; }
.care-remit-lines th.num, .care-remit-lines td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.care-remit-lines th.pick, .care-remit-lines td.pick { width: 34px; padding-right: 0; }
.care-remit-line > td:first-child { box-shadow: inset 3px 0 0 #b0bec5; }
.care-remit-line-ready > td:first-child { box-shadow: inset 3px 0 0 #f0a500; }
.care-remit-line-warn > td:first-child { box-shadow: inset 3px 0 0 #e65100; }
.care-remit-line-posted > td:first-child { box-shadow: inset 3px 0 0 #2e9e55; }
.care-remit-line-unmatched > td:first-child { box-shadow: inset 3px 0 0 #c62828; }
.care-remit-who { min-width: 190px; }
.care-remit-who a { color: #1c5aa6; text-decoration: none; }
.care-remit-who a:hover { text-decoration: underline; }
.care-remit-amount { font-size: 1.05rem; }
.care-remit-amount.neg, .care-remit-after.neg, .care-remit-confirm .neg { color: #b71c1c; }
.care-remit-amount.zero { color: #78909c; }
.care-remit-after { font-size: 1rem; }
.care-remit-after.nil { color: #1b6b34; }
.care-remit-arrow { color: var(--nc-muted); }
.care-remit-cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.care-remit-cards .care-kv { grid-template-columns: 132px 1fr; }
.care-remit-status-3 { background: #e3f4e8; color: #1b6b34; }
.care-remit-status-4 { background: #ffebee; color: #c62828; }
.care-remit-status-5 { background: #fff4d6; color: #8a5a00; }
.care-remit-status-6 { background: #ede7f6; color: #4527a0; }
.care-remit-adj { min-width: 200px; max-width: 330px; white-space: normal; }
.care-remit-adj-line { line-height: 1.35; }
.care-remit-share { margin-top: 2px; }
.care-remit-services { margin-top: 4px; font-size: .8rem; color: #455a64; }
.care-remit-services summary { cursor: pointer; color: #1c5aa6; }
.care-remit-service { padding: 1px 0 1px 10px; }
.care-remit-state { min-width: 140px; max-width: 250px; }
.care-remit-warning { margin-top: 4px; padding: 3px 7px; border-radius: 4px; background: #fff4d6; color: #7a4f00; font-size: .8rem; }
.care-remit-why { font-size: .82rem; color: #546e7a; }
.care-remit-undo { margin: 4px 0 0; }
.care-remit-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 8px 12px; border-top: 1px solid var(--nc-line); }
.care-remit-choose { display: block; }
.care-remit-preview-file { margin-bottom: 8px; }
.care-remit-preview { margin-bottom: 14px; padding: 10px 12px 12px; border: 1px solid var(--nc-line); border-radius: 8px; }
.care-remit-preview.is-known { background: #f6f7f9; }
.care-remit-preview-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 8px; }
.care-remit-preview-total { margin-left: auto; font-size: 1.1rem; }
.care-remit-preview-counts { margin: 6px 0; font-size: .875rem; }
.care-remit-preview-plb { margin-top: 8px; font-size: .85rem; }
.care-remit-confirm-scroll { max-height: 45vh; overflow: auto; border: 1px solid var(--nc-line); border-radius: 6px; }
.care-remit-confirm { width: 100%; border-collapse: collapse; font-size: .875rem; }
.care-remit-confirm th { position: sticky; top: 0; padding: 6px 10px; text-align: left; font-size: .75rem; font-weight: 500; color: var(--nc-head-text); background: var(--nc-head-bg); }
.care-remit-confirm td { padding: 6px 10px; border-top: 1px solid var(--nc-line); }
.care-remit-confirm .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.care-remit-confirm-warning td { padding-top: 0; border-top: 0; font-size: .8rem; color: #7a4f00; }
@media (max-width: 900px) {
    .care-remit-lines thead { display: none; }
    .care-remit-lines, .care-remit-lines tbody, .care-remit-lines tr, .care-remit-lines td { display: block; }
    .care-remit-lines tr.care-remit-line { position: relative; padding: 10px 12px 10px 15px; border-bottom: 1px solid var(--nc-line); box-shadow: inset 4px 0 0 #b0bec5; }
    .care-remit-lines tr.care-remit-line-ready { box-shadow: inset 4px 0 0 #f0a500; }
    .care-remit-lines tr.care-remit-line-warn { box-shadow: inset 4px 0 0 #e65100; }
    .care-remit-lines tr.care-remit-line-posted { box-shadow: inset 4px 0 0 #2e9e55; }
    .care-remit-lines tr.care-remit-line-unmatched { box-shadow: inset 4px 0 0 #c62828; }
    .care-remit-lines .care-remit-line > td { padding: 2px 0; border: 0; box-shadow: none; min-width: 0; max-width: none; }
    .care-remit-lines td[data-label] { display: grid; grid-template-columns: minmax(96px, 38%) minmax(0, 1fr); column-gap: 12px; text-align: left; white-space: normal; }
    .care-remit-lines td[data-label]::before { content: attr(data-label); font-size: .75rem; color: var(--nc-head-text); padding-top: 2px; }
    .care-remit-lines td.care-remit-who { display: block; padding-right: 34px; margin-bottom: 4px; }
    .care-remit-lines td.care-remit-who::before { display: none; }
    .care-remit-lines td:empty { display: none; }
    .care-remit-lines td.pick { position: absolute; top: 10px; right: 10px; width: auto; }
    .care-remit-preview { padding: 8px 0 0; border-width: 1px 0 0; border-radius: 0; }
}
/* A remittance on paper: black on white, the claims as a table, each claim's service lines small under it. */
.care-sheet-paper.care-remit-print { padding: .5in; font-size: 9.5pt; overflow: visible; }
.care-remit-print h1 { margin: 0 0 8px; font-size: 15pt; }
.care-remit-print h2 { margin: 14px 0 4px; font-size: 11pt; }
.care-remit-print-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; margin-bottom: 10px; }
.care-remit-print-head span { display: inline-block; min-width: .95in; color: #444; }
.care-remit-print-total { font-size: 12pt; }
.care-remit-print-mismatch { margin: 6px 0; padding: 5px 8px; border: 1.5pt solid #000; font-weight: 700; }
.care-remit-print-lines { width: 100%; border-collapse: collapse; }
.care-remit-print-lines th { padding: 3px 4px; text-align: left; font-size: 8pt; border-bottom: 1pt solid #000; }
.care-remit-print-lines td { padding: 3px 4px; vertical-align: top; }
.care-remit-print-line td, .care-remit-print-plb td { border-top: .5pt solid #bbb; }
.care-remit-print-lines .num { text-align: right; white-space: nowrap; }
.care-remit-print-lines .sub { font-size: 8pt; color: #444; }
.care-remit-print-service td { padding-top: 0; padding-bottom: 1px; font-size: 8pt; color: #333; }
.care-remit-print-sum td { border-top: 1pt solid #000; font-weight: 700; }
.care-remit-print-foot { margin-top: 14px; font-size: 8pt; color: #444; }
@media print { .care-sheet-paper.care-remit-print { padding: 0; } }

/* ---- Idle sign-out (B7): the bar that warns before a screen nobody uses is signed out. Drawn by wwwroot/js/idle.js, outside the
   layout and above everything on it (a dialog, a snackbar); never printed. */
.care-idle-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px;
    padding: 10px 16px; background: #fff4e5; color: #5f2b01; border-bottom: 2px solid #ed6c02; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); font-size: .95rem; line-height: 1.35; }
.care-idle-bar[hidden] { display: none; }
.care-idle-words { font-weight: 500; }
.care-idle-stay { padding: 6px 16px; border: 0; border-radius: 4px; background: #ed6c02; color: #fff; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.care-idle-stay:hover, .care-idle-stay:focus-visible { background: #c55a00; }
@media print { .care-idle-bar { display: none !important; } }

/* ---- Change Log (B7): the list, and one entry opened — what differs now, the record as it was, the bookkeeping folded away. */
.care-change-what { display: block; margin-top: 8px; }
.care-change-list td { vertical-align: top; }
.care-change-list .care-change-when { white-space: nowrap; }
.care-change-list .care-change-reason { max-width: 320px; overflow-wrap: anywhere; }
.care-change-action-delete, .care-change-action-void, .care-change-action-discard { color: #b3261e; }
.care-change-subject { overflow-wrap: anywhere; }
.care-change-open { white-space: nowrap; }
.care-change-head { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 12px; font-size: .92rem; }
.care-change-head dt { color: #607d8b; }
.care-change-head dd { margin: 0; overflow-wrap: anywhere; }
.care-change-part { margin: 18px 0 6px; font-size: 1rem; font-weight: 600; }
.care-change-diff, .care-change-before { width: 100%; border-collapse: collapse; font-size: .9rem; }
.care-change-diff th, .care-change-diff td, .care-change-before th, .care-change-before td { padding: 4px 8px; border-bottom: 1px solid #eceff1; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.care-change-diff thead th { color: #607d8b; font-weight: 500; font-size: .8rem; }
.care-change-diff tbody th, .care-change-before th { width: 34%; font-weight: 500; color: #455a64; }
.care-change-diff .was { background: #fdecea; white-space: pre-wrap; }
.care-change-diff .now { background: #e8f5e9; white-space: pre-wrap; }
.care-change-diff .to { width: 1%; color: #90a4ae; }
.care-change-before td { white-space: pre-wrap; }
.care-change-before tr.differs th { box-shadow: inset 3px 0 0 #ed6c02; }
.care-change-lines-name { margin: 14px 0 4px; font-size: .9rem; font-weight: 600; }
.care-change-line { padding: 4px 8px; border-bottom: 1px solid #eceff1; font-size: .88rem; overflow-wrap: anywhere; }
.care-change-line span { display: inline-block; margin-right: 14px; }
.care-change-line i { color: #607d8b; font-style: normal; font-size: .8rem; margin-right: 4px; }
.care-change-bookkeeping { margin-top: 14px; }
.care-change-bookkeeping summary { cursor: pointer; color: #607d8b; font-size: .88rem; }
@media (max-width: 600px) {
    /* On a phone: when, who, what, whose. The reason is in the entry, and the line itself opens it (no room for the button). */
    .care-change-list th.care-change-wide, .care-change-list td.care-change-wide, .care-change-list thead th:last-child, .care-change-row td:last-child { display: none !important; }
    .care-change-list thead th { width: auto !important; }
    .care-change-list th, .care-change-list td { padding: 6px !important; word-break: keep-all; }
    .care-change-diff, .care-change-before { font-size: .84rem; }
    .care-change-diff tbody th, .care-change-before th { width: 38%; }
}

/* After a claim file is sent (2026-10-11): where a claim stands (Invoices, the invoice, Claim Files), the claim file dialog's
   rows for claims that go again, and the Claim Responses page (an answer file before and after it is saved). */
.care-claim-state { font-weight: 600; }
.care-claim-tone-1 { background: #e3f4e8; color: #1b6b34; }
.care-claim-tone-2 { background: #eceff1; color: #546e7a; font-weight: 400; }
.care-claim-tone-3 { background: #e3f0fd; color: #14508f; }
.care-claim-tone-4 { background: #ffebee; color: #c62828; }
.care-claim-cell .care-mini { margin: 3px 0 0; white-space: nowrap; }
/* "— not posted" beside what the payer's remittance says: one piece, on the next line when the line is full. */
.care-claim-now-unposted, .care-claim-unposted { white-space: nowrap; }
.care-claim-again { border-top: 1px solid var(--nc-line); padding-top: 10px; }
.care-claim-again-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 6px; font-size: 13.5px; }
.care-claim-again-title { flex: 1 1 260px; }
.care-claim-again-list { max-height: 240px; overflow-y: auto; border: 1px solid var(--nc-line); border-radius: 6px; }
.care-claim-again-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 6px 10px; border-bottom: 1px solid var(--nc-line); font-size: 13.5px; }
.care-claim-again-row:last-child { border-bottom: 0; }
.care-claim-again-row.refused { background: #fff8f8; }
.care-claim-again-who { flex: 1 1 220px; min-width: 0; }
.care-claim-again-who .small-note > span { margin-right: 6px; }
.care-claim-how { flex: 0 0 auto; min-width: 150px; padding: 5px 8px; border: 1px solid #b0bec5; border-radius: 4px; background: #fff; font: inherit; font-size: 13.5px; }
.care-claim-refusal { flex: 1 1 100%; color: #c62828; font-size: 13px; }
.care-claim-how-key { margin: 8px 0 0 18px; padding: 0; font-size: 12.5px; color: #546e7a; }
.care-claim-how-key li { margin-bottom: 2px; }
.care-claim-history .care-kv { grid-template-columns: 170px 1fr; }
.care-claim-history-table td { vertical-align: top; }
.care-claim-file-claims > td { background: #fafbfc; padding: 8px 16px 12px !important; }
.care-claim-file-claims-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.care-claim-file-claims-table th { text-align: left; font-weight: 600; color: #607d8b; padding: 3px 8px; border-bottom: 1px solid var(--nc-line); }
.care-claim-file-claims-table td { padding: 4px 8px; border-bottom: 1px solid #eef1f4; }
.care-claim-file-answer .care-mini-link { white-space: nowrap; }
/* What stands after something else in the answer cell keeps its distance from it ("1 rejected  Answers (2)"): a space written
   at the start of an element is not printed. */
.care-claim-file-answer .care-claim-state + .care-claim-file-counts { margin-left: 4px; }
.care-claim-file-answer * + .care-mini-link { margin-left: 8px; }
/* A file's name in a list (Claim Files, Claim Responses, Remittances): at most two lines, broken wherever it has to be, and the
   whole name in its tip. A name made of numbers and hyphens otherwise stands five lines tall in a column as narrow as its name. */
.care-file-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-width: 11rem; max-width: 22rem; overflow-wrap: anywhere; }
.care-answer-upload .care-answer-input { display: block; max-width: 100%; }
.care-answer-facts { margin-top: 4px; }
.care-answer-notes { margin-top: 8px; padding: 8px 12px; border-left: 3px solid #cfd8dc; background: #fafbfc; font-size: .87rem; }
.care-answer-line { line-height: 1.45; }
.care-answer-words { margin-top: 2px; color: #546e7a; font-style: italic; overflow-wrap: anywhere; }
.care-answer-codes { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .76rem; color: #546e7a; overflow-wrap: anywhere; }
.care-answer-said .care-answer-codes { margin-top: 2px; }
.care-answer-number { overflow-wrap: anywhere; }
.care-answer-lines td { vertical-align: top; }
.care-answer-row.unmatched { background: #fffaf3; }
.care-answer-why { margin-top: 2px; opacity: 1; color: #8a5a00; }
.care-answer-acts { display: flex; justify-content: flex-end; gap: 8px; }
.care-answer-file-row.on { background: #f6faff; }
.care-answer-detail { margin-top: 16px; }
@media (max-width: 600px) {
    .care-claim-history .care-kv, .care-answer-facts { grid-template-columns: 1fr; gap: 0 0; }
    .care-claim-history .care-kv dd, .care-answer-facts dd { margin-bottom: 6px; }
    .care-claim-how { min-width: 0; width: 100%; }
}

/* The right pane (Layout/RightPane.razor — Help › "This screen", 2026-11-02, from nCloudService 3.0): it moves the page over as wide as
   it is; while its grip is dragged nothing is selected and the page follows at once. Below 900 px wide it lies over the page (no room
   to share), at most the screen's width. */
body.right-pane-resizing, body.right-pane-resizing * { -webkit-user-select: none !important; user-select: none !important; cursor: col-resize !important; }
body.right-pane-resizing .mud-main-content, body.right-pane-resizing .mud-drawer.right-pane { transition: none !important; }
.mud-drawer.right-pane > .mud-drawer-content { position: relative; }
@media (max-width: 899.98px) {
    body .mud-layout.mud-drawer-open-persistent-right .mud-main-content { margin-right: 0; }
    .mud-drawer.right-pane { max-width: 100vw; }
}
