/* Office pages in the calm AMS look (CEO "looks good", Nov 12, 2026; design/office-pages-refresh/office-pages-proto.html v3).
   Built on the office skin (css/office.css): white page, hairlines, 8px corners, no shadows. Adds the Next step line, the strip of numbers and
   the list-and-panel split. No deep teal card, rings, icon tiles or pill tabs (CEO: "everything looks like a dashboard when it isn't"). */
body.skin .oc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 12px 10px 16px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 10px; background: #F4F6F5; }
body.skin .oc-bar.wait { background: #FFF6E6; border-color: #E2B866; }
body.skin .oc-bt { flex: 1 1 280px; min-width: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 15px; }
body.skin .oc-bt .oc-k { font: 800 11px/1.3 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
body.skin .oc-bar.wait .oc-bt .oc-k, body.skin .oc-bar.wait .oc-bt .oc-s { color: #7A4A00; }
body.skin .oc-bt b { font-weight: 700; color: var(--ink); }
body.skin .oc-bt .oc-s { color: var(--ink-3); font-size: 14px; }
body.skin .oc-ba { display: flex; flex-wrap: wrap; gap: 8px; }
body.skin .oc-ba .btn { margin: 0; }

body.skin .oc-pill { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px; font: 700 12px/1 var(--f-ui); white-space: nowrap; background: #EEF1F0; color: var(--ink-3); }
body.skin .oc-pill.ok { background: #E3F4F1; color: #0B5A52; }
body.skin .oc-pill.warn { background: #FFF1DB; color: #7A4A00; }
body.skin .oc-pill.bad { background: #FDECEA; color: #A3271A; }
body.skin .oc-pill.now { background: var(--teal, #0F6B62); color: #fff; }

body.skin .oc-stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0 0 18px; }
body.skin .oc-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 16px; border: 0; border-left: 1px solid var(--line); background: #fff; text-align: left; font: inherit; color: var(--ink); }
body.skin .oc-stat:first-child { border-left: 0; }
body.skin button.oc-stat { cursor: pointer; }
body.skin button.oc-stat:hover { background: #F7F8F8; }
body.skin .oc-stat.on { background: #F4F6F5; box-shadow: inset 0 -2px 0 var(--ink); }
body.skin .oc-stat .oc-k { font-size: 12px; font-weight: 600; color: var(--ink-3); }
body.skin .oc-stat .oc-v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
body.skin .oc-stat .oc-v.warn { color: #8A5A00; } body.skin .oc-stat .oc-v.bad { color: #A3271A; }
body.skin .oc-stat .oc-s { font-size: 13px; color: var(--ink-3); }

body.skin .oc-split { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
body.skin .oc-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
body.skin .oc-g { margin: 0; padding: 8px 14px; background: #F4F6F5; border-top: 1px solid var(--line); font: 800 11px/1.3 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
body.skin .oc-g:first-child { border-top: 0; }
body.skin .oc-it { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 9px 14px; border: 0; border-top: 1px solid var(--line); background: #fff; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
body.skin .oc-list > .oc-it:first-child, body.skin .oc-g + .oc-it { border-top: 0; }
body.skin .oc-g + .oc-it { border-top: 1px solid var(--line); }
body.skin .oc-it:hover { background: #F7F8F8; }
body.skin .oc-it[aria-selected="true"] { background: #EAF5F3; box-shadow: inset 3px 0 0 #0F7A70; }
body.skin .oc-it .f { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
body.skin .oc-it .f b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
body.skin .oc-it .f small { font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
body.skin .oc-it .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.skin .oc-dot { flex: none; width: 24px; height: 24px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--line-2); background: #fff; }
body.skin .oc-dot.done { background: #0F7A70; border-color: #0F7A70; color: #fff; }
body.skin .oc-dot.done .i { width: 12px; height: 12px; }
body.skin .oc-dot.wait { background: #FFF1DB; border-color: #D9A44A; }
body.skin .oc-dot.todo { background: #fff; border-color: #C9D2D0; }   /* not finished, nobody waiting: grey (CEO "Colors could be better", Nov 14, 2026; design/office-pages-refresh/full-record-colors.html) */
body.skin .oc-dot.bad { background: #FDECEA; border-color: #A3271A; }
body.skin .oc-dot.now { border: 3px solid var(--teal, #0F6B62); }
body.skin .oc-panels { min-width: 0; }
body.skin .oc-panel { border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; min-width: 0; }
body.skin .oc-panel > :last-child { margin-bottom: 0; }
body.skin .oc-ph { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
body.skin .oc-ph h2 { margin: 0; font: 500 24px/1.15 var(--f-display); color: var(--ink); }
body.skin .oc-ph p { margin: 4px 0 0; font-size: 14px; color: var(--ink-3); }
/* sections that move into a panel lose their own outer spacing */
body.skin .oc-panel > .vp-sec:first-of-type, body.skin .oc-panel > section:first-of-type { margin-top: 0; }
body.skin .oc-panel .vp-sec > h3:first-child { display: none; }

/* the page header: title and meta on the left, actions on the right */
body.skin .oc-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
body.skin .oc-head > div:first-child { flex: 1 1 260px; min-width: 0; }
body.skin .oc-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body.skin .oc-acts .btn { margin: 0; }
body.skin .oc-more { position: relative; }
body.skin .oc-more > .btn .i { width: 12px; height: 12px; margin-left: 4px; }
body.skin .oc-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 32px -12px rgba(23, 40, 42, .3); display: flex; flex-direction: column; }
body.skin .oc-menu[hidden] { display: none; }
body.skin .oc-menu button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: none; text-align: left; font: 600 14px/1.2 var(--f-ui); color: var(--ink); cursor: pointer; }
body.skin .oc-menu button:hover { background: #F4F6F5; }
body.skin .oc-menu button.red { margin-top: 4px; border: 1px solid #A3271A; color: #A3271A; justify-content: center; text-align: center; }

@media (max-width: 899px) {
  body.skin .oc-split { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  body.skin .oc-panel { padding: 16px; }
  body.skin .oc-ph h2 { font-size: 21px; }
  body.skin .oc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.skin .oc-stat:nth-child(odd) { border-left: 0; }
  body.skin .oc-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  body.skin .oc-bar { padding: 10px 12px; }
  body.skin .oc-ba { flex: 1 1 100%; }
}

/* the visit page (js/visit-page.js calmPage) */
body.skin .oc-bt .oc-k { white-space: nowrap; }
body.skin .oc .vp-head.oc-head h1 { margin: 0 0 4px; }
body.skin .oc-panel .vr.vr-in { border: 0; padding: 0; margin: 0; }
body.skin .oc-panel .vr.vr-in > :first-child { margin-top: 0; }
body.skin .oc-panel .vp-sec { margin: 0 0 20px; }
body.skin .oc-panel .vp-sec:last-child { margin-bottom: 0; }

/* client page (calm Overview): the record's section cards sit inside the panel without a second frame */
.oc-panel > .card, .oc-panel .ov-card { border: 0; box-shadow: none; padding: 0; margin: 0; background: none; }
.oc-panel .ov-parties > .card-h h2 { display: none; }
.oc-panel .ov-parties > .card-h { justify-content: flex-end; margin: 0 0 .5rem; }
.oc-note { margin: 0 0 14px; font-size: 14px; color: var(--ink, #1d2a2a); }
.oc-note b { font-weight: 700; margin-right: .5rem; }
.oc-panel .oc-acts { display: flex; gap: 8px; flex-wrap: wrap; }
body.skin .oc-panel .home-rows { gap: 0; }
body.skin .oc-panel .home-row { border-top: 0; }
body.skin .oc-panel .home-row:last-child { border-bottom: 0; }

/* People lists (calm): the counts strip filters, the rows sit in one bordered table with grey letter rows */
body.skin .oc-az .oc-stats { margin: 14px 0 16px; }
body.skin .oc-az .az-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
body.skin .oc-az .az-hd { padding-left: 16px; padding-right: 16px; background: #fff; }
body.skin .oc-az .az-l { background: #F4F6F5; padding: 6px 16px; }
body.skin .oc-az .az-r { padding-left: 16px; padding-right: 16px; }
body.skin .oc-az .az-list > li:last-child .az-r { border-bottom: 0; }
@media (max-width: 899px) {
  body.skin .oc-az .az-h { flex-wrap: wrap; }
  body.skin .oc-az .oc-stats, body.skin .oc-stats.many { display: flex; overflow-x: auto; scrollbar-width: none; }
  body.skin .oc-az .oc-stat, body.skin .oc-stats.many .oc-stat { flex: 1 0 auto; min-width: 92px; padding: 8px 12px; border-top: 0; border-left: 1px solid var(--line); }
  body.skin .oc-az .oc-stat:first-child, body.skin .oc-stats.many .oc-stat:first-child { border-left: 0; }
  body.skin .oc-stats.many .oc-k, body.skin .oc-az .oc-stat .oc-k { white-space: nowrap; }
  body.skin .oc-az .oc-stat .oc-v, body.skin .oc-stats.many .oc-v { font-size: 17px; }
}

/* Billing › Invoices (calm) */
body.skin .oc-tools { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; flex-wrap: wrap; }
body.skin .oc-tools .az-q { flex: 1 1 260px; margin: 0; }
body.skin .oc-amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.skin .oc-panel .inv-doc { border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
body.skin .oc-panel .oc-ph .oc-acts { flex-wrap: wrap; justify-content: flex-end; }

/* Schedule › Time off (calm): the waiting requests as a slim amber box, not the deep block */
body.skin .tq2 .oc-need { background: #FFF6E6; border: 1px solid #E2B866; border-radius: 10px; box-shadow: none; padding: 10px 16px 2px; margin: 0 0 22px; color: var(--ink); }
body.skin .tq2 .oc-need .tq-wl { color: #7A4A00; font-size: 11px; letter-spacing: .09em; }
body.skin .tq2 .oc-need h2 { font: 700 15px/1.3 var(--f-ui); color: var(--ink); margin: 2px 0 6px; }
body.skin .tq2 .oc-need .tq-nr { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(138, 90, 0, .18); background: none; }
body.skin .tq2 .oc-need .tq-nt strong { color: var(--ink); font-size: 15px; }
body.skin .tq2 .oc-need .tq-ln { display: block; font-size: 13px; color: #7A4A00; margin-top: 2px; }
body.skin .tq2 .oc-need .tq-ln em { color: #7A4A00; }
body.skin .tq2 .oc-need .tq-ln em.bad { color: #A3271A; }
body.skin .tq2 .oc-need .tq-wb { height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
body.skin .tq2 .oc-need .tq-wb.pri { background: var(--teal, #0F6B62); border-color: var(--teal, #0F6B62); color: #fff; }
@media (min-width: 720px) { body.skin .tq2 .oc-need .tq-wbs { width: auto; } body.skin .tq2 .oc-need .tq-wb { flex: none; } }

/* the office caregiver page in the calm look (js/caregiver-page.js calmHead, calmOverview, calmPaperwork). The page keeps the .rf
   colors for its inner parts, but drops the grey page, the rounded shadowed cards and the big buttons. */
body.skin:has(.rf.cgr-oc) .main, body.skin:has(.rf.cgr-oc) .shell { background: #fff; }
body.skin .rf.cgr.cgr-oc { max-width: none; margin: 0; padding: 0 0 32px; gap: 0; display: block; font-family: inherit; }
body.skin .cgr-oc .rc-head { margin-bottom: 16px; }
body.skin .cgr-oc .cgr-oh .oc-acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
body.skin .cgr-oc .cgr-oh .oc-acts .btn .i { width: 14px; height: 14px; }
body.skin .cgr-oc .rc-tabs { margin-bottom: 18px; }
body.skin .cgr-oc .rf-card { border: 1px solid var(--line); border-radius: 10px; box-shadow: none; padding: 18px 20px; background: #fff; margin: 0 0 16px; }
body.skin .cgr-oc .rf-2 { gap: 16px; margin: 0 0 16px; }
body.skin .cgr-oc .rf-2 > .rf-card { margin: 0; }
body.skin .cgr-oc .rf-sh { margin: 4px 0 10px; font-size: 16px; }
body.skin .cgr-oc .rf-btn { height: 38px; min-height: 38px; padding: 0 14px; border-radius: 8px; font-size: 14px; }
body.skin .cgr-oc .rf-pill { height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; }
body.skin .cgr-oc .rf-line { border-radius: 8px; }
body.skin .cgr-oc .oc-panel .rf-kv { font-size: 14px; }
body.skin .cgr-oc .cgr-pb .rf-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
body.skin .cgr-oc .cgr-pt { justify-content: space-between; }
body.skin .cgr-oc .cgr-pt p { margin: 0; font-size: 15px; }
body.skin .cgr-oc .cgr-pt p .muted { margin-left: 6px; }
@media (max-width: 719px) { body.skin .cgr-oc .cgr-hide-sm { display: none; } body.skin .cgr-oc .cgr-oh .oc-acts { margin-left: 0; width: 100%; } }
body.skin .cgr-oc .cgr-oh .oc-acts a.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2, #C9D2D0); background: #fff; color: var(--ink); text-decoration: none; }

/* cool grey lines in the calm lists (Nov 14, 2026 colors) */
body.skin .oc-list, body.skin .oc-it, body.skin .oc-g, body.skin .oc-g + .oc-it { border-color: #E3E8E7; }
body.skin .oc-g { background: #F5F7F7; }
