/* ===== Force transparent page background (worker page only) ===== */
html, body,
#page, .site, .site-content, .content-area, .entry-content,
.elementor, .elementor-section, .elementor-container, .elementor-widget-wrap {
  background: transparent !important;
}

/* פריסת דף העובד: יומן מימין, טופס חופשה משמאל (Sticky) */
.dlts-worker-layout{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:16px;
  align-items:start;
}
.dlts-panel{padding:0;background:transparent;border:none;box-shadow:none;margin:0}
.dlts-panel .dlts-card{margin:0}

/* כרטיסיית החופשה – סטיקי + לא נחתך עם ה־Admin Bar */
.dlts-side{
  position:sticky;
  top:16px;
  z-index:5;
  height:fit-content;
  background:#fff;
  border:1px solid var(--dlts-line);
  border-radius:16px;
  box-shadow:var(--dlts-shadow);
  padding:16px 16px 14px;
}
.admin-bar .dlts-side{ top:64px; } /* מתחת לסרגל הניהול */
.dlts-side h3{
  margin:0 0 10px;
  font-size:20px;   /* ↑ הגדלה עדינה לכותרת */
  font-weight:800;
  line-height:1.25;
}

/* ===== תוספת: ראש כרטיס + כותרת מוגדלת + כפתור "הבקשות שלי" ===== */
.dlts-side-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}
.dlts-side .dlts-side-title-lg{ font-size:20px; } /* לשימוש במידת הצורך */
.dlts-side-head .dlts-btn.tiny{ padding:6px 10px; border-radius:10px; font-size:13px; }

/* רספונסיביות דסקטופ->טאבלט */
@media (max-width: 1024px){
  .dlts-worker-layout{grid-template-columns: 1fr}
  .dlts-side{position:static}
}

/* ===== Toolbar ===== */
.dlts-toolbar{
  /* מוסתר כברירת מחדל – יוצג רק כשיש כפתורים (ראה :has() למטה) */
  display:none;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  position:relative;            /* כדי למרכז את כפתור הפגישה בתוך הפס */
  min-height:44px;
  padding:8px 10px;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--dlts-line);
  box-shadow:var(--dlts-shadow);
}
/* הצגת הפס רק אם יש כפתור סנכרון קיים, או כפתור פגישה שמוצג בפועל */
.dlts-toolbar:has(#dlts-ics-setup),
.dlts-toolbar:has(#wd-join-cta:not([style*="display:none"])) {
  display:flex;
}

#fc-today-btn{display:none} /* הישן */
.fc-today-button{display:none !important;} /* FullCalendar החדש */

/* כפתור סנכרון יומן Google – לצד שמאל של הפס */
#dlts-ics-setup{
  order:0;
  margin-right:auto;            /* דוחף פיזית לשמאל (RTL או LTR) */
  margin-left:0;
}

/* כפתור מעבר לפגישה – תמיד במרכז הפס */
#wd-join-cta{
  display:none;
  position:absolute;
  left:50%;
  /* טרנספורם מבוסס משתנה כדי לעבוד גם בדסקטופ (מרכז מוחלט) וגם במובייל (סטטי) */
  --wd-cta-tx: translateX(-50%);
  transform: var(--wd-cta-tx);
  text-decoration:none;
  padding:10px 14px;
  border-radius:12px;
  background:#2563eb;
  color:#fff;
  box-shadow:0 6px 18px rgba(37,99,235,.25);
}
#wd-join-cta.pulse{ animation:wdPulse 1.2s ease-in-out infinite; }
@keyframes wdPulse{
  0%{ transform:var(--wd-cta-tx) scale(1); box-shadow:0 0 0 0 rgba(37,99,235,.35); }
  70%{ box-shadow:0 0 0 12px rgba(37,99,235,0); }
  100%{ transform:var(--wd-cta-tx) scale(1); }
}

/* ===== Greeting + Daily Agenda ===== */
#wd-hero{
  background:linear-gradient(180deg,#ffffff, #f8fafc);
  border:1px solid var(--dlts-line);
  border-radius:16px;
  box-shadow:var(--dlts-shadow);
  padding:14px 16px 12px;
  margin-bottom:10px;
}
.wd-hero-title{display:flex; align-items:center; gap:8px; font-weight:900; font-size:22px;}
.wd-hero-icon{font-size:24px}
.wd-hello{white-space:nowrap}
.wd-hero-subtitle{color:#6b7280; font-size:14px; margin-top:2px}

/* ברכת הזמן ("בוקר/צהריים/ערב/לילה טוב") – על אותו הקו, בגודל רגיל */
#wd-gbadge{
  display:inline;
  font-size:inherit;
  font-weight:inherit;
  color:#2563eb;
  background:none;
  border:0;
  padding:0;
  border-radius:0;
  margin-inline-start:8px;
}

/* פס לפני הלוז – "הלוז היומי שלך היום הוא:" */
#wd-agenda-banner{
  direction:rtl;
  font-family:'Alef', sans-serif;
  font-weight:700;
  margin:16px 0 10px;
  padding:10px 14px;
  border-radius:14px;
  background:linear-gradient(90deg, #f7f9fb, #ffffff);
  border:1px solid #e9edf2;
  box-shadow:0 6px 18px rgba(0,0,0,0.04);
}
#wd-agenda-banner .wd-agenda-banner-text{
  color:#111827;
  font-size:15px;
}

/* קונטיינר של הלוז היומי */
.wd-agenda-wrap{
  background:#fff;
  border:1px solid var(--dlts-line);
  border-radius:16px;
  box-shadow:var(--dlts-shadow);
  padding:12px;
  margin-bottom:8px;
}
.wd-agenda-title{font-size:16px; font-weight:800; margin:0 0 8px}
.dlts-agenda{display:grid; gap:8px}
.dlts-agenda .item{
  display:flex; gap:12px; align-items:center;
  background:#f9fafb; border:1px solid #eef2f7; border-radius:12px; padding:10px;
}
.dlts-agenda .item.past{opacity:.6; text-decoration:line-through}
.dlts-agenda .time{min-width:88px; direction:ltr; font-weight:800; color:#111827}
.dlts-agenda .title{flex:1; color:#111827}
.wd-agenda-empty{color:#6b7280; font-size:14px}
.wd-divider{height:1px; background:#eef0f3; margin:16px 0}
.wd-controls-row{display:flex; gap:12px; flex-wrap:wrap; align-items:flex-end; margin-bottom:4px}

/* ===== קונטיינר היומן ===== */
#worker-calendar{
  min-height:460px;
  background:#fff;border:1px solid var(--dlts-line);
  border-radius:16px;padding:10px;box-shadow:var(--dlts-shadow);
  overflow: hidden; /* מגן על גלילות פנימיות של FC */
}

/* ===== FullCalendar – קומפקטיות ושיפורים ===== */
.fc .fc-timegrid-slot{height:1.8em}
.fc .fc-toolbar.fc-header-toolbar{margin:6px 6px 10px}
.fc .fc-toolbar-title{font-size:16px;font-weight:800}
.fc .fc-col-header-cell-cushion{padding:6px 4px;font-weight:800}
.fc .fc-event{
  border-radius:10px;border:0;box-shadow:0 2px 10px rgba(0,0,0,.06);
  padding:2px 6px;font-size:13px; line-height:1.25;
}
.fc .fc-daygrid-event{border-radius:10px;padding:2px 6px;font-size:13px}
.fc .fc-timegrid-slot,
.fc .fc-timegrid-slot-minor{border-color: #eef0f3}
.fc .fc-timegrid-slot-label{font-size:12px;color:#6b7280}

/* ===== אירועים שנדחו (RSVP=no) – קו חוצה ===== */
.fc .dlts-event-declined,
.fc-event.dlts-event-declined{
  opacity:.6;
}
.fc .dlts-event-declined .fc-event-title,
.fc .dlts-event-declined .fc-event-title-container,
.fc .dlts-event-declined .fc-event-main,
.fc .dlts-event-declined .fc-event-main-frame,
.fc .dlts-event-declined .fc-event-time,
.fc .dlts-event-declined .fc-list-event-title,
.fc .dlts-event-declined .fc-list-event-time{
  text-decoration: line-through;
  text-decoration-thickness: 0.11em;
  text-decoration-color: currentColor;
}

/* ===== Modal לאירוע (כללי) ===== */
.dlts-modal.hidden{display:none}
.dlts-modal .dlts-overlay{ position:fixed; inset:0; background:rgba(17,24,39,.45); backdrop-filter:blur(2px); }
.dlts-modal .dlts-dialog{
  position:fixed; inset:auto 0 0 0; margin:auto;
  top:50%; transform:translateY(-50%);
  width:min(520px, calc(100% - 28px));
  background:#fff; border:1px solid var(--dlts-line);
  border-radius:16px; box-shadow:0 20px 60px rgba(0,0,0,.18);
  padding:16px; outline:none;
}
@media (max-width: 480px){
  .dlts-modal .dlts-dialog{width:calc(100% - 16px); padding:14px}
}

/* כפתור סגירה – בסיס אחיד, ממורכז ובשמאל (RTL) */
.dlts-modal .dlts-close{
  position:absolute; top:12px;
  inset-inline-end:12px;      /* ✔ בשמאל ב־RTL, בימין ב־LTR */
  inset-inline-start:auto;
  width:36px; height:36px;
  border-radius:999px; border:0;
  background:#f3f4f6; color:#111; cursor:pointer;
  display:flex; align-items:center; justify-content:center;  /* X ממורכז בול */
  font-size:18px; line-height:1; text-align:center;
}
.dlts-modal .dlts-close:hover{background:#e5e7eb}

/* גוף המודאל הכללי */
.dlts-modal .dlts-dialog-body{padding-inline:6px;padding-top:8px}
.dlts-modal .dlts-title{font-size:18px;font-weight:800;margin:0 0 8px}
.dlts-modal .dlts-meta{display:grid; gap:6px; margin-bottom:10px; color:#4b5563; font-size:14px}
.dlts-modal .dlts-meta .meta-row{display:flex; gap:6px; align-items:center}
.dlts-modal .dlts-meta .ico{opacity:.9}
.dlts-modal .dlts-desc{
  background:#fafafa;border:1px solid #eee;border-radius:12px;
  padding:10px; font-size:14px; color:#374151; max-height:240px; overflow:auto;
}
.dlts-modal .dlts-section-title{margin:12px 0 6px; font-weight:800; color:#374151}
.dlts-modal .dlts-invitees-list{list-style:none; padding:0; margin:0; display:grid; gap:4px}
.dlts-modal .dlts-invitees-list li{
  background:#f9fafb; border:1px solid #eef2f7; border-radius:10px; padding:6px 8px; font-size:14px;
}
.dlts-modal .dlts-actions{display:flex; gap:10px; justify-content:flex-start; margin-top:12px}
.dlts-modal .dlts-join-btn{text-decoration:none}
@media (prefers-reduced-motion: no-preference){
  .dlts-modal .dlts-dialog{transition:transform .18s ease, opacity .18s ease; opacity:1}
  .dlts-modal.hidden .dlts-dialog{opacity:0}
}

/* ===== מודאל "הבקשות שלי" – רחב ומסודר ===== */
.dlts-modal .dlts-dialog.dlts-myreqs-dialog{
  width:min(1280px, 98vw);
  max-width:1280px;
  max-height:88vh;
  overflow:auto;
  padding:20px;
  display:flex;
  flex-direction:column;
}
.dlts-myreqs-dialog .dlts-title{
  font-size:20px;
  margin:0 0 10px;
  padding-inline-end:44px; /* מרווח מ־X */
}
.dlts-myreqs-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:flex-end;
  margin:10px 0;
}
.dlts-myreqs-toolbar .dlts-field{ display:flex; flex-direction:column; gap:6px; }
.dlts-myreqs-toolbar label{ font-weight:700; font-size:13px; color:#374151; }
.dlts-myreqs-toolbar select,
.dlts-myreqs-toolbar input[type="search"]{
  min-width:220px; padding:10px 12px;
  border:1px solid var(--dlts-line); border-radius:12px; background:#fff;
  box-shadow:0 1px 2px rgba(16,24,40,.04) inset;
}
.dlts-myreqs-toolbar select{ min-width:160px; }
.dlts-myreqs-actions{ margin-inline-start:auto; }
.dlts-myreqs-actions .dlts-btn{ padding:10px 14px; border-radius:12px; }

.dlts-myreqs-dialog .dlts-table-wrap{
  flex:1; overflow:auto; border-radius:12px;
}
.dlts-myreqs-dialog .dlts-table{ min-width:980px; }
.dlts-myreqs-table{ margin-top:6px; }

/* ===== Modal של הגדרת ICS (הפופאפ החדש) ===== */
.dlts-ics-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.45);
  display:flex; align-items:center; justify-content:center; z-index:9999;
}
.dlts-ics-card{
  width:min(92vw,560px); max-width:560px;
  background:#fff; border:1px solid var(--dlts-line);
  border-radius:16px; box-shadow:0 20px 60px rgba(0,0,0,.18);
  padding:20px 20px 16px; direction:rtl; position:relative;
}
.dlts-ics-close{
  position:absolute; left:14px; top:12px; border:0; background:transparent;
  font-size:22px; opacity:.6; cursor:pointer;
}
.dlts-ics-title{margin:0 0 6px; font-size:20px; font-weight:800}
.dlts-ics-desc{margin:0 0 12px; color:#666; font-size:14px}
.dlts-ics-steps{margin:8px 0 14px; padding-inline-start:20px; line-height:1.6; color:#333; font-size:14px}
.dlts-ics-input{display:flex; gap:8px; align-items:center; margin:10px 0 14px}
.dlts-ics-url{
  flex:1; direction:ltr; background:#f7f7f9; border:1px solid #e5e7eb; border-radius:10px;
  padding:10px 12px; font-size:13px; color:#111;
}
.dlts-ics-actions{display:flex; gap:8px; flex-wrap:wrap; align-items:center; justify-content:flex-start; margin-top:6px}

/* כפתור פתיחת הגדרת ICS (פר-משתמש) */
.dlts-btn.dlts-ics-setup{
  background:#10b981; color:#fff; border:0; border-radius:10px;
  padding:8px 12px; box-shadow:0 6px 18px rgba(16,185,129,.2); cursor:pointer;
}
.dlts-btn.dlts-ics-setup:hover{ filter:brightness(0.95); }

/* ===== מובייל מלא ===== */
@media (max-width: 640px){
  .wd-hero-title{font-size:20px}
  .wd-hero-icon{font-size:22px}
  .wd-hello{white-space:normal}

  .dlts-toolbar{ padding:8px; min-height:auto; }

  #wd-join-cta{
    position:static; --wd-cta-tx: none; transform:none;
    margin:0 auto 6px; display:inline-flex; align-items:center; justify-content:center;
  }

  #dlts-ics-setup{ order:1; margin:6px 0 0 0; align-self:flex-start; }

  .dlts-modal .dlts-dialog.dlts-myreqs-dialog{ width:calc(100% - 16px); padding:14px; }
  .dlts-myreqs-toolbar{ gap:10px; }
}

.dlts-title.is-canceled
{
    text-decoration: line-through;
    opacity: .75;
}