/* r10 money: styles of this area; logical properties only, colours from the tokens */

/* the open link inside the closing sheet (MNY-02, MNY-31) */
.ck-olink{display:flex;flex-direction:column;gap:.5rem;padding:.75rem 1rem;border-radius:14px;background:var(--s-owe-f);border-inline-start:4px solid var(--s-owe-e);color:var(--ink)}
.ck-olink>p{display:flex;gap:.5rem;align-items:flex-start;margin:0;font-size:1rem;line-height:1.5}
.ck-olink>p small{display:block;font-size:.875rem;color:var(--ink);margin-top:2px}
.ck-olink .ck-err{margin:0}
.ck-olb{display:flex;flex-wrap:wrap;gap:.5rem}
.ck-olb .pbtn{min-height:44px}

/* ---------- the money area (#/money) ---------- */
#xv .mz-bar{gap:.75rem}
.mz-hic{width:44px;height:44px;border-radius:999px;display:grid;place-items:center;background:var(--action-soft);color:var(--action);flex:none}
.mz-hic .i{width:22px;height:22px}
.mz-sub{display:flex;flex-wrap:wrap;gap:.25rem .5rem}
.mz-sub a,.mz-sub button{display:inline-flex;align-items:center;gap:.375rem;min-height:44px;padding-inline:.875rem;border-radius:999px;color:var(--body);font-size:.875rem;font-weight:500;text-decoration:none;background:none;border:0;font:inherit;font-size:.875rem;cursor:pointer}
.mz-sub a:hover,.mz-sub button:hover{background:var(--hover);color:var(--ink)}
.mz-sub [aria-current="page"]{background:var(--action-soft);color:var(--ink);font-weight:600}
.mz-n{min-width:22px;height:22px;padding-inline:6px;border-radius:999px;background:var(--s-no-e);color:#fff;font-size:.8125rem;display:inline-grid;place-items:center}
.mz-scroll{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:1rem;padding-block:1rem;font-size:1rem;color:var(--ink)}
html.m .mz-scroll{padding-inline:16px;overflow:visible}
.mz-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));gap:1rem;align-items:start}
.mz-b{padding:1.25rem;border-radius:var(--r-card);display:flex;flex-direction:column;gap:.75rem;min-width:0}
.mz-b h2{margin:0;font-size:1.125rem;font-weight:700;display:flex;align-items:center;gap:.5rem;color:var(--ink)}
.mz-b h3{margin:0;font-size:1rem;font-weight:600}
.mz-b p{margin:0;line-height:1.6}
.mz-bh{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}
.mz-note{display:flex;gap:.5rem;align-items:flex-start;margin:0;font-size:.875rem;line-height:1.6;color:var(--body)}
.mz-warn{margin:0;padding:.75rem 1rem;border-radius:12px;background:var(--s-owe-f);color:var(--ink);border-inline-start:4px solid var(--s-owe-e);font-size:.9375rem;line-height:1.6}
.mz-ok{margin:0;color:var(--s-done-k);font-weight:600}
.mz-chg{display:flex;gap:.375rem;align-items:center;color:var(--s-owe-k);font-weight:600;margin:0}
.mz-big{font-size:2rem;font-weight:700;line-height:1.2}
.mz-parts{font-size:1rem}
.mz-row{display:flex;flex-wrap:wrap;gap:.5rem}
.mz-fr{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end}
.mz-fr .fld{margin:0;min-width:180px;flex:1}
.mz-det summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:500}
.mz-det>p{margin-block:.5rem;font-size:.875rem;color:var(--body)}
.tg.ok{background:var(--s-done-f);color:var(--s-done-k)}
.mz-tl{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}
.mz-tl a{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:52px;padding:.5rem 1rem;border-radius:12px;background:var(--s-owe-f);border-inline-start:4px solid var(--s-owe-e);color:var(--ink);text-decoration:none;font-weight:500}
.mz-tl a:hover{filter:brightness(.98)}
.mz-links{display:flex;flex-wrap:wrap;gap:.5rem}
.mz-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:.75rem}
.mz-kpi{padding:1rem 1.25rem;border-radius:var(--r-card);display:flex;flex-direction:column;gap:.375rem}
.mz-kpi>span{display:flex;align-items:center;gap:.375rem;font-size:.875rem;color:var(--body)}
.mz-kpi b{font-size:1.5rem;font-weight:700}
.mz-filters{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end}
.mz-f{margin:0;min-width:160px}
.mz-f select,.mz-f input{min-height:44px}
.mz-tabs{flex-wrap:wrap;border-radius:18px}
.mz-tabs button{height:auto;min-height:40px}
.mz-tot{display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem 1rem;padding:1rem 1.25rem;border-radius:var(--r-card);background:var(--sheet);box-shadow:var(--sh-card)}
.mz-tot b{font-size:1.5rem}
.mz-tot small{flex-basis:100%;font-size:.875rem;color:var(--body)}
/* the airy card (#411) */
.mz-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.625rem}
.mz-card{--f:var(--s-new-f);--e:var(--s-new-e);--k:var(--s-new-k);display:grid;grid-template-columns:48px minmax(0,1fr) auto auto;grid-template-areas:"av m st a" "av m src a" "acts acts acts acts";align-items:center;column-gap:1rem;row-gap:.25rem;padding:1rem 1.25rem;border-radius:18px;background:var(--f);border-inline-start:5px solid var(--e)}
.mz-card.s-done{--f:var(--s-done-f);--e:var(--s-done-e);--k:var(--s-done-k)}
.mz-card.s-owe{--f:var(--s-owe-f);--e:var(--s-owe-e);--k:var(--s-owe-k)}
.mz-card.s-no{--f:var(--s-no-f);--e:var(--s-no-e);--k:var(--s-no-k)}
.mz-card.s-conf{--f:var(--s-conf-f);--e:var(--s-conf-e);--k:var(--s-conf-k)}
.mz-av{grid-area:av;width:48px;height:48px;border-radius:999px;display:grid;place-items:center;background:var(--sheet);color:var(--k);font-weight:700;font-size:1rem}
.mz-m{grid-area:m;display:flex;flex-direction:column;gap:2px;min-width:0}
.mz-m b{font-size:1.125rem;font-weight:700;color:var(--ink);overflow-wrap:anywhere}
.mz-m>span{font-size:.875rem;color:var(--ink);opacity:.85}
.mz-cr{display:inline-flex;gap:.375rem;align-items:center;font-size:.875rem;color:var(--ink)}
.mz-st{grid-area:st;justify-self:end;font-size:.875rem;font-weight:600;color:var(--k)}
.mz-src{grid-area:src;justify-self:end;font-size:.8125rem;font-weight:600;padding:2px 8px;border-radius:999px;background:var(--sheet);color:var(--ink)}
.mz-a{grid-area:a;font-size:1.125rem;font-weight:700;white-space:nowrap}
.mz-acts{grid-area:acts;display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-top:.5rem}
.mz-acts .pbtn{min-height:44px}
.mz-in{display:inline-flex;gap:.5rem;align-items:center}
.mz-in input{width:130px;min-height:44px}
.mz-tick{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;font-size:.9375rem}
.mz-tick input{width:20px;height:20px}
html.m .mz-card{grid-template-columns:44px minmax(0,1fr) auto;grid-template-areas:"av m a" "av st src" "acts acts acts";padding:.875rem 1rem}
html.m .mz-st{justify-self:start}
.mz-age{display:flex;flex-direction:column;gap:.5rem}
.mz-age h2{margin:0;font-size:1rem;font-weight:600}
.mz-sk{display:flex;flex-direction:column;gap:.75rem}
.mz-sk .shm{height:84px;border-radius:18px}
.mz-empty .ic .i{width:28px;height:28px}
.mz-cl{margin:0;padding-inline-start:1.25rem;display:flex;flex-direction:column;gap:.375rem;line-height:1.6}
.mz-cov{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.375rem}
.mz-cov li{display:flex;gap:.5rem;align-items:center}
.mz-first{display:flex;flex-direction:column;gap:.5rem;padding:.75rem 1rem;border-radius:12px;background:var(--action-soft)}
/* the document panel */
.mz-paper{display:flex;flex-direction:column;gap:.375rem;padding:1.25rem;border-radius:8px;background:#fff;color:#1f2a20;border:1px solid var(--line);position:relative;font-size:.9375rem}
.mz-copy{position:absolute;inset-block-start:.75rem;inset-inline-end:.75rem;font-weight:700;color:#8a3b10;border:2px solid #8a3b10;border-radius:6px;padding:0 .5rem}
.mz-doc{display:flex;flex-direction:column;gap:1rem}
.mz-steps{list-style:none;display:flex;gap:.5rem;margin:0;padding:0;flex-wrap:wrap}
.mz-steps li{display:inline-flex;align-items:center;gap:.25rem;padding:4px 10px;border-radius:999px;background:var(--band);font-size:.875rem}
.mz-steps li.y{background:var(--s-done-f);color:var(--s-done-k)}
.mz-steps li.w{background:var(--s-owe-f);color:var(--s-owe-k)}
.mz-dact,.mz-cfb{display:flex;flex-wrap:wrap;gap:.5rem}
.mz-cf{font-size:1rem;line-height:1.6;margin:0}
.mz-q{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.5rem}
.mz-q legend{font-weight:600;margin-bottom:.5rem;padding:0}
.mz-rl{list-style:none;margin:.5rem 0;padding:0;display:flex;flex-direction:column;gap:.25rem}
.mz-rl li{display:flex;justify-content:space-between;align-items:center;gap:.5rem}
/* matching */
.mz-chat{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}
.mz-chat small{font-size:.875rem;color:var(--body)}
.mz-img{display:flex;flex-direction:column;gap:.25rem;padding:1rem;border-radius:14px;background:var(--band);color:var(--ink);min-width:220px}
.mz-img .i{width:28px;height:28px}
.mz-sug{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border-radius:14px;background:var(--s-conf-f);border-inline-start:4px solid var(--s-conf-e);color:var(--ink)}
.mz-sug.done{flex-direction:row;background:var(--s-done-f);border-color:var(--s-done-e)}
.mz-ai{display:flex;gap:.375rem;align-items:center;font-size:.875rem}
.mz-vt{width:100%}
/* the accountant's workspace */
.mz-acct{position:fixed;inset:0;z-index:400;background:var(--page);display:flex;flex-direction:column;gap:.75rem;padding:1rem 1.5rem;overflow:auto;color:var(--ink)}
html.m .mz-acct{padding:.75rem 16px}
.mz-ah{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;padding:1rem 1.25rem;border-radius:var(--r-card);background:var(--sheet);box-shadow:var(--sh-card)}
.mz-ah h1{margin:0;font-size:1.5rem;font-weight:700}
.mz-ah p{margin:.25rem 0 0;font-size:.9375rem;color:var(--body);line-height:1.5}
.mz-acb{display:flex;flex-direction:column;min-height:0}
.mz-alog{padding-inline:.25rem}
#xv a.pbtn,.mz-acct a.pbtn{text-decoration:none}
html.m .mz-sub{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:-4px}
/* MNY-05 the room QR */
.ck-lw{align-self:flex-start;flex-wrap:wrap}
.ck-qr{display:flex;gap:1rem;align-items:center;padding:.75rem 1rem;border-radius:14px;background:var(--band);color:var(--ink)}
.ck-qrc{width:88px;height:88px;flex:none;border-radius:10px;display:grid;place-items:center;background:var(--sheet);border:2px solid var(--ink)}
.ck-qrc .i{width:48px;height:48px}
.ck-qr small{display:block;font-size:.875rem;color:var(--body);margin-top:.25rem;line-height:1.5}
.ck-payer .lnk{min-height:44px}
/* a card with one action keeps it on the same row */
html:not(.m) .mz-card:has(.mz-acts>:only-child){grid-template-columns:48px minmax(0,1fr) auto auto auto;grid-template-areas:"av m st a acts" "av m src a acts"}
html:not(.m) .mz-card:has(.mz-acts>:only-child) .mz-acts{margin-top:0}
#mzAcT:focus:not(:focus-visible),#xv h1:focus:not(:focus-visible){outline:none}

/* ---------- second pass (7.11.2026) ---------- */
/* MNY-01 bulk close, MNY-15 advance: under the closing row */
.mz-rowx{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.5rem}
.mz-rowx .pbtn{min-height:44px}
.mz-advl{display:flex;gap:.375rem;align-items:center}
/* MNY-03 the line of the chosen method */
.ck-mh{display:flex;align-items:center;gap:.5rem;margin:0;font-size:var(--fs-s);line-height:1.5;color:var(--body)}
.ck-mh b{color:var(--ink);font-weight:600}
/* MNY-06 over the price, MNY-04 unknown, MNY-12 fee chips, MNY-09 send unknown */
.ck-ovb,.ck-unkq{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.ck-ovb .pbtn,.ck-unkq .pbtn{min-height:44px}
.ck-unkq{flex-direction:column;align-items:stretch;margin-top:.75rem}
.ck-unkq p{margin:0;font-size:var(--fs-m)}
.ck-feec{display:flex;flex-wrap:wrap;gap:.5rem}
.ck-feeo{margin:0;max-width:240px}
.ck-wunk{display:flex;gap:.5rem;align-items:center;padding:.5rem .75rem;border-radius:12px;background:var(--s-owe-f);color:var(--ink);font-size:var(--fs-m)}
.ck-aid{margin:0;max-width:280px}
#ckUnkH:focus:not(:focus-visible){outline:none}
.mz-md .mz-row .pbtn{min-height:44px}
.mz-md #mzMdC{display:flex;flex-direction:column;gap:.5rem}
.mz-md #mzMdC[hidden],.mz-md #mzMdH[hidden]{display:none}
.mz-lp textarea{width:100%;min-height:88px}
.mz-fxdone{flex-direction:column;align-items:flex-start}
.mz-fxdone p{margin:0}
/* MNY-23 provider card */
.mz-pvc{box-shadow:none;background:var(--band)}
/* MNY-27 first-entry questions */
.mz-obq{border:0;margin:0 0 1rem;padding:0;display:flex;flex-direction:column;gap:.5rem}
.mz-obq legend{font-size:1.125rem;font-weight:700;margin-bottom:.5rem;padding:0;color:var(--ink)}
.mz-obq[hidden]{display:none}
.mz-obr{display:flex;align-items:flex-start;gap:.75rem;min-height:52px;padding:.75rem 1rem;border-radius:14px;background:var(--sheet);box-shadow:0 0 0 1px var(--line);cursor:pointer}
.mz-obr input{width:20px;height:20px;margin-top:2px;flex:none}
.mz-obr span{display:flex;flex-direction:column;gap:2px}
.mz-obr b{font-size:var(--fs-m);font-weight:600;color:var(--ink)}
.mz-obr small{font-size:var(--fs-s);color:var(--body)}
.mz-obr:has(input:checked){box-shadow:0 0 0 2px var(--action);background:var(--action-soft)}
.mz-note[hidden],.ck-note[hidden],.ck-mh[hidden]{display:none}

/* ---------- r11 lane W ---------- */
/* LOOK M1: a count is never danger: the rail's sun badge */
.mz-n{background:var(--count-bg);color:var(--count-ink);font-weight:600}
/* LOOK M7 (for Nadav to mark): six tabs and "עוד ▾" */
.mz-mo{position:relative;display:inline-flex}
.mz-mob .i{margin-inline-start:.125rem}
.mz-mob.on{background:var(--action-soft);color:var(--ink);font-weight:600}
.mz-mol{position:absolute;inset-block-start:calc(100% + 4px);inset-inline-end:0;z-index:30;min-inline-size:220px;display:flex;flex-direction:column;padding:.375rem;border-radius:16px;background:var(--sheet);box-shadow:var(--sh-pop,0 12px 32px -12px rgba(0,0,0,.35)),0 0 0 1px var(--line)}
.mz-mol[hidden]{display:none}
.mz-mol a,.mz-mol button{justify-content:flex-start;border-radius:10px;inline-size:100%;text-align:start}
.mz-home{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;align-items:start}
.mz-col{display:flex;flex-direction:column;gap:1rem;min-inline-size:0}
@media (min-width:1100px){html:not(.m) .mz-home{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}}
/* "פתיחה" in the money guard: a secondary outline pill at its natural width */
.mz-b .mz-open{align-self:flex-start;inline-size:auto;background:transparent;box-shadow:inset 0 0 0 1px var(--line-strong,var(--line));color:var(--ink)}
/* LOOK M6 + M10: "מה צריך לעשות" is one grouped surface, separators inset from the start edge, a drawn status bar */
.mz-tl{gap:0;border-radius:var(--r-group,16px);background:var(--sheet);box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.mz-tl li{position:relative}
.mz-tl li + li::after{content:"";position:absolute;inset-block-start:0;inset-inline:16px 0;block-size:1px;background:var(--line)}
.mz-tl a{min-height:52px;padding-block:.5rem;padding-inline:1rem;border-radius:0;background:transparent;border-inline-start:0}
.mz-tl a:hover{filter:none;background:var(--hover)}
.mz-tl li::before{content:"";position:absolute;inset-block:12px;inset-inline-start:0;inline-size:4px;border-start-end-radius:4px;border-end-end-radius:4px;background:var(--s-owe-e)}
/* LOOK M10: the card bar is drawn on purpose (::before), not a bent border; no bar when the state is neutral */
.mz-card{position:relative;border-inline-start:0}
.mz-card::before{content:"";position:absolute;inset-block:12px;inset-inline-start:0;inline-size:4px;border-start-end-radius:4px;border-end-end-radius:4px;background:var(--e)}
.mz-card.s-new::before{content:none}
/* LOOK M12: in dark the status card keeps the sheet, with the bar and the chip carrying the state (at most an 8% tint) */
:root[data-pal="dark"] .mz-card{background:color-mix(in srgb,var(--e) 8%,var(--sheet))}
/* LOOK M8: on the phone the tabs never wrap or cut a word: one row that scrolls, snaps, and fades at the inline end */
html.m .mz-sub{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;scroll-padding-inline:16px;padding-inline:16px;margin-inline:-16px;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 24px);mask-image:linear-gradient(to right,transparent 0,#000 24px)}
html.m .mz-sub > a,html.m .mz-sub .mz-mol > *{white-space:nowrap;scroll-snap-align:start;flex:none}
html.m .mz-mo,html.m .mz-mol,html.m .mz-mol[hidden]{display:contents}
html.m .mz-mob{display:none}
html.m .mz-mol a,html.m .mz-mol button{inline-size:auto}
.mz-rs{display:inline-flex;align-items:center;gap:.25rem;min-height:44px;font-size:var(--fs-s);color:var(--body)}

/* r11 A (TM-18, SH-06, #491): the accountant's own menu, the view-only line and the "בלי שמות מטופלים" lock */
.mz-aq{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin:0;padding:.625rem 1rem;border-radius:14px;background:var(--sheet);color:var(--ink);font-size:.9375rem;line-height:1.5}
.mz-aq .i{flex:none;color:var(--action)}
.mz-arail{display:flex;gap:.5rem;padding:.375rem;border-radius:999px;background:var(--sheet);box-shadow:var(--sh-card);align-self:flex-start}
.mz-arail button{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding-inline:1rem;border:0;border-radius:999px;background:none;color:var(--body);font:inherit;font-size:.9375rem;font-weight:500;cursor:pointer}
.mz-arail button:hover{background:var(--hover);color:var(--ink)}
.mz-arail [aria-current="page"]{background:var(--action-soft);color:var(--ink);font-weight:600}
.mz-arail .mz-ph{display:none}
html.m .mz-arail{order:99;position:sticky;inset-block-end:0;z-index:3;align-self:stretch;justify-content:space-around;border-radius:18px;margin-block-start:auto}
html.m .mz-arail button{flex:1;flex-direction:column;gap:2px;padding-inline:.25rem;font-size:.8125rem}
html.m .mz-arail .mz-dk{display:none}
html.m .mz-arail .mz-ph{display:inline}
.mz-lk{display:inline-flex;align-items:center;gap:.25rem;font-size:.875rem;color:var(--body)}
