/* A quiet clinical workspace. The public sign-in retains its own styles. */
body:not(.auth-page) {
  --bg:#f5f6f3; --card:#fff; --text:#27332e; --muted:#66726c; --line:#dde2dc;
  --accent:#354d41; --accent-soft:#e9eee8; --danger:#8b4642; --ok:#365b46; --warn-bg:#f4f0e4;
  --header:#fff; --radius:10px; color-scheme:light;
  font-size:15px;
}
body:not(.auth-page) #topbar { border-top:0; padding:15px 28px; gap:26px; box-shadow:none; }
body:not(.auth-page) .brand { color:var(--text); font-size:19px; letter-spacing:-.8px; }
body:not(.auth-page) a.brand { display:flex; align-items:center; gap:9px; text-decoration:none; white-space:nowrap; }
body:not(.auth-page) nav a { font-size:14px; padding:8px 12px; border-radius:5px; }
body:not(.auth-page) button { font-size:14px; min-height:40px; transition:background .15s; }
body:not(.auth-page) button:hover:not(:disabled) { background:var(--accent-soft); }
body:not(.auth-page) button.primary:hover:not(:disabled) { background:#243b2f; }
body:not(.auth-page) h1 { color:var(--text); }
body:not(.auth-page) .card { box-shadow:none; }
body:not(.auth-page) .pill { background:#edf0ec; color:#526057; }
body:not(.auth-page) .pill.finalized { background:#e5eee6; color:#335440; }
body:not(.auth-page) .pill.failed { background:#f3e9e5; color:#80453f; }
body:not(.auth-page) :is(button,a,input,select,textarea):focus-visible { outline:2px solid #687f6e; outline-offset:3px; }
.workspace-page #app { max-width:1480px; padding:12px 32px 40px; }
/* My List is a plain full-width list: compact chrome, readable controls. */
body.my-list-page #topbar { padding:8px 20px; }
.my-list-page #app { max-width:none; padding:6px 20px 20px; }
.my-list-page .app-page-nav { max-width:none; padding:6px 20px 4px; }
.my-list-page .ws-heading { margin-bottom:12px; gap:12px; }
.my-list-page .ws-heading h1 { font-size:21px; letter-spacing:-.4px; }
.app-skip-link { position:absolute; left:20px; top:-100px; z-index:30; background:#29342f; color:#fff; padding:12px; }
.app-skip-link:focus { top:12px; }
.auth-page .app-skip-link { display:none; }
.app-page-nav { display:flex; justify-content:space-between; gap:20px; padding:16px 32px 12px; width:100%;
  max-width:1480px; margin:auto; color:var(--muted); font-size:12px; }
.app-page-nav a { color:inherit; text-decoration:none; padding-block:4px; }
.app-page-nav a:hover { text-decoration:underline; text-underline-offset:4px; }
.app-account { position:relative; flex-shrink:0; font-size:13px; margin-left:auto; }
.app-account summary { display:flex; align-items:center; justify-content:space-between; gap:14px; cursor:pointer;
  list-style:none; min-height:40px; border:1px solid var(--line); padding:8px 12px; border-radius:6px; }
.app-account summary::-webkit-details-marker { display:none; }
.app-account[open] summary { background:var(--accent-soft); }
.app-account summary:focus-visible { outline:2px solid #687f6e; outline-offset:3px; }
.app-account-panel { position:absolute; top:calc(100% + 10px); right:0; width:185px; display:grid; gap:3px;
  padding:7px; border:1px solid var(--line); border-radius:8px; background:var(--card); box-shadow:0 8px 24px #1f2d2612; z-index:20; }
.app-account-panel a,.app-account-panel #logout { display:block; text-align:left; padding:10px 12px !important;
  text-decoration:none; border-radius:4px; color:var(--text); font-size:14px; }
.app-account-panel a:hover,.app-account-panel a.active { background:var(--accent-soft); }
.app-account-panel #logout { border-top:1px solid var(--line); border-radius:0; margin-top:3px; }
/* Team lists: a fold inside the Account panel with one link per team */
.app-teams summary { list-style:none; cursor:pointer; padding:10px 12px; border-radius:4px; font-size:14px; }
.app-teams summary::-webkit-details-marker { display:none; }
.app-teams summary::after { content:"▸"; float:right; color:var(--muted); font-size:12px; }
.app-teams[open] summary::after { content:"▾"; }
.app-teams summary:hover { background:var(--accent-soft); }
.app-teams #team-links { display:grid; gap:2px; padding-left:10px; }
.app-teams #team-links a { padding:7px 12px !important; font-size:13px; }
.ws-billwarn { margin-top:6px; }
.ws-billwarn .small.primary, body:not(.auth-page) .ws-billwarn button { margin-top:4px; min-height:0; padding:6px 12px; border-radius:999px; font-size:12px; }
body:not(.auth-page) .banner { border-bottom:1px solid var(--line); color:#685c3a; font-size:13px; padding:10px 24px; }
body:not(.auth-page) .pill.admin { background:#e9ece8; color:#49564c; }
body:not(.auth-page) .record.paused { background:#796d54; }
.ws-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:25px; }
.ws-heading h1 { font-size:30px; font-weight:550; letter-spacing:-1px; margin:0; }
.ws-heading p { margin:7px 0 0; }
.ws-heading .actions { margin:0; flex-shrink:0; }
.ws-eyebrow { font-size:10px; letter-spacing:1.7px; font-weight:650; color:var(--muted); margin:0 0 10px !important; }

/* My List: search, then one long row per patient (name and meta, latest note and today's codes, actions),
   with that patient's notes or the bill panel under the row. One column, no sidebar. */
.ws-workspace { display:flex; flex-direction:column; gap:12px; }
.ws-search { width:100%; padding:9px 12px; background:#f8f9f6; font-size:14px; }
.ws-patients { border:1px solid var(--line); border-radius:10px; background:var(--card); overflow:hidden; }
.ws-row { display:flex; align-items:center; gap:12px; flex-wrap:nowrap; padding:10px 14px; border-top:1px solid var(--line); background:#fff; }
.ws-row:first-child { border-top:0; }
.ws-row:hover { background:#fafbf8; }
.ws-patient { flex:1 1 auto; min-width:0; text-align:left; display:flex; flex-direction:column; gap:2px;
  border:0; border-radius:0; padding:0; background:transparent; min-height:0; }
body:not(.auth-page) .ws-patient:hover:not(:disabled) { background:transparent; }
.ws-patient:hover .ws-patient-name { text-decoration:underline; text-underline-offset:3px; }
.ws-patient-name { font-family:"Helvetica Neue",Arial,sans-serif; font-size:14px; font-weight:700; line-height:1.35; letter-spacing:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ws-patient-meta { color:var(--muted); font-size:12px; line-height:1.4; display:flex; align-items:center; gap:8px; min-width:0; }
.ws-meta-text { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* Where the documentation stands, first thing after the name: under it on a phone, on its line on the website
   (DOB · MRN follow): ○ Begin (orange: start here), ● Pending (blue: a draft to finish; a bookmark when it was saved
   for later), ✓ Signed (green), ! Failed (red). The glyph is for the eye only; screen readers get the word. */
.ws-status { flex:0 0 auto; display:inline-flex; align-items:center; gap:4px; font-size:12px; font-weight:700; white-space:nowrap; }
.ws-status.none { color:#9e4a12; }  /* a darker orange: 4.5:1 or better on every row background, the tinted ones too */
.ws-status.pending { color:#2458b8; }
.ws-status.signed { color:var(--ok, #2e7d4f); }
.ws-status.failed { color:var(--danger, #b3261e); }
.ws-status .ws-bm { display:inline-flex; }
.ws-status .ws-bm svg { display:block; fill:currentColor; }
.ws-notes .ws-interactive-sm { display:none; }
/* the open row: orange, with its notes panel carrying the same left bar underneath */
.ws-row.selected,.ws-row.selected:hover { background:var(--vr-orange-soft); box-shadow:inset 3px 0 var(--vr-orange); }
.ws-row.selected .ws-patient-name { color:var(--vr-orange-dark); }
.ws-latest { flex:0 1 300px; min-width:0; display:flex; align-items:center; flex-wrap:wrap; gap:4px 10px; font-size:12px; color:var(--muted); }
.ws-latest .pill { font-size:10px; padding:1px 6px; }
.ws-latest-note { display:inline-flex; align-items:center; gap:6px; }
.ws-billcodes { display:inline-flex; flex-wrap:wrap; gap:4px; }
.ws-billcodes .codechip { font-size:11px; padding:2px 6px; }
.ws-latest .codechip.draft,.ws-billpanel .codechip.draft { opacity:.7; border-style:dashed; }
.ws-rowbtns { display:flex; gap:8px; margin-left:auto; flex-shrink:0; }
.ws-row .ws-rowbtns button { font-size:12px; line-height:1.3; padding:5px 14px; min-height:0; border-radius:999px; }
.ws-row .ws-rowbtns .ws-document { background:var(--accent); border-color:var(--accent); color:#fff; font-weight:600; }
.ws-row .ws-rowbtns .ws-document:hover:not(:disabled) { background:#243b2f; }
/* Interactive in burgundy, Bill in green (on a phone Interactive sits in the open panel) */
.ws-row .ws-rowbtns .ws-interactive, body:not(.auth-page) .ws-notes .ws-interactive-sm { background:#800020; border-color:#800020; color:#fff; font-weight:600; }
.ws-row .ws-rowbtns .ws-interactive:hover:not(:disabled), body:not(.auth-page) .ws-notes .ws-interactive-sm:hover:not(:disabled) { background:#5e0018; border-color:#5e0018; color:#fff; }
.ws-row .ws-rowbtns .ws-addbill { background:#1e7d46; border-color:#1e7d46; color:#fff; font-weight:600; }
.ws-row .ws-rowbtns .ws-addbill:hover:not(:disabled) { background:#17643a; border-color:#17643a; color:#fff; }
/* the website: DOB and MRN on the name's line (they wrap under it only when the row is too narrow); phones keep them under the name */
@media (min-width: 681px) {
  .ws-patient { flex-direction:row; flex-wrap:wrap; align-items:baseline; column-gap:14px; }
  .ws-patient-name, .ws-patient-meta { flex:0 1 auto; }
  .ws-patient .ws-stay { flex-basis:100%; }
}
.ws-notes { padding:8px 14px 12px 32px; display:flex; flex-direction:column; gap:2px; font-size:13px; background:#fff; box-shadow:inset 3px 0 var(--vr-orange); }
.ws-notes a { display:inline-flex; align-items:center; gap:8px; align-self:flex-start; padding:4px 0; color:var(--text); text-decoration:none; }
.ws-notes a:hover { text-decoration:underline; text-underline-offset:3px; }
.ws-notes .pill { font-size:10px; padding:1px 6px; }
.ws-notes button.link { min-height:0; padding:0; font-size:13px; color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.ws-more { align-self:center; min-width:220px; }
.ws-list-empty { padding:18px; margin:0; }
/* the bill panel under a row */
.ws-billmsg { font-size:11px; color:var(--muted); }
.ws-billmsg.done { color:var(--ok); font-weight:600; }
.ws-billpanel { padding:8px 14px 12px; display:flex; flex-direction:column; gap:8px; background:#f7f9f5; border-top:1px dashed #dfe5db; }
.ws-billpanel select { width:100%; font-size:12px; }
.ws-billpanel .actions { margin:0; }
.ws-billpanel .actions button { font-size:12px; padding:6px 14px; min-height:0; }
.ws-billchips { display:flex; flex-wrap:wrap; gap:4px; }

.ws-field { display:block; min-width:0; margin:8px 0; }
.ws-field > span { display:block; margin-bottom:6px; color:var(--muted); font-size:12px; }
.ws-field input,.ws-field select,.ws-field textarea { background:#fafbf8; font-size:14px; }
.ws-dialog { color:var(--text); background:#fff; border:1px solid var(--line); border-radius:12px; width:min(720px,calc(100vw - 32px)); max-height:90vh; padding:26px; box-shadow:0 20px 80px #16201926; }
.ws-dialog::backdrop { background:#1f2d264d; }
.ws-dialog-head { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:15px; }
.ws-dialog-head h2 { margin:0; font-size:22px; }
.ws-template-grid { display:grid; grid-template-columns:minmax(280px,.85fr) minmax(0,1.3fr); gap:24px; align-items:start; }
.ws-template-questions,.ws-template-preview { padding:30px; border:1px solid var(--line); border-radius:10px; background:#fff; min-width:0; }
.ws-template-grid h2 { font-size:24px; font-weight:550; letter-spacing:-.5px; margin:0 0 10px; }
.ws-template-grid p.muted { line-height:1.75; margin:0 0 20px; }
.ws-template-grid .ws-field { margin:18px 0; }
.ws-template-grid textarea { min-height:120px; }
.ws-template-grid .ws-template-outline { min-height:320px; line-height:1.8; }
.ws-template-grid details { border-top:1px solid var(--line); margin-top:24px; padding-top:18px; }
.ws-template-grid summary { cursor:pointer; color:var(--accent); }
.ws-template-grid p.small { margin:20px 0 0; }
.ws-chips { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.ws-chips button { font-size:12px !important; border-radius:20px; min-height:34px !important; padding:6px 12px; }
.ws-template-library { margin-top:28px; }
@media(max-width:1000px) {
  body:not(.auth-page) #topbar { padding:12px 18px; gap:12px; }
  body:not(.auth-page) #topbar nav { order:3; flex-basis:100%; }
  body:not(.auth-page) #specialty { margin-left:auto; }
  .workspace-page #app { padding:10px 18px 24px; }
  .app-page-nav { padding:13px 18px 10px; }
  .ws-template-grid { grid-template-columns:1fr 1fr; gap:16px; }
  .ws-template-questions,.ws-template-preview { padding:22px; }
}
@media(max-width:680px) {
  .ws-heading { align-items:start; flex-direction:column; gap:14px; margin-bottom:18px; }
  .ws-heading h1 { font-size:27px; }
  .my-list-page #app { padding:6px 12px 16px; }
  .my-list-page .app-page-nav { padding-inline:12px; }
  .my-list-page .ws-heading { flex-direction:row; flex-wrap:wrap; align-items:center; gap:8px; }
  .ws-template-grid { grid-template-columns:1fr; }
  /* phone: one row per patient. The name (and DOB · MRN under it) on the left, Document and Bill on the right;
     the latest note and Interactive live in the panel that opens with the arrow */
  .ws-row { padding:8px 10px; gap:6px; }
  .ws-rowbtns { flex:0 0 auto; margin-left:auto; display:flex; gap:6px; }
  .ws-row .ws-rowbtns button { flex:0 0 auto; padding:5px 10px; font-size:12px; }  /* small: the status chip under the name says where to start */
  /* phone: DOB · MRN gets its own line under the chip, so the year is never cut off */
  .ws-patient-meta { flex-wrap:wrap; row-gap:0; }
  .ws-meta-text { flex:1 1 100%; }
  .ws-row .ws-rowbtns .ws-interactive { display:none; }
  .ws-latest { display:none; }
  .ws-notes .ws-interactive-sm, body:not(.auth-page) .ws-notes .ws-interactive-sm { display:inline-flex; align-self:flex-start; margin:0 0 6px; min-height:0;
    padding:6px 12px; border-radius:999px; font-size:12px; }
  .ws-notes { padding:8px 12px 12px 24px; }
  .ws-billpanel { padding-inline:12px; }
  .ws-more { align-self:stretch; }
  .ws-dialog { padding:20px; }
  body:not(.auth-page) nav { justify-content:flex-start; }
  body:not(.auth-page) #topbar > nav { flex-wrap:wrap; overflow:visible; gap:3px; }
  body:not(.auth-page) nav a { padding:7px 10px; }
  body:not(.auth-page) #topbar { gap:9px; }
  body:not(.auth-page) #specialty { max-width:120px; font-size:12px; }
  .app-account summary { padding:7px 9px; gap:7px; font-size:12px; }
}
@media print { .app-page-nav,.app-skip-link { display:none !important; } }
@media print { .ws-heading,.ws-search,.ws-more,.ws-rowbtns,.ws-billpanel { display:none; } .ws-patients { border:0; } .ws-row.selected,.ws-notes { background:#fff; box-shadow:none; } }
/* the arrows: on the left of each patient (expand / collapse the notes) and on each date of service */
.ws-row .ws-arrow, body:not(.auth-page) .ws-row .ws-arrow { flex:0 0 auto; width:28px; height:28px; min-height:0; padding:0; border:0; border-radius:6px;
  background:transparent; color:var(--muted); font-size:14px; line-height:28px; text-align:center; transition:transform .15s; }
body:not(.auth-page) .ws-row .ws-arrow:hover:not(:disabled) { background:rgba(0,0,0,.06); color:var(--text); }
.ws-row .ws-arrow.open { transform:rotate(90deg); color:var(--vr-orange-dark); }
.ws-dategroup { display:flex; flex-direction:column; }
.ws-notes .ws-datehead, body:not(.auth-page) .ws-notes .ws-datehead { display:inline-flex; align-items:center; gap:6px; align-self:flex-start; min-height:0;
  padding:4px 6px 4px 0; border:0; background:transparent; color:var(--text); font-size:13px; font-weight:600; }
.ws-arrow-sm { display:inline-block; width:14px; color:var(--muted); transition:transform .15s; }
.ws-datehead.open .ws-arrow-sm { transform:rotate(90deg); }
.ws-datenotes { display:flex; flex-direction:column; gap:2px; padding-left:20px; }
.ws-notes .ws-collapse, body:not(.auth-page) .ws-notes .ws-collapse { align-self:flex-start; margin-top:6px; min-height:0; padding:2px 10px; border-radius:999px;
  font-size:12px; background:transparent; color:var(--muted); border:1px solid var(--line); }
/* Search in: Patients or Notes (by meaning) */
.ws-searchrow { display:flex; gap:8px; align-items:center; }
.ws-searchrow .ws-search { flex:1 1 auto; min-width:0; }
.ws-searchmode { display:inline-flex; flex:0 0 auto; border:1px solid var(--line); border-radius:999px; overflow:hidden; background:#fff; }
.ws-searchmode button, body:not(.auth-page) .ws-searchmode button { border:0; border-radius:0; min-height:36px; padding:0 14px; font-size:13px; background:transparent; color:var(--muted); }
.ws-searchmode button[aria-pressed="true"], body:not(.auth-page) .ws-searchmode button[aria-pressed="true"] { background:var(--vr-orange-soft); color:var(--vr-orange-dark); font-weight:600; }
.ws-noteresults { border:1px solid var(--line); border-radius:10px; background:var(--card); overflow:hidden; }
.ws-noteresults[hidden] { display:none; }
.ws-noteresult { display:block; padding:10px 14px; border-top:1px solid var(--line); color:var(--text); text-decoration:none; background:#fff; }
.ws-noteresult:first-child { border-top:0; }
.ws-noteresult:hover { background:#fafbf8; }
.ws-noteresult-head { display:flex; flex-wrap:wrap; align-items:center; gap:4px 6px; font-size:13px; }
.ws-noteresult-head .pill { font-size:10px; padding:1px 6px; }
.ws-noteresult-snip { margin-top:4px; font-size:13px; color:var(--muted); line-height:1.45; }
.ws-list-empty .waiting { padding:4px 0; }
.ws-searching { padding:6px 14px; border-bottom:1px solid var(--line); background:#fafbf8; }

.ws-inbox { border:1px solid var(--line); border-radius:12px; background:var(--card, #fff); padding:10px 14px; margin:0 0 12px; }
.ws-inbox h2 { font-size:15px; margin:0 0 6px; }
.ws-inbox-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-top:1px solid var(--line); }
.ws-inbox-row:first-of-type { border-top:0; }
.ws-inbox-row .grow { min-width:0; flex:1; }
.ws-inbox-row .muted { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width: 640px) { .ws-inbox-row { flex-wrap:wrap; } .ws-inbox-row .grow { flex-basis:100%; } }

.coach { max-width:1000px; margin:0 auto; }
.coach-setup { display:grid; grid-template-columns:2fr 1fr 2fr; gap:12px; margin:12px 0; }
.coach-setup label { display:flex; flex-direction:column; gap:4px; font-size:13px; }
.coach-main { display:grid; grid-template-columns:3fr 2fr; gap:16px; }
.coach-chat, .coach-check { border:1px solid var(--line); border-radius:12px; background:var(--card, #fff); padding:12px; }
.coach-log { min-height:220px; max-height:46vh; overflow:auto; display:flex; flex-direction:column; gap:8px; margin-bottom:8px; }
.coach-msg { padding:8px 12px; border-radius:12px; max-width:88%; white-space:pre-wrap; }
.coach-msg.from-coach { background:var(--accent-soft, #e8efe9); align-self:flex-start; }
.coach-msg.from-you { background:#fff; border:1px solid var(--line); align-self:flex-end; }
.coach-chat textarea { width:100%; box-sizing:border-box; }
.coach-check h3 { margin:0 0 6px; font-size:15px; }
.coach-el { border-top:1px solid var(--line); padding:6px 0; }
.coach-blank { font-family:ui-monospace, Menlo, monospace; }
@media (max-width: 760px) { .coach-setup, .coach-main { grid-template-columns:1fr; } }

.ws-row .ws-rowbtns .ws-delete { color:#a3261f; border-color:#e3b8b4; background:#fff; width:36px; min-width:36px; padding:0; display:inline-flex; align-items:center; justify-content:center; }
.ws-rowbtns .ws-delete svg { fill:currentColor; }
.ws-rowbtns button.ws-delete:hover, .ws-rowbtns button.ws-delete:focus-visible { background:#a3261f !important; color:#fff !important; border-color:#a3261f !important; }
@media (max-width: 640px) { .ws-row .ws-rowbtns .ws-delete { width:32px; min-width:32px; padding:0; } }

/* My List: one compact header (the day, team and department), then the list fills the screen */
.my-list-page .app-page-nav { display:none; }  /* My List is the home page: no Back row */
.doc-page .app-page-nav { display:none; }  /* the Document page: « Previous is under the page; the patient line moves up */
.my-list-page #mockbanner { padding:4px 12px; font-size:12px; }
.ws-dayhead { display:flex; flex-direction:column; gap:6px; margin:0 0 8px; }
.ws-dayrow1 { display:flex; align-items:center; gap:10px; flex-wrap:nowrap; min-width:0; }
.ws-dayrow1 h1 { font-size:21px; letter-spacing:-.4px; margin:0; white-space:nowrap; }
.ws-dayactions { margin-left:auto; display:flex; gap:6px; flex:0 0 auto; }
.ws-locknote,.ws-billlock { font-size:12px; color:#8a5a00; background:#fff6e0; border:1px solid #f0d9a0; border-radius:8px; padding:6px 10px; }
.my-list-page .ws-dayactions button { width:auto; min-height:0; padding:6px 12px; font-size:13px; border-radius:999px; }
.ws-dayrow2 { display:flex; align-items:center; gap:6px; flex-wrap:nowrap; }
.my-list-page .ws-dayrow2 > * { width:auto; flex:0 0 auto; min-height:0; }
.my-list-page .ws-dayrow2 input[type=date] { font-size:14px; padding:5px 8px; width:150px; }
.my-list-page .ws-dayrow2 select { font-size:14px; padding:5px 8px; width:auto; max-width:160px; }
.my-list-page .ws-daynav { width:auto; padding:5px 10px; min-height:0; font-size:13px; }
.ws-daylabel { font-weight:600; white-space:nowrap; }
.ws-flag { font-size:12px; color:#8a4b00; background:#fff3e0; border:1px solid #f0c58a; border-radius:999px; padding:1px 8px; margin-left:8px; white-space:nowrap; }
.ws-found { display:flex; flex-direction:column; gap:4px; margin-top:6px; }
.ws-foundrow { text-align:left; }
/* Phones: a clean header, nothing but "My List", the Team menu and the date of service (and a small + to add a patient).
   The Today/Archive label, the count, the day arrows, refresh, the department menu and the search box are hidden. */
@media (max-width: 640px) {
  .ws-dayrow1 h1 { font-size:20px; }
  .ws-dayrow1 .ws-daylabel, .ws-daycount, .ws-daynav, .my-list-page .ws-dayrow2 select[aria-label="Department"],
  .ws-add .ws-addword, .my-list-page .ws-searchrow { display:none; }
  .ws-dayrow2 { flex-wrap:nowrap; gap:8px; }
  .my-list-page .ws-dayrow2 select[aria-label="Team"] { flex:1 1 auto; max-width:none; font-size:15px; padding:7px 10px; }
  .my-list-page .ws-dayrow2 input[type=date] { flex:0 0 auto; width:auto; min-width:0; font-size:15px; padding:7px 8px; }
  .my-list-page .ws-dayactions .ws-add { width:36px; height:36px; padding:0; font-size:20px; line-height:1; border-radius:50%; }
  .ws-searchrow input { padding:7px 10px; font-size:14px; }
}

.pill.pending { background:#fdebd0; color:#b9770e; }
.pill.later, body:not(.auth-page) .pill.later { background:#dde9fb; color:#2458b8; }
.pill.none { background:var(--line); color:var(--muted); }
.ws-daycount { margin-left:0; }
.ws-pending h2 { color:#b9770e; }




/* the day's status report: red when the stay is longer than the geometric mean length of stay, yellow on observation (the text stays dark) */
.ws-row.ws-over { background:#fde2e1; }
.ws-row.ws-obs { background:#fff3bf; }
.ws-row.ws-over.selected, .ws-row.ws-obs.selected { filter:brightness(.97); }
.ws-stay { display:block; font-size:12px; color:var(--muted); margin-top:2px; }
.ws-stay.over { color:#8a1c16; font-weight:600; }
/* Bill: "Other code…" opens a box for any CPT or HCPCS code */
.ws-billpanel .othercode:not([hidden]) { display:block; width:180px; margin-top:6px; font-family:ui-monospace,Menlo,monospace; font-weight:600; text-transform:uppercase; }
