/* לשונית הקליניקה (clinic.js). רק משתני הערכה, כדי שתתאים לכל סגנון */
@media (min-width: 960px) { .app:has(.clinic--wide) { max-width: 1240px; } }
.clinic { display: grid; gap: 12px; }
.clinic > .section, .clinic .section { margin-top: 6px; }
.cl-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 4px -16px 2px; padding: 2px 16px 8px; scrollbar-width: none; }
.cl-tabs::-webkit-scrollbar { display: none; }
.cl-tabs a { flex: none; padding: 9px 18px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); background: var(--surface); }
.cl-tabs a.on { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.cl-tabs--sub a { padding: 8px 15px; font-size: 14.5px; }
.cl-hint { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.cl-hint--top { margin-top: -2px; }
.cl-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--gold, var(--accent)) 45%, var(--line)); background: color-mix(in srgb, var(--gold, var(--accent)) 10%, var(--surface)); font-size: 15px; line-height: 1.6; }
.cl-note svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--gold, var(--accent)); }
.cl-note a { color: var(--accent); font-weight: 700; text-decoration: underline; }

/* סרגל עליון */
.cl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cl-bar__title { margin: 0 4px; font-family: var(--font-head); font-size: 22px; font-weight: var(--head-weight, 800); flex: 1 1 auto; }
.cl-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.cl-seg button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.cl-seg button.on { background: var(--accent); color: var(--on-accent); }
.cl-nav { display: inline-flex; align-items: center; gap: 6px; }
.cl-fwd svg { transform: scaleX(-1); }
.cl-search { flex: 1 1 220px; margin: 0; }

/* יומן שבועי ויומי */
.cl-week { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.cl-week__head, .cl-week__body { display: grid; grid-template-columns: 54px repeat(var(--n, 7), minmax(0, 1fr)); }
.cl-week--1 { --n: 1; }
.cl-week--7 { --n: 7; }
.cl-week__head { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 3; background: var(--surface); }
.cl-dh { display: grid; justify-items: center; gap: 0; padding: 8px 2px; border: 0; border-inline-start: 1px solid var(--line); background: none; color: var(--text); font: inherit; cursor: pointer; }
.cl-dh small { font-size: 13px; color: var(--muted); font-weight: 700; }
.cl-dh b { font-family: var(--font-head); font-size: 22px; line-height: 1.2; }
.cl-dh.is-today b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.cl-dh.is-today small { color: var(--accent); }
.cl-week__body { position: relative; max-height: min(70vh, 760px); overflow-y: auto; }
.cl-hours { display: grid; grid-template-rows: repeat(var(--hours), var(--px)); }
.cl-hours span { font-size: 12.5px; color: var(--muted); text-align: center; padding-top: 2px; border-top: 1px solid var(--line); direction: ltr; }
.cl-col { position: relative; height: calc(var(--hours) * var(--px)); border-inline-start: 1px solid var(--line); cursor: copy;
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--px)); }
.cl-col.is-today { background-color: color-mix(in srgb, var(--accent) 6%, transparent); }
.cl-now { position: absolute; inset-inline: 0; height: 2px; background: var(--c-red); z-index: 2; pointer-events: none; }
.cl-now::before { content: ''; position: absolute; inset-inline-start: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--c-red); }
.cl-ev { position: absolute; inset-inline: 3px; z-index: 1; display: grid; align-content: start; gap: 1px; padding: 4px 8px 4px 6px; border: 0; border-inline-start: 4px solid var(--t); border-radius: 10px; text-align: start; overflow: hidden; cursor: pointer; font: inherit; color: var(--text);
  background: color-mix(in srgb, var(--t) 16%, var(--surface)); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.cl-ev b { font-size: 14px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-ev small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-ev:hover, .cl-ev:focus-visible { box-shadow: 0 0 0 2px var(--t); }
.cl-ev--green { background: color-mix(in srgb, var(--c-green) 18%, var(--surface)); border-inline-start-color: var(--c-green); }
.cl-ev--red { background: color-mix(in srgb, var(--c-red) 15%, var(--surface)); border-inline-start-color: var(--c-red); }
.cl-ev--red b { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cl-ev--gray { background: color-mix(in srgb, var(--c-gray) 14%, var(--surface)); border-inline-start-color: var(--c-gray); opacity: .75; }
.cl-week--1 .cl-ev { inset-inline: 8px; }
.cl-week--1 .cl-ev b { font-size: 15.5px; }

/* יומן חודשי */
.cl-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.cl-month__dow { padding: 8px 4px; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.cl-mday { min-height: 104px; padding: 6px; display: grid; align-content: start; gap: 3px; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); cursor: pointer; min-width: 0; }
.cl-mday:nth-child(7n + 1) { border-inline-start: 0; }
.cl-mday.is-out { opacity: .45; }
.cl-mday__n { font-weight: 800; font-size: 15px; }
.cl-mday.is-today .cl-mday__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.cl-mday.is-today { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.cl-mchip { display: block; width: 100%; padding: 2px 6px; border: 0; border-inline-start: 3px solid var(--t); border-radius: 6px; background: color-mix(in srgb, var(--t) 15%, var(--surface)); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cl-more { font-size: 12px; color: var(--muted); }

/* חלון קופץ */
.cl-scrim { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / .45); }
.cl-sheet { position: fixed; z-index: 61; inset-inline: 0; bottom: 0; max-height: 92vh; overflow-y: auto; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .cl-sheet { inset: auto; top: 50%; left: 50%; bottom: auto; transform: translate(-50%, -50%); width: min(520px, calc(100vw - 32px)); border-radius: var(--radius-lg); } }
.cl-sheet form { display: grid; gap: 12px; }
.cl-sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cl-sheet__head h3 { margin: 0; font-family: var(--font-head); font-size: 22px; }
.cl-sheet__head h3 a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 4px; }
.cl-sheet__head small { display: block; margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.cl-sheet__foot { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.cl-sheet .f { margin: 0; }
.cl-sheet select, .cl-sheet input[type="date"], .cl-sheet input[type="time"] { width: 100%; }
.cl-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cl-count input[type="range"] { width: 100%; accent-color: var(--accent); }
.cl-stbtns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cl-stbtns button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line)); background: color-mix(in srgb, var(--c) 8%, var(--surface)); color: var(--text); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.cl-stbtns button svg { width: 18px; height: 18px; }
.cl-stbtns button.on { background: var(--c); color: #fff; border-color: transparent; }
.cl-facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cl-facts div { padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.cl-facts dt { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.cl-facts dd { margin: 2px 0 0; font-weight: 800; font-size: 16px; }
.cl-facts small { font-weight: 600; color: var(--muted); }
.cl-actions { display: grid; gap: 8px; }
.cl-actions .btn { justify-content: center; }
.cl-danger { color: var(--c-red) !important; }
.cl-choice { display: grid; gap: 10px; }
.cl-choice button { display: grid; gap: 3px; padding: 14px 16px; text-align: start; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.cl-choice button b { font-size: 17px; }
.cl-choice button small { color: var(--muted); font-size: 14px; }
.cl-choice button:hover { border-color: var(--accent); }

/* מטופלים */
.cl-client { flex-wrap: wrap; }
.cl-client__main { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; flex: 1 1 200px; min-width: 0; }
.cl-client__main > span:last-child { display: grid; min-width: 0; }
.cl-client__main b { font-size: 16.5px; }
.cl-client__main small { color: var(--muted); font-size: 14px; }
.cl-client .item__end { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cl-debt { padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--c-red); background: color-mix(in srgb, var(--c-red) 12%, transparent); white-space: nowrap; }
.cl-wa { color: #1FA855; }
.cl-date { flex: none; display: grid; place-items: center; min-width: 54px; padding: 6px 4px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); line-height: 1.15; }
.cl-date b { font-size: 15px; direction: ltr; }
.cl-date small { font-size: 12px; color: var(--muted); direction: ltr; }
.cl-row { width: 100%; border: 0; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.cl-row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.clinic .item__main b, .clinic .item__main small { white-space: normal; overflow-wrap: anywhere; }

/* כרטיס מטופל */
.cl-hero { padding: 16px; display: grid; gap: 14px; }
.cl-hero .actions { margin: 0; }
.cl-hero__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cl-hero__kpis div { padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.cl-hero__kpis small { display: block; font-size: 13px; color: var(--muted); font-weight: 700; }
.cl-hero__kpis b { font-family: var(--font-head); font-size: 24px; direction: ltr; unicode-bidi: plaintext; }
.cl-hero__kpis b em { font-style: normal; font-size: 14px; color: var(--muted); font-family: inherit; }
.cl-hero__kpis .cl-sm { font-size: 18px; }
.cl-hero__kpis .is-debt, .cl-sums .is-debt { background: color-mix(in srgb, var(--c-red) 12%, transparent); }
.cl-hero__kpis .is-debt b, .cl-sums .is-debt b { color: var(--c-red); }
.cl-sums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cl-sums div { padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.cl-sums small { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.cl-sums b { font-size: 20px; }
.cl-table { display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.cl-table > div { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 15px; }
.cl-table > div:first-child { border-top: 0; }
.cl-table > div span:nth-child(3) { font-weight: 800; }
.cl-table > div span:last-child { font-size: 13.5px; color: var(--c-green); font-weight: 700; }
.cl-table > div.is-open span:last-child { color: var(--c-red); }
.cl-notes { width: 100%; min-height: 140px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; line-height: 1.7; resize: vertical; }

/* מצב פגישה */
.cl-session { display: grid; gap: 12px; }
.cl-sess-st { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.cl-editor { padding: 0; overflow: hidden; display: grid; }
.cl-tools { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--text) 3%, transparent); position: sticky; top: 0; z-index: 2; }
.cl-tools button { min-height: 38px; min-width: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 14.5px; cursor: pointer; }
.cl-tools button:hover { border-color: var(--accent); }
.cl-tools mark { background: #FFE58A; color: #222; padding: 0 3px; border-radius: 3px; }
.cl-doc { min-height: 52vh; padding: 18px 20px; font-size: 17px; line-height: 1.8; outline: none; color: var(--text); overflow-wrap: anywhere; }
.cl-doc:empty::before { content: attr(data-placeholder); color: var(--muted); }
.cl-doc h2 { font-family: var(--font-head); font-size: 22px; margin: 14px 0 4px; }
.cl-doc table { border-collapse: collapse; width: 100%; margin: 8px 0; }
.cl-doc td, .cl-doc th { border: 1px solid var(--line); padding: 6px 10px; min-width: 60px; vertical-align: top; }
.cl-doc [style*="background-color"], .cl-doc mark { color: #222; border-radius: 3px; }
.cl-doc--ro { min-height: 0; padding: 4px 4px 0; font-size: 16px; }
.cl-saved { padding: 6px 14px 10px; color: var(--muted); font-size: 13px; }
.cl-prev { padding: 12px 16px; }
.cl-prev summary { display: grid; gap: 2px; cursor: pointer; list-style: none; }
.cl-prev summary small { color: var(--muted); font-size: 14px; }

/* כספים */
.cl-kpis { margin-top: 0; }
.cl-money { display: grid; gap: 12px; }
@media (min-width: 760px) { .cl-money { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cl-side { padding: 18px; display: grid; gap: 4px; align-content: start; border-top: 4px solid var(--accent); }
.cl-side--learn { border-top-color: var(--gold, var(--c-purple)); }
.cl-side h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 18px; }
.cl-side h3 svg { width: 20px; height: 20px; color: var(--accent); }
.cl-side--learn h3 svg { color: var(--gold, var(--c-purple)); }
.cl-big { font-family: var(--font-head); font-size: 36px; font-weight: var(--num-weight, 800); line-height: 1.1; }
.cl-side > small { color: var(--muted); font-weight: 700; }
.cl-side dl { margin: 10px 0; display: grid; gap: 6px; }
.cl-side dl div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.cl-side dt { color: var(--muted); }
.cl-side dd { margin: 0; font-weight: 800; }
.cl-side .btn { justify-self: start; }
.cl-net { padding: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.cl-net small { display: block; color: var(--muted); font-weight: 700; font-size: 13.5px; }
.cl-net b { font-family: var(--font-head); font-size: 22px; }
.cl-net div:last-child b { color: var(--accent); }
.cl-legend { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; }
.cl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.cl-l1 { background: var(--accent); }
.cl-l2 { background: var(--gold, var(--c-purple)); }
.cl-bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; height: 190px; padding: 16px 14px 10px; }
.cl-bars__col { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; text-align: center; }
.cl-bars__stack { display: flex; flex-direction: column-reverse; justify-content: flex-start; height: 100%; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--text) 5%, transparent); }
.cl-bars__stack i { display: block; width: 100%; }
.cl-bars__col small { color: var(--muted); font-size: 12.5px; font-weight: 700; }

/* דף הבית */
.cl-home__debt { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 12px 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--c-red) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c-red) 30%, var(--line)); color: var(--text); font-weight: 600; }
.cl-home__debt svg { width: 18px; height: 18px; color: var(--c-red); }
.cl-home__debt b { color: var(--c-red); margin-inline-start: auto; }
.cl-hours-set { padding: 16px; }

@media (max-width: 600px) {
  .cl-bar__title { order: -1; flex-basis: 100%; font-size: 20px; }
  .cl-bar .btn--primary { margin-inline-start: auto; }
  .cl-mday { min-height: 72px; padding: 3px; }
  .cl-mchip { font-size: 11px; padding: 1px 3px; }
  .cl-facts, .cl-hero__kpis, .cl-sums, .cl-net { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .cl-hero__kpis b { font-size: 19px; }
  .cl-hero__kpis .cl-sm { font-size: 15px; }
  .cl-sums b, .cl-net b { font-size: 17px; }
  .cl-table > div { grid-template-columns: 46px 1fr auto; }
  .cl-table > div span:last-child { grid-column: 2 / -1; }
  .cl-doc { padding: 14px; min-height: 45vh; }
  .cl-client .item__end { width: 100%; justify-content: flex-start; padding-inline-start: 58px; }
}
.cl-week__body { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--text) 25%, transparent) transparent; }

/* ארבעה כפתורים מהירים כשמרחפים מעל פגישה (רק במחשב, עם עכבר) */
.cl-mchip { position: relative; }
.cl-mchip > span:not(.cl-qa) { display: block; overflow: hidden; text-overflow: ellipsis; }
.cl-qa { position: absolute; top: 3px; inset-inline-end: 3px; z-index: 3; display: none; gap: 3px; padding: 2px; border-radius: 9px; background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
.cl-mchip .cl-qa { top: 50%; transform: translateY(-50%); inset-inline-end: 1px; padding: 1px; gap: 2px; }
.cl-qa button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 7px; color: #fff; cursor: pointer; }
.cl-mchip .cl-qa button { width: 19px; height: 19px; border-radius: 5px; }
.cl-qa svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cl-mchip .cl-qa svg { width: 12px; height: 12px; }
.cl-qa--done { background: var(--c-green); }
.cl-qa--not { background: #E39B0B; }
.cl-qa--noshow { background: var(--c-red); }
.cl-qa--cancel { background: #4A4F5A; }
.cl-qa button:hover { filter: brightness(1.15); transform: scale(1.08); }
@media (hover: hover) {
  .cl-ev:hover .cl-qa, .cl-ev:focus-within .cl-qa, .cl-mchip:hover .cl-qa, .cl-mchip:focus-within .cl-qa { display: flex; }
}

/* פגישה שסומנה: צבועה כולה בצבע של הסימון (הצבעים נקבעים בהגדרות היומן) */
.cl-ev--green, .cl-mchip.cl-ev--green { background: var(--st-done, #12A150); border-inline-start-color: color-mix(in srgb, var(--st-done, #12A150) 60%, #000); color: var(--st-done-on, #fff); }
.cl-ev--gray, .cl-mchip.cl-ev--gray { background: var(--st-not, #E39B0B); border-inline-start-color: color-mix(in srgb, var(--st-not, #E39B0B) 60%, #000); color: var(--st-not-on, #fff); opacity: 1; }
.cl-ev--red, .cl-mchip.cl-ev--red { background: var(--st-noshow, #E5484D); border-inline-start-color: color-mix(in srgb, var(--st-noshow, #E5484D) 60%, #000); color: var(--st-noshow-on, #fff); }
.cl-ev--green small, .cl-ev--gray small, .cl-ev--red small { color: inherit; opacity: .88; }
.cl-ev--red b { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cl-colors { padding: 16px; display: grid; gap: 10px; }
.cl-colors h3 { margin: 0; }
.cl-color { display: flex; align-items: center; gap: 12px; }
.cl-color__demo { flex: none; min-width: 120px; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 15px; text-align: center; }
.cl-color label { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.cl-color input[type="color"] { width: 54px; height: 38px; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.cl-colors .btn { justify-self: start; }

/* סיכום מפגשים למטופל */
.cl-ex__range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cl-ex__text { font-size: 15.5px; line-height: 1.7; min-height: 220px; }

/* תצוגת חודש: כל הפגישות של היום מופיעות, עם גלילה בתוך היום כשהן לא נכנסות */
.cl-mday { grid-template-rows: auto 1fr; height: 132px; min-height: 0; }
.cl-mday__list { display: grid; align-content: start; gap: 3px; min-height: 0; overflow-y: auto; padding-inline-end: 2px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--text) 35%, transparent) transparent; }
.cl-mday__list::-webkit-scrollbar { width: 6px; }
.cl-mday__list::-webkit-scrollbar-thumb { border-radius: 6px; background: color-mix(in srgb, var(--text) 35%, transparent); }
@media (max-width: 600px) { .cl-mday { height: 96px; } }

/* פגישות חופפות זו לצד זו: הכפתורים המהירים קטנים יותר ויורדים שורה כשצר */
.cl-ev.is-split { padding-inline: 6px 4px; }
.cl-ev.is-split .cl-qa { flex-wrap: wrap; max-width: calc(100% - 6px); justify-content: flex-end; }
.cl-ev.is-split .cl-qa button { width: 20px; height: 20px; }
.cl-ev.is-split .cl-qa svg { width: 13px; height: 13px; }

/* תצוגת חודש: כל פגישה נשארת בגודל המלא שלה, והיום נגלל במקום שהפגישות יתכווצו */
.cl-mday__list { display: flex; flex-direction: column; gap: 3px; }
.cl-mday__list > .cl-mchip { flex: 0 0 auto; min-height: 24px; line-height: 1.5; }

/* מסמכים: אזור גרירה והעלאה */
.cl-drop { display: grid; justify-items: center; gap: 6px; padding: 26px 18px; border: 2px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.cl-drop svg { width: 28px; height: 28px; color: var(--accent); }
.cl-drop b { font-size: 17px; }
.cl-drop small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.cl-drop:hover, .cl-drop.is-over { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-color: var(--accent); }
.cl-docic { font-size: 13px; font-weight: 900; color: #2B579A !important; background: color-mix(in srgb, #2B579A 14%, var(--surface)) !important; }
.cl-docrow.is-here { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.cl-docrow .item__end { display: flex; align-items: center; gap: 6px; }
/* מצב פגישה: כתיבה בוורד */
.cl-word { padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cl-word > div:first-child { display: grid; gap: 3px; flex: 1 1 260px; }
.cl-word small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.cl-word__btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* תיק המטופל בוורד */
.cl-word--big { border: 1px solid color-mix(in srgb, #2B579A 45%, var(--line)); background: color-mix(in srgb, #2B579A 9%, var(--surface)); }
.cl-word--big .btn--primary { min-height: 48px; padding: 0 22px; font-size: 16px; }
.cl-word--set { align-items: stretch; }
.cl-word__paste { flex: 1 1 320px; }
.cl-word__paste input { flex: 1 1 220px; min-width: 0; min-height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.cl-mini > summary { cursor: pointer; padding: 8px 4px; color: var(--muted); font-weight: 700; font-size: 15px; }
.cl-mini[open] > summary { margin-bottom: 8px; }
