/* תוכן הדפים. אותן יחידות וכיתות משותפות כמו ב-gate.css. כל דף הוא אזור של 1408 על 656 שממוקם מתחת לפס העליון.
   מיקומי הרכיבים הם קואורדינטות ה-Designer של הטופס המקביל, כפי שנראים בצילום המסך של האפליקציה. */

.pages { overflow: hidden; background: #000; isolation: isolate; }
/* [16.10.2026] לוח ההודעות הוקטן ל-3 שורות (107 -> 60) ואזור הדפים גדל (656 -> 703, index.html). כל דף נשאר בקואורדינטות 1408x656
   של העיצוב, ונמתח לגובה החדש: יחידת הגובה בתוך הדפים גדולה פי 703/656 */
.pages > .page { --cy: calc(100cqh / 892 * 703 / 656); --cm: min(var(--cx), var(--cy)); }   /* התאים הקבועים בטבלאות (z-index) לא יעלו מעל החלונות שנפתחים מעל הדפים */
.page { overflow: hidden; background: #000 center / 100% 100% no-repeat; }
.page[hidden] { display: none; }
/* [16.10.2026] רקע הדפים: כחול בהיר אחיד במקום תמונות (היו: bg_sky7 בשנתי, bg_autumn38 בחודשי ובמסד, bg_green13 בעתידי, באשראי ובסיווגים) */
.page[data-page="year"],
.page[data-page="month"],
.page[data-page="db"],
.page[data-page="future"],
.page[data-page="credit"],
.page[data-page="cat"]    { background: #cfe2f3; }
.page[data-page="graph"]  { background: #fff; }

/* כותרת הדף: לבנה, נטויה ועבה */
.pg-title { color: #000;   /* [16.10.2026] שחור על הרקע הכחול הבהיר (היה לבן על תמונה) */ text-align: center; font-family: var(--mf-brush); font-style: var(--mf-brush-style, italic); font-weight: bold; white-space: nowrap; direction: rtl; display: flex; align-items: center; justify-content: center; }

/* "כולל עתידי" ו"כולל כרטיסי אשראי": תיבה שחורה, עיגול משמאל וטקסט מימין */
.rbx { display: inline-flex; align-items: center; gap: calc(5 * var(--cm)); padding: 0 calc(4 * var(--cm)); height: calc(20 * var(--cy)); border: 0; background: #000; color: #fff; direction: ltr; cursor: pointer; white-space: nowrap;
       font: bold calc(12 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; }
.rbx span { direction: rtl; }
.rbx i { flex: none; display: block; width: calc(13 * var(--cm)); height: calc(13 * var(--cm)); border-radius: 50%; background: #f0f0f0; }
.rbx[aria-checked="true"] i { background: radial-gradient(circle, #fff 0 22%, #0a5cb8 26%); }

/* כפתור כחול שטוח: BackColor (0,0,192), FlatStyle=Popup, טקסט לבן מודגש */
.bbtn { padding: 0; border: 1px solid #000; background: rgb(0, 0, 192); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
        font: bold calc(11 * var(--cm)) / 1.15 "Segoe UI", Arial, sans-serif; white-space: normal; overflow: hidden; }
.bbtn:hover { background: rgb(20, 20, 220); }
.bbtn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.bbtn.pure { background: #0000ff; border: 1px solid #fff; font-weight: normal; font-size: calc(15 * var(--cm)); }
.bbtn.teal { background: rgb(0, 64, 64); border: 1px solid #7fdfdf; font-weight: bold; font-size: calc(16 * var(--cm)); }
.bbtn.dark { background: #000; border: 2px solid #f5c400; color: #fff; font-size: calc(13 * var(--cm)); }
.bbtn.dark.on { background: #f00; }

/* פס כחול עם תיבות סימון לבנות: בורר שנים וחודשים */
.band { background: #0000ff; }
.pie-ysel, .m-ysel { position: absolute; left: 0; top: 0; width: 100%; height: 100%; box-sizing: border-box; background: #0000ff; color: #fff; border: 1px solid #d8d8ff; font: bold calc(15 * var(--cm)) "Segoe UI", Arial, sans-serif; cursor: pointer; }
.pie-ysel option, .m-ysel option { background: #fff; color: #000; }
.cbx[aria-disabled="true"] { opacity: .35; cursor: default; pointer-events: none; }
.cbx { position: absolute; display: flex; align-items: center; gap: calc(5 * var(--cm)); direction: ltr; color: #fff; font: normal calc(12 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; white-space: nowrap; cursor: pointer; }
.cbx i { flex: none; display: block; box-sizing: border-box; width: calc(13 * var(--cm)); height: calc(13 * var(--cm)); border: 1px solid #8a8a8a; border-radius: calc(2 * var(--cm)); background: #fff; }
.cbx i { position: relative; }
.cbx[aria-checked="true"] i { border-color: #0067c0; background: #0067c0; }
.cbx[aria-checked="true"] i::after { content: ""; position: absolute; left: calc(3.5 * var(--cm)); top: calc(0.5 * var(--cm)); width: calc(3.5 * var(--cm)); height: calc(7 * var(--cm)); border: solid #fff; border-width: 0 calc(1.6 * var(--cm)) calc(1.6 * var(--cm)) 0; transform: rotate(40deg); }

.lbl { color: #fff; direction: rtl; white-space: nowrap; }
.datebox { background: #c0ffff; color: #0000ff; font: bold calc(27 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; direction: ltr; padding: 0 calc(3 * var(--cm)); display: flex; align-items: center; }
.instr-blue { background: #0000ff; color: #fff; font: italic bold calc(21 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; direction: rtl; text-align: right; padding: calc(3 * var(--cm)) calc(3 * var(--cm)) 0 0; }

/* תמונת הכיתוב (Ticket_Label, Credit_Welcome_Label): נוף ים ושמיים, טקסט לבן נטוי */
.pic-label { background: #4a7a9a url("../assets/img/bg_lake14.jpg") center / 100% 100% no-repeat; border: 1px solid #000; color: #fff; display: flex; align-items: center; justify-content: center; text-align: center;
             font: italic 900 calc(37 * var(--cm)) / 1.25 "Segoe UI Black", "Segoe UI", Arial, sans-serif; direction: rtl; padding: 0 calc(8 * var(--cm)); overflow: hidden; }
/* טקסט ישיר בתוך flex לא נשבר לשורה נוספת גם כשיש מקום - span פנימי עם white-space:normal פותר, ומנצל את הגובה הפנוי */
.pic-label-wrap { display: block; white-space: normal; overflow-wrap: break-word; max-width: 100%; }

/* ---------- טבלאות: DataGridView ---------- */
.tbl { overflow: auto; background: #fff; direction: rtl; border: 1px solid #a0a0a0; color: #000; scrollbar-width: thin;
       font: calc(12 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; }
.tbl.dk { border: 2px solid #000; }
.tbl.mo-snap { scroll-snap-type: x mandatory; }
.tbl .c.h.mo { scroll-snap-align: start; }
.tbl-in { display: grid; width: max-content; min-width: 100%; }
.tbl .c { box-sizing: border-box; padding: 0 calc(4 * var(--cm)); border-left: 1px solid #d0d0d0; border-bottom: 1px solid #d0d0d0; background: #fff; display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; }
.tbl.dk .c { border-color: #000; }
.tbl .c.h { background: #fff; position: sticky; top: 0; z-index: 2; }
.tbl .c.gh { background: #000; color: #fff; font-weight: bold; }   /* [16.10.2026] כותרות החודשים בדף השנתי: שחור במקום ירוק */
.tbl .c.rh { background: #f0f0f0; justify-content: flex-start; padding-right: calc(6 * var(--cm)); font-size: calc(9 * var(--cm)); }
.tbl .c.al-r { justify-content: flex-start; }   /* direction:rtl -> flex-start = ימין */
.tbl .c.al-l { justify-content: flex-end; direction: ltr; }
.tbl .c.num { direction: ltr; justify-content: flex-start; }
.tbl .c.h.num { justify-content: center; }
.tbl .c.fz { position: sticky; z-index: 1; }
.tbl .c.h.fz { z-index: 3; }
.tbl .c.b { font-weight: bold; }
.tbl .c.cb { padding: 0; }
.tbl .c.cb::after { content: "\25BE"; font-size: calc(9 * var(--cm)); color: #444; border: 1px solid #b0b0b0; background: #f4f4f4; width: 70%; height: 70%; display: flex; align-items: center; justify-content: center; }

/* ---------- דף גרפים ---------- */
.gr-side { background: #0b1226; }
.gr-lbl { color: #f5a623; font: bold calc(12 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; direction: rtl; white-space: nowrap; }
.combo { background: #0000ff; color: #fff; direction: rtl; display: flex; align-items: center; justify-content: flex-start; padding: 0 calc(6 * var(--cm)); font: bold calc(12 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; border: 1px solid #0000ff; }
.combo::before { content: "\25BE"; position: absolute; left: 0; top: 0; bottom: 0; width: calc(20 * var(--cx)); background: #f0f0f0; color: #333; display: flex; align-items: center; justify-content: center; font-size: calc(9 * var(--cm)); }
.chart { background: #fff; }
.chart-title { color: #0000e0; font: italic bold calc(25 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; direction: rtl; white-space: nowrap; }
.chart-mode { color: #e00000; font: italic calc(25 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; direction: rtl; white-space: nowrap; }
.plot { border: 1px solid #a0a0a0; background: #fff; background-image: linear-gradient(#e2e2e2 1px, transparent 1px), linear-gradient(90deg, #e2e2e2 1px, transparent 1px); background-size: 100% calc(37.4 * var(--cy)), calc(95 * var(--cx)) 100%; }
.legend-box { background: #fff; border: 1px solid #555; box-shadow: 2px 2px 2px #bbb; }
.axis-x { color: #0000e0; font: bold calc(12 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; text-align: center; }
.axis-y { color: #0000e0; font: bold calc(12 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; text-align: right; }
.cbx.round i { border-radius: 50%; border-color: #ccc; background: #f0f0f0; }
.cbx.round[aria-checked="true"] i { background: radial-gradient(circle, #fff 0 22%, #0a5cb8 26%); border-color: #ccc; }
.cbx.round[aria-checked="true"] i::after { display: none; }
.cbx.round[aria-checked="true"] { font-weight: bold; color: #ffe000; }

/* עוגת התקציב החיה */
.pie { background: #fff; }
.pie-frame { border: 1px solid #000; background: #fff; }
.pie-ring { border-radius: 50%; border: calc(18 * var(--cm)) solid #b22222; background: #fff; }
.pie-red { color: #e00000; font-family: var(--mf-brush); font-style: var(--mf-brush-style, italic); font-weight: var(--mf-brush-weight, normal); direction: rtl; white-space: nowrap; }
.pie-date { border: 1px solid #ddd; background: #fff; color: #e00000; font: italic bold calc(21 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; display: flex; align-items: center; justify-content: center; letter-spacing: .05em; }
.pie-strip { background: #f0f0f0; text-align: center; direction: rtl; }
.pie-s1 { color: #e00000; font: bold calc(20 * var(--cm)) / calc(32 * var(--cy)) "Segoe UI", Arial, sans-serif; }
.pie-s2 { color: #e00000; font: var(--mf-brush-style, italic) var(--mf-brush-weight, normal) calc(24 * var(--cm)) / calc(32 * var(--cy)) var(--mf-brush); }
.pie-panel { background: #d3d3d3; border: calc(3 * var(--cm)) solid #b8c4d0; border-radius: calc(6 * var(--cm)); overflow: hidden; }
.pie-hint { text-align: center; color: #0000e0; font: var(--mf-brush-style, italic) bold calc(21 * var(--cm)) / calc(38 * var(--cy)) var(--mf-brush); direction: rtl; background: #c0c8d0; }
.pie-inc { background: #fff; border: 1px solid #aaa; }
.pie-track { background: #f4f4f4; border: 1px solid #b0b0b0; }
.pie-num { color: #0000e0; font-family: "Segoe UI", Arial, sans-serif; font-weight: bold; }
.pie-sw { border: 1px solid #555; }
.pie-name { overflow: hidden; text-overflow: ellipsis; color: #0000e0; font-family: var(--mf-brush); font-weight: bold; font-style: var(--mf-brush-style, italic); direction: rtl; }
.pie-val { background: #f0f0f0; border: 1px solid #b0b0b0; }
.cake { border-radius: 50%; background: radial-gradient(circle at 50% 35%, #ffd27a 0 18%, #9a5b34 20% 70%, #f4f4f4 72%); border: 1px solid #ddd; }

/* כותרת דף "מסד": הטקסט משתנה בזמן טעינה (DB_Display_Label) והתווית קבועה בגודלה, כמו Label ב-WinForms: מה שחורג נחתך */
#db-title { overflow: hidden; }

/* פירוט קטגוריה בדף השנתי (_detailGrid): תאי הסכומים במרכז */
.tbl.detail .c.numr:not(.h) { justify-content: center; }
.tbl.detail { overflow-x: hidden; }   /* _detailGrid: ScrollBars.Vertical */
/* מספרים במרכז התא, עם סימן המינוס בצד שמאל של הספרות (direction:ltr), כמו ב-DataGridView */
.tbl .c.numc { direction: ltr; justify-content: center; }

/* תא חשבון הבנק בדף כרטיסי האשראי: טקסט במרכז השטח שנשאר, כפתור ▾ בצד שמאל, ורשימה נפתחת שקופה מעליו */
.cc-bank { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding-left: calc(18 * var(--cx)); box-sizing: border-box; }
.cc-bank i { position: absolute; left: calc(1 * var(--cx)); top: calc(2 * var(--cy)); bottom: calc(2 * var(--cy)); width: calc(17 * var(--cx)); box-sizing: border-box; background: #f0f0f0; border: 1px solid #adadad; font-style: normal; font-size: calc(9 * var(--cm)); display: flex; align-items: center; justify-content: center; color: #333; }
.cc-bank select { position: absolute; left: 0; top: 0; bottom: 0; width: calc(18 * var(--cx)); opacity: 0; cursor: pointer; }
.pic-label[hidden] { display: none; }
/* גריד עם RightToLeft=Yes וערכים מספריים (הדף השנתי, טבלת המאזן החודשי, הדף העתידי): הסימן השלילי מוצג בצד ימין של הספרות, כמו ב-DataGridView (1000- ולא -1000) */
.tbl .c.numr { direction: rtl; justify-content: flex-end; }
.tbl .c.h.numr { justify-content: center; }

/* כותרת שורה ממוספרת (RowPostPaint): המספר במרכז והחץ בצד ימין */
.tbl .c.rh.numbered { position: sticky; justify-content: center; padding: 0; font-size: calc(12 * var(--cm)); }
.tbl .c.rh.numbered b { position: absolute; right: calc(4 * var(--cx)); top: 50%; transform: translateY(-50%); font-size: calc(8 * var(--cm)); font-weight: normal; }
.bbtn[hidden] { display: none; }

/* דף חשבון עתידי: שדות העריכה בכרטיסייה, והדיאלוגים (Get_Update_Choice, Confirm_Cancel_Ticket) */
.f-ed { width: 100%; height: 100%; box-sizing: border-box; border: 0; background: transparent; font: inherit; font-weight: bold; color: #0000ff; direction: rtl; text-align: right; padding: 0 calc(2 * var(--cx)); }
.f-ed:focus { outline: 1px solid #0078d7; }
.mf-dlg-ov { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); z-index: 100; }
.mf-dlg { background: #f0f0f0; border: 1px solid #555; direction: rtl; font-family: "Segoe UI", Arial, sans-serif; overflow: hidden; }
.mf-dlg-bar { position: absolute; left: 0; right: 0; top: 0; height: calc(24 * var(--cy)); background: #fff; border-bottom: 1px solid #ccc; font-size: calc(12 * var(--cm)); line-height: calc(24 * var(--cy)); padding: 0 calc(8 * var(--cx)); text-align: right; }
.mf-dlg-lbl { display: flex; align-items: center; justify-content: center; text-align: center; font-size: calc(13 * var(--cm)); }
.mf-dlg-btn { border: 1px solid #adadad; background: #e1e1e1; color: #000; font-size: calc(12 * var(--cm)); cursor: pointer; }
.mf-dlg-btn:hover { background: #e5f1fb; border-color: #0078d7; }
.mf-dlg-blue { background: rgb(20, 40, 90); }
.mf-dlg-blue .mf-dlg-lbl { font-size: calc(18 * var(--cm)); }
.mf-dlg-btn.green { background: rgb(44, 160, 44); color: #fff; border: 0; font-weight: bold; font-size: calc(14 * var(--cm)); }
#f-label { font-size: calc(30 * var(--cm)); line-height: 1.3; color: #f00; white-space: nowrap; }   /* אותו גופן כמו קודם (Segoe UI Black נטוי), באדום, בשתי שורות */

/* דף הסיווגים: תא הסיווג (ComboBoxColumn): הטקסט מימין וחץ ▾ משמאל, ובעריכה רשימה נפתחת */
.cat-cb { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: flex-start; padding-left: calc(14 * var(--cx)); box-sizing: border-box; }
.cat-cb i { position: absolute; left: calc(3 * var(--cx)); font-style: normal; font-size: calc(9 * var(--cm)); color: #333; }
.cat-cb select { width: 100%; height: 100%; border: 0; background: transparent; font: inherit; direction: rtl; cursor: pointer; }
.bbtn.pure.editing { background: #f00; }

/* טבלת הדף העתידי בנראות של אקסל: כותרות כחולות, פסי צבע לסירוגין, קווי רשת כחלחלים וכותרות שורה אפורות */
.tbl.xl .c { border-color: #b4c6e7; }
.tbl.xl .c.h { background: #4472c4; color: #fff; font-weight: bold; }
.tbl.xl .c.h.rh { background: #e7e6e6; }
.tbl.xl .c.rh { background: #e7e6e6; color: #444; }

/* דף עתידי: פונטים מודגשים בטבלה, סרגל גלילה בולט (כחול כהה על רקע בהיר), ואייקון התאריך בכרטיסייה ברור */
.tbl.xl { scrollbar-width: auto; scrollbar-color: #1f3f8f #cfd8ea; }
.tbl.xl .c:not(.h) { font-weight: bold; }
.f-ed[type="date"]::-webkit-calendar-picker-indicator { opacity: 1; cursor: pointer; background-color: #fff; border: 1px solid #1f3f8f; border-radius: 2px; padding: calc(2 * var(--cx)); width: calc(14 * var(--cx)); height: calc(14 * var(--cx)); filter: none; }

/* כרטיסיית הדף העתידי: קווי רשת כתומים חזקים בין השדות */
.tbl.dk.tk .c { border-color: #ff6a00; border-left-width: 2px; border-bottom-width: 2px; }
/* תאריכון מעוצב */
.f-date { width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between; direction: rtl; cursor: pointer; box-sizing: border-box; padding: 0 calc(3 * var(--cx)); }
.f-date-txt { flex: 1; text-align: right; font-weight: bold; }
.f-date-btn { flex: none; width: calc(22 * var(--cx)); height: calc(18 * var(--cy)); padding: 0; border: 0; background: transparent; cursor: pointer; }
.f-cal { z-index: 120; background: #fff; border: 2px solid #1f3f8f; box-shadow: 0 calc(6 * var(--cy)) calc(18 * var(--cx)) rgba(0, 0, 0, .55); font-family: "Segoe UI", Arial, sans-serif; direction: rtl; box-sizing: border-box; display: flex; flex-direction: column; }
.f-cal-head { display: flex; align-items: center; gap: calc(4 * var(--cx)); background: #4472c4; padding: calc(5 * var(--cy)) calc(5 * var(--cx)); }
.f-cal-nav { flex: none; width: calc(26 * var(--cx)); height: calc(24 * var(--cy)); border: 0; border-radius: calc(3 * var(--cm)); background: #ff6a00; color: #fff; font: bold calc(16 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; cursor: pointer; }
.f-cal-nav:hover { background: #ff8a33; }
.f-cal-sel { flex: 1; min-width: 0; height: calc(24 * var(--cy)); border: 0; border-radius: calc(3 * var(--cm)); background: #fff; color: #1f3f8f; font: bold calc(12 * var(--cm)) "Segoe UI", Arial, sans-serif; direction: rtl; }
.f-cal-grid { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; padding: calc(5 * var(--cy)) calc(6 * var(--cx)); gap: calc(2 * var(--cm)); }
.f-cal-dow { display: flex; align-items: center; justify-content: center; font: bold calc(12 * var(--cm)) "Segoe UI", Arial, sans-serif; color: #1f3f8f; border-bottom: 2px solid #ff6a00; }
.f-cal-day { border: 0; border-radius: calc(3 * var(--cm)); background: #eef2fb; color: #000; font: bold calc(12 * var(--cm)) "Segoe UI", Arial, sans-serif; cursor: pointer; padding: 0; }
.f-cal-day.other { background: #fff; color: #a0a0a0; font-weight: normal; }
.f-cal-day:hover { background: #b4c6e7; }
.f-cal-day.today { outline: 2px solid #ff6a00; outline-offset: -2px; }
.f-cal-day.sel { background: #ff6a00; color: #fff; }
.f-cal-foot { display: flex; gap: calc(6 * var(--cx)); padding: calc(5 * var(--cy)) calc(6 * var(--cx)); background: #eef2fb; border-top: 1px solid #b4c6e7; }
.f-cal-today, .f-cal-close { flex: 1; height: calc(24 * var(--cy)); border: 0; border-radius: calc(3 * var(--cm)); background: #4472c4; color: #fff; font: bold calc(12 * var(--cm)) "Segoe UI", Arial, sans-serif; cursor: pointer; }
.f-cal-close { background: #7f7f7f; }

/* עמודת הערכים בכרטיסייה: פונטים כחולים על רקע צהוב */
.f-date-txt { color: #0000ff; }
.f-ed option { color: #0000ff; font-weight: bold; }

/* כותרת בראש הכרטיסייה: אדום, כתב יד */
.f-ticket-title { display: flex; align-items: center; justify-content: center; color: #ffff00; font-family: var(--mf-brush); font-weight: bold; font-style: var(--mf-brush-style, normal); font-size: calc(20 * var(--cm)); white-space: nowrap; direction: rtl; pointer-events: none; }
.f-ticket-title[hidden] { display: none; }

/* ---------- דף גרפים: הגרף מצויר בקנבס, והבוררים ---------- */
#gr-chart .plot, #gr-chart .legend-box, #gr-chart .axis-x { display: none; }
#gr-canvas { display: block; }
.chart-mode { font-family: var(--mf-brush); font-style: var(--mf-brush-style, normal); font-weight: var(--mf-brush-weight, normal); font-size: calc(24 * var(--cm)); left: auto; right: calc(15 * var(--cx)); }
.combo { overflow: hidden; }
.gr-cv { position: absolute; left: calc(20 * var(--cx)); right: 0; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 calc(4 * var(--cm)); white-space: nowrap; overflow: hidden; cursor: default; }
.gr-cs { position: absolute; left: 0; top: 0; width: calc(20 * var(--cx)); height: 100%; opacity: 0; cursor: pointer; }
.gr-fdet { color: #ffd700; font-family: "Segoe UI", Arial, sans-serif; direction: rtl; }
#gr-cake.on { background: #f00; border-radius: 50%; }

/* ---------- עוגת התקציב החיה ---------- */
.chart-mode { left: calc(1005 * var(--cx)); right: auto; width: calc(233 * var(--cx)); text-align: left; line-height: calc(32 * var(--cy)); top: calc(3 * var(--cy)); }
.pie-red { color: #e00000; font-family: var(--mf-brush); font-style: var(--mf-brush-style, normal); font-weight: var(--mf-brush-weight, normal); font-size: calc(24 * var(--cm)); text-align: left; line-height: calc(32 * var(--cy)); direction: rtl; white-space: nowrap; }
/* [25.10.2026] בכל השפות: כותרת הבחירה בדף הגרפים (ושל עוגת התקציב) כמו הכותרת "דף חשבון בתצוגה גרפית" - כחול, דפוס, מודגש, 25, ובאותו גובה (12).
   הגודל עדיין קטן לבד כשהטקסט ארוך מהתיבה (js/mf_graph_ui.js setTitle). html[lang] - עדיפות מעל כללי הרוסית ב-gate.css */
html[lang] .chart-mode, html[lang] .pie-red { color: #0000e0; font: italic bold calc(25 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; top: calc(12 * var(--cy)); font-size-adjust: none; }
/* [25.10.2026] בכל השפות: כל שאר הכיתוב בכתב יד בדף הגרפים (עוגת התקציב) - דפוס בכחול, באותו גודל ומשקל */
html[lang] .pie-s2, html[lang] .pie-hint, html[lang] .pie-name, html[lang] .pie-date, html[lang] .pie-per { font-family: "Segoe UI", Arial, sans-serif; color: #0000e0; font-size-adjust: none; }.pie-date { background: #f0f0f0; border: 0; color: #e00000; font: var(--mf-brush-style, normal) var(--mf-brush-weight, normal) calc(24 * var(--cm)) / calc(32 * var(--cy)) var(--mf-brush); letter-spacing: 0; }
/* [25.10.2026] "נא לבחור מועדים להצגה" - כתב 18 (היה 15). התיבה הורחבה ב-js/mf_graph_pie.js */
.pie-per { background: #ececec; color: #0000ff; font: var(--mf-brush-style, normal) bold calc(18 * var(--cm)) / calc(21 * var(--cy)) var(--mf-brush); text-align: center; direction: rtl; white-space: nowrap; }
.pierb { position: absolute; display: flex; align-items: center; gap: calc(5 * var(--cm)); direction: ltr; color: #fff; font: normal calc(12 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; white-space: nowrap; cursor: pointer; }
.pierb i { flex: none; display: block; box-sizing: border-box; width: calc(13 * var(--cm)); height: calc(13 * var(--cm)); border-radius: 50%; border: 1px solid #d8d8ff; background: #9c9cf0; }
.pierb[aria-checked="true"] { color: #ffe000; font-weight: bold; }
.pierb[aria-checked="true"] i { background: radial-gradient(circle, #ffe000 0 30%, #9c9cf0 34%); border-color: #ffe000; }
.bbtn.gold { background: #0000ff; border: 2px solid #ffd700; color: #ffff00; font: italic bold calc(11 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; }
/* [25.10.2026] כפתורי דף העוגה (עידכון, איפוס, ריענון) - כתב גדול יותר (js/mf_graph_pie.js) */
#pie-upd.bbtn.gold, #pie-rst.bbtn.gold, #pie-rfr.bbtn.gold { font-size: calc(14 * var(--cm)); }
.pie-pshadow { background: #828282; border-radius: calc(12 * var(--cm)); }
.pie-panel { background: #c0c0c0; border: 0; border-radius: calc(12 * var(--cm)); overflow: hidden; }
.pie-panel > * { position: absolute; box-sizing: border-box; }
.pie-hint { background: transparent; color: #0000ff; font: italic bold calc(21 * var(--cm)) / calc(38 * var(--cy)) "Segoe UI", Arial, sans-serif; text-align: center; direction: rtl; white-space: nowrap; }
.pr-stripe { background: #d8d8d8; }
.pr-num { color: #0000ff; font: bold calc(13.3 * var(--cm)) / calc(20 * var(--cy)) "Segoe UI", Arial, sans-serif; }
.pr-sw { border: 1px solid #555; }
.pr-name { background: #c0c0c0; color: #0000ff; font: bold calc(12 * var(--cm)) / calc(20 * var(--cy)) "Segoe UI", Arial, sans-serif; direction: rtl; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 calc(3 * var(--cx)); }
.pr-val { background: #c0c0c0; color: #141e2d; font: bold calc(13.3 * var(--cm)) / calc(20 * var(--cy)) "Segoe UI", Arial, sans-serif; text-align: left; padding: 0 calc(6 * var(--cx)); }
.pr-res { background: #d8d8d8; color: #b22222; border: 0; outline: 0; margin: 0; padding: 0; font: bold calc(13.3 * var(--cm)) / calc(20 * var(--cy)) "Segoe UI", Arial, sans-serif; text-align: left; }
.pr-ul, .pr-sep { background: #141e2d; }
.pie-pacc { background: #4682b4; border-radius: calc(12 * var(--cm)) calc(12 * var(--cm)) 0 0; pointer-events: none; }
.pie-pborder { border: calc(2 * var(--cm)) solid #8899aa; pointer-events: none; }
.pie-rng { -webkit-appearance: none; appearance: none; background: transparent; margin: 0; padding: 0; cursor: pointer; }
.pie-rng:focus { outline: 0; }
.pie-rng::-webkit-slider-runnable-track { height: calc(4 * var(--cy)); background: #ffffff; border: 1px solid #a8a8a8; border-radius: calc(2 * var(--cm)); }
.pie-rng::-webkit-slider-thumb { -webkit-appearance: none; width: calc(11 * var(--cx)); height: calc(20 * var(--cy)); margin-top: calc(-9 * var(--cy)); background: #0078d7; clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); border: 0; }
.pie-nshadow { background: #828282; border-radius: calc(12 * var(--cm)); }
.pie-note { background: #fffdf5; border-radius: calc(12 * var(--cm)); cursor: move; overflow: hidden; user-select: none; }
.pie-note::after { content: ""; position: absolute; inset: 0; border: calc(2 * var(--cm)) solid #8899aa; border-radius: calc(12 * var(--cm)); pointer-events: none; }
.pie-note.neg::after { border-color: #b22222; }
.pie-nacc { position: absolute; left: 0; right: 0; top: 0; height: calc(6 * var(--cy)); background: #4682b4; }
.pie-nbody { padding: calc(16 * var(--cy)) calc(8 * var(--cx)) calc(6 * var(--cy)); }
.pie-nline { direction: rtl; text-align: right; color: #0033cc; font: bold calc(12 * var(--cm)) / calc(18 * var(--cy)) "Segoe UI", Arial, sans-serif; white-space: nowrap; margin-bottom: calc(2 * var(--cy)); }
.pie-nline.neg { color: #b22222; }
.pie-nline b { display: inline-block; width: calc(10 * var(--cm)); height: calc(10 * var(--cm)); background: #b22222; margin-left: calc(6 * var(--cm)); }

/* ---------- כרטיסיית הייצוא (mf_export_dialog.js) ---------- */
.xd-back { position: absolute; inset: 0; z-index: 40; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; direction: rtl; }
.xd-back[hidden] { display: none; }
.xd-card { width: calc(430 * var(--cx)); background: #0b2a7a; border: calc(3 * var(--cm)) solid #f5c400; border-radius: calc(18 * var(--cm)); padding: calc(18 * var(--cy)) calc(24 * var(--cx)); color: #fff; font-family: "Segoe UI", Arial, sans-serif; box-shadow: 0 calc(6 * var(--cm)) calc(24 * var(--cm)) rgba(0, 0, 0, .6); }
.xd-title { font: bold calc(24 * var(--cm)) / 1.2 "Segoe UI", Arial, sans-serif; text-align: center; margin-bottom: calc(14 * var(--cy)); color: #ffd700; }
.xd-row { display: flex; align-items: center; gap: calc(12 * var(--cx)); margin-bottom: calc(12 * var(--cy)); }
.xd-lbl { width: calc(90 * var(--cx)); font: bold calc(15 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; flex: none; }
.xd-sel { flex: 1; height: calc(28 * var(--cy)); font: calc(15 * var(--cm)) "Segoe UI", Arial, sans-serif; background: #fff; color: #000; border: 1px solid #7a7a7a; }
.xd-fmt { display: flex; gap: calc(22 * var(--cx)); }
.xd-rad { display: flex; align-items: center; gap: calc(6 * var(--cx)); font: calc(15 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; cursor: pointer; }
.xd-cardsbox { display: none; margin-bottom: calc(12 * var(--cy)); }
.xd-cardsmode .xd-cardsbox { display: block; }
.xd-cardsmode .xd-rng { display: none; }
.xd-cardstitle { font: bold calc(15 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; margin-bottom: calc(8 * var(--cy)); }
.xd-cards { max-height: calc(220 * var(--cy)); overflow: auto; background: #fff; color: #000; border: 1px solid #7a7a7a; padding: calc(6 * var(--cy)) calc(8 * var(--cx)); }
.xd-chk { display: flex; align-items: center; gap: calc(8 * var(--cx)); font: calc(14 * var(--cm)) / 1.3 "Segoe UI", Arial, sans-serif; padding: calc(3 * var(--cy)) 0; cursor: pointer; }
.xd-msg { min-height: calc(20 * var(--cy)); color: #ff8080; font: bold calc(13 * var(--cm)) / 1.3 "Segoe UI", Arial, sans-serif; margin-bottom: calc(6 * var(--cy)); }
.xd-btns { display: flex; gap: calc(12 * var(--cx)); justify-content: center; }
.xd-btn { min-width: calc(110 * var(--cx)); height: calc(34 * var(--cy)); background: #0000c0; color: #fff; border: 2px solid #f5c400; font: bold calc(15 * var(--cm)) "Segoe UI", Arial, sans-serif; cursor: pointer; border-radius: calc(4 * var(--cm)); }
.xd-btn:disabled { opacity: .5; cursor: default; }
.xd-cancel { background: #000; }
.xd-dd { position: relative; flex: 1; }
.xd-ddbtn { width: 100%; height: calc(28 * var(--cy)); background: #fff; color: #000; border: 1px solid #7a7a7a; font: calc(15 * var(--cm)) "Segoe UI", Arial, sans-serif; text-align: right; padding: 0 calc(8 * var(--cx)); cursor: pointer; position: relative; }
.xd-ddbtn::after { content: "\25BE"; position: absolute; left: calc(8 * var(--cx)); top: 50%; transform: translateY(-50%); font-size: calc(11 * var(--cm)); }
.xd-ddlist { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; max-height: calc(230 * var(--cy)); overflow: auto; background: #fff; color: #000; border: 1px solid #7a7a7a; box-shadow: 0 calc(4 * var(--cm)) calc(12 * var(--cm)) rgba(0, 0, 0, .5); }
.xd-ddlist[hidden] { display: none; }
.xd-ddh, .xd-ddr { display: flex; justify-content: space-between; padding: calc(4 * var(--cy)) calc(10 * var(--cx)); font: calc(14 * var(--cm)) / 1.2 "Segoe UI", Arial, sans-serif; }
.xd-ddh { position: sticky; top: 0; background: #0000c0; color: #fff; font-weight: bold; }
.xd-ddr { cursor: pointer; }
.xd-ddr:hover { background: #dbe8f8; }
.xd-ddr.sel { background: #b8d4f5; font-weight: bold; }
.xd-ddn { direction: ltr; min-width: calc(90 * var(--cx)); text-align: left; }
.xd-ddh span:last-child { min-width: calc(90 * var(--cx)); text-align: left; }
.xd-accbox { display: none; margin-bottom: calc(12 * var(--cy)); align-items: center; gap: calc(12 * var(--cx)); }
.xd-hasacc .xd-accbox { display: flex; }
.xd-acclist { flex: 1; display: flex; flex-wrap: wrap; gap: calc(4 * var(--cy)) calc(16 * var(--cx)); }
.xd-acclist .xd-chk { padding: 0; }
/* כפתור "עדכן" בדף החודשי מושבת כשאין חודש מסומן (mf_month_ui.js: Sync_Update_Button) */
.bbtn.pure:disabled { opacity: .45; cursor: default; }
/* עמודה נגללת שאינה חודש (סיווג בפירוט כרטיס, עמודות המידע בדף העתידי): גם היא נקודת הצמדה, אחרת הגלילה קופצת ממנה לחודש הקרוב והיא לא נראית */
.tbl .c.h.snap { scroll-snap-align: start; }
/* [12.10.2026] דף שנתי: שם סיווג שפותח פירוט בלחיצה - כל התא כפתור כחול תלת-ממדי בצבעי כפתורי האפליקציה (mf_year.js: mainRows) */
.year-cat-btn { display: flex; align-items: center; justify-content: center; align-self: stretch; box-sizing: border-box; width: calc(100% + 8 * var(--cm)); margin: 0 calc(-4 * var(--cm)); padding: 0 calc(6 * var(--cm)); overflow: hidden; white-space: nowrap; background: linear-gradient(to bottom, #6f7dff 0%, #2b2bf0 45%, #0000c0 55%, #00008a 100%); border-style: solid; border-width: 2px 2px 3px 2px; border-color: #9fa8ff #00006a #000050 #9fa8ff; border-radius: calc(4 * var(--cm)); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 2px 2px rgba(0,0,0,.35); color: #fff; font-weight: bold; text-shadow: 0 -1px 0 rgba(0,0,0,.6); cursor: pointer; }
.year-cat-btn:hover { background: linear-gradient(to bottom, #8c97ff 0%, #4545ff 45%, #1010d8 55%, #0000a0 100%); }
.year-cat-btn:active { background: linear-gradient(to bottom, #00008a 0%, #0000c0 50%, #2b2bf0 100%); border-color: #000050 #9fa8ff #9fa8ff #00006a; box-shadow: inset 0 2px 3px rgba(0,0,0,.5); }
/* [12.10.2026] דף שנתי: כל המספרים מודגשים בכחול כהה (התא הנבחר נשאר לבן - צבע בשורת הסגנון של התא גובר) */
#year-grid .c.numr:not(.h), #year-detail .c.numr:not(.h) { color: #00008b; font-weight: bold; }
/* [12.10.2026] דף שנתי, טבלה ראשית: כל הכיתוב בעמודת השמות מודגש (לא בטבלת הפירוט) */
#year-grid .c[data-c="1"]:not(.h) { font-weight: bold; }
/* [12.10.2026] דף שנתי, טבלה ראשית: כל הכותרות מודגשות */
#year-grid .c.h { font-weight: bold; }
/* [12.10.2026] כל הכפתורים באפליקציה (חוץ מלוח הבקרה, שם הכפתורים הם .btn ולא נוגעים): מראה תלת-ממדי, כל כפתור בצבע שלו.
   שכבת אור/צל שקופה מעל צבע הרקע הקיים (background-image בלבד), כך שגם צבעי מצב (אדום בעריכה וכו') נשמרים.
   :not(#mf3d) רק מעלה את העדיפות מעל כללי הצבע של כל סוג כפתור (.bbtn.pure וכו') - אין אלמנט כזה */
.bbtn:not(#mf3d), .mf-dlg-btn:not(#mf3d), .xd-btn:not(#mf3d), .au-btn:not(#mf3d) { background-image: linear-gradient(to bottom, rgba(255,255,255,.42) 0%, rgba(255,255,255,.12) 45%, rgba(0,0,0,.06) 55%, rgba(0,0,0,.30) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.35), 0 2px 3px rgba(0,0,0,.35); text-shadow: 0 -1px 0 rgba(0,0,0,.35); }
.bbtn:not(#mf3d) { border-radius: calc(4 * var(--cm)); }
.bbtn:not(#mf3d):hover:not(:disabled), .mf-dlg-btn:not(#mf3d):hover, .xd-btn:not(#mf3d):hover:not(:disabled), .au-btn:not(#mf3d):hover:not(:disabled) { background-image: linear-gradient(to bottom, rgba(255,255,255,.55) 0%, rgba(255,255,255,.22) 45%, rgba(255,255,255,.05) 55%, rgba(0,0,0,.22) 100%); }
.bbtn:not(#mf3d):active:not(:disabled), .mf-dlg-btn:not(#mf3d):active, .xd-btn:not(#mf3d):active:not(:disabled), .au-btn:not(#mf3d):active:not(:disabled) { background-image: linear-gradient(to bottom, rgba(0,0,0,.30) 0%, rgba(0,0,0,.08) 50%, rgba(255,255,255,.15) 100%); box-shadow: inset 0 2px 3px rgba(0,0,0,.5); }
/* [16.10.2026] דף שנתי: הכפתורים באפור במקום כחול, אותו מראה תלת-ממדי (ארבעת הכפתורים למעלה וכפתורי שמות הסיווגים) */
#page-year .bbtn { background-color: #6e6e6e; }
#page-year .bbtn:hover { background-color: #7c7c7c; }
#page-year .year-cat-btn { background: linear-gradient(to bottom, #b4b4b4 0%, #7a7a7a 45%, #636363 55%, #474747 100%); border-color: #d0d0d0 #383838 #2a2a2a #d0d0d0; }
#page-year .year-cat-btn:hover { background: linear-gradient(to bottom, #c4c4c4 0%, #8a8a8a 45%, #727272 55%, #555 100%); }
/* [16.10.2026] דף שנתי: הטקסט בכפתורי הסיווגים לפי כיוון השפה - בעברית ובערבית לימין, בשאר השפות לשמאל (הטבלה עצמה תמיד rtl, ולכן flex-start = ימין) */
#page-year .year-cat-btn { justify-content: flex-start; }
html:not([lang="he"]):not([lang="ar"]) #page-year .year-cat-btn { justify-content: flex-end; }
/* [16.10.2026] דף שנתי: קווי רשת בולטים יותר בטבלאות (במקום אפור בהיר #d0d0d0) */
#page-year .tbl .c { border-color: #808080; }
/* [16.10.2026] דף שנתי: פונטים ומספרים גדולים יותר בטבלאות (16 במקום 12). עמודת חודש ~97 ושורה 25 - מספר עד 99,999.00 נכנס בנוחות */
#page-year .tbl { font-size: calc(16 * var(--cm)); }
/* [16.10.2026] דף שנתי: סימן המינוס משמאל למספר (-1,000.00), ולכן התא ltr. המספרים צמודים לפי כיוון השפה - בעברית ובערבית לימין (ב-ltr זה flex-end), בשאר השפות לשמאל */
#page-year .tbl .c.numr:not(.h) { direction: ltr; justify-content: flex-end; }
html:not([lang="he"]):not([lang="ar"]) #page-year .tbl .c.numr:not(.h) { justify-content: flex-start; }
/* [16.10.2026] דף שנתי: הרשימה הנפתחת "טיפול" במקום ארבעת הכפתורים - אותו אפור תלת-ממדי כמו הכפתורים, חץ ▾ משמאל */
.year-act { box-sizing: border-box; padding: 0 calc(5 * var(--cx)) 0 calc(14 * var(--cx)); cursor: pointer; direction: rtl; text-align: right; white-space: nowrap; overflow: hidden;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0h12L6 8z' fill='%23fff'/%3E%3C/svg%3E") no-repeat left calc(4 * var(--cx)) center / calc(7 * var(--cm)) auto,
                        linear-gradient(to bottom, #b4b4b4 0%, #7a7a7a 45%, #636363 55%, #474747 100%);
            border: 2px solid; border-color: #d0d0d0 #383838 #2a2a2a #d0d0d0; border-radius: calc(4 * var(--cm)); box-shadow: 0 2px 3px rgba(0,0,0,.35);
            color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.5); font: bold calc(13 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; }
.year-act:hover { filter: brightness(1.1); }
.year-act:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
/* הרשימה שנפתחת: רחבה מהכפתור, כתב גדול וברור, שחור על לבן */
.year-act-list { z-index: 20; display: flex; flex-direction: column; background: #fff; border: 1px solid #555; box-shadow: 0 calc(3 * var(--cm)) calc(8 * var(--cm)) rgba(0,0,0,.4); direction: rtl; }
.year-act-list[hidden] { display: none; }
/* כותרת "נא לבחור" וקווי רשת בין השורות, בלי שטח לבן מיותר */
.year-act-head { padding: calc(4 * var(--cy)) calc(8 * var(--cx)); background: #474747; color: #fff; text-align: right; white-space: nowrap; font: bold calc(14 * var(--cm)) / 1.2 "Segoe UI", Arial, sans-serif; }
.year-act-item { padding: calc(4 * var(--cy)) calc(8 * var(--cx)); border: 0; border-top: 1px solid #808080; background: transparent; color: #000; text-align: right; white-space: nowrap; cursor: pointer;
                 font: bold calc(15 * var(--cm)) / 1.2 "Segoe UI", Arial, sans-serif; }
.year-act-item:hover, .year-act-item:focus-visible { background: #e6e6e6; outline: 0; }
/* [16.10.2026] "מה כולל": משבצת סימון לפני הטקסט (✓ כשכלול), והכפתורים הישנים "כולל עתידי"/"כולל כרטיסי אשראי" מוסתרים */
.year-act-mark { display: inline-flex; align-items: center; justify-content: center; width: calc(15 * var(--cm)); height: calc(15 * var(--cm)); margin-left: calc(6 * var(--cx));
                 vertical-align: middle; border: 1px solid #555; background: #fff; color: #000; font-style: normal; font-size: calc(13 * var(--cm)); line-height: 1; }
.rbx[hidden] { display: none; }
#page-year .year-cat-btn:active { background: linear-gradient(to bottom, #474747 0%, #636363 50%, #7a7a7a 100%); border-color: #2a2a2a #d0d0d0 #d0d0d0 #383838; }
/* [16.10.2026] דף חודשי - אותם צבעים כמו בדף השנתי: כותרות טבלה שחורות עם טקסט לבן, כפתור "עדכן" אפור תלת-ממדי,
   פס בחירת החודשים ורשימת השנה באפור, תיבת התאריך לבן על שחור. צבעי השורות - js/mf_month_ui.js (mRow) */
#page-month .tbl .c.h { background: #000; color: #fff; font-weight: bold; border-color: #555; }
#page-month .bbtn { background-color: #6e6e6e; }
#page-month .bbtn:hover:not(:disabled) { background-color: #7c7c7c; }
#page-month .band { background: #6e6e6e; }
#page-month .m-ysel { background: #6e6e6e; border-color: #b0b0b0; }
#page-month .datebox { background: #000; color: #fff; }
/* [16.10.2026] דף סיווגים: "עריכה" ו"עידכון" - כפתורים תלת-ממדיים אפורים כמו בדף השנתי והחודשי. במצב עריכה - אדום (מצב, לא קישוט).
   מסגרת "שינויי הסיווג" סביבם: קו כהה, הכיתוב על הקו (רקע הכיתוב = רקע הדף) */
#page-cat .bbtn { background-color: #6e6e6e; border-color: #444; color: #fff; }
#page-cat .bbtn:hover:not(:disabled) { background-color: #7c7c7c; }
#page-cat .bbtn.editing { background-color: #c00000; }
.pg-group::before { content: ""; position: absolute; left: 0; right: 0; top: calc(8 * var(--cy)); bottom: 0; border: 1px solid #333; border-radius: calc(4 * var(--cm)); pointer-events: none; }
.pg-legend { position: absolute; right: calc(10 * var(--cx)); top: 0; padding: 0 calc(4 * var(--cm)); background: #cfe2f3; color: #000; font: bold calc(13 * var(--cm)) / calc(16 * var(--cy)) "Segoe UI", Arial, sans-serif; white-space: nowrap; direction: rtl; }
#page-cat .bbtn { font-size: calc(13 * var(--cm)); }   /* [16.10.2026] כפתורים קטנים, כמו "כלים" */
/* [16.10.2026] דף סיווגים, מצב עריכה: כל תא סיווג (הרשימה הנפתחת) נראה ככפתור תלת-ממדי אפור, כמו כפתורי הסיווגים בדף השנתי.
   שורת הכנסה (נעולה - disabled) - אותו כפתור, דהוי */
#page-cat .cat-cb select { appearance: none; -webkit-appearance: none; box-sizing: border-box; margin: calc(1 * var(--cy)) 0; height: calc(100% - 2 * var(--cy)); padding: 0 calc(6 * var(--cx)) 0 calc(16 * var(--cx));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0h12L6 8z' fill='%23fff'/%3E%3C/svg%3E") no-repeat left calc(5 * var(--cx)) center / calc(8 * var(--cm)) auto,
              linear-gradient(to bottom, #b4b4b4 0%, #7a7a7a 45%, #636363 55%, #474747 100%);
  border: 2px solid; border-color: #d0d0d0 #383838 #2a2a2a #d0d0d0; border-radius: calc(4 * var(--cm)); box-shadow: 0 2px 2px rgba(0,0,0,.35);
  color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.6); font-weight: bold; cursor: pointer; }
#page-cat .cat-cb select:hover:not(:disabled) { filter: brightness(1.1); }
#page-cat .cat-cb select:disabled { opacity: .55; cursor: default; }
#page-cat .cat-cb select option { background: #fff; color: #000; text-shadow: none; font-weight: normal; }
/* [16.10.2026] קווי רשת בולטים בכל הדפים (כמו בדף השנתי): אפור בינוני במקום אפור בהיר/תכלת. טבלאות עם מסגרת שחורה (dk) - כבר כהות, לא משתנות */
.pages .tbl:not(.dk) .c { border-color: #808080; }
#page-cat .tbl .c.h { font-weight: bold; }   /* [16.10.2026] כל כותרות הטבלה מודגשות, כמו בדף השנתי */
/* [16.10.2026] דף סיווגים: גופן הטבלה 16 במקום 12, כמו בדף השנתי */
#page-cat .tbl { font-size: calc(16 * var(--cm)); }
/* [16.10.2026] דף עתידי - כמו בדף השנתי: כותרות לבנות מודגשות, כותרות החודשים לבן על שחור, גופן 16 בטבלה, כפתורים אפורים תלת-ממדיים
   (היו: כותרות כחולות #4472c4, כפתורים בירוק-כהה teal). שורות ומספרים - js/mf_future_ui.js */
#page-future #f-table .c.h { background: #fff; color: #000; font-weight: bold; }
#page-future #f-table .c.h.gh { background: #000; color: #fff; }
#page-future #f-table .c.h.rh { background: #f0f0f0; }
#page-future #f-table { font-size: calc(16 * var(--cm)); }
#page-future .bbtn.teal { background-color: #6e6e6e; border-color: #444; }
#page-future .bbtn.teal:hover:not(:disabled) { background-color: #7c7c7c; }
/* [16.10.2026] דף עתידי, עמודות החודשים - כמו בדף השנתי: המינוס משמאל למספר (ltr), צמוד לימין בעברית ובערבית ולשמאל בשאר השפות */
#page-future #f-table .c.mo:not(.h) { direction: ltr; justify-content: flex-end; }
html:not([lang="he"]):not([lang="ar"]) #page-future #f-table .c.mo:not(.h) { justify-content: flex-start; }
/* [16.10.2026] דף עתידי: כפתורי התיאור בטבלה - אפור תלת-ממדי כמו בדף השנתי; "עידכון" קטן ואפור;
   תיבת ההסבר של הכרטיסייה (f-label) - כרטיסייה משרדית (נייר בהיר, פס כחול-אפור למעלה, צל) במקום תמונת הנוף, כיתוב בכחול כהה במקום אדום */
#page-future .year-cat-btn { background: linear-gradient(to bottom, #b4b4b4 0%, #7a7a7a 45%, #636363 55%, #474747 100%); border-color: #d0d0d0 #383838 #2a2a2a #d0d0d0; justify-content: flex-start; }
html:not([lang="he"]):not([lang="ar"]) #page-future .year-cat-btn { justify-content: flex-end; }
#page-future .year-cat-btn:hover { background: linear-gradient(to bottom, #c4c4c4 0%, #8a8a8a 45%, #727272 55%, #555 100%); }
#page-future .year-cat-btn:active { background: linear-gradient(to bottom, #474747 0%, #636363 50%, #7a7a7a 100%); border-color: #2a2a2a #d0d0d0 #d0d0d0 #383838; }
#page-future #f-refresh { background-color: #6e6e6e; border-color: #444; font-size: calc(13 * var(--cm)); }
#page-future #f-refresh:hover { background-color: #7c7c7c; }
#page-future #f-label { background: linear-gradient(to bottom, #fdfcf7, #f1eee2); border: 1px solid #b8b29c; border-top: calc(10 * var(--cy)) solid #4a5868; border-radius: calc(6 * var(--cm));
  box-shadow: 0 calc(3 * var(--cm)) calc(8 * var(--cm)) rgba(0,0,0,.28); color: #1f3a5f; text-shadow: none; }
/* [16.10.2026] תיבת הכיתוב של הכרטיסייה (f-label) - אפור תלת-ממדי כמו הכפתורים (בחירת אביגדור, אפשרות ג), כיתוב לבן */
#page-future #f-label { background: linear-gradient(to bottom, #a8a8a8 0%, #757575 45%, #626262 55%, #444 100%);
  border: 2px solid; border-color: #d0d0d0 #383838 #2a2a2a #d0d0d0; border-radius: calc(10 * var(--cm));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 calc(4 * var(--cm)) calc(8 * var(--cm)) rgba(0,0,0,.4);
  color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.6), 0 2px 3px rgba(0,0,0,.4); padding: 0 calc(10 * var(--cx)); }
/* [16.10.2026] התיבה: מסגרת זהב, "כרטיסיית פעולה" ככותרת למעלה (קו זהב מתחתיה), ההנחיה באמצע השטח שנשאר */
#page-future #f-label { border: calc(3 * var(--cm)) solid #d4af37; flex-direction: column; justify-content: flex-start; padding: calc(14 * var(--cy)) calc(12 * var(--cx)); }
#page-future #f-label .pic-label-wrap[hidden] { display: none; }
#page-future .f-label-head { width: 100%; padding-bottom: calc(8 * var(--cy)); border-bottom: 1px solid rgba(212,175,55,.8); color: #ffd700; font-size: calc(34 * var(--cm)); white-space: normal; }
#page-future .f-label-body { flex: 1; display: flex; align-items: center; justify-content: center; white-space: normal; font-size: calc(28 * var(--cm)); }
#page-future .f-label-body { flex-direction: column; text-align: center; text-wrap: balance; }
/* [16.10.2026] דף כרטיסי אשראי: התיבה עם תמונת הנוף והמחרוזת "לפניכם רשימת כרטיסי האשראי..." נמחקה מהדף - המחרוזת עברה לסימן השאלה (shell.js) */
#cc-welcome { display: none !important; }
/* [16.10.2026] דף כרטיסי אשראי: גופן 16 בשתי הטבלאות (כמו בדף השנתי), שמות הכרטיסים - כפתורים תלת-ממדיים אפורים */
#page-credit .tbl { font-size: calc(16 * var(--cm)); }
#page-credit .tbl .c.h { font-weight: bold; }
#page-credit .year-cat-btn { background: linear-gradient(to bottom, #b4b4b4 0%, #7a7a7a 45%, #636363 55%, #474747 100%); border-color: #d0d0d0 #383838 #2a2a2a #d0d0d0; justify-content: flex-start; }
html:not([lang="he"]):not([lang="ar"]) #page-credit .year-cat-btn { justify-content: flex-end; }
#page-credit .year-cat-btn:hover { background: linear-gradient(to bottom, #c4c4c4 0%, #8a8a8a 45%, #727272 55%, #555 100%); }
#page-credit .year-cat-btn:active { background: linear-gradient(to bottom, #474747 0%, #636363 50%, #7a7a7a 100%); border-color: #2a2a2a #d0d0d0 #d0d0d0 #383838; }
/* [16.10.2026] דף מסד הנתונים - הטבלה כמו בדף השנתי: כותרות לבן מודגש על שחור, גופן 16, עמודת הסכום - המינוס משמאל, צמוד לימין בעברית ובערבית ולשמאל בשאר השפות */
#page-db #db-table .c.h { background: #000; color: #fff; font-weight: bold; border-color: #555; }
#page-db #db-table { font-size: calc(16 * var(--cm)); }
#page-db #db-table .c[data-c="5"]:not(.h) { direction: ltr; justify-content: flex-end; }
html:not([lang="he"]):not([lang="ar"]) #page-db #db-table .c[data-c="5"]:not(.h) { justify-content: flex-start; }
/* [16.10.2026] דף מסד הנתונים: הכפתור "עידכון" - אפור תלת-ממדי כמו בשאר הדפים (היה כחול) */
#page-db .bbtn { background-color: #6e6e6e; border-color: #444; }
#page-db .bbtn:hover:not(:disabled) { background-color: #7c7c7c; }
#page-db .bbtn { font-size: calc(13 * var(--cm)); }   /* [16.10.2026] כפתור קטן, כמו בשאר הדפים */
/* [24.10.2026] חיפוש בדף המסד: "סינון" על רקע שחור (קריא על כל רקע) */
#page-db .db-filter { background: #000; color: #fff; padding: 0 calc(4 * var(--cm)); }
#page-db .db-filter span { direction: rtl; }
/* [16.10.2026] דף הגרפים: הרשימות הנפתחות (סיווג, פריט, תכנון עתידי, כרטיסי אשראי, ושנת עוגת התקציב) - אפור במקום כחול */
#page-graph .combo { background: #6e6e6e; border-color: #555; color: #fff; }
#page-graph .pie-ysel { background: #6e6e6e; border-color: #b0b0b0; color: #fff; }
/* [16.10.2026] פריטים קבועים בדף השנתי: משבצת סימון בעמודת כותרות השורות של טבלת הפירוט, ו-✓ ומספר ליד הסיווג בטבלה הראשית.
   ברשימה "מה כולל" - שורות המשנה של "כולל תכנון עתידי" מוזחות */
.fx-cb { display: inline-flex; align-items: center; justify-content: center; width: calc(16 * var(--cm)); height: calc(16 * var(--cm)); box-sizing: border-box;
  border: 1px solid #555; background: #fff; color: #006400; font: bold calc(13 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; cursor: pointer; border-radius: calc(2 * var(--cm)); }
.fx-cb.on { background: #e8f5e8; border-color: #006400; }
/* [15.11.2026] ליד המשבצת: כל כמה חודשים הפריט משוכפל; הקשה - שדה עריכה */
.fx-wrap { display: inline-flex; align-items: center; gap: calc(3 * var(--cm)); }
.fx-per { color: #006400; font: bold calc(12 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; cursor: pointer; text-decoration: underline dotted; min-width: calc(10 * var(--cm)); text-align: center; }
.fx-per-in { width: calc(26 * var(--cm)); height: calc(16 * var(--cm)); box-sizing: border-box; padding: 0 calc(1 * var(--cm)); font: calc(12 * var(--cm)) "Segoe UI", Arial, sans-serif; text-align: center; -moz-appearance: textfield; }
.fx-per-in::-webkit-inner-spin-button, .fx-per-in::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#year-grid .c.rh { color: #006400; font-weight: bold; font-size: calc(12 * var(--cm)); justify-content: center; padding: 0; }
.year-act-item.year-act-sub { padding-right: calc(26 * var(--cx)); font-size: calc(13.5 * var(--cm)); }
.year-act-item.year-act-sep2 { border-top: 4px double #808080; }   /* [26.10.2026] קו מפריד כפול ("איפוס כולל" מעל שאר האיפוסים) */
#year-grid .c.rh { direction: ltr; }   /* "✓1" ולא "1✓" */
.year-act-item.year-act-dis { color: #9a9a9a; cursor: default; }   /* [17.10.2026] שורה לא זמינה ברשימה (למשל "רק עד סיום התכנון העתידי" בלי תכנון) */
.year-act-item.year-act-dis:hover { background: transparent; }
.year-act-item.year-act-dis .year-act-mark { border-color: #bbb; color: #9a9a9a; }
