/* ============================================================
   ציר האירוע (גל 1, 08/09/2026), shared/js/event-timeline.js
   שורה אחת בדף האירוע + מגירה מהצד.
   צבעי המקורות זהים לפילים הקיימים בדף העריכות (colors.css / editing style.css):
   לקוח ירוק, משרד בורדו, עורכת סגול, צלם כחול, טופס כתום, שלב אפור.
   ============================================================ */

.etl-host {
  --etl-client: #016500;
  --etl-client-bg: #e8f3e7;
  --etl-office: #95514f;
  --etl-office-bg: #f7eeed;
  --etl-editor: #7d37ef;
  --etl-editor-bg: #efe8fd;
  --etl-photog: #156fe2;
  --etl-photog-bg: #e6effb;
  --etl-form: #b45309;
  --etl-form-bg: #fbf0e2;
  --etl-stage: #8b7c7a;
  --etl-stage-bg: #f2eceb;
  display: block;
  margin: 0 0 12px;
}

/* ---- השורה ---- */
.etl-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 13px;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  text-align: right;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.etl-trigger-alert {
  background: var(--brand-primary, #95514f);
  color: #fff;
  border: 1px solid var(--brand-primary, #95514f);
  font-weight: 600;
}
.etl-trigger-alert:hover { background: var(--brand-primary-dark, #7a3f3d); }
.etl-trigger-calm {
  background: transparent;
  color: var(--text-muted, #6b7280);
  border: 1px solid var(--border-neutral, #e5e7eb);
  font-weight: 500;
}
.etl-trigger-calm:hover {
  border-color: var(--brand-tint-border-hover, #d7bfb8);
  color: var(--text-secondary, #1f2937);
}
.etl-trigger .etl-grow { flex: 1; }
.etl-trigger .etl-arrow { font-size: 17px; opacity: 0.75; line-height: 1; }
.etl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  flex: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

/* ---- המגירה ---- */
body.etl-open { overflow: hidden; }
.etl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 29, 28, 0.34);
  z-index: 10500;
  opacity: 0;
  transition: opacity 0.2s;
}
.etl-overlay.in { opacity: 1; }

.etl-drawer {
  --etl-client: #016500;
  --etl-client-bg: #e8f3e7;
  --etl-office: #95514f;
  --etl-office-bg: #f7eeed;
  --etl-editor: #7d37ef;
  --etl-editor-bg: #efe8fd;
  --etl-photog: #156fe2;
  --etl-photog-bg: #e6effb;
  --etl-form: #b45309;
  --etl-form-bg: #fbf0e2;
  --etl-stage: #8b7c7a;
  --etl-stage-bg: #f2eceb;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(430px, 100%);
  background: var(--bg-card, #fff);
  border-right: 1px solid var(--border-subtle, #ebdeda);
  box-shadow: 4px 0 26px rgba(60, 30, 28, 0.13);
  z-index: 10501;
  display: flex;
  flex-direction: column;
  direction: rtl;
  transform: translateX(-100%);
  transition: transform 0.22s ease;
}
.etl-drawer.in { transform: translateX(0); }

.etl-head {
  display: flex;
  align-items: center;
  gap: 10px;
  /* 08/09/2026: המגירה היא fixed מ-top:0, ובמעטפת ה-iOS היא מגיעה עד לקצה
     הפיזי. בלי הריפוד הזה הכותרת וכפתור הסגירה יושבים מתחת לשעון, ואי אפשר
     ללחוץ עליהם (יוסי דיווח מהאייפון). המגירה מעל הפס של shared (z-index
     10501 מול 5), ולכן היא חייבת לרפד את עצמה. */
  padding: calc(13px + var(--safe-top, 0px)) 15px 13px;
  border-bottom: 1px solid var(--border-subtle, #ebdeda);
  flex: none;
}
.etl-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #111827);
}
.etl-head-sub {
  flex: 1;
  font-size: 12.5px;
  color: var(--text-subtle, #9ca3af);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.etl-x {
  border: 0;
  background: none;
  font: inherit;
  font-size: 17px;
  line-height: 1;
  color: var(--text-subtle, #9ca3af);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
.etl-x:hover { background: var(--bg-muted, #f3f4f6); color: var(--text-primary, #111827); }

.etl-filters {
  display: flex;
  gap: 6px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border-light, #f3e8e6);
  flex-wrap: wrap;
  flex: none;
}
.etl-chip {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-neutral, #e5e7eb);
  color: var(--text-secondary, #1f2937);
  background: var(--bg-card, #fff);
  cursor: pointer;
}
.etl-chip.on {
  background: var(--brand-primary, #95514f);
  border-color: var(--brand-primary, #95514f);
  color: #fff;
}

.etl-feed {
  padding: 4px 15px calc(22px + var(--safe-bottom, 0px));
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.etl-empty {
  padding: 30px 8px;
  text-align: center;
  font-size: 13px;
  color: var(--text-subtle, #9ca3af);
}

.etl-day {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 9px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-subtle, #9ca3af);
  letter-spacing: 0.04em;
}
.etl-day::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light, #f3e8e6);
}

.etl-item {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  cursor: pointer;
}
.etl-item + .etl-item { border-top: 1px solid var(--border-light, #f3e8e6); }
.etl-rail { width: 3px; border-radius: 3px; flex: none; }
.etl-body { flex: 1; min-width: 0; }
.etl-top {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.etl-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
/* אייקון בתוך התג (הלוגו של וואטסאפ). line-height:0 כדי שה-svg לא יגרור
   את גובה התג למעלה. */
.etl-tag-ic { display: inline-flex; line-height: 0; flex: none; }
.etl-who {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary, #1f2937);
}
.etl-when {
  font-size: 11.5px;
  color: var(--text-subtle, #9ca3af);
  margin-inline-start: auto;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.etl-text {
  font-size: 14px;
  color: var(--text-primary, #111827);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.etl-sub {
  font-size: 12px;
  color: var(--text-subtle, #9ca3af);
  margin-top: 4px;
}
.etl-link {
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-primary, #95514f);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}
.etl-link:hover { text-decoration: underline; }

.etl-imgs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.etl-imgs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-subtle, #ebdeda);
  cursor: zoom-in;
}

/* פריט חדש מאז הפתיחה האחרונה */
.etl-item.etl-fresh {
  background: var(--brand-tint-bg, #fdfaf9);
  margin: 0 -10px;
  padding: 9px 10px;
  border-radius: 10px;
  border-top-color: transparent;
}

/* פריט ישן שכבר נראה: שורה אחת */
.etl-item.etl-fold { padding: 7px 0; align-items: center; }
.etl-fold-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}
.etl-fold-line .etl-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text-muted, #6b7280);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.etl-fold-line .etl-when { margin: 0; }

.etl-more {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px dashed var(--border-neutral, #e5e7eb);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--text-subtle, #9ca3af);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.etl-more .etl-link { margin-inline-start: auto; }

/* ---- צבעי מקור ---- */
.etl-tag-client { background: var(--etl-client-bg); color: var(--etl-client); }
.etl-rail-client { background: var(--etl-client); }
.etl-tag-office { background: var(--etl-office-bg); color: var(--etl-office); }
.etl-rail-office { background: var(--etl-office); }
.etl-tag-editor { background: var(--etl-editor-bg); color: var(--etl-editor); }
.etl-rail-editor { background: var(--etl-editor); }
.etl-tag-photog { background: var(--etl-photog-bg); color: var(--etl-photog); }
.etl-rail-photog { background: var(--etl-photog); }
.etl-tag-form { background: var(--etl-form-bg); color: var(--etl-form); }
.etl-rail-form { background: var(--etl-form); }
.etl-tag-stage { background: var(--etl-stage-bg); color: var(--etl-stage); }
.etl-rail-stage { background: var(--etl-stage); }

@media (max-width: 600px) {
  .etl-drawer { width: 100%; }
  .etl-feed { padding: 4px 13px calc(26px + var(--safe-bottom, 0px)); }
}

/* ============================================================
   סבב 2 (08/09/2026): שורת זמנים, צ'יפ "מסלול", שרשור בתוך הכרטיס,
   קומפוזר הערה פנימית, והשורה בדף כשאין חדש.
   ============================================================ */

/* ---- השורה כשאין חדש: כרטיס, לא שלד אפור ---- */
.etl-trigger-calm {
  background: var(--bg-card, #fff);
  color: var(--text-primary, #111827);
  border: 1px solid var(--brand-tint-border, #ebdeda);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(60, 30, 28, 0.05);
}
.etl-trigger-calm:hover {
  border-color: var(--brand-tint-border-hover, #d7bfb8);
  background: var(--brand-tint-bg, #fdfaf9);
  color: var(--text-primary, #111827);
}
.etl-trigger .etl-ico {
  color: var(--brand-primary, #95514f);
  display: inline-flex;
  flex: none;
}
.etl-trigger .etl-grow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.etl-label { flex: none; }
.etl-count {
  background: var(--brand-tint-bg, #fdfaf9);
  border: 1px solid var(--brand-tint-border, #ebdeda);
  color: var(--brand-primary, #95514f);
  font-size: 11.5px;
  font-weight: 700;
  padding: 0 8px;
  border-radius: 999px;
  flex: none;
  line-height: 1.7;
}
.etl-last {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-subtle, #9ca3af);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* 09/09/2026: במצב אדום המספר והמילים עברו ל-.etl-count ו-.etl-last (הם היו
   חלק ממחרוזת אחת ב-.etl-label, שגלשה מהכפתור כשהוא חצי שורה). על רקע בורדו
   הם צריכים צבעים משלהם, אחרת האפור של --text-subtle לא נקרא. */
.etl-trigger-alert .etl-count {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.etl-trigger-alert .etl-last { color: rgba(255, 255, 255, 0.88); }

/* ---- שורת הזמנים בראש המגירה ---- */
.etl-clock {
  padding: 10px 15px;
  border-bottom: 1px solid var(--border-light, #f3e8e6);
  background: var(--brand-tint-bg, #fdfaf9);
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  flex: none;
}
.etl-clock b { font-size: 14px; font-weight: 700; color: var(--brand-primary, #95514f); }
.etl-clock span { font-size: 12.5px; color: var(--text-secondary, #1f2937); }
.etl-clock .etl-clock-sep { color: var(--brand-tint-border, #ebdeda); }

/* ---- "רק אנחנו" ---- */
.etl-onlyus {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted, #6b7280);
  background: var(--bg-muted, #f3f4f6);
  border: 1px solid var(--border-neutral, #e5e7eb);
  padding: 1px 6px;
  border-radius: 6px;
  flex: none;
}

/* ---- שורת שלב בתוך "הכל" ---- */
.etl-badge-wrap { display: inline-flex; flex: none; }
.etl-badge-wrap .badge { font-size: 11px; padding: 2px 9px; }
.etl-item.etl-stage-row { cursor: default; }
.etl-gap-inline {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-subtle, #9ca3af);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.etl-gap-inline.warn { color: #b45309; }
.etl-gap-inline.bad { color: #b91c1c; }

/* ---- צ'יפ "מסלול" ---- */
.etl-track { display: flex; flex-direction: column; padding-top: 6px; }
.etl-tr-row { display: flex; align-items: center; gap: 9px; padding: 5px 0; }
.etl-tr-date {
  font-size: 11.5px;
  color: var(--text-subtle, #9ca3af);
  font-variant-numeric: tabular-nums;
  margin-inline-start: auto;
  flex: none;
}
.etl-gap {
  display: flex;
  align-items: center;
  margin-inline-start: 6px;
  border-inline-start: 2px solid var(--border-neutral, #e5e7eb);
}
.etl-gap span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-subtle, #9ca3af);
  padding: 4px 10px;
}
.etl-gap.warn { border-inline-start-color: #b45309; }
.etl-gap.warn span { color: #b45309; }
.etl-gap.bad { border-inline-start-color: #b91c1c; }
.etl-gap.bad span { color: #b91c1c; }
.etl-now {
  margin-top: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-primary, #95514f);
  background: var(--brand-tint-bg, #fdfaf9);
  border: 1px solid var(--brand-tint-border, #ebdeda);
  border-radius: 10px;
  padding: 7px 11px;
}

/* ---- שרשור האירוע בתוך הכרטיס ---- */
.etl-chat {
  background: #ece5dd;
  border-radius: 10px;
  padding: 8px;
  margin-top: 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.etl-bub {
  max-width: 84%;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.09);
  background: #fff;
  color: #111827;
  align-self: flex-start;
  border-top-right-radius: 2px;
}
.etl-bub.me {
  background: #dcf8c6;
  align-self: flex-end;
  border-top-right-radius: 9px;
  border-top-left-radius: 2px;
}
.etl-bub b { display: block; font-size: 11px; font-weight: 700; color: #156fe2; }
.etl-bub.me b { color: #016500; }
.etl-bub-text { white-space: pre-wrap; word-break: break-word; }
.etl-bub-t { font-size: 10px; color: #6b7280; text-align: left; margin-top: 1px; }
.etl-bub-img {
  display: block;
  max-width: 170px;
  border-radius: 6px;
  margin: 3px 0;
  cursor: zoom-in;
}
.etl-thread-foot { display: flex; align-items: center; gap: 12px; }

/* ---- קומפוזר הערה פנימית ---- */
.etl-comp {
  border: 1px solid var(--brand-tint-border, #ebdeda);
  background: var(--brand-tint-bg, #fdfaf9);
  border-radius: 10px;
  padding: 10px;
  margin: 10px 0 4px;
}
.etl-comp-shut {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-primary, #95514f);
  cursor: pointer;
  text-align: right;
  padding: 0;
}
.etl-comp-pen { font-size: 14px; }
.etl-ta {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-neutral, #e5e7eb);
  border-radius: 6px;
  padding: 9px 11px;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-primary, #111827);
  resize: vertical;
  direction: rtl;
}
.etl-seg { display: flex; gap: 7px; margin-top: 9px; }
.etl-seg-btn {
  flex: 1;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1.5px solid var(--border-neutral, #e5e7eb);
  background: var(--bg-card, #fff);
  color: var(--text-muted, #6b7280);
  text-align: center;
}
.etl-seg-btn.on {
  border-color: var(--brand-primary, #95514f);
  background: var(--brand-tint-bg, #fdfaf9);
  color: var(--brand-primary, #95514f);
}
.etl-seg-btn small { display: block; font-weight: 500; font-size: 10.5px; opacity: 0.85; margin-top: 1px; }
.etl-comp-tools { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.etl-tool {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #1f2937);
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-neutral, #e5e7eb);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
}
.etl-tool:hover { border-color: var(--brand-tint-border-hover, #d7bfb8); }
.etl-send {
  margin-inline-start: auto;
  background: var(--brand-primary, #95514f);
  border-color: var(--brand-primary, #95514f);
  color: #fff;
  padding: 6px 16px;
}
.etl-send:hover { background: var(--brand-primary-dark, #7a3f3d); }
.etl-img-preview { position: relative; display: inline-block; margin-top: 9px; }
.etl-img-preview img {
  max-width: 130px;
  max-height: 130px;
  border-radius: 8px;
  border: 1px solid var(--brand-tint-border, #ebdeda);
  display: block;
}
.etl-img-rm {
  position: absolute;
  top: -7px;
  inset-inline-end: -7px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 1px solid var(--border-neutral, #e5e7eb);
  background: var(--bg-card, #fff);
  color: var(--text-muted, #6b7280);
  font: inherit;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

/* ============================================================
   דגש לעורכת + אישור קריאה (גל 2, 08/09/2026)
   הצבע: אדום אמיתי ולא בורדו המותג, כי זה המצב היחיד בציר שדורש פעולה
   וחייב להיראות אחרת מכל שאר הפריטים.
   ============================================================ */
/* ⚠️ שני המקומות, כמו כל שאר משתני --etl-*: המגירה יושבת על document.body
   ולא בתוך .etl-host, ולכן לא יורשת ממנו כלום. הגדרה במקום אחד בלבד נותנת
   כפתור לבן על רקע שקוף, כלומר בלתי נראה. לכל var() כאן יש גם fallback. */
.etl-host, .etl-drawer {
  --etl-highlight: #b91c1c;
  --etl-highlight-bg: #fdeaea;
}
.etl-tag-highlight { background: var(--etl-highlight-bg, #fdeaea); color: var(--etl-highlight, #b91c1c); }
.etl-rail-highlight { background: var(--etl-highlight, #b91c1c); }

/* דגש שממתין לאישור: כרטיס מודגש שלא מתקפל */
.etl-item.etl-hl-open {
  background: var(--etl-highlight-bg, #fdeaea);
  border-color: #f3c9c9;
  box-shadow: 0 1px 0 rgba(185, 28, 28, 0.06);
}
/* דגש שנכתב לפני שיש עורכת: ממתין בשקט, בלי אדום */
.etl-item.etl-hl-quiet { background: var(--bg-card, #fff); }
.etl-item.etl-hl-quiet .etl-tag-highlight { background: #f3f4f6; color: #6b7280; }

.etl-hl-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 11.5px;
}
.etl-hl-ack {
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: var(--etl-highlight, #b91c1c);
  border: 0;
  border-radius: 8px;
  padding: 6px 16px;
  cursor: pointer;
}
.etl-hl-ack:hover { background: #991b1b; }
.etl-hl-read { color: #016500; font-weight: 600; }
.etl-hl-unread { color: var(--etl-highlight, #b91c1c); font-weight: 700; }
.etl-hl-hint { color: var(--text-muted, #6b7280); }
.etl-link.etl-danger { color: var(--etl-highlight, #b91c1c); }
.etl-fold .etl-hl-read { font-size: 10.5px; white-space: nowrap; }

/* "קראתי הכל" */
.etl-ackall {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--etl-highlight-bg, #fdeaea);
  border: 1px solid #f3c9c9;
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--etl-highlight, #b91c1c);
}

/* עריכת דגש במקום */
.etl-hl-edit { margin-top: 4px; }

/* בועות של דגש שהועבר מוואטסאפ */
.etl-chat-wa { margin-top: 8px; }
.etl-bub-q {
  border-inline-start: 2px solid #c7d2da;
  padding-inline-start: 6px;
  margin-bottom: 3px;
  font-size: 11px;
  color: #6b7280;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---- שורות הדגשים בתוך המודל של רשימת העריכות ----
   המודל עצמו הוא .editor-deadline-modal של editor-dashboard.js: מודל אחד לכל
   מה שקופץ לעורכת בכניסה, אחרי שפופאפ נפרד התנגש איתו ונדרס. */
.etl-pop-row {
  display: block;
  width: 100%;
  text-align: right;
  font: inherit;
  background: #fdeaea;
  border: 1px solid #f3c9c9;
  border-radius: 10px;
  padding: 9px 11px;
  margin-bottom: 8px;
  cursor: pointer;
}
.etl-pop-row:hover { background: #fbdcdc; }
.etl-pop-row-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13.5px; }
.etl-pop-count, .etl-pop-days {
  font-size: 10.5px;
  font-weight: 700;
  color: #b91c1c;
  background: #fff;
  border-radius: 20px;
  padding: 1px 7px;
}
.etl-pop-text {
  font-size: 12.5px;
  color: var(--text-secondary, #1f2937);
  line-height: 1.45;
  margin-top: 3px;
  word-break: break-word;
}
/* השעון של "מאז שבחרו שירים": שורה משלו מתחת לשורת הזמנים, כי זה המספר
   היחיד שמודד את כל החלון מבחירת השירים ועד הגרסה הראשונה ללקוח. */
.etl-songs-clock {
  flex-basis: 100%;
  margin-top: 2px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--brand-tint-border, #ebdeda);
  font-size: 12.5px;
  color: var(--text-secondary, #1f2937);
}
.etl-songs-clock b {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--brand-primary, #95514f);
}
.etl-songs-clock.warn { background: #fff7ed; border-color: #fed7aa; }
.etl-songs-clock.warn b { color: #b45309; }
.etl-songs-clock.bad { background: #fdeaea; border-color: #f3c9c9; }
.etl-songs-clock.bad b { color: #b91c1c; }

/* ההסבר מתחת לבורר היעד בקומפוזר: מה יקרה עם הדגש הזה.
   ⚠️ נמחק בטעות בניקוי ה-CSS של הפופאפ הישן (08/09/2026) והוחזר. הבלוק הזה
   חייב להישאר כל עוד buildComposer בונה div עם המחלקה הזאת. */
.etl-comp-hint {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-muted, #6b7280);
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-neutral, #e5e7eb);
  border-radius: 8px;
  padding: 7px 10px;
}

/* ============================================================
   צד הליד (גל 3, 08/09/2026): חוזה, תשלומים והערות הליד
   ============================================================ */
/* ⚠️ שני הסלקטורים, כמו כל שאר משתני --etl-*: המגירה יושבת על document.body
   ולא בתוך .etl-host ולכן לא יורשת ממנו כלום. משתנה שנכנס רק לאחד מהם נותן
   אלמנט בלתי נראה, וזה בדיוק מה שקרה ל---etl-highlight בסבב 3. לכל var()
   כאן יש גם fallback, כדי שטעות כזאת תיכשל בקול ולא בשקט. */
.etl-host, .etl-drawer {
  --etl-lead: #0f766e;
  --etl-lead-bg: #e3f2f0;
}
.etl-tag-lead { background: var(--etl-lead-bg, #e3f2f0); color: var(--etl-lead, #0f766e); }
.etl-rail-lead { background: var(--etl-lead, #0f766e); }

/* קו האירוע: מפריד בין מה שקרה לפני האירוע (מכירה) למה שאחריו (עריכה) */
.etl-day-event {
  color: var(--etl-lead, #0f766e);
  font-weight: 800;
}
.etl-day-event::before {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--etl-lead, #0f766e);
  opacity: 0.35;
}
.etl-day-event::after {
  background: var(--etl-lead, #0f766e);
  opacity: 0.35;
}

/* אבן דרך של הליד בצ'יפ "מסלול". לא באדג' שלב, כי אלה לא שלבי עריכה. */
.etl-tr-milestone {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--etl-lead-bg, #e3f2f0);
  color: var(--etl-lead, #0f766e);
  flex: none;
}

/* רשימת התשלומים בתוך כרטיס "תשלומים" */
.etl-pays {
  margin-top: 7px;
  border: 1px solid var(--border-light, #f3e8e6);
  border-radius: 9px;
  overflow: hidden;
}
.etl-pay {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 9px;
  font-size: 12.5px;
}
.etl-pay + .etl-pay { border-top: 1px solid var(--border-light, #f3e8e6); }
.etl-pay-sum {
  font-weight: 700;
  color: var(--etl-lead, #0f766e);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.etl-pay-date {
  color: var(--text-subtle, #9ca3af);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.etl-pay-meta {
  color: var(--text-muted, #6b7280);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   וואטסאפ: מקור משלו בציר (08/09/2026)
   ============================================================ */
/* עד עכשיו שיחות הוואטסאפ נשאו src:'office' וקיבלו את הבורדו של המשרד,
   ו"וואטסאפ" כטקסט בלבד לא בלט בין שאר התגים (בקשת יוסי). עכשיו מקור משלהן,
   בירוק של וואטסאפ ועם הלוגו בתג.
   ⚠️ שני הסלקטורים, כמו כל שאר משתני --etl-*: המגירה יושבת על document.body
   ולא בתוך .etl-host ולכן לא יורשת ממנו כלום. לכל var() כאן יש גם fallback. */
.etl-host, .etl-drawer {
  --etl-whatsapp: #008069;
  --etl-whatsapp-bg: #e4f3ee;
}
.etl-tag-whatsapp { background: var(--etl-whatsapp-bg, #e4f3ee); color: var(--etl-whatsapp, #008069); }
.etl-rail-whatsapp { background: var(--etl-whatsapp, #008069); }
