/* משפחת פייערשטיין – עיצוב. שקט, מעט אלמנטים, כל פרט מלוטש; תחושת אפליקציה: כרטיסים מעוגלים ואייקונים שמזמינים ללחוץ.
   סדר הקובץ: גופנים · צבעים ומידות · בסיס · מבנה · כותרת ופקדים · כרטיסים ומספרים · שורות · גרף · התראות · טבלאות ·
   חלון צד · סיווג · העלאה · טפסים, כניסה והודעות · בחירת קטגוריה · הגדרות · תנועה · ריחוף ומיקוד · טלפון · הדפסה. */

@font-face { font-family: 'Heebo'; font-weight: 400; font-display: swap; src: url(fonts/heebo-hebrew-400-normal.woff2) format('woff2'); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Heebo'; font-weight: 500; font-display: swap; src: url(fonts/heebo-hebrew-500-normal.woff2) format('woff2'); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Heebo'; font-weight: 700 800; font-display: swap; src: url(fonts/heebo-hebrew-700-normal.woff2) format('woff2'); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Heebo'; font-weight: 400; font-display: swap; src: url(fonts/heebo-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Heebo'; font-weight: 500; font-display: swap; src: url(fonts/heebo-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Heebo'; font-weight: 700 800; font-display: swap; src: url(fonts/heebo-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }

/* ---------- צבעים ומידות ---------- */
/* גודלי הטקסט בתוכנה: 12 · 13 · 15 · 17 · 20 · 22 · 28 · 34 · 40 · 46, ומספרי הענק בראש כל מסך. */
:root {
  --bg: #F2F2F5; --card: #FFFFFF; --ink: #1D1D1F; --ink2: #515154; --ink3: #6E6E73; --faint: #86868B; --line: #EFEFF4; --soft: #F7F7FA;
  --green: #0E7A56; --green2: #12794A; --greenSoft: #E3F7EC; --orange: #A8550A; --orangeSoft: #FFF1E0; --red: #B4530A; --err: #C42B30;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 20px 48px rgba(0,0,0,.06);
  --r-card: 32px; --r-field: 14px;
  --spring: cubic-bezier(.2, .8, .2, 1); --glass: saturate(180%) blur(22px);
}

/* ---------- בסיס ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #C7C7CC transparent; }
::selection { background: rgba(14,122,86,.2); }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Heebo', 'Arial Hebrew', Arial, sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--green); }
.num { direction: ltr; unicode-bidi: isolate; }
.num, .big, .mid, .fig, .amt, table.t td, .txrow .a, .txrow .d { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink2); }
[hidden] { display: none !important; }
.only-p { display: none; }

@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes growX { from { transform: scaleX(0); } to { transform: none; } }
@keyframes growY { from { transform: scaleY(0); } to { transform: none; } }
@keyframes ringIn { from { stroke-dashoffset: var(--c); } }
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes slideOut { to { transform: translateX(-100%); } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes breathe { 0%, 100% { transform: scale(1); box-shadow: 0 12px 28px rgba(14,122,86,.3); } 50% { transform: scale(1.05); box-shadow: 0 16px 36px rgba(14,122,86,.38); } }

/* ---------- מבנה ---------- */
.shell { padding: 28px 28px 80px; }
.wrap { max-width: 1320px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; }
.dock { flex: 0 0 auto; position: sticky; top: 28px; z-index: 5; background: rgba(255,255,255,.72); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); border-radius: 28px; padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 0 0 .5px rgba(0,0,0,.06), 0 8px 32px rgba(0,0,0,.06); }
.dock a { position: relative; width: 52px; height: 52px; border-radius: 18px; color: #6E6E73; display: flex; align-items: center; justify-content: center; }
.dock a.on { background: var(--green); color: #fff; }
.dock a .dot { position: absolute; top: 9px; right: 9px; width: 11px; height: 11px; border-radius: 50%; background: #F08A24; border: 2px solid #fff; }
.dock .sep { height: 1px; background: var(--line); margin: 4px 6px; }
/* שם המסך מופיע ליד האייקון בריחוף או במעבר במקלדת */
.dock a::after { content: attr(aria-label); position: absolute; right: calc(100% + 14px); top: 50%; transform: translate(6px, -50%); background: rgba(29,29,31,.92); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 10px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .2s var(--spring); }
.dock a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.dock.quiet a::after { opacity: 0 !important; transition: none; }      /* אחרי לחיצה השם לא נשאר מעל המסך */
main.screen { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

/* ---------- כותרת המסך ופקדים ---------- */
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 6px 4px 0; }
.head .title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.head h1 { margin: 0; font-size: 46px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.head .kicker { display: block; font-size: 15px; font-weight: 500; color: var(--ink2); }
.head .tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: 100%; }
@media (max-width: 759px) { .head .tools > .seg { flex: 1 1 100%; } .head .tools > .btn { flex: 1 1 0; padding: 0 14px; } }
.navs { display: flex; gap: 8px; flex: none; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.round:disabled { opacity: .35; cursor: default; }
.round.small { width: 36px; height: 36px; }
.seg { position: relative; display: flex; background: #E4E4EA; border-radius: 999px; padding: 4px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; padding: 10px 22px; min-height: 40px; border-radius: 999px; border: 0; background: transparent; color: var(--ink2); font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.field .seg { border-radius: var(--r-field); min-height: 48px; }
.field .seg button { flex: 1 1 0; min-width: 0; padding: 0 8px; border-radius: 10px; font-size: 15px; }
.btn { min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--green); color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.btn.ghost { background: #F0F0F5; color: var(--ink); }
.head .btn.ghost { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.btn.dark { background: var(--ink); }
.btn.small { min-height: 40px; padding: 0 18px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.insight { margin: -10px 6px 0; font-size: 20px; line-height: 1.4; font-weight: 500; color: var(--ink2); }
/* מתג פעיל / לא פעיל */
.switch { position: relative; width: 51px; height: 31px; padding: 2px; border: 0; border-radius: 999px; background: #E4E4EA; cursor: pointer; flex: none; transition: background-color .25s; }
.switch span { display: block; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.22), 0 0 0 .5px rgba(0,0,0,.04); transition: transform .3s var(--spring); }
.switch::after { content: ''; position: absolute; inset: -8px -6px; }
.switch[aria-checked="true"] { background: var(--green); }
.switch[aria-checked="true"] span { transform: translateX(-20px); }
.sw-lbl { font-size: 13px; font-weight: 500; color: var(--ink3); min-width: 50px; text-align: left; flex: none; }
/* חץ קטן של שורה שנפתחת */
.chev { display: inline-flex; flex: none; color: var(--faint); transition: transform .2s var(--spring); }
details[open] > summary .chev { transform: rotate(-90deg); }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* ---------- כרטיסים ומספרים ---------- */
.card { background: var(--card); border-radius: var(--r-card); padding: 32px; box-shadow: var(--shadow); min-width: 0; }
.card.list { padding: 32px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.card h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.card.list h2 { padding: 0 16px 10px; }
.card .h2row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding: 0 16px 10px; }
.card .h2row h2 { padding: 0; }
.card.dark { background: var(--ink); color: #fff; box-shadow: 0 24px 56px rgba(0,0,0,.2); }
.card.flat { background: var(--soft); box-shadow: none; line-height: 1.6; }
.row { display: flex; flex-wrap: wrap; gap: 28px; }
.row > * { flex: 1 1 340px; }
.stack { display: flex; flex-direction: column; gap: 28px; }

.hero { padding: 48px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; background-image: radial-gradient(circle at 0% 100%, rgba(14,122,86,.10), rgba(14,122,86,0) 46%); }
.hero .label { font-size: 17px; font-weight: 500; color: var(--ink2); }
.big { font-size: clamp(60px, 9.5vw, 124px); line-height: .95; font-weight: 800; letter-spacing: -.045em; direction: ltr; text-align: right; display: block; }
.big .cur { font-size: .4em; font-weight: 500; letter-spacing: 0; color: var(--faint); margin-right: 8px; }
.big.word { font-size: 40px; line-height: 1.15; letter-spacing: -.02em; direction: rtl; color: var(--ink3); }
.mid { font-size: clamp(40px, 5vw, 58px); line-height: 1; font-weight: 800; letter-spacing: -.035em; direction: ltr; text-align: right; display: block; }
.mid .cur { font-size: .48em; font-weight: 500; color: #AEAEB2; margin-right: 6px; letter-spacing: 0; }
/* מספר בולט בגודל בינוני – אותו טיפול בסימן ₪ כמו במספרי הענק */
.fig { display: block; direction: ltr; text-align: right; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.fig .cur { font-size: .5em; font-weight: 500; letter-spacing: 0; color: var(--faint); margin-right: .12em; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.chip { padding: 9px 16px; border-radius: 999px; background: #F0F0F5; font-size: 15px; font-weight: 600; white-space: nowrap; }
.chip.good { background: var(--greenSoft); color: var(--green2); } .chip.bad { background: var(--orangeSoft); color: var(--orange); }

/* ---------- שורה ברשימה ---------- */
.item { display: flex; align-items: center; gap: 16px; padding: 12px 16px; min-height: 56px; border-radius: 20px; text-decoration: none; color: var(--ink); background: transparent; border: 0; width: 100%; text-align: right; font-size: inherit; }
a.item, button.item { cursor: pointer; }
.item.sel { background: #F5F5F8; box-shadow: inset 0 0 0 2px var(--ink); }
.item.total { border-top: 1px solid var(--line); border-radius: 0; margin-top: 6px; }
.item.link { justify-content: center; color: var(--green); font-weight: 600; min-height: 44px; margin-top: auto; }
.morecats > summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 16px; border-radius: 20px; color: var(--green); font-weight: 600; cursor: pointer; list-style: none; }
.morecats > summary .ab-chev { display: inline-flex; transition: transform .25s var(--spring); }
.morecats[open] > summary .ab-chev { transform: rotate(180deg); }
.morecats .mc-close, .morecats[open] .mc-open { display: none; }
.morecats[open] .mc-close { display: inline; }
.morecats > summary:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.row:has(.morecats[open]) { align-items: flex-start; }
.ico { width: 52px; height: 52px; border-radius: 17px; display: flex; align-items: center; justify-content: center; flex: none; font-size: 20px; font-weight: 800; }
.item .grow { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item .name { font-size: 20px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .sub { font-size: 15px; color: var(--ink2); }
.item .amt { font-size: 20px; font-weight: 700; direction: ltr; flex: none; }
.item .line1 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 20px; }
.item .line1 > :first-child { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .line1 > :last-child { font-weight: 700; flex: none; }
.flow { display: flex; flex-direction: column; gap: 10px; color: #D1D1D6; }
.flow > div { display: flex; justify-content: space-between; gap: 12px; }
.flow > div.tot { border-top: 1px solid #3A3A3C; padding-top: 12px; font-weight: 700; color: #fff; }
.bar { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 6px; }
.bar > span { display: block; height: 100%; border-radius: 3px; transform-origin: right center; animation: growX .7s var(--spring) .12s both; }
.empty { padding: 36px 16px; text-align: center; color: var(--ink2); display: flex; flex-direction: column; align-items: center; gap: 6px; line-height: 1.5; }
.empty .ico { width: 56px; height: 56px; border-radius: 18px; background: #F0F0F5; color: var(--ink3); margin-bottom: 8px; }
.empty b { font-size: 17px; font-weight: 700; color: var(--ink); }
.empty span { max-width: 440px; }
.empty .btn { margin-top: 12px; }
.card.dark .empty { color: #AEAEB2; } .card.dark .empty b { color: #fff; }

/* ---------- גרף ---------- */
.chart { flex: 1 1 300px; max-width: 440px; }
.chart .plot { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s ease forwards; }
.chart .area { animation: fade .9s ease .25s both; }
.chart .dot, .chart .halo { transform-box: fill-box; transform-origin: center; animation: pop .45s var(--spring) .75s both; }
.chart .hz { position: absolute; top: 0; bottom: 0; border: 0; padding: 0; margin: 0; background: transparent; cursor: default; z-index: 2; outline: none; }
.chart .guide { position: absolute; bottom: 0; width: 0; margin-left: -1px; border-left: 2px dashed; opacity: .45; pointer-events: none; }
.chart .pt { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 3.5px solid; pointer-events: none; z-index: 3; }
.chart .tip { position: absolute; transform: translate(-50%, calc(-100% - 18px)); background: rgba(29,29,31,.92); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); color: #fff; border-radius: 14px; padding: 8px 14px; display: flex; flex-direction: column; align-items: center; white-space: nowrap; pointer-events: none; z-index: 4; box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.chart .tip small { font-size: 13px; color: #D1D1D6; } .chart .tip b { font-size: 20px; font-weight: 800; direction: ltr; font-variant-numeric: tabular-nums; }
.months { position: relative; height: 30px; font-size: 13px; font-weight: 500; color: var(--ink2); }
.months span { position: absolute; top: 10px; transform: translateX(-50%); white-space: nowrap; }
.months span.on { color: var(--ink); font-weight: 800; }
/* טבעת האחוזים */
.ring-val { animation: ringIn 1s var(--spring) .15s both; }

/* ---------- התראות ---------- */
.alerts { display: flex; flex-direction: column; gap: 10px; }
.alert { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 0; width: 100%; text-align: right; cursor: pointer; font-size: inherit; }
.alert .ico { width: 40px; height: 40px; border-radius: 13px; }
.alert .grow { flex: 1 1 auto; min-width: 0; }
.alert b { font-size: 17px; font-weight: 600; } .alert small { display: block; font-size: 13px; color: var(--ink2); }
.alert > svg { flex: none; color: var(--faint); }
.alertbox { align-self: flex-start; max-width: 100%; }
.alertbox[open] { align-self: stretch; }
.alertbox > summary { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; background: #FFF1E0; color: #9A4B00; font-size: 15px; font-weight: 700; }
.alertbox .ab-dot { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: #fff; align-items: center; justify-content: center; }
.alertbox .ab-chev { display: inline-flex; transition: transform .25s var(--spring); }
.alertbox[open] .ab-chev { transform: rotate(180deg); }
.alertbox[open] .alerts { margin-top: 12px; animation: rise .35s var(--spring) both; }

/* ---------- טבלאות ---------- */
/* כל עמודות החודשים (או החשבונות) באותו רוחב; הספרות עומדות זו מתחת לזו; שום מספר לא נחתך – אם צר, הטבלה נגללת הצידה. */
.tbl-wrap { overflow-x: auto; border-radius: 20px; cursor: grab; }
.tbl-wrap.fit { overflow: visible; cursor: default; }
.tbl-wrap.more { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px); mask-image: linear-gradient(to right, transparent, #000 36px); }
table.t { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; font-size: 15px; }
table.t th, table.t td { padding: 10px 6px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.t thead th { position: sticky; top: 0; z-index: 2; background: var(--ink); color: #fff; font-weight: 700; line-height: 1.25; border-bottom: 0; }
table.t thead th:first-child { border-top-right-radius: 14px; z-index: 3; } table.t thead th:last-child { border-top-left-radius: 14px; }
table.t td:first-child, table.t th:first-child { text-align: right; position: sticky; right: 0; z-index: 1; background: #fff; font-weight: 600; padding-right: 14px; padding-left: 10px; }
table.t thead th:first-child { background: var(--ink); }
/* טבלה שנכנסת כולה במסך לא נגללת הצידה, אז העמודה הראשונה לא צריכה "להידבק" לצד. בלי זה היא מצוירת חד יותר (בעיקר בהגדלת מסך של 125%). */
.tbl-wrap.fit table.t td:first-child { position: static; }
.tbl-wrap.fit table.t thead th:first-child { right: auto; z-index: 2; }
.tbl-wrap.fit table.t thead th { top: -1px; }
table.t td.n { direction: ltr; }
table.t .v { display: inline-block; min-width: var(--wm, 0px); text-align: right; }
table.t .x0 .v { min-width: var(--wx0, 0px); } table.t .x1 .v { min-width: var(--wx1, 0px); }
table.t td.click { cursor: pointer; }
table.t td.zero { color: #C7C7CC; }
table.t td.neg { color: var(--red); }
table.t tr.plain td { color: var(--ink2); }
table.t th.x0, table.t td.x0 { background: #FAFAFC; font-weight: 700; box-shadow: inset -2px 0 0 var(--line); }
/* בהגדלת מסך של 125% או 150% (נפוץ ב-Windows) נשאר לפעמים קו דק ובהיר בין תאים כהים סמוכים.
   לכן בשורת הכותרת ובשורה השחורה כל תא "גולש" פיקסל אחד לצדדים באותו צבע, והקו נעלם. */
table.t thead th { box-shadow: 1px 0 0 var(--ink), -1px 0 0 var(--ink); }
table.t thead th:first-child { box-shadow: -1px 0 0 var(--ink); }
table.t thead th:last-child { box-shadow: 1px 0 0 var(--ink); }
table.t thead th.x0 { background: #2C2C2E; box-shadow: inset -2px 0 0 #3A3A3C, 1px 0 0 var(--ink); }
table.t tr.sub.strong { background: var(--ink); }
table.t td.x1 { color: var(--ink3); }
/* כותרת של חלק בטבלה: הכנסות, הוצאות, חוב, סיכום, מעשר */
table.t tr.sec td { text-align: right; padding: 18px 14px 8px; background: #fff; border-bottom: 0; position: static; }
table.t tr.sec td span { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; padding: 6px 14px; border-radius: 999px; }
table.t tr.sec td small { font-size: 13px; color: var(--ink3); margin-inline-start: 10px; font-weight: 500; }
tr.sec-inc span { background: var(--greenSoft); color: var(--green2); }
tr.sec-exp span { background: var(--orangeSoft); color: var(--orange); }
tr.sec-debt span { background: #E6F2FD; color: #0B62B8; }
tr.sec-sum span { background: var(--ink); color: #fff; }
tr.sec-ma span { background: #F3EAFD; color: #7A3EB8; }
tr.sec-sep span { background: #F0F0F5; color: var(--ink2); }
/* שורת סיכום של חלק */
table.t tr.sub td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--ink); }
table.t tr.sub-inc td { background: #F1FBF5; } table.t tr.sub-exp td { background: #FFF8F0; } table.t tr.sub-debt td { background: #F2F8FE; }
table.t tr.sub-sum td { background: #F5F5F8; } table.t tr.sub-ma td { background: #F8F3FD; }
table.t tr.sub.strong td { background: var(--ink); color: #fff; border-top-color: var(--ink); }
table.t tr.sub.strong td.neg { color: #FFB27A; }
table.t tr.sub.strong td { box-shadow: 1px 0 0 var(--ink), -1px 0 0 var(--ink); }
table.t tr.sub.strong td:first-child { box-shadow: -1px 0 0 var(--ink); }
table.t tr.sub.strong td:last-child { box-shadow: 1px 0 0 var(--ink); }
table.t tr.sub.strong td.x0 { box-shadow: inset -2px 0 0 #3A3A3C, 1px 0 0 var(--ink), -1px 0 0 var(--ink); }
table.t tr.sub.strong td.x0:last-child { box-shadow: inset -2px 0 0 #3A3A3C, 1px 0 0 var(--ink); }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tbody tr:last-child td:first-child { border-bottom-right-radius: 14px; } table.t tbody tr:last-child td:last-child { border-bottom-left-radius: 14px; }
.tbl-note { padding: 0 6px; color: var(--ink2); }

/* ---------- חלון צד (פירוט תנועות, טפסים) ---------- */
.veil { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.18); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .25s ease both; }
.veil.pv { z-index: 69; }
.veil.out { animation: fadeOut .22s ease both; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 41; width: min(560px, 100vw); background: rgba(242,242,245,.95); -webkit-backdrop-filter: saturate(160%) blur(30px); backdrop-filter: saturate(160%) blur(30px); box-shadow: 0 0 60px rgba(0,0,0,.25); display: flex; flex-direction: column; animation: slideIn .42s var(--spring) both; }
.drawer.out { animation: slideOut .22s ease-in both; }
.drawer header { padding: 24px 28px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.drawer header > div { min-width: 0; }
.drawer h3 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.drawer .body { padding: 0 20px 28px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 4px; }
.txrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; }
.txrow .d { font-size: 13px; color: var(--ink3); width: 76px; flex: none; }
/* תנועה שסיווגה שונה עכשיו: נשארת במקומה, מעומעמת, עד שעוזבים את המסך. הכפתור נשאר ברור כדי שאפשר יהיה לתקן. */
.txrow.moved .d, .txrow.moved .g b, .txrow.moved .g small, .txrow.moved .a { opacity: .4; }
.txrow .g { flex: 1 1 auto; min-width: 0; }
.txrow .g b { display: block; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txrow .g small { display: block; font-size: 13px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txrow .dm { display: none; }
/* רישום ידני: כפתורי קטגוריה בטופס, ורשימת מה שנרשם */
.catchips { display: flex; flex-wrap: wrap; gap: 8px; }
.catchips button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #E4E4EA; background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; }
.catchips button.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.catchips button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.manh { margin: 20px 6px 8px; font-size: 17px; font-weight: 700; }
.manlist { display: flex; flex-direction: column; gap: 6px; }
.manrow { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 16px; background: #fff; }
.manrow .g { flex: 1 1 auto; min-width: 0; }
.manrow .g b { display: block; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manrow .g small { display: block; font-size: 13px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manrow .a { font-size: 15px; font-weight: 700; direction: ltr; flex: none; font-variant-numeric: tabular-nums; }
.manrow .a.inc { color: var(--green); }
.manact { display: flex; gap: 4px; flex: none; }
.manact button.ask { width: auto; padding: 0 14px; border-radius: 999px; background: #FDE7EC; color: #BE123C; font-size: 14px; font-weight: 600; white-space: nowrap; }
.manhint, .manempty { padding: 8px 6px; font-size: 14px; }
.mtag { color: var(--green); font-weight: 600; }

.txrow .a { font-size: 15px; font-weight: 700; direction: ltr; text-align: left; flex: none; min-width: 104px; }
.txrow:has(.catpick.excl) .a { color: var(--ink3); text-decoration: line-through; }

/* ---------- סיווג ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { min-height: 46px; padding: 0 20px; border-radius: 999px; border: 0; background: #2C2C2E; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.pill.sug { background: #34C77B; color: #08311C; align-self: flex-start; }
.tabs { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.tab { flex: none; min-height: 46px; padding: 0 24px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tab.on { background: var(--ink); color: #fff; }
.check { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #D1D1D6; min-height: 44px; cursor: pointer; flex: none; }
.check input { width: 22px; height: 22px; accent-color: #34C77B; margin: 0; }
.progress { height: 14px; border-radius: 7px; background: var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--ink); border-radius: 7px; transform-origin: right center; animation: growX .9s var(--spring) .1s both; }
/* הלוח הכהה: הכותרת, ההצעה והחיפוש קבועים; רשימת הקטגוריות נגללת בתוכו, כדי שהכול יהיה בהישג יד בלי לגלול את הדף */
.cls-panel { position: sticky; top: 28px; max-height: calc(100vh - 56px); display: flex; flex-direction: column; gap: 20px; }
.cp-head { display: flex; flex-direction: column; gap: 6px; flex: none; }
.cp-q { font-size: 15px; font-weight: 500; color: #D1D1D6; }
.cp-title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cp-sub { font-size: 15px; color: #AEAEB2; }
.cls-done { gap: 0; } .cls-done .empty { padding: 44px 16px; } .cls-done .empty b { font-size: 28px; } .cls-done .cp-last { text-align: center; }
.cp-last { flex: none; font-size: 15px; color: #8FE0B4; border-top: 1px solid #3A3A3C; padding-top: 16px; }
.pillgroups { display: flex; flex-direction: column; gap: 16px; flex: 1 1 auto; min-height: 132px; overflow-y: auto; overscroll-behavior: contain; margin: -4px -12px; padding: 12px; scrollbar-width: thin; scrollbar-color: #48484A transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 22px), transparent 100%); }
.pillgroups::-webkit-scrollbar { width: 6px; } .pillgroups::-webkit-scrollbar-thumb { background: #48484A; border-radius: 3px; }
.pillgroup { display: flex; flex-direction: column; gap: 8px; flex: none; }
.pilltitle { font-size: 13px; color: #8E8E93; font-weight: 600; }
.linkbtn { border: 0; background: none; padding: 0; color: #8FE0B4; font-size: 15px; font-weight: 600; cursor: pointer; text-align: right; text-decoration: underline; text-underline-offset: 3px; font-family: inherit; }
.up-lines .linkbtn { color: var(--green); margin-inline-start: 8px; }
.warnline { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 1.5; color: #FFC98A; margin-top: 4px; }
.warnline svg { flex: none; margin-top: 3px; }
.done-ico { width: 64px; height: 64px; border-radius: 50%; background: #34C77B; color: #08311C; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; animation: pop .55s var(--spring) .1s both; }

/* ---------- העלאה ומצב החשבונות ---------- */
.drop { display: flex; align-items: center; gap: 16px; padding: 18px 24px; text-align: right; border: 2px dashed #C7C7CC; border-radius: 22px; background: #fff; cursor: pointer; transition: border-color .15s, background-color .15s; }
.drop.over { border-color: var(--green); background: var(--greenSoft); }
.drop > svg { flex: none; }
.drop > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.drop b { font-size: 17px; font-weight: 800; } .drop span span { color: var(--ink2); }
.stat { flex: 1 1 130px; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.03em; direction: ltr; text-align: right; font-variant-numeric: tabular-nums; } .stat span { font-size: 15px; color: var(--ink2); }
.stat b .cur { font-size: .5em; font-weight: 500; letter-spacing: 0; color: var(--faint); margin-right: .12em; }
.srcpick { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 8px 8px 22px; border-radius: 18px; border: 1.5px solid #E4E4EA; background: #fff; color: var(--ink); font-size: 17px; font-weight: 600; cursor: pointer; font-family: inherit; }
.nw { white-space: nowrap; }
.okbox { width: 72px; height: 72px; border-radius: 24px; background: #34C77B; color: #08311C; animation: pop .5s var(--spring) both; }
.up-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13px; color: var(--ink2); }
.up-legend i { display: inline-block; width: 18px; height: 10px; border-radius: 4px; vertical-align: -1px; margin-inline-end: 6px; }
.up-list { display: flex; flex-direction: column; gap: 2px; }
.up-lines { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.5; color: var(--ink); list-style: none; }
.up-lines li::before { content: '•'; color: var(--faint); margin-inline-end: 8px; }
.up-bar { display: flex; gap: 2px; height: 7px; }
.up-bar i { flex: 1; border-radius: 3px; }
.b-ok { background: #7CCB9E; } .b-bad { background: #E5484D; } .b-todo { background: #FFC98A; } .b-none { background: #E4E4EA; }
.cv-how { font-size: 15px; line-height: 1.6; color: var(--ink2); background: var(--soft); border-radius: 16px; padding: 14px 16px; }
.cv-how b { color: var(--ink); }
.cv-how > summary { display: flex; align-items: center; gap: 8px; }
.cv-how[open] > summary { margin-bottom: 6px; }
/* שורה אחת לכל חשבון; הפרטים נפתחים בלחיצה */
details.ur { border-radius: 16px; }
details.ur > summary { display: grid; grid-template-columns: 34px minmax(90px, 140px) 120px minmax(110px, 1fr) minmax(120px, 2fr) 20px; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 16px; }
details.ur[open] { background: var(--soft); }
.ur .ico { border-radius: 11px; font-size: 15px; }
.ur-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ur-date { font-size: 13px; color: var(--ink2); white-space: nowrap; } .ur-date b { color: var(--ink); }
.ur-st { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ur-st svg { flex: none; }
.ur-bad .ur-st { color: #B42318; font-weight: 700; } .ur-ok .ur-st { color: var(--green2); }
.ur-more { color: var(--faint); transition: transform .2s var(--spring); display: flex; }
details.ur[open] .ur-more { transform: rotate(-90deg); }
details.ur .up-lines { padding: 2px 62px 12px 12px; }
.ur-bad > summary { background: #FFF5F5; }
details.ur-off, details.ur-off > summary { color: var(--ink3); }
details.ur-off > summary { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; padding: 8px 10px; }
details.ur-off .ur { opacity: .7; }

/* ---------- טפסים, כניסה, טעינה והודעות ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .lbl { font-size: 15px; font-weight: 600; color: var(--ink2); }
.field input, .field select, .inp { min-height: 48px; border-radius: var(--r-field); border: 1.5px solid #E4E4EA; padding: 0 14px; font-size: 17px; background-color: #fff; color: var(--ink); min-width: 0; }
.field input:focus, .field select:focus, .inp:focus { outline: none; border-color: var(--green); }
.field input[type="number"] { text-align: right; -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.inp { min-height: 44px; font-size: 15px; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; padding-left: 32px !important; background-color: #fff; cursor: pointer; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.form { display: flex; flex-direction: column; gap: 14px; }
input.bad, select.bad, textarea.bad { outline: none !important; border-color: #E0484E !important; box-shadow: 0 0 0 4px rgba(224,72,78,.12); }
.fmsg { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--err); margin-top: 6px; animation: rise .16s ease both; }
#newcat { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 16px 4px; }
#newcat .inp { flex: 1 1 200px; } #newcat .fmsg { flex-basis: 100%; order: 3; margin-top: 0; }

.login { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login main { width: 100%; max-width: 440px; background: #fff; border-radius: 36px; padding: 48px 44px 40px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 32px 72px rgba(0,0,0,.10); display: flex; flex-direction: column; gap: 28px; animation: rise .4s ease both; }
.login .brand { display: flex; flex-direction: column; gap: 18px; text-align: center; }
.login .logo { width: 76px; height: 76px; border-radius: 24px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 28px rgba(14,122,86,.3); margin: 0 auto; }
.login .logo.warn { background: var(--orangeSoft); color: var(--orange); box-shadow: none; }
.login h1 { margin: 0; font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -.03em; text-align: center; }
.login p { margin: 8px 0 0; line-height: 1.5; text-align: center; }
.login form { display: flex; flex-direction: column; gap: 16px; }
.login .btn.big-btn { min-height: 56px; font-size: 20px; }
.login .acts { display: flex; flex-direction: column; gap: 10px; }
.err { color: var(--err); font-size: 15px; font-weight: 500; min-height: 22px; }
/* מסך הפתיחה, כשעוד אין נתונים שמורים: הסמל של התוכנה "נושם" */
.boot { display: flex; flex-direction: column; align-items: center; gap: 22px; color: var(--ink3); font-weight: 500; }
.boot .logo { width: 76px; height: 76px; border-radius: 24px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; animation: breathe 1.6s ease-in-out infinite; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--green); animation: spin .8s linear infinite; flex: none; }
.spinner.tiny { width: 14px; height: 14px; border-width: 2px; }
.toast { position: fixed; bottom: 24px; left: 0; right: 0; margin-inline: auto; width: fit-content; z-index: 80; max-width: calc(100vw - 32px); background: rgba(29,29,31,.86); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); color: #fff; padding: 14px 22px; border-radius: 16px; font-size: 15px; font-weight: 500; line-height: 1.4; text-align: right; display: flex; align-items: center; gap: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.25); animation: toastIn .4s var(--spring) both; }
.toast.out { animation: toastOut .25s ease both; }
.toast .tmark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.toast .tmark.ok { background: #34C77B; color: #0B3D2A; } .toast .tmark.err { background: #FF9F0A; color: #3D2600; }
.toast .spinner.tiny { border-color: rgba(255,255,255,.25); border-top-color: #fff; }
.sync { font-size: 13px; color: var(--ink3); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- בחירת קטגוריה ---------- */
.catpick { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 0; background: #F0F0F5; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; flex: none; white-space: nowrap; max-width: 100%; }
.catpick .dotc { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.catpick svg { color: var(--faint); flex: none; }
.catpick.excl { background: #E9E9EE; color: var(--ink3); text-decoration: line-through; }
.picker { position: fixed; z-index: 70; background: rgba(255,255,255,.86); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); border-radius: 24px; box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 24px 64px rgba(0,0,0,.18); padding: 14px; display: flex; flex-direction: column; gap: 10px; max-height: min(460px, calc(100vh - 24px)); animation: rise .18s ease both; }
.psearch { flex: none; min-height: 44px; border-radius: var(--r-field); border: 1.5px solid #E4E4EA; padding: 0 14px; font-size: 15px; background: var(--soft); color: var(--ink); }
.psearch:focus { outline: none; border-color: var(--green); background: #fff; }
.psearch.dark { border: 1px solid #3A3A3C; background: #2C2C2E; color: #fff; }
.psearch.dark::placeholder { color: #8E8E93; }
.psearch.dark:focus { border-color: #34C77B; background: #2C2C2E; }
.plist { overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; padding: 2px 2px 14px; }
.ptitle { display: block; font-size: 12px; font-weight: 700; color: var(--ink3); padding: 0 4px 6px; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.popt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border-radius: 14px; border: 0; background: transparent; color: var(--ink); font-size: 15px; font-weight: 600; text-align: right; cursor: pointer; min-width: 0; }
.popt .ico { width: 30px; height: 30px; border-radius: 10px; }
.popt.muted-opt .ico { background: #F0F0F5; color: var(--faint); }
.popt:focus-visible { background: #F5F5F8; outline: none; }
.popt.on { background: var(--greenSoft); color: var(--green2); }
.pnone { padding: 18px 8px; text-align: center; color: var(--ink3); }
/* בטלפון החלונית עולה מלמטה, ברוחב המסך */
.picker.sheet { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 78vh; max-height: 78dvh; border-radius: 28px 28px 0 0; padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.96); animation: sheetUp .38s var(--spring) both; }
.picker.sheet::before { content: ''; flex: none; align-self: center; width: 36px; height: 5px; border-radius: 3px; background: #D1D1D6; margin-bottom: 2px; }

/* ---------- הגדרות ---------- */
.setgroup { padding: 6px 0 10px; }
.settitle { display: block; font-size: 13px; font-weight: 700; color: var(--ink3); padding: 8px 16px 4px; }
.setgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 8px; }
.kindsel { min-height: 36px; border-radius: 10px; border: 0; text-align: right; flex: none; background: #F0F0F5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868B' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 10px center; padding: 0 12px 0 30px; font-size: 13px; font-weight: 600; color: var(--ink); font-family: inherit; white-space: nowrap; cursor: pointer; }
.kmenu { position: fixed; z-index: 70; width: 240px; background: rgba(255,255,255,.86); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); border-radius: 18px; padding: 8px; box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 24px 64px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 2px; animation: rise .16s ease both; }
.kmenu button { border: 0; background: none; text-align: right; padding: 10px 12px; border-radius: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font-family: inherit; }
.kmenu button b { font-size: 15px; color: var(--ink); }
.kmenu button span { font-size: 13px; color: var(--ink3); }
.kmenu button.on { background: #E3F4EC; } .kmenu button.on b { color: var(--green); }
/* מעשר: מקרא ועמודות לפי חודש */
.lg { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink2); margin-inline-start: 14px; }
.lg i { width: 10px; height: 10px; border-radius: 3px; }
.mbars { display: flex; align-items: flex-end; gap: 10px; height: 200px; }
.mbar { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; font-size: 12px; color: var(--ink3); }
.mbar.on { color: var(--ink); font-weight: 700; }
.mbar .cols { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.mbar .cols i { width: 40%; border-radius: 6px 6px 2px 2px; transform-origin: center bottom; animation: growY .7s var(--spring) .1s both; }
.mbar .cols i:first-child { background: #E4D8F5; } .mbar .cols i:last-child { background: #7A3EB8; }

/* ---------- תנועה ---------- */
/* מעבר למסך אחר: הכרטיסים נכנסים בזה אחר זה. עדכון באותו מסך: בלי אנימציה, כדי שהמסך לא יקפוץ. */
main.screen:not(.still) > * { animation: rise .5s var(--spring) both; }
main.screen:not(.still) > *:nth-child(2) { animation-delay: .04s; } main.screen:not(.still) > *:nth-child(3) { animation-delay: .08s; }
main.screen:not(.still) > *:nth-child(4) { animation-delay: .12s; } main.screen:not(.still) > *:nth-child(n+5) { animation-delay: .16s; }
main.screen:not(.still) .list > .item { animation: rise .45s var(--spring) both; }
main.screen:not(.still) .list > .item:nth-child(2) { animation-delay: .14s; } main.screen:not(.still) .list > .item:nth-child(3) { animation-delay: .17s; }
main.screen:not(.still) .list > .item:nth-child(4) { animation-delay: .20s; } main.screen:not(.still) .list > .item:nth-child(5) { animation-delay: .23s; }
main.screen:not(.still) .list > .item:nth-child(n+6) { animation-delay: .26s; }
main.screen.still * { animation-duration: 0s !important; animation-delay: 0s !important; }
main.screen.still .chart .line { animation: none; stroke-dashoffset: 0; }
/* מעבר בין חודשים: המסך נשאר במקום, ורק הגרף, הפסים והטבעת "מתמלאים" מחדש */
main.screen.still.step .chart .line { stroke-dashoffset: 1; animation: draw .55s ease forwards !important; animation-duration: .55s !important; }
main.screen.still.step .chart .area { animation-duration: .5s !important; animation-delay: .1s !important; }
main.screen.still.step .chart .dot, main.screen.still.step .chart .halo { animation-duration: .35s !important; animation-delay: .35s !important; }
main.screen.still.step .bar > span { animation-duration: .5s !important; }
main.screen.still.step .ring-val { animation-duration: .6s !important; }
main.screen.still.step .mbar .cols i { animation-duration: .45s !important; }
button, a.item, .alert, .dock a, .alertbox > summary { transition: transform .18s var(--spring), background-color .15s, color .15s, box-shadow .15s; }
button:active:not(:disabled), a.item:active, a.btn:active, .dock a:active, .alertbox > summary:active { transform: scale(.96); }
.switch:active:not(:disabled), .seg button:active:not(:disabled), .mbar:active:not(:disabled), .chart .hz:active { transform: none; }

/* ---------- ריחוף (רק במכשיר עם עכבר) ומיקוד במקלדת ---------- */
@media (hover: hover) {
  .dock a:hover { background: var(--soft); color: var(--ink); }
  .dock a.on:hover { background: var(--green); color: #fff; }
  .dock a:hover::after { opacity: 1; transform: translate(0, -50%); transition-delay: .3s; }
  .round:hover:not(:disabled) { transform: scale(1.06); }
  .btn:hover:not(:disabled) { transform: scale(1.03); }
  a.item:hover, button.item:hover, .morecats > summary:hover { background: #F5F5F8; }
  .pill:hover { transform: scale(1.04); background: #3A3A3C; }
  .pill.sug:hover { background: #4BD68C; }
  .catpick:hover { background: #E4E4EA; }
  .popt:hover { background: #F5F5F8; }
  .popt.on:hover { background: var(--greenSoft); }
  .kindsel:hover { background-color: #E6E6EC; }
  .kmenu button:hover { background: #F2F2F5; }
  .kmenu button.on:hover { background: #E3F4EC; }
  .alertbox > summary:hover { background: #FFE7CC; }
  details.ur > summary:hover { background: var(--soft); }
  details.ur.ur-bad > summary:hover { background: #FFEDED; }
  .mbar:hover { background: var(--soft); }
  .linkbtn:hover { text-decoration-thickness: 2px; }
  .srcpick:hover { border-color: var(--green); background: #F6FCF9; }
  table.t tbody tr:not(.sec):not(.sub):hover td { background: #F7F9FB; }
  table.t tbody tr:not(.sec):not(.sub) td.click:hover { background: var(--greenSoft); }
  .round:active:not(:disabled) { transform: scale(.95); }
  .btn:active:not(:disabled) { transform: scale(.97); }
  .pill:active { transform: scale(.96); }
}
:focus-visible { outline: 3px solid rgba(14,122,86,.5); outline-offset: 2px; }
.card.dark :focus-visible { outline-color: rgba(143,224,180,.85); }
.field input:focus-visible, .field select:focus-visible, .inp:focus-visible, .psearch:focus-visible { outline: none; }
table.t td.click:focus-visible { outline-offset: -3px; }

/* ---------- טלפון ---------- */
@media (max-width: 760px) {
  .shell { padding: 16px 14px calc(104px + env(safe-area-inset-bottom, 0px)); }
  main.screen { gap: 20px; }
  .dock { position: fixed; top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: 12px; right: 12px; flex-direction: row; justify-content: space-around; z-index: 30; border-radius: 24px; padding: 8px; background: rgba(255,255,255,.86); }
  .dock .sep, .dock a::after { display: none; }
  .dock a { flex: 1 1 0; width: auto; max-width: 52px; }
  .head { gap: 12px 16px; }
  .head h1 { font-size: 34px; }
  .seg button { padding: 10px 16px; }
  .btn { padding: 0 18px; }
  .hero { padding: 28px; gap: 24px; }
  .hero > svg { margin-inline: auto; }
  .card { padding: 24px; }
  .insight { font-size: 17px; margin-top: -4px; }
  input, select, textarea { font-size: 17px !important; }                 /* מתחת ל-16 האייפון מגדיל את המסך בכל הקלדה */
  .toast { bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
  .drawer { width: 100vw; }
  .drawer header { padding: 20px 20px 12px; }
  .drawer .body { padding: 0 12px 24px; }
  .tabs.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -14px; padding: 2px 14px 6px; }
  .tabs.scroll::-webkit-scrollbar { display: none; }
  /* תנועה: שורה ראשונה תיאור וסכום, שורה שנייה תאריך וחשבון, והקטגוריה משמאל */
  .txrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "desc amt" "meta pick"; gap: 6px 12px; }
  .txrow .d { display: none; }
  .txrow .dm { display: inline; }
  .txrow .g { display: contents; }
  .txrow .g b { grid-area: desc; }
  .txrow .g small { grid-area: meta; }
  .txrow .a { grid-area: amt; min-width: 0; }
  .txrow .catpick { grid-area: pick; justify-self: end; min-height: 40px; }
  .catpick, .kindsel { min-height: 40px; }
  .linkbtn { padding: 9px 0; }
  .cv-how > summary, details.ur-off > summary { min-height: 40px; }
  /* סיווג: קודם בוחרים קטגוריה, ואחר כך רשימת הקבוצות */
  .cls-panel { order: -1; position: static; max-height: none; scroll-margin-top: 14px; }
  .pillgroups { overflow: visible; min-height: 0; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
  .pills { gap: 8px; } .pill { min-height: 42px; padding: 0 16px; }
  /* קבוצה לסיווג: השם מקבל את כל רוחב השורה, והסכום יורד לשורה השנייה */
  .list.two .item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico name name" "ico sub amt"; gap: 2px 12px; padding: 12px; }
  .list.two .item .ico { grid-area: ico; } .list.two .item .grow { display: contents; }
  .list.two .item .sub { grid-area: sub; } .list.two .item .amt { grid-area: amt; font-size: 17px; align-self: end; }
  .list.two.top .item { grid-template-areas: "ico name amt" "ico sub sub"; }
  .list.two.top .item .amt { align-self: start; }
  .only-p { display: inline; } .only-d { display: none; } .nl { display: block; }
  .list.two .name { grid-area: name; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 17px; line-height: 1.3; }
  .cp-last { order: -1; border-top: 0; padding-top: 0; border-bottom: 1px solid #3A3A3C; padding-bottom: 14px; }
  .pills .srcpick { flex: 1 1 100%; }
  .sw-lbl { display: none; }
  .stat b { font-size: 34px; }
  .okline { font-size: 28px !important; }
  details.ur > summary { grid-template-columns: 34px minmax(0, 1fr) auto 16px; grid-template-areas: "i n d m" "i s s m"; row-gap: 3px; column-gap: 10px; }
  details.ur > summary > .ico { grid-area: i; } .ur-name { grid-area: n; } .ur-date { grid-area: d; }
  .ur-st { grid-area: s; white-space: normal; } .ur-more { grid-area: m; } .ur-bar, .up-legend { display: none; }
  details.ur .up-lines { padding: 2px 12px 12px; }
  table.t td:first-child { white-space: normal; line-height: 1.25; overflow-wrap: anywhere; }
  .login main { padding: 36px 26px 30px; border-radius: 30px; }
  .login h1 { font-size: 28px; }
  .mbars { gap: 4px; }
}

/* ---------- הדפסה: דף לרוחב, רק הדוח ---------- */
.print-meta { display: none; }
@page { size: A4 landscape; margin: 10mm; }
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; animation: none !important; transition: none !important; }
  .chart .line { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }      /* קו הגרף מצויר באנימציה; על הנייר הוא מופיע שלם */
  html { scrollbar-gutter: auto; }
  html, body { background: #fff; }
  .dock, .head .tools, .navs, .alertbox, .alert, .toast, .veil, .drawer, .picker, .kmenu, .tbl-note, .round, .item.link, .drop, .linkbtn, .catpick svg { display: none !important; }
  .shell { padding: 0; } .wrap { max-width: none; display: block; }
  /* מסך רגיל מוקטן כך שייכנס בדף אחד לרוחב; מסך הטבלאות מודפס בגודל מלא, והטבלה עצמה מוקטנת לפי אורכה */
  main.screen { display: block; zoom: .58; }
  main.screen:has(.tblcard) { zoom: 1; }
  main.screen > * + * { margin-top: 22px; }
  .print-meta { display: block; font-size: 15px; color: var(--ink2); margin-bottom: 6px; }
  main.screen:has(.tblcard) .print-meta { font-size: 10px; margin-bottom: 2px; }
  main.screen:has(.tblcard) > * + * { margin-top: 10px; }
  main.screen:has(.tblcard) .head { padding: 0; } main.screen:has(.tblcard) .head h1 { font-size: 22px; } main.screen:has(.tblcard) .head .kicker { font-size: 11px; }
  .card { box-shadow: none; border: 1px solid #E4E4EA; break-inside: avoid; }
  .card.dark { border-color: var(--ink); }
  .card.tblcard { border: 0; border-radius: 0; padding: 0 !important; break-inside: auto; zoom: var(--pz, 1); }
  .tbl-wrap { overflow: visible !important; border-radius: 0; -webkit-mask-image: none !important; mask-image: none !important; }
  table.t { font-size: 10.5px; line-height: 1.25; min-width: 0 !important; }
  table.t th, table.t td { padding: 1.5px 4px; }
  table.t thead { display: table-header-group; } table.t thead th { position: static; padding: 3px 4px; }
  table.t td:first-child, table.t th:first-child { position: static; padding-right: 8px; }
  table.t tr { break-inside: avoid; } table.t tr.sec { break-after: avoid; }
  table.t tr.sec td { padding: 7px 6px 2px; } table.t tr.sec td span { font-size: 11px; padding: 1px 8px; } table.t tr.sec td small { font-size: 9px; }
  table.t tr.sub td { border-top-width: 1px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; } }

/* ===== קובץ חדש: אישור העמודות ===== */
.srcpick.on { border-color: var(--green); background: #F6FCF9; box-shadow: 0 0 0 3px #0E7A5622; }
.srcpick .ico.plus { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--greenSoft); color: var(--green); }
.cfm-wrap { overflow-x: auto; border: 1.5px solid #E4E4EA; border-radius: 16px; background: #fff; }
.cfm { width: 100%; border-collapse: collapse; font-size: 15px; }
.cfm th { padding: 10px 8px; background: #F7F7FA; border-bottom: 1.5px solid #E4E4EA; vertical-align: top; text-align: right; min-width: 136px; }
.cfm th .hd { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: #6B6B78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.cfm td { padding: 9px 10px; border-bottom: 1px solid #EFEFF3; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; color: #8A8A96; }
.cfm td.on { color: var(--ink); font-weight: 600; }
.cfm tr:last-child td { border-bottom: 0; }
.cfm.prev td.n { direction: ltr; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.cfm.prev td.d { color: var(--ink); }
.rolesel { width: 100%; min-height: 40px; padding-inline-end: 22px !important; border-radius: 12px; border: 1.5px solid #E4E4EA; background: #fff; padding: 0 8px; font: inherit; font-size: 15px; font-weight: 600; color: #6B6B78; cursor: pointer; }
.rolesel.set { border-color: var(--green); color: var(--green); background: #F6FCF9; }
.rolesel:focus-visible { outline: 3px solid #0E7A5644; outline-offset: 1px; }
.cfm-h { margin: 0 0 10px; font-size: 17px; }
.chks { display: flex; flex-direction: column; gap: 8px; }
.chk { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; background: #F4F4F8; color: var(--ink2); }
.chk svg { flex: none; margin-top: 3px; }
.chk.ok { background: var(--greenSoft); color: #0A5C40; }
.chk.warn { background: var(--orangeSoft); color: var(--orange); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--green); text-decoration: underline; cursor: pointer; margin-inline-start: 6px; }
@media (max-width: 759px) {
  .cfm.prev { font-size: 14px; } .cfm.prev th, .cfm.prev td { padding: 8px 6px; min-width: 0; }
  .cfm.prev td.d { white-space: normal; max-width: 110px; }
}

/* ===== נתוני דמה: סרגל "מתחיל להשתמש" ===== */
.demobar { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 14px 18px; border-radius: 20px; background: var(--orangeSoft); border: 1.5px solid #F2D4AE; }
.demobar .db-ico { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--orange); }
.demobar .db-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--ink2); line-height: 1.45; }
.demobar .db-t b { font-size: 17px; color: var(--ink); }
.demobar .btn { flex: none; }
.stl { margin: 6px 0 0; padding: 0 20px 0 0; display: flex; flex-direction: column; gap: 4px; color: var(--ink2); }
@media (max-width: 759px) { .demobar { flex-wrap: wrap; } .demobar .btn { flex: 1 1 100%; } }
@media print { .demobar { display: none; } }
.demobar.blind { background: #EEF0FB; border-color: #D3D8F2; }
.demobar.blind .db-ico { color: #4A55C8; }
