/* Whānau Ora module — uses Care0 theme role tokens only (works with every tenant theme). */
#surface[data-page="whanau"] { max-width:1120px; }
.wo { display:flex; flex-direction:column; gap:0; animation:wo-in .22s ease-out; }
@keyframes wo-in { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
.wo-nav { display:flex; gap:4px; margin-bottom:14px; border-bottom:1px solid var(--line); }
.wo-tab { background:transparent; color:var(--muted); border-radius:0; border-bottom:2px solid transparent; padding:8px 14px; font-weight:600; }
.wo-tab.on { color:var(--fg); border-bottom-color:var(--accent); }
.wo-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:14px; flex-wrap:wrap; }
.wo-head p { margin:6px 0 0; max-width:62ch; }
.wo-kicker { font-size:11px; text-transform:uppercase; letter-spacing:.1em; color:var(--accent); font-weight:700; margin-bottom:4px; }
.wo-sh { display:flex; align-items:center; gap:10px; font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); font-weight:700; margin-bottom:10px; }
summary.wo-sh { cursor:pointer; margin:0; }
.wo-count { color:var(--fg); background:var(--accent-wash); border-radius:10px; padding:0 8px; letter-spacing:0; }
.wo-count:empty { display:none; }
.wo-grow { flex:1; }
.wo-split { display:grid; grid-template-columns:3fr 2fr; gap:16px; }
.wo-split > .card { margin:0; }
.wo-jump { position:sticky; top:52px; z-index:3; display:flex; gap:4px; overflow-x:auto; padding:6px; margin-bottom:14px; border:1px solid var(--line); border-radius:var(--radius); background:color-mix(in srgb,var(--panel) 94%,transparent); backdrop-filter:blur(6px); }
.wo-jump a { color:var(--muted); font-size:13px; padding:4px 10px; border-radius:8px; white-space:nowrap; }
.wo-jump a:hover, .wo-jump a:focus-visible { color:var(--fg); background:var(--accent-wash); }
.wo-banner { padding:9px 12px; border-radius:8px; margin-bottom:12px; font-size:14px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.wo-banner.ok { background:var(--status-ok-bg); color:var(--ok); }
.wo-banner.bad { background:var(--status-bad-bg); color:var(--fg); border-left:3px solid var(--bad); }
.wo-ro { font-size:13px; color:var(--muted); border-left:3px solid var(--line); padding:4px 10px; margin:10px 0 0; }
.wo-small { font-size:12.5px; }
.wo-help { display:block; font-size:12px; color:var(--muted); margin-top:3px; line-height:1.35; }
.wo-empty { text-align:center; padding:28px 18px; }
.wo-empty h2 { margin:0 0 6px; font-size:18px; }
.wo-list { list-style:none; margin:0; padding:0; }
.wo-row { width:100%; display:flex; justify-content:space-between; background:transparent; color:var(--fg); border-radius:8px; padding:10px 12px; font-weight:500; text-align:left; }
.wo-row:hover, .wo-row:focus-visible { background:var(--chrome-hover); }
.wo-notes { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.wo-notes li { border-left:3px solid var(--accent); padding:4px 10px; }
.wo-notes li.read { border-left-color:var(--line); opacity:.75; }
.wo-inline { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.wo-table { width:100%; border-collapse:collapse; font-size:14px; }
.wo-table th { text-align:left; font-size:12px; color:var(--muted); font-weight:600; padding:6px 8px; border-bottom:1px solid var(--line); white-space:nowrap; }
.wo-table td { padding:6px 8px; border-bottom:1px solid color-mix(in srgb,var(--line) 55%,transparent); vertical-align:middle; }
.wo-scroll { overflow-x:auto; }
.wo-prog td:first-child { min-width:240px; }
.wo-dom { display:block; font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.wo-sc { text-align:center; font-variant-numeric:tabular-nums; font-weight:700; white-space:nowrap; }
.wo-sc.s0, .wo-sc.sn { color:var(--muted); font-weight:400; }
.wo-sc.s1 { background:color-mix(in srgb,var(--accent) 6%,transparent); }
.wo-sc.s2 { background:color-mix(in srgb,var(--accent) 13%,transparent); }
.wo-sc.s3 { background:color-mix(in srgb,var(--accent) 22%,transparent); }
.wo-sc.s4 { background:color-mix(in srgb,var(--accent) 32%,transparent); }
.wo-delta { font-size:11px; margin-left:4px; font-weight:600; }
.wo-delta.up { color:var(--ok); } .wo-delta.down { color:var(--warn); }
.wo-sub { margin-top:14px; border-top:1px dashed var(--line); padding-top:10px; }
.wo-sub > summary { cursor:pointer; color:var(--accent); font-weight:600; font-size:14px; }
.wo-form { display:flex; flex-direction:column; gap:12px; margin-top:12px; transition:opacity .15s; }
.wo-form.wo-saving, .wo-saving { opacity:.55; pointer-events:none; }
.wo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:12px; }
.wo-field { display:flex; flex-direction:column; gap:4px; min-width:0; }
.wo-field input, .wo-field select, .wo-field textarea { width:100%; }
.wo-wide { grid-column:1/-1; }
.wo-flabel { font-size:12.5px; font-weight:600; }
.wo-actions { display:flex; gap:8px; align-items:center; justify-content:flex-end; flex-wrap:wrap; }
.wo-scores { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:8px; }
.wo-q { border:1px solid var(--line); border-radius:10px; padding:8px 10px; margin:0; display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.wo-q legend { font-size:13px; padding:0 4px; }
.wo-q label { position:relative; }
.wo-q input { position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.wo-q span { display:inline-flex; width:34px; height:30px; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:7px; font-weight:700; font-variant-numeric:tabular-nums; }
.wo-q input:checked + span { background:var(--accent); color:var(--accent-contrast); border-color:var(--accent); }
.wo-q input:focus-visible + span { outline:2px solid var(--accent); outline-offset:2px; }
.wo-q:not(:has(input:checked)) { border-style:dashed; }
.wo-confirm { display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border-radius:8px; background:var(--status-warn-bg); font-size:14px; }
.wo-goal { border:1px solid var(--line); border-radius:10px; padding:10px; margin-bottom:10px; }
.wo-goalrow { display:grid; grid-template-columns:1fr minmax(160px,240px) 140px auto; gap:8px; margin:0; align-items:center; }
.wo-goalrow.wo-new { margin-top:4px; }
.wo-actrow { display:grid; grid-template-columns:1fr 140px 150px 130px auto; gap:6px; align-items:center; }
.wo-actrow input, .wo-actrow select { padding:6px 9px; font-size:13.5px; min-width:0; }
.wo-actions-t td { border:none; padding:3px 0 3px 18px; }
.wo-actrow.wo-new { margin:6px 0 0 18px; }
.wo-funds { display:flex; flex-direction:column; gap:8px; margin-top:12px; }
.wo-fund { border:1px solid var(--line); border-left-width:4px; border-radius:10px; padding:8px 12px; }
.wo-fund > summary { display:flex; gap:12px; align-items:center; cursor:pointer; list-style:none; }
.wo-fund > summary::-webkit-details-marker { display:none; }
.wo-fst { font-size:11px; text-transform:uppercase; letter-spacing:.06em; font-weight:700; min-width:118px; color:var(--muted); }
.wo-fp { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wo-fa { font-variant-numeric:tabular-nums; font-weight:700; }
.st-submitted, .st-more_information { border-left-color:var(--warn); }
.st-approved { border-left-color:var(--accent); } .st-paid { border-left-color:var(--ok); } .st-declined { border-left-color:var(--bad); }
.wo-dl { display:grid; grid-template-columns:max-content 1fr; gap:4px 14px; font-size:13.5px; margin:10px 0; }
.wo-dl dt { color:var(--muted); } .wo-dl dd { margin:0; overflow-wrap:anywhere; }
.wo-notelist { list-style:none; padding:0; margin:0 0 10px; display:flex; flex-direction:column; gap:10px; max-height:360px; overflow:auto; }
.wo-pre { white-space:pre-wrap; }
.wo-recording { background:var(--bad) !important; color:var(--text-inverse) !important; border-color:var(--bad) !important; }
.wo-sugghead { margin-top:16px; font-size:12px; font-weight:700; color:var(--accent); text-transform:uppercase; letter-spacing:.08em; }
.wo-sugg { border:1px dashed var(--accent); border-radius:10px; padding:10px 12px; margin-top:10px; display:flex; flex-direction:column; gap:8px; }
.wo-sgk { font-size:11px; font-weight:700; text-transform:uppercase; color:var(--accent); }
.wo-sugg blockquote { margin:0; padding-left:10px; border-left:2px solid var(--line); color:var(--muted); font-size:13px; font-style:italic; }
.wo-miss { margin:0; font-size:13px; color:var(--warn); }
.wo-meta { border:1px solid var(--line); border-radius:10px; padding:8px 12px 12px; margin:0; }
.wo-meta legend { font-size:12px; font-weight:700; color:var(--muted); padding:0 4px; }
.wo-filter { display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap; }
.wo-filter .wo-field { min-width:160px; }
.wo-issues { border-left:4px solid var(--warn); } .wo-clean { border-left:4px solid var(--ok); }
.wo-issuelist { margin:0; padding-left:18px; font-size:14px; max-height:220px; overflow:auto; }
.wo-sheets { display:flex; gap:6px; overflow-x:auto; margin-bottom:12px; padding-bottom:2px; }
.wo-sheet { background:var(--panel); color:var(--muted); border:1px solid var(--line); white-space:nowrap; display:flex; gap:8px; align-items:center; font-weight:500; }
.wo-sheet span { font-size:12px; background:var(--bg2); border-radius:8px; padding:0 6px; }
.wo-sheet.on { color:var(--fg); border-color:var(--accent); background:var(--accent-wash); }
.wo-rowform { border:1px solid var(--accent); border-radius:10px; padding:12px; margin-bottom:14px; }
.wo-fill { display:inline-block; width:54px; height:6px; border-radius:3px; background:var(--bg2); overflow:hidden; vertical-align:middle; }
.wo-fill i { display:block; height:100%; background:var(--accent); transform-origin:left; }
.wo-skel { height:90px; border-radius:var(--radius); margin-bottom:14px; background:linear-gradient(90deg,var(--panel),var(--chrome-hover),var(--panel)); background-size:200% 100%; animation:wo-shim 1.2s linear infinite; }
.wo-skel-h { height:54px; width:50%; }
@keyframes wo-shim { to { background-position:-200% 0; } }
@media (prefers-reduced-motion:reduce) { .wo, .wo-skel { animation:none; } }
@media (max-width:767px) {
  .wo-split { grid-template-columns:1fr; }
  .wo-goalrow, .wo-actrow { grid-template-columns:1fr; }
  .wo-actions-t td, .wo-actrow.wo-new { padding-left:0; margin-left:0; }
  .wo-jump { top:48px; }
}
.wo-q span { width:auto; min-width:64px; height:auto; padding:4px 6px; flex-direction:column; line-height:1.1; }
.wo-q span small { font-size:10px; font-weight:500; opacity:.8; }
.wo-aimcol { background:repeating-linear-gradient(135deg,transparent 0 6px,color-mix(in srgb,var(--line) 35%,transparent) 6px 7px); font-style:italic; }
.wo-nf { font-size:11px; color:var(--muted); font-weight:500; }
.wo-review { margin:0 0 10px; align-items:center; }
