/* חלון "בשמוש המערכת" (M_Finance_Debug_Form). מיקומים וגדלים מ-M_Finance_Debug_Form.Designer.vb, ClientSize 1459 על 738, רקע ActiveCaption.
   אותן יחידות וכיתות משותפות כמו שאר הדפים (gate.css). */
.debug { z-index: 20; background-color: #e3e3e6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='saturate' values='0' result='grey'/%3E%3CfeComponentTransfer in='grey'%3E%3CfeFuncR type='linear' slope='2.5' intercept='-0.95'/%3E%3CfeFuncG type='linear' slope='2.7' intercept='-0.9'/%3E%3CfeFuncB type='linear' slope='3.4' intercept='-0.78'/%3E%3CfeFuncA type='linear' slope='0' intercept='1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E"); background-size: 180px 180px; overflow: hidden; font-family: "Segoe UI", Arial, sans-serif; color: #000; }
.debug[hidden] { display: none; }

/* כפתור כחול (BackColor Blue, טקסט לבן מודגש, נגלל בלחיצה: מהבהב ירוק לרגע) */
.dbtn { padding: 0; border: 1px solid #00007a; background: #0000ff; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; text-align: center; white-space: normal;
        font: bold calc(11 * var(--cm)) / 1.15 "Segoe UI", Arial, sans-serif; }
.dbtn.big { font-size: calc(16 * var(--cm)); }
.dbtn.sm12 { font-size: calc(12 * var(--cm)); }
.dbtn.flash { background: #90ee90; color: #000; }
.dbtn.green { background: #008000; }
.dbtn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

/* GroupBox: מסגרת דקה, וכותרת בפינה השמאלית העליונה */
.gbox { border: 0; }
.gbox::before { content: ""; position: absolute; left: 0; right: 0; top: calc(7 * var(--cy)); bottom: 0; border: 1px solid #a0a8c0; pointer-events: none; }
.gbox > .gcap { position: absolute; left: calc(6 * var(--cx)); top: 0; padding: 0 calc(1 * var(--cm)); background: #e3e3e6; font: normal calc(12 * var(--cm)) / calc(14 * var(--cy)) "Segoe UI", Arial, sans-serif; white-space: nowrap; }

/* רשימות בחירה של שרשרת ה-AI */
.dsel { background: #fff; border: 1px solid #7a7a7a; padding: 0 calc(2 * var(--cm)); font: normal calc(12 * var(--cm)) "Segoe UI", Arial, sans-serif; color: #000; }
.dnum { font: bold calc(16 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; color: #000; }

/* מתג AI ON/OFF */
.dai { color: #fff; font: bold calc(15 * var(--cm)) / calc(22 * var(--cy)) "Segoe UI", Arial, sans-serif; padding-left: calc(20 * var(--cm)); background: #696969; cursor: pointer; user-select: none; }
.dai.on { background: #008000; }
.ddot { background: #d3d3d3; }
.ddot.on { background: #f00; }
.dbypass { background: #000; color: #fff; display: flex; align-items: center; gap: calc(6 * var(--cm)); padding: 0 calc(4 * var(--cm)); font: bold calc(13 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; direction: rtl; white-space: nowrap; cursor: default; }
.dbypass i { flex: none; display: block; width: calc(13 * var(--cm)); height: calc(13 * var(--cm)); background: #fff; border: 1px solid #333; }

.dlogo { font: italic bold calc(32 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; color: #000; white-space: nowrap; }
.dtitle { color: #000080; font: bold calc(16 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; direction: rtl; white-space: nowrap; }

/* תיבות טקסט לקריאה בלבד: זכרון מיפוי וזכרון סיווג (Consolas 9 מודגש) */
.dmem { background: #fff; border: 1px solid #7a7a7a; resize: none; overflow: auto; white-space: pre; padding: calc(3 * var(--cm)); color: #000;
        font: bold calc(12 * var(--cm)) / 1.25 Consolas, "Courier New", monospace; box-sizing: border-box; }
.dmem.rtl { direction: rtl; text-align: right; }

/* טבלת לוג קריאות ה-AI: תאים שגלישת שורה מותרת בהם (סוג הפניה, שגיאה) */
.dlog .c { white-space: normal; text-align: center; }
.dlog .c.h { white-space: normal; line-height: 1.1; }

/* התפריט הפנימי: קבוצה מוצגת רק כשהיא הנבחרת (data-active בחלון), ובפתיחה מוצג רק התפריט */
.debug:not([data-active="users"]) [data-view="users"],
.debug:not([data-active="ai"]) [data-view="ai"],
.debug:not([data-active="mem"]) [data-view="mem"],
.debug:not([data-active="lab"]) [data-view="lab"] { display: none !important; }

/* סרגל ימני בסגנון KeyClick */
.dside { background: #555; border-radius: calc(10 * var(--cm)) 0 0 calc(10 * var(--cm)); box-shadow: -2px 0 6px rgba(0, 0, 0, .3); display: flex; flex-direction: column; overflow: hidden; }
.dside-head { background: #444; text-align: center; padding: calc(8 * var(--cy)) calc(4 * var(--cx)) calc(6 * var(--cy)); border-bottom: 2px solid #333; }
.dside-logo { font: italic bold calc(24 * var(--cm)) / 1.1 Georgia, "Segoe UI", serif; color: #ffd700; text-shadow: 1px 1px 3px #000; }
.dside-sys { font: bold calc(12 * var(--cm)) / 1.2 "Segoe UI", Arial, sans-serif; color: #ffd700; letter-spacing: 1px; text-shadow: 1px 1px 2px #000; }
.dside-groups { display: flex; flex-direction: column; gap: calc(10 * var(--cy)); padding: calc(16 * var(--cy)) calc(8 * var(--cx)); }
.dside-grp { position: relative; border: 1px solid #cc9900; border-radius: calc(8 * var(--cm)); padding: calc(14 * var(--cy)) calc(4 * var(--cx)) calc(6 * var(--cy)); display: flex; flex-direction: column; gap: calc(4 * var(--cy)); }
.dside-title { position: absolute; top: calc(-10 * var(--cy)); left: 50%; transform: translateX(-50%); background: #555; padding: 0 calc(8 * var(--cx)); color: #e02020; font: bold calc(14 * var(--cm)) / 1.2 "Segoe UI", Arial, sans-serif; white-space: nowrap; }
.dside-btn { background: #003399; border: 0; border-radius: calc(6 * var(--cm)); color: #ffd700; min-height: calc(36 * var(--cy)); padding: calc(6 * var(--cy)) calc(4 * var(--cx)); cursor: pointer; font: bold calc(14 * var(--cm)) / 1.2 "Segoe UI", Arial, sans-serif; text-align: center; box-shadow: 0 calc(2 * var(--cm)) calc(4 * var(--cm)) rgba(0, 0, 0, .4); transition: background .12s; }
.dside-btn:hover { background: #0044cc; }
.dside-btn:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.dside-btn.sel { background: #ffd700; color: #003399; }

/* תגית הכותרת האדומה של הבחירה, והודעת "בחר פעולה" כשלא נבחר כלום */
.dpill { background: linear-gradient(180deg, #d3213a, #8e0f22); color: #fff; border-radius: 999px; box-shadow: 0 calc(6 * var(--cm)) calc(14 * var(--cm)) -8px rgba(0, 0, 0, .5); display: flex; align-items: center; justify-content: center; font: bold calc(14 * var(--cm)) / 1 "Segoe UI", Arial, sans-serif; direction: rtl; white-space: nowrap; }
.dpill:empty { display: none; }
.dprompt { color: #777; font: calc(18 * var(--cm)) / calc(40 * var(--cy)) "Segoe UI", Arial, sans-serif; text-align: center; direction: rtl; }
.debug[data-active] .dprompt { display: none; }

/* טבלאות המסד בסגנון KeyClick: כותרת כחולה על רקע #e8eaf6, שורות מפוספסות, מסגרת כחולה */
.dtitle.kct { color: #003399; font-size: calc(17 * var(--cm)); }
.tbl.kc { border: 2px solid #003399; border-radius: calc(3 * var(--cm)); }
.tbl.kc .c { border-color: #a0a8c0; }
.tbl.kc .c.h { background: #e8eaf6; color: #003399; font-weight: bold; }

/* כפתור בתוך טבלת המשתמשים וחלונית איפוס הסיסמה (סגנון KeyClick) */
.kc-btn { white-space: nowrap; background: #003399; border: 0; border-radius: calc(4 * var(--cm)); color: #ffd700; padding: calc(2 * var(--cy)) calc(8 * var(--cx)); font: bold calc(11 * var(--cm)) "Segoe UI", Arial, sans-serif; cursor: pointer; }
.kc-btn:hover { background: #0044cc; }
.kc-btn.cancel { background: #cc0000; color: #fff; }
.dreset { background: #fff; border: 2px solid #003399; border-radius: calc(6 * var(--cm)); box-shadow: 0 calc(8 * var(--cm)) calc(24 * var(--cm)) rgba(0, 0, 0, .45); padding: calc(14 * var(--cy)) calc(20 * var(--cx)); box-sizing: border-box; direction: rtl; display: flex; flex-direction: column; gap: calc(10 * var(--cy)); z-index: 5; }
.dreset[hidden] { display: none; }
.dreset-title { color: #003399; font: bold calc(17 * var(--cm)) "Segoe UI", Arial, sans-serif; }
.dreset-email { color: #003399; font: bold calc(13 * var(--cm)) "Segoe UI", Arial, sans-serif; }
.dreset-in { border: 1px solid #003399; border-radius: calc(4 * var(--cm)); padding: calc(5 * var(--cy)) calc(8 * var(--cx)); color: #d00; font: bold calc(15 * var(--cm)) Consolas, monospace; background: #fff; }
.dreset-row { display: flex; gap: calc(10 * var(--cx)); }
.dreset-row .kc-btn { padding: calc(5 * var(--cy)) calc(18 * var(--cx)); font-size: calc(12 * var(--cm)); }
.dreset-msg { min-height: calc(16 * var(--cy)); font: bold calc(12 * var(--cm)) "Segoe UI", Arial, sans-serif; }
.dreset-msg.ok { color: #006600; }
.dreset-msg.err { color: #cc0000; }
.debug:not([data-active="lib"]) [data-view="lib"],
.debug:not([data-active="fixed"]) [data-view="fixed"] { display: none !important; }   /* [16.10.2026] שני דפי הצפייה החדשים */
.dlib .c { white-space: normal; line-height: 1.25; justify-content: flex-start; padding: calc(3 * var(--cy)) calc(8 * var(--cx)); }
