/* לוח שנה — אויסשטעלונג אין pt ווי דער InDesign בלאט (819.2×493.2pt מיט bleed) */
.lx-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.lx-title { font-size: 18px; min-width: 130px; text-align: center; }
.lx-warn { background: #fff3cd; color: #7a5b00; padding: 6px 10px; border-radius: 8px; }
.lx-wrap { direction: ltr; overflow: auto; position: relative; }
.lx-sizer { position: relative; overflow: hidden; }
.lx-scale { transform-origin: top left; width: 819.213pt; }
.lx-page { position: relative; width: 819.213pt; height: 493.228pt; overflow: hidden; background: #f3d98a; color: #000; direction: rtl;
  font-family: 'EFT_Chakika', 'David', serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.lx-tmpl { position: absolute; inset: 0; width: 100%; height: 100%; }
.lx-head { position: absolute; left: 289.4pt; width: 241.8pt; top: 37pt; height: 20pt; display: flex; align-items: center; justify-content: center; gap: 6pt; color: #7c4c26; direction: rtl; }
.lx-mname { font-family: 'EFT_Atara', 'Guttman David', serif; font-size: 23pt; line-height: 1; }
.lx-mazal { font-family: 'EFT_Devash Heavy', 'EFT_Atara', serif; font-size: 9pt; }
.lx-greg { margin-inline-start: 10pt; font-family: 'Cambria', Georgia, serif; font-size: 11pt; }
.lx-band { position: absolute; left: 161.5pt; top: 70.6pt; width: 496.5pt; height: 12.6pt; background: #000; }
.lx-days div { position: absolute; top: 70.6pt; height: 12.6pt; display: flex; justify-content: space-between; align-items: baseline; line-height: 12.6pt; padding: 0 3pt; box-sizing: border-box; color: #fff; border-left: 1.2pt solid #fffde0; }
.lx-days b { font-family: 'EFT_Patient', 'David', serif; font-weight: 700; font-size: 10.4pt; }
.lx-days span { font-family: 'Cambria', Georgia, serif; font-weight: 700; font-size: 7.7pt; }
.lx-cell { position: absolute; box-sizing: border-box; background: #fffee3; border-left: 0.6pt solid #351f17; border-bottom: 1.2pt solid #351f17; overflow: hidden; cursor: pointer; }
.lx-print .lx-cell { cursor: default; }
.lx-cell.lx-shade { background: #fffaa6; }
.lx-cell:hover { outline: 1.5pt solid #c9a23f; outline-offset: -1.5pt; }
.lx-print .lx-cell:hover, .lx-empty:hover { outline: none; }
.lx-empty { cursor: default; }
.lx-g { position: absolute; left: 3pt; top: 2.5pt; font-family: 'Minion Pro', 'Cambria', Georgia, serif; font-size: 9pt; color: #3a7fc8; }
.lx-d { position: absolute; right: 3.5pt; top: 1.5pt; font-family: 'Guttman David', 'David', serif; font-weight: 700; font-size: 14.7pt; color: #97214c; line-height: 1.1; }
.lx-pm { font-size: 7.4pt; margin-inline-end: 2pt; vertical-align: 1pt; }
/* דער אינהאלט פליסט פון אויבן ביז אונטן — קיינער פאלט נישט אויף דעם אנדערן */
.lx-body { position: absolute; top: 18.5pt; bottom: 1.5pt; left: 2.5pt; right: 2.5pt; display: flex; flex-direction: column; gap: 1pt; direction: rtl; }
.lx-r1 { display: flex; align-items: flex-start; gap: 2pt; min-height: 0; }
.lx-hol { flex: 1 1 auto; min-width: 0; text-align: right; font-family: 'EFT_Chakika', 'David', serif; font-size: 6.9pt; color: #2f2421; line-height: 1.2; }
.lx-hol > div { overflow: hidden; }
.lx-hol .lx-ed { color: #97214c; }
.lx-parsha { flex: 0 1 auto; max-width: 62%; margin-top: -4.5pt; overflow: hidden; text-align: left; font-family: 'Livorna', 'Livorna', 'FontbitLivorna', serif; font-size: 10pt; color: #260066; line-height: 1.05; }
.lx-r2 { flex: 1 1 auto; min-height: 0; display: flex; align-items: flex-end; gap: 2pt; }
.lx-rc { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.5pt; }
.lx-t { flex: 0 0 auto; line-height: 1; text-align: left; }
.lx-tl { display: block; font-family: 'Sfarady', 'David', serif; font-size: 6pt; }
.lx-tv { display: block; font-family: 'Monotype Corsiva', 'Cambria', serif; font-size: 9.6pt; color: #7a0f0f; font-weight: bold; }
.lx-rebbe { display: flex; flex-direction: row-reverse; align-items: center; gap: 1pt; font-family: 'Livorna', 'FontbitLivorna', serif; font-size: 5.6pt; color: #3b2a1f; line-height: 1.1; text-align: right; white-space: nowrap; }
.lx-rebbe img { width: 10pt; }
.lx-rebbe b { font-family: 'Livorna', 'FontbitLivorna', serif; font-weight: 700; font-size: 8pt; }
.lx-chametz { font-family: 'Sfarady', serif; font-size: 5.6pt; line-height: 1.05; }
.lx-chametz b, .lx-fast b { font-family: 'Monotype Corsiva', 'Cambria', serif; color: #7a0f0f; font-size: 9pt; }
.lx-fast b { font-size: 9.6pt; }
.lx-bot { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.5pt; }
.lx-bot > *, .lx-rc > div { max-width: 100%; overflow: hidden; text-align: center; white-space: nowrap; }
.lx-omer { flex: 0 0 auto; text-align: center; font-family: 'SfaradyMedium', 'Sfarady', serif; font-size: 6.2pt; color: #2e8a1e; line-height: 0.98; }
.lx-note { font-family: 'EFT_Pnina', 'David', serif; font-size: 6.2pt; color: #7c4c26; }
.lx-note.lx-xs { font-size: 5.5pt; }
.lx-bahab { font-family: 'PFT_Frank', 'Frank Ruehl', serif; font-size: 6.2pt; color: #2f2421; }
.lx-small { font-family: 'SfaradyMedium', 'Sfarady', serif; font-size: 7.7pt; color: #7c4c26; }
.lx-small.lx-l { font-size: 8.8pt; }
.lx-avos { font-family: 'SfaradyMedium', 'Sfarady', serif; font-size: 7.7pt; color: #7c4c26; }
.lx-hil { font-family: 'PFT_Frank', 'Frank Ruehl', serif; font-size: 6.2pt; color: #2f2421; display: flex; align-items: flex-end; justify-content: center; gap: 2pt; }
.lx-hil img { width: 7pt; flex: 0 0 auto; }
.lx-hil .lx-f { flex: 0 1 auto; }
.lx-eruv { font-family: 'Livorna', 'FontbitLivorna', serif; font-weight: 700; font-size: 7pt; color: #d9001c; line-height: 1; }
.lx-dst { font-family: 'EFT_Pnina', serif; font-size: 6.5pt; color: #d9001c; line-height: 1.1; }
.lx-dst b { font-size: 8pt; } .lx-dst i { font-size: 4.4pt; font-style: normal; font-weight: 700; } .lx-dst span { font-family: 'SfaradyMedium', serif; }
.lx-fast { font-family: 'Sfarady', serif; font-size: 5.8pt; line-height: 1.05; }
.lx-banner { position: absolute; object-fit: cover; display: block; }
.lx-carry { position: absolute; width: 20pt; height: 12pt; border-top: none !important; border-radius: 0 0 3pt 3pt; border: 0.8pt solid #351f17; background: #fffee3; display: flex; align-items: center; justify-content: center; gap: 1pt;
  font-family: 'Guttman David', serif; font-weight: 700; font-size: 10pt; color: #97214c; direction: rtl; line-height: 1; }
.lx-carry span { font-family: 'David', serif; font-size: 12pt; }
.lx-zr, .lx-mr { position: absolute; left: 0; width: 100%; height: 10.69pt; }
.lx-mr { height: 11.79pt; }
/* די פארבן פון די שורות — מיר צייכענען זיי אליין, אז דער טעקסט זאל שטימען מיט דער שורה */
.lx-zd, .lx-zm, .lx-zf, .lx-md, .lx-mt { background: #fff87f; }
.lx-zn, .lx-zs, .lx-mn { background: #ffffff; }
.lx-alt .lx-zd, .lx-alt .lx-zm, .lx-alt .lx-zf, .lx-alt .lx-md, .lx-alt .lx-mt { background: #fae175; }
.lx-alt .lx-zn, .lx-alt .lx-zs, .lx-alt .lx-mn { background: #fae7e8; }
.lx-zr > span, .lx-mr > span { position: absolute; top: 0; height: 100%; display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.lx-zd { left: 131.5pt; width: 13.7pt; font-family: 'EFT_Patient', serif; font-weight: 700; font-size: 8.4pt; }
.lx-zn { left: 111.2pt; width: 20.1pt; } .lx-zm { left: 92.7pt; width: 18.5pt; } .lx-zs { left: 72.9pt; width: 19.8pt; }
.lx-zn, .lx-zm, .lx-zs { font-family: 'Monotype Corsiva', 'Cambria', serif; font-size: 8pt; }
.lx-zf { left: 47.1pt; width: 25.8pt; font-family: 'PFT_Vilna', serif; font-weight: 700; font-size: 8pt; gap: 1pt; direction: rtl; }
.lx-zf small { font-size: 4.8pt; }
.lx-md { left: 757.2pt; width: 12.8pt; font-family: 'EFT_Patient', serif; font-weight: 700; font-size: 8.4pt; }
.lx-mn { left: 734.2pt; width: 23pt; font-family: 'PFT_Vilna', serif; font-weight: 700; font-size: 8.8pt; }
.lx-mt { left: 674.6pt; width: 59.6pt; justify-content: flex-start !important; padding-right: 2pt; box-sizing: border-box; font-family: 'PFT_Vilna', serif; font-size: 7pt; overflow: visible; }
.lx-bc { position: absolute; top: 408.9pt; height: 26.2pt; display: flex; flex-direction: column; }
.lx-bc > span { height: 8.7pt; display: flex; align-items: center; justify-content: center; font-family: 'Monotype Corsiva', serif; font-size: 6.5pt; white-space: nowrap; }
.lx-bc .lx-bp { font-family: 'Livorna', 'Livorna', 'FontbitLivorna', serif; font-size: 6pt; }
.lx-dlg h4 { margin: 12px 0 4px; }
.lx-list { margin: 0; padding-inline-start: 18px; line-height: 1.8; }
.lx-add { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.lx-add input { flex: 1; min-width: 160px; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.lx-fonts { columns: 2; padding-inline-start: 18px; line-height: 1.7; }
#lx-print-area { display: none; }
@media print {
  body.printing-lx > *:not(#lx-print-area) { display: none !important; }
  body.printing-lx #lx-print-area { display: block; }
  body.printing-lx #lx-print-area .lx-page { page-break-after: always; break-after: page; }
  body.printing-lx { margin: 0; background: none; }
}

.lx-f { display: inline-block; white-space: nowrap; transform-origin: right center; }
.lx-mt .lx-f, .lx-hol .lx-f { transform-origin: right center; }
.lx-bot .lx-f, .lx-rc .lx-f { transform-origin: right center; }
.lx-parsha .lx-f { transform-origin: right center; }
.lx-bc .lx-f { transform-origin: right center; }

/* כותרות פון די זייטן און דער טאבעלע אונטן (פריער אינעם בילד — יעצט טעקסט, שארף) */
.lx-sh { position: absolute; display: flex; align-items: center; justify-content: center; gap: 1pt; color: #fff; font-family: 'EFT_Patient', 'David', serif; font-weight: 700; font-size: 6pt; white-space: nowrap; }
.lx-sh small { font-size: 4pt; }
.lx-sh.lx-dark { color: #000; font-family: 'Livorna', 'FontbitLivorna', serif; font-weight: 400; }
/* די ליניעס ארום דער גרויסער טאבעלע */
.lx-frame { position: absolute; left: 161.2pt; top: 83.7pt; width: 496.7pt; height: 365.9pt; border: 1.2pt solid #351f17; box-sizing: border-box; pointer-events: none; }
.lx-vl { position: absolute; top: 70.6pt; height: 377.6pt; width: 0; border-left: 0.6pt solid #351f17; pointer-events: none; }
/* דאס בילד פון יו"ט — אלעמאל אויפן זעלבן פלאץ */
.lx-ic { position: absolute; right: 3pt; top: 27pt; max-height: 31pt; max-width: 42pt; object-fit: contain; object-position: right center; }
.lx-cell:has(.lx-omer) .lx-ic { top: 25pt; max-height: 22pt; }
.lx-rc > .lx-rebbe { overflow: visible; max-width: none; align-self: flex-start; font-size: 5.3pt; }
.lx-rc > .lx-rebbe b { font-size: 7.6pt; }

/* א פינפטער שבת אין חודש — נאך א קאלום אין דער טאבעלע אונטן (ווי אינעם לוח) */
.lx-b5 { position: absolute; left: 29.3pt; top: 408.9pt; width: 17.8pt; height: 26.2pt; display: flex; flex-direction: column; border: 0.25pt solid #000; border-right: none; box-sizing: border-box; }
.lx-b5 i { flex: 1; background: #f8ddde; }
.lx-b5 i:nth-child(2) { background: #fff; border-top: 0.25pt solid #000; border-bottom: 0.25pt solid #000; }

/* ＋ / － אין דער זייט */
.lx-zoom { position: fixed; left: 10px; top: 45%; z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--surface); border: 1px solid var(--gold); border-radius: 12px; padding: 5px; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.lx-zoom button { width: 34px; height: 34px; border: none; border-radius: 8px; background: var(--accent); color: #fff; font-size: 18px; cursor: pointer; }
.lx-zoom button[data-z="fit"] { background: transparent; color: var(--ink); border: 1px solid var(--line); font-size: 16px; }
.lx-zv { font-size: 11px; color: var(--muted); }
@media print { .lx-zoom { display: none; } }
/* מוצ"ש / הדה"נ / ר"ת — אלעמאל אויפן זעלבן פלאץ אין דער משבצת */
.lx-t { position: absolute; left: 0.5pt; top: 13pt; }
.lx-body:has(.lx-t) .lx-r2 { padding-left: 21pt; }
.lx-t { width: 20pt; padding: 1.2pt 0 1pt; box-sizing: border-box; text-align: center; background: rgba(255, 255, 255, 0.72); border: 0.5pt solid #c9a23f; border-radius: 3pt; }
.lx-shade .lx-t { background: rgba(255, 255, 255, 0.6); }
.lx-t .lx-tv { margin-top: 0.5pt; }
.lx-body:has(.lx-t) .lx-r2 { padding-left: 22pt; }
.lx-t { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 18.5pt; width: 21pt; padding: 0; direction: rtl; }
.lx-t .lx-tl, .lx-t .lx-tv { display: block; width: 100%; text-align: center; margin: 0; }
.lx-t .lx-tv { padding-right: 0.8pt; box-sizing: border-box; } /* דער שריפט איז שיף — א ביסל צוריק אין דער מיט */
.lx-body:has(.lx-t) .lx-r2 { padding-left: 23pt; }

.lx-sh { padding: 0 1pt; box-sizing: border-box; overflow: hidden; }
.lx-sh .lx-f { text-align: center; }

.lx-dst { white-space: nowrap; text-align: center; }
.lx-dst .lx-dsten { font-family: 'SfaradyMedium', 'Cambria', serif; font-size: 6.5pt; }

/* דער יארצייט פון בעל משנה הלכות: די ליכט רעכטס, דער טעקסט לינקס דערפון (ווי אינעם לוח) */
.lx-rc > .lx-rebbe { flex-direction: row; align-self: flex-start; gap: 1.5pt; font-size: 5.5pt; line-height: 1.12; }
.lx-rc > .lx-rebbe img { width: auto; height: 17pt; }
.lx-rc > .lx-rebbe b { font-size: 7.7pt; }

/* בילד פון יו"ט: אלעמאל אין דער פינקל אונטן רעכטס, די זעלבע גרייס; קיין טעקסט גייט נישט דערויף */
.lx-ic { top: auto !important; bottom: 2pt; right: 2pt; max-height: none !important; max-width: none; object-fit: contain; object-position: right bottom; }
.lx-cell:has(.lx-ic) .lx-bot, .lx-cell:has(.lx-ic) .lx-omer { margin-right: var(--icw); }
.lx-cell:has(.lx-ic) .lx-bot > * { align-self: center !important; }
.lx-cell:has(.lx-ic) .lx-rc { padding-bottom: var(--ich); }

.lx-head { padding: 0 8pt; box-sizing: border-box; }
.lx-mname, .lx-mazal { flex: 0 0 auto; white-space: nowrap; }
.lx-greg { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; }
.lx-greg .lx-f { transform-origin: left center !important; }
.lx-rc > .lx-rebbe { font-size: 4.7pt; gap: 1pt; }
.lx-rc > .lx-rebbe b { font-size: 6.6pt; }
.lx-rc > .lx-rebbe img { height: 15pt; }
/* "ל›" — בולט: א ראטע לשונית אונטער דער טאבעלע */
.lx-carry { width: 28pt !important; height: 15pt !important; background: #97214c !important; color: #fff !important; border: none !important; border-radius: 0 0 5pt 5pt; font-size: 11pt !important; box-shadow: 0 1.5pt 3pt rgba(0,0,0,.35); }
.lx-carry span { font-size: 13pt !important; }
.lx-carry { height: 19pt !important; padding-top: 1.5pt; box-sizing: border-box; }


/* נאר אויפן מסך (נישט פארן דרוקן): ארט און יאר איבער דעם חודש */
.lx-badge { position: absolute; left: 309pt; width: 200pt; top: 1.5pt; height: 13pt; display: flex; align-items: center; justify-content: center;
  background: #97214c; color: #fff; border-radius: 0 0 6pt 6pt; font-family: 'Guttman David', 'David', serif; font-weight: 700; font-size: 9pt;
  box-shadow: 0 1.5pt 3pt rgba(0,0,0,.35); z-index: 3; pointer-events: none; }
@media print { .lx-badge { display: none !important; } }

/* ליניעס: נאר .lx-gl (איין דיקקייט, איין פארב) */
.lx-cell { border: none !important; }
.lx-gl { position: absolute; background: #351f17; pointer-events: none; z-index: 2; }
/* כותרת פון די טעג: גענוי די זעלבע ברייט ווי די טאבעלע (מיט די ליניעס), אזוי ווערט עס איין פירעק */
.lx-band { left: 160.7pt !important; width: 497.7pt !important; top: 70.6pt !important; height: 13.6pt !important; }

.lx-hubh { margin: 10px 0 14px; color: var(--accent); }
.lx-hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 900px; }
.lx-hubt[data-soon] { opacity: .6; }
@media (max-width: 700px) { .lx-hub { grid-template-columns: 1fr; } }
/* "קונטרס החודש" — א באזונדערער קנעפל לעבן די לוחות */
.mz-kbtn { background: #fff8e6; border-color: #c9a64a; font-weight: 700; }
.mz-kbtn.on { background: #7a1f1f; color: #fff; border-color: #7a1f1f; }

/* ---------- זמני תפילות (ניהול) ---------- */
.tf-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .tf-wrap { grid-template-columns: 1fr; } }
.tf-side { position: sticky; top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.tf-side h4 { margin: 10px 0 2px; }
.tf-pvh { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.tf-pv { margin: 0; line-height: 1.6; } .tf-pv .k, .tf-pt tr.k td { font-weight: 800; color: var(--accent, #1f2f6b); }
.tf-pt { width: 100%; border-collapse: collapse; } .tf-pt td { padding: 2px 4px; border-bottom: 1px dashed var(--line); } .tf-pt td:last-child { text-align: left; direction: ltr; white-space: nowrap; }
.tf-grp, .tf-blk { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin: 0 0 12px; background: var(--surface); }
.tf-grp h3 { margin: 0 0 6px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .tf-grp h3 small { font-weight: 400; font-size: 13px; }
.tf-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.tf-t th { text-align: right; font-size: 12px; color: var(--muted); font-weight: 600; padding: 2px 4px; }
.tf-t td { padding: 2px 4px; border-top: 1px solid var(--line); vertical-align: middle; }
.tf-t input[type=text], .tf-t input[type=number], .tf-t input[type=time], .tf-t select, .tf-bh input, .tf-bh select { padding: 3px 5px; font-size: 13px; }
.tf-w4 { width: 4em; } .tf-w8 { width: 8em; } .tf-w10 { width: 10em; } .tf-w12 { width: 12em; } .tf-w16 { width: 16em; }
.tf-ts { display: inline-flex; gap: 3px; align-items: center; white-space: nowrap; }
.tf-ts input[type=number] { width: 4.2em; }
.tf-combo { flex-wrap: wrap; white-space: normal; padding: 2px 4px; border: 1px dashed #c9b27a; border-radius: 6px; }
.tf-combo > .tf-ts { border: 0; padding: 0; }
.tf-times { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.tf-tm { display: inline-flex; gap: 2px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 1px 3px; }
.tf-mini { border: 0; background: transparent; cursor: pointer; padding: 2px 4px; font-size: 13px; border-radius: 6px; }
.tf-mini:hover { background: var(--line); }
.tf-acts { white-space: nowrap; text-align: left; }
.tf-add { margin-top: 6px; display: flex; gap: 8px; }
.tf-bh { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.tf-bt { font-weight: 700; font-size: 15px !important; }
.tf-tcell { width: 58%; }
.tf-blk .tf-t td:first-child input { width: 10em; }
.tf-rows { display: flex; flex-direction: column; }
.tf-r { border-top: 1px solid var(--line); padding: 4px 0; }
.tf-rf { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tf-rf input, .tf-rf select, .tf-times input, .tf-times select { padding: 3px 5px; font-size: 13px; }
.tf-r .tf-times { margin-top: 3px; padding-right: 12px; }
.tf-main { min-width: 0; overflow-x: auto; }
.tf-wrap { grid-template-columns: minmax(0, 1fr) 270px; }
.tf-rebbe { border-color: var(--gold, #c9a24c); background: #fffaf0; }
.tf-cond { border: 1px dashed var(--line); background: transparent; border-radius: 8px; padding: 2px 8px; cursor: pointer; font-size: 12px; color: var(--muted); }
.tf-cond.on { display: inline-flex; gap: 3px; align-items: center; border-style: solid; color: inherit; cursor: default; white-space: nowrap; background: #fffaf0; }
.tf-cond.on select, .tf-cond.on input { padding: 2px 3px; font-size: 12px; }
.tf-conds { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.tf-cond.set { border-style: solid; border-color: #c9a24c; background: #fffaf0; color: inherit; white-space: nowrap; }
.tf-dlg-bg { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; z-index: 50; }
.tf-dlg { background: var(--surface, #fff); border-radius: 14px; padding: 14px 18px; min-width: 420px; max-width: 92vw; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.tf-dlg h3 { margin: 0 0 4px; }
.tf-dlg .tf-conds { gap: 6px; }
.tf-dlg .tf-cond.on { font-size: 14px; padding: 4px 8px; } .tf-dlg .tf-cond.on select, .tf-dlg .tf-cond.on input { font-size: 14px; }
.tf-off td, .tf-rf.tf-off input, tr.tf-off { opacity: .45; }
.tf-off td:first-child { opacity: 1; }
.tf-scr { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; cursor: pointer; }
.tf-rng { display: inline-flex; gap: 3px; align-items: center; margin-right: 4px; font-size: 12px; white-space: nowrap; }
.tf-rng select { font-size: 12px; padding: 2px; }
.tf-shrows { border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px; background: var(--surface); }
.tf-shrows .tf-r:first-child { border-top: 0; }
.tf-rf.tf-sub { margin-top: 3px; padding-right: 34px; font-size: 13px; }
.tf-rf.tf-sub select, .tf-rf.tf-sub input { font-size: 12px; }
.tf-shrows .tf-r { padding: 10px 0; }
.tf-shrows .tf-r:nth-child(even) { background: rgba(201,162,76,.06); margin: 0 -10px; padding: 10px 10px; }
.tf-minor { background: #fffaf0; border: 1px solid #ecdcb0; border-radius: 10px; padding: 6px 10px; margin: 4px 0 6px; display: flex; flex-direction: column; gap: 5px; }
.tf-like { display: inline-flex; gap: 3px; align-items: center; font-weight: 700; margin-left: 10px; }
.tf-own { display: flex; gap: 8px; align-items: flex-start; padding-right: 10px; }
.tf-own b { min-width: 3.5em; padding-top: 4px; }
.tf-frib { background: #f6efe2; border-color: #d8c49a; margin-top: 8px; }
.tf-sg { width: 3em; font-weight: 900; text-align: center; }
.tf-ts select[data-k="r"] { max-width: 10em; }
.tf-dl { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; } .tf-dl b { min-width: 4.5em; } .tf-disp { font-size: 12px; }
.tf-r .tf-times { align-items: center; } .tf-r .tf-times .spacer { flex: 1; }
.tf-type { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 8px; display: inline-block; margin: 2px 0 4px; }
.tf-type.erev { background: #eef3fb; color: #1f2f6b; } .tf-type.chag { background: #3a2410; color: #f3dc9a; }
.tf-type.chm { background: #eaf5ec; color: #1d5e33; }
.tf-pvb { border: 1px solid #c9a24c; background: #fffaf0; font-weight: 700; }
.tf-frirow { margin-top: 4px; padding: 3px 8px; background: #f6efe2; border-radius: 8px; font-size: 13px; }
.tf-side.flash { box-shadow: 0 0 0 3px #c9a24c; transition: box-shadow .3s; }
.tf-days { display: inline-flex; gap: 2px; } .tf-days label { display: inline-flex; align-items: center; gap: 1px; font-weight: 700; padding: 0 3px; }
.tf-tmt { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; border: 1px dashed #c9b27a; border-radius: 8px; padding: 2px 6px; }
.tf-meta { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; }
.tf-meta label { display: inline-flex; gap: 3px; align-items: center; white-space: nowrap; }
.tf-w6 { width: 6.5em; }
.tf-ph { gap: 6px; opacity: .9; }
/* 🖨 הדפסת זמני התפילה */
.tp-ctl { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 10px 0 14px; padding: 10px 12px; background: #fffaf0; border: 1px solid #e6d3a6; border-radius: 12px; }
.tp-ctl label { display: inline-flex; gap: 6px; align-items: center; }
.tp-ctl .tp-wide { width: 22em; }
.tp-prev { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; padding: 16px; background: #8a8a8a; border-radius: 12px; }
.tp-pw { position: relative; overflow: hidden; box-shadow: 0 3px 12px rgba(0,0,0,.35); background: #fff; }
.tp-pi { position: absolute; top: 0; right: 0; transform-origin: top right; }
/* גרסאות */
.vs-dlg { min-width: 520px; max-height: 80vh; overflow: auto; }
.vs-acts { display: flex; gap: 8px; justify-content: flex-start; margin-top: 12px; }
.vs-tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.vs-tbl th, .vs-tbl td { border-bottom: 1px solid #eadfc4; padding: 5px 8px; text-align: right; }
.vs-tbl th { background: #fbf3df; }
.vs-badge { display: inline-block; background: #fbf3df; border: 1px solid #e0c98f; border-radius: 10px; padding: 1px 9px; font-size: .85rem; color: #7a5a1c; white-space: nowrap; }
/* 📺 תצוגת והגדרות המסך */
.sc-note { width: 14em; }
.sc-pv { margin: 10px 0 14px; background: #fffaf0; border: 1px solid #e6d3a6; border-radius: 12px; padding: 8px; }
.sc-pvbar { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 8px; }
.sc-pvbar label { display: inline-flex; gap: 4px; align-items: center; }
.sc-q, .sc-mz { display: inline-flex; gap: 4px; align-items: center; }
.sc-mz b { min-width: 4.5em; text-align: center; }
.sc-frame-box { position: relative; width: 100%; overflow: hidden; border-radius: 8px; background: #000; }
.sc-frame-box iframe { position: absolute; top: 0; right: 0; width: 1920px; height: 1080px; border: 0; transform-origin: top right; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.sc-card { background: #fff; border: 1px solid #e6d3a6; border-radius: 12px; padding: 10px 14px; }
.sc-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.sc-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin: 5px 0; }
.sc-row span { flex: 1; font-size: .92rem; }
.sc-row input:not([type=number]) { flex: 1.3; min-width: 0; }
.sc-num { width: 5.5em; }
.sc-chk { display: flex; gap: 6px; align-items: center; margin: 4px 0; }
.sc-img { display: flex; gap: 10px; align-items: center; margin: 6px 0 10px; }
.sc-img img { width: 120px; height: 70px; object-fit: contain; background: #0d2350; border-radius: 8px; padding: 4px; }
.sc-img > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.sc-kiosk .sc-k-last { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 6px; }
.sc-kiosk .sc-k-old { display: flex; gap: 8px; align-items: center; margin: 3px 0; }
.sc-kiosk .sc-k-up { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.sc-kiosk .sc-k-up input:not([type=file]) { flex: 1; min-width: 8em; }
/* 🖼 פריטים */
.sc-items { margin-bottom: 12px; }
.sc-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.sc-it { display: flex; gap: 10px; border: 1px solid #eadfc4; border-radius: 10px; padding: 8px; margin: 6px 0; background: #fffdf7; }
.sc-it.off { opacity: .55; }
.sc-it.drag { outline: 3px solid #2e7dd7; }
.sc-th { width: 96px; height: 72px; flex: none; display: flex; align-items: center; justify-content: center; background: #0d2350; border-radius: 8px; overflow: hidden; }
.sc-th img { width: 100%; height: 100%; object-fit: contain; }
.sc-ico { font-size: 34px; color: #fff; }
.sc-itb { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sc-r1 { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.sc-itb textarea { width: 100%; font: inherit; }
.sc-days { display: inline-flex; gap: 2px; }
.sc-days label { display: inline-flex; flex-direction: column; align-items: center; font-size: .8rem; }
.sc-dragl { position: absolute; inset: 0; z-index: 2; background: rgba(0,0,0,.08); }
.sc-dragb { position: absolute; border: 3px dashed #2e7dd7; background: rgba(46,125,215,.18); cursor: move; display: flex; align-items: flex-start; justify-content: center; touch-action: none; }
.sc-dragb span { background: #2e7dd7; color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 0 0 6px 6px; white-space: nowrap; }
.sc-hdl { position: absolute; left: -7px; bottom: -7px; width: 14px; height: 14px; background: #2e7dd7; border: 2px solid #fff; border-radius: 50%; cursor: nwse-resize; }
.sc-lib { min-width: 640px; }
.sc-libg { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; }
.sc-libi { display: flex; flex-direction: column; gap: 4px; align-items: center; border: 1px solid #eadfc4; border-radius: 10px; padding: 6px; }
.sc-libi img { width: 100%; height: 90px; object-fit: contain; background: #0d2350; border-radius: 6px; }
.sc-libi .sc-ico { display: flex; width: 100%; height: 90px; align-items: center; justify-content: center; background: #0d2350; border-radius: 6px; }
.sc-libi small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-colors input[type=color] { width: 44px; height: 28px; padding: 0 2px; border: 1px solid #d8c79c; border-radius: 6px; background: #fff; }
.sc-colors .sc-sp { display: inline-block; width: 22px; }
.sc-bx { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sc-bx td { padding: 2px 4px; border-bottom: 1px solid #f0e6cc; }
.sc-bx input.unset { opacity: .45; }
.tf-camp { margin-top: 10px; padding-top: 8px; border-top: 1px solid #e2d6b8; line-height: 1.9; } .tf-cd { margin-inline-end: 6px; white-space: nowrap; }
.tf-skl { font-size: .85em; white-space: nowrap; cursor: pointer; } .tf-sk { font-size: .85em; background: #fff7e0; border-radius: 6px; padding: 1px 6px; white-space: nowrap; } .tf-sk input[type=time] { width: 7.5em; }
.aw-bar { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 18px; }
.aw-btn { font-size: .95em; }
.aw-disp { text-align: center; margin-top: 8px; }
.aw-dlg { max-width: 640px; }
.aw-t { width: 100%; border-collapse: collapse; margin: 8px 0; } .aw-t td { padding: 4px 6px; border-bottom: 1px solid #eee3c8; }
.aw-t tr.aw-past { opacity: .5; }
.aw-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.aw-hd { display: inline-flex; gap: 3px; } .aw-hd select { padding: 2px 4px; }
.tf-away { white-space: nowrap; font-size: .9em; }
.tf-help { background: #fffaf0; border: 1px solid #e2d6b8; border-radius: 12px; padding: 10px 18px; margin: 10px 0; line-height: 1.6; }
.tf-help h3 { margin: 4px 0 8px; } .tf-help details { margin: 6px 0; } .tf-help summary { cursor: pointer; } .tf-help ul { margin: 4px 0 8px; padding-inline-start: 22px; }
.sc-ntc .sc-nrow{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sc-ntc .sc-nrow .sc-chk{flex:0 0 auto;min-width:150px}
.sc-ntc .sc-nrow > input{flex:1 1 160px;min-width:120px}
.sc-ntc .sc-nadd select{max-width:150px}
/* ✥ סידור המשבצות */
.ly-dlg { width: 96vw; max-width: 96vw; height: 94vh; max-height: 94vh; padding: 8px; display: flex; flex-direction: column; }
.ly-dlg[open] { display: flex; }
.ly-bar { display: flex; align-items: center; gap: 10px; padding: 4px 6px 8px; flex-wrap: wrap; }
.ly-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.ly-box { position: relative; overflow: hidden; background: #000; border-radius: 6px; }
.ly-box iframe { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; border: 0; transform-origin: top left; pointer-events: none; }
.ly-ov { position: absolute; inset: 0; }
.ly-r { position: absolute; border: 2px dashed #ffcf40; background: rgba(255,207,64,.12); cursor: move; touch-action: none; }
.ly-r.moved { border-style: solid; border-color: #3fd17a; }
.ly-r span { position: absolute; top: 2px; right: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; padding: 0 5px; border-radius: 4px; pointer-events: none; }
.ly-r button { position: absolute; top: 2px; left: 2px; font-size: 12px; padding: 0 5px; cursor: pointer; }
.ly-r i { position: absolute; right: -6px; bottom: -6px; width: 14px; height: 14px; background: #ffcf40; border: 2px solid #000; border-radius: 3px; cursor: nwse-resize; }
/* ⚙️ מה להציג בזמני התפילות */
.tf-main.hide-room .c-room, .tf-main.hide-room td:has(> [data-f$=".room"]), .tf-main.hide-room [data-f$=".room"],
.tf-main.hide-note .c-note, .tf-main.hide-note td:has(> [data-f$=".note"]), .tf-main.hide-note [data-f$=".note"], .tf-main.hide-note [data-f$="Note"], .tf-main.hide-note h3 small,
.tf-main.hide-season .c-season, .tf-main.hide-season td:has(> [data-f$=".season"]), .tf-main.hide-season [data-f$=".season"], .tf-main.hide-season .tf-rng,
.tf-main.hide-cond .c-cond, .tf-main.hide-cond .tf-cond:not(.tf-disp),
.tf-main.hide-disp .tf-disp,
.tf-main.hide-fri .c-fri, .tf-main.hide-fri td:has(> [data-f$=".fri"]),
.tf-main.hide-rebbe .s-rebbe, .tf-main.hide-camp .s-camp, .tf-main.hide-ref .s-ref { display: none !important; }
/* 📝 תבניות הדפסה */
.tp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0; position: sticky; top: 0; z-index: 3; background: var(--bg, #fff); }
.tp-tools button, .tp-tools select, .tp-tools input { font: inherit; padding: 3px 7px; }
.tp-stage { overflow: auto; background: #8a8a8a; padding: 20px; border-radius: 8px; }
.tp-page { margin: 0 auto; background: #fff; color: #000; box-shadow: 0 2px 10px rgba(0,0,0,.4); padding: 0.3in; box-sizing: border-box; font-family: 'Frank Ruhl Libre', serif; outline: none; }
.tp-page [data-rep] { outline: 2px dashed #2a7de1; outline-offset: -2px; }
.tp-page [data-rep]::before { content: none; }
/* 🖨 הדפסות */
.pr-week, .pr-all { background: var(--surface, #fff); border: 1px solid var(--line, #ddd); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; }
.pr-week { border: 2px solid #c9a24c; }
.pr-wbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.pr-cards { display: flex; flex-wrap: wrap; gap: 10px; }
.pr-card { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line, #ddd); border-radius: 8px; padding: 8px 10px; min-width: 220px; }
.pr-card > div { display: flex; gap: 6px; }
.pr-all h4 { margin: 10px 0 2px; color: var(--muted, #666); }
.pr-row { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-bottom: 1px solid var(--line, #eee); }
.pr-row .spacer { flex: 1; }
.pr-rec { display: inline-flex; gap: 4px; align-items: center; }
.te-ed { outline: none; cursor: text; }
.te-ed [data-blk] { position: relative; min-height: 1.4em; background: repeating-linear-gradient(45deg, #eee, #eee 6px, #f7f7f7 6px, #f7f7f7 12px); outline: 1px dashed #888; cursor: grab; }
.te-ed [data-blk]::after { content: '▤ ' attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 14px Arial, sans-serif; color: #555; }
.te-ed span[data-blk], .te-ed small[data-blk] { display: inline-block; min-width: 6em; }
.te-ed [data-rep] { outline: 2px dashed #2a7de1; outline-offset: -2px; }
.tp-stage .tp-page { margin: 0 auto; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.tf-code { font-size: .85em; color: #2a5db0; }
.tf-main.hide-code .c-code, .tf-main.hide-code td:has(> [data-f$=".code"]) { display: none !important; }
.pr-rib { position: sticky; top: 0; z-index: 5; margin: 4px 0; border-radius: 6px; overflow: visible; }
.pr-rib .wr-ribbon { min-height: 0; }
.pr-pageopts { display: flex; gap: 10px; align-items: center; margin: 4px 0; }
