/* שבצלי — שפת עיצוב "לוח שנה על שולחן" */
@import url('https://fonts.googleapis.com/css2?family=Secular+One&family=Alef:wght@400;700&display=swap');

:root {
  --cream:      #FDFBF5;
  --cream-2:    #F7F2E7;
  --card:       #FFFFFF;
  --sky:        #8FD3E8;
  --sky-soft:   #E6F5FB;
  --blue:       #2E7FA8;
  --blue-dark:  #226384;
  --ink:        #1F4E6B;
  --ink-2:      #6B8A9C;
  --coral:      #E8796B;
  --coral-soft: #FCEBE8;
  --sage:       #57A77C;
  --sage-soft:  #E8F5EE;
  --amber:      #D99A2B;
  --amber-soft: #FDF3E1;
  --line:       #EAE4D6;
  --r:          18px;
  --r-sm:       12px;
  --shadow:     0 2px 10px rgba(31, 78, 107, .06);
  --shadow-lg:  0 8px 28px rgba(31, 78, 107, .12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Alef', system-ui, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
body { direction: rtl; }

h1, h2, h3, h4, .font-display { font-family: 'Secular One', sans-serif; font-weight: 400; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.18rem; }
h3 { font-size: 1rem; }
a  { color: var(--blue); text-decoration: none; }

/* טווחי שעות ותאריכים: בידוד LTR כדי ש-09:00–16:00 לא יתהפך לרצף עברי */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.muted     { color: var(--ink-2); }
.small     { font-size: .85rem; }
.tiny      { font-size: .75rem; }
.center    { text-align: center; }
.grow      { flex: 1; }
.row       { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrap      { flex-wrap: wrap; }
.stack     { display: flex; flex-direction: column; gap: 12px; }
.hidden    { display: none !important; }

/* ---------- מבנה ---------- */
.app      { max-width: 1180px; margin: 0 auto; padding: 0 14px 90px; }
.app-slim { max-width: 560px; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(253, 251, 245, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0 9px;
  margin-bottom: 16px;
}
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 0 14px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: 'Secular One'; font-weight: 400; font-size: 1.1rem; color: var(--ink); }
.brand svg { width: 26px; height: 26px; }

/* ---------- כרטיסים ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px;
}
.card.tight { padding: 12px; }
.card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-family: 'Secular One'; font-weight: 400; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: 'Secular One', sans-serif; font-weight: 400; font-size: .95rem;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  background: var(--blue); color: #fff; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  min-height: 44px; white-space: nowrap;
}
.btn:hover  { background: var(--blue-dark); }
.btn:active { transform: scale(.97); }
.btn-ghost  { background: transparent; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { background: var(--sky-soft); }
.btn-soft   { background: var(--sky-soft); color: var(--blue); }
.btn-soft:hover { background: #d6eef7; }
.btn-danger { background: var(--coral); }
.btn-danger:hover { background: #d9604f; }
.btn-ok     { background: var(--sage); }
.btn-ok:hover { background: #479069; }
.btn-sm     { padding: 6px 13px; min-height: 34px; font-size: .85rem; }
.btn-lg     { padding: 14px 26px; min-height: 52px; font-size: 1.05rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- תגיות ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px; border-radius: 999px;
  font-size: .78rem; font-weight: 400; font-family: 'Secular One';
  background: var(--sky-soft); color: var(--blue);
}
.pill-ok    { background: var(--sage-soft);  color: var(--sage); }
.pill-warn  { background: var(--amber-soft); color: var(--amber); }
.pill-bad   { background: var(--coral-soft); color: var(--coral); }
.pill-mute  { background: var(--cream-2);    color: var(--ink-2); }

/* ---------- אווטאר ---------- */
.av {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  display: grid; place-items: center;
  background: var(--sky-soft); color: var(--blue);
  font-family: 'Alef'; font-weight: 700; font-size: .8rem;
  object-fit: cover; overflow: hidden;
}
.av-lg { width: 54px; height: 54px; flex-basis: 54px; font-size: 1.1rem; }
.av-sm { width: 26px; height: 26px; flex-basis: 26px; font-size: .68rem; }

/* ---------- טפסים ---------- */
input[type=text], input[type=number], input[type=date], input[type=time], input[type=tel], select, textarea {
  width: 100%; padding: 10px 13px; font: inherit; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sky); outline-offset: 1px; }
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: .85rem; color: var(--ink-2); margin-bottom: 5px; }

/* ---------- לוח שבועי ---------- */
.board { display: grid; gap: 10px; grid-template-columns: repeat(7, minmax(150px, 1fr)); }
.daycol { min-width: 0; }
.dayhead {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 6px 10px; border-radius: var(--r-sm) var(--r-sm) 0 0;
  background: var(--cream-2); border: 1px solid var(--line); border-bottom: none;
  font-family: 'Secular One'; font-weight: 400; font-size: .9rem;
}
.dayhead.is-weekend { background: var(--sky-soft); }

.shiftbox {
  background: var(--card); border: 1px solid var(--line); border-top: none;
  padding: 9px; margin-bottom: 10px;
}
.shiftbox:last-child { border-radius: 0 0 var(--r-sm) var(--r-sm); }
.shiftbox.bad  { box-shadow: inset 3px 0 0 var(--coral); }
.shiftbox.warn { box-shadow: inset 3px 0 0 var(--amber); }
.shiftbox.ok   { box-shadow: inset 3px 0 0 var(--sage); }

.slot {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 8px; margin-bottom: 5px; border-radius: 10px;
  background: var(--cream); border: 1px solid var(--line);
  font-size: .84rem; cursor: pointer;
}
.slot:hover { border-color: var(--sky); }
.slot.empty { background: repeating-linear-gradient(45deg, #fff, #fff 6px, var(--cream-2) 6px, var(--cream-2) 12px); color: var(--ink-2); }
.slot.open  { border-style: dashed; border-color: var(--blue); background: var(--sky-soft); }
.slot.seek  { border-color: var(--amber); background: var(--amber-soft); }
.slot .t    { font-family: 'Alef'; font-weight: 700; font-size: .72rem; color: var(--ink-2); white-space: nowrap; }
.slot .dot  { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }

/* ---------- טבלת עובדים (דסקטופ) ---------- */
.wk { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .82rem; }
.wk th { font-family: 'Secular One'; font-weight: 400; font-size: .84rem; padding: 7px 4px; text-align: center; color: var(--ink); }
.wk th a { color: inherit; }
.wk th .d { font-size: .7rem; color: var(--ink-2); direction: ltr; display: block; }
.wk th.we { background: var(--sky-soft); border-radius: 9px 9px 0 0; }
.wk td { padding: 3px; vertical-align: top; }
.wk .who { text-align: right; padding-inline-end: 9px; white-space: nowrap; vertical-align: middle; }
.wk tbody tr:nth-child(even) td { background: #FCFAF4; }

.chip {
  border-radius: 8px; padding: 4px 7px; margin-bottom: 3px; font-size: .7rem; line-height: 1.3;
  display: flex; align-items: center; gap: 4px; cursor: pointer;
}
.chip .t { direction: ltr; opacity: .9; font-size: .66rem; margin-inline-start: auto; }
.chip.morn { background: #DCEFF7; color: #1F4E6B; }
.chip.eve  { background: #4FA8CC; color: #fff; }
.chip.empty { background: transparent; border: 2px dashed var(--coral); color: var(--coral); justify-content: center; }
.cell-off { height: 28px; border-radius: 8px; background: var(--cream-2); opacity: .55; }

.qb { width: 62px; height: 6px; background: var(--cream-2); border-radius: 4px; overflow: hidden; display: inline-block; vertical-align: middle; }
.qb i { display: block; height: 100%; background: var(--blue); }
.wk tfoot td { padding-top: 7px; }
.st { border-radius: 7px; padding: 4px 3px; font-size: .68rem; text-align: center; font-family: 'Alef'; font-weight: 700; margin-bottom: 3px; }
.st.ok { background: var(--sage-soft); color: var(--sage); }
.st.warn { background: var(--amber-soft); color: var(--amber); }
.st.bad { background: var(--coral-soft); color: var(--coral); }

/* ---------- מובייל: פס שבוע + כרטיסי יום ---------- */
.wstrip { display: flex; gap: 5px; margin-bottom: 12px; }
.wstrip a {
  flex: 1; text-align: center; padding: 6px 2px 5px; border-radius: 11px;
  background: var(--card); border: 1px solid var(--line);
}
.wstrip a b { display: block; font-family: 'Secular One'; font-size: .86rem; color: var(--ink); }
.wstrip a .dt { display: block; font-size: .58rem; color: var(--ink-2); direction: ltr; }
.wstrip a .n { display: block; font-size: .6rem; color: var(--ink-2); margin-top: 2px; }
.wstrip a .bar { display: block; height: 3px; border-radius: 2px; margin-top: 4px; background: var(--sage); }
.wstrip a.warn .bar { background: var(--amber); }
.wstrip a.bad .bar { background: var(--coral); }

.dcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
         box-shadow: var(--shadow); margin-bottom: 11px; overflow: hidden; }
.dcard.bad  { border-inline-start: 4px solid var(--coral); }
.dcard.warn { border-inline-start: 4px solid var(--amber); }
.dcard.ok   { border-inline-start: 4px solid var(--sage); }
.dhead { display: flex; align-items: center; gap: 8px; padding: 10px 13px; background: #FCFAF4; }
.dhead b { font-family: 'Secular One'; font-size: 1rem; }
.dhead .dt { font-size: .72rem; color: var(--ink-2); direction: ltr; }
.part { padding: 8px 13px 10px; }
.part + .part { border-top: 1px dashed var(--line); }
.phead { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: .76rem; color: var(--ink-2); }
.phead b { color: var(--ink); font-family: 'Alef'; font-weight: 700; }
.prow { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.prow + .prow { border-top: 1px solid #F4EFE3; }
.prow .tm { font-family: 'Alef'; font-weight: 700; font-size: .8rem; direction: ltr; width: 44px; flex: 0 0 44px; }
.prow .nm { font-size: .84rem; }
.prow .ps { font-size: .68rem; color: var(--ink-2); }
.prow .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.prow.gap .nm { color: var(--coral); font-weight: 700; }

.seg { display: flex; background: var(--cream-2); border-radius: 11px; padding: 3px; margin-bottom: 12px; }
.seg a { flex: 1; text-align: center; padding: 7px; border-radius: 9px; font-size: .8rem;
         color: var(--ink-2); font-family: 'Secular One'; cursor: pointer; }
.seg a.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- מגירת צוות + גרירה ---------- */
.person { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line);
          border-radius: 11px; margin-bottom: 6px; background: var(--card); cursor: grab; }
.person.rec { border-color: var(--sage); background: var(--sage-soft); }
.person.dragging { opacity: .45; }
.person .meta { font-size: .66rem; color: var(--ink-2); }
.badge { font-size: .62rem; padding: 2px 7px; border-radius: 999px; margin-inline-start: auto; white-space: nowrap; }
.badge.sub { background: var(--sage-soft); color: var(--sage); }
.badge.no  { background: var(--cream-2); color: var(--ink-2); }
.badge.blk { background: var(--coral-soft); color: var(--coral); }

.slotrow { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid var(--line);
           border-radius: 11px; margin-bottom: 6px; background: var(--cream); }
.slotrow.gap { border: 2px dashed var(--coral); background: var(--coral-soft); }
.slotrow.over { border: 2px dashed var(--blue); background: var(--sky-soft); }
.slotrow .hrs { font-size: .72rem; color: var(--ink-2); direction: ltr; width: 88px; flex: 0 0 88px; }
.slotrow .pos { font-size: .72rem; width: 58px; flex: 0 0 58px; }

/* ---------- פסק דין למשמרת ---------- */
.verdict {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 10px; border-radius: 10px; margin-bottom: 8px;
  font-family: 'Alef'; font-weight: 700; font-size: .85rem; line-height: 1.3;
}
.verdict-ok   { background: var(--sage-soft);  color: #2F7350; }
.verdict-warn { background: var(--amber-soft); color: #9A6B12; }
.verdict-bad  { background: var(--coral-soft); color: #C24B3B; }
.verdict .vi  { font-size: 1rem; }
.verdict .vx  { font-size: .72rem; opacity: .85; font-family: 'Alef'; }

/* ---------- עקומת כיסוי ---------- */
.curve { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); }
.curve-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.curve-head b { font-size: .75rem; color: var(--ink-2); font-family: 'Alef'; font-weight: 700; }
.curve-row { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.curve-label {
  font-size: .72rem; color: var(--ink); width: 52px; flex: 0 0 52px; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.curve-track {
  display: flex; gap: 2px; flex: 1; height: 22px;
  background: var(--cream-2); border-radius: 6px; padding: 2px;
}
.curve-cell { flex: 1; border-radius: 3px; background: var(--sage); min-width: 3px; opacity: .92; }
.curve-cell.warn { background: var(--amber); }
.curve-cell.bad  { background: var(--coral); }
.curve-cell.none { background: var(--line); }
.curve-axis {
  display: flex; justify-content: space-between;
  font-size: .68rem; color: var(--ink-2); margin-right: 59px; margin-top: 1px;
}
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: var(--ink-2); }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; vertical-align: -2px; margin-left: 5px; }

/* ---------- מסך העובד ---------- */
.myshift {
  background: linear-gradient(160deg, var(--sky-soft), var(--card) 65%);
  border: 1px solid var(--sky); border-radius: var(--r);
  padding: 18px; box-shadow: var(--shadow);
}
.myshift .when { font-family: 'Secular One'; font-size: 1.45rem; font-weight: 400; }
.myshift .pos  { font-size: 1rem; color: var(--blue); font-weight: 600; }

.tasklist { list-style: none; margin: 0; padding: 0; }
.tasklist li {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; margin-bottom: 7px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer;
}
.tasklist li.done { background: var(--sage-soft); border-color: transparent; color: var(--ink-2); }
.tasklist li.done .task-title { text-decoration: line-through; }
.check {
  width: 24px; height: 24px; flex: 0 0 24px; border-radius: 8px;
  border: 2px solid var(--line); display: grid; place-items: center;
  color: transparent; font-size: .8rem;
}
.tasklist li.done .check { background: var(--sage); border-color: var(--sage); color: #fff; }

/* בורר זמינות */
.avail-grid { display: grid; grid-template-columns: 64px 1fr; gap: 6px; align-items: center; }
.avail-opts { display: flex; gap: 6px; }
.avail-opt {
  flex: 1; padding: 9px 4px; border-radius: 10px; text-align: center;
  border: 1px solid var(--line); background: var(--card);
  font-size: .8rem; cursor: pointer; min-height: 42px;
}
.avail-opt.sel-free  { background: var(--sage-soft);  border-color: var(--sage);  color: var(--sage);  font-weight: 700; }
.avail-opt.sel-block { background: var(--coral-soft); border-color: var(--coral); color: var(--coral); font-weight: 700; }
.avail-opt.sel-want  { background: var(--sky-soft);   border-color: var(--blue);  color: var(--blue);  font-weight: 700; }
.avail-opt.sel-none  { background: var(--cream-2);    border-color: var(--ink-2); color: var(--ink-2); font-weight: 700; }

/* ---------- ניווט תחתון (מובייל) ---------- */
.tabbar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 50;
  display: flex; background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 2px; font-size: .68rem; color: var(--ink-2); border-radius: 12px;
}
.tabbar a.on { color: var(--blue); background: var(--sky-soft); }
.tabbar svg { width: 21px; height: 21px; }

/* ---------- התראות/הודעות ---------- */
.note { padding: 12px 14px; border-radius: var(--r-sm); font-size: .9rem; margin-bottom: 12px; }
.note-info { background: var(--sky-soft);   color: var(--blue); }
.note-bad  { background: var(--coral-soft); color: var(--coral); }
.note-warn { background: var(--amber-soft); color: var(--amber); }
.note-ok   { background: var(--sage-soft);  color: var(--sage); }

.empty { text-align: center; padding: 34px 16px; color: var(--ink-2); }
.empty svg { width: 108px; height: 108px; margin-bottom: 10px; }

/* ---------- מודאל ---------- */
.modal-bg {
  position: fixed; inset: 0; z-index: 100; background: rgba(31,78,107,.34);
  display: grid; place-items: end center; padding: 0;
}
.modal {
  background: var(--card); width: 100%; max-width: 560px;
  border-radius: var(--r) var(--r) 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg); max-height: 88vh; overflow-y: auto;
  animation: sheet .22s cubic-bezier(.2,.8,.3,1);
}
@keyframes sheet { from { transform: translateY(30px); opacity: 0; } }
@media (min-width: 700px) {
  .modal-bg { place-items: center; }
  .modal { border-radius: var(--r); }
}

/* ---------- אנימציית כניסה: חץ בול בלוח הזמנים (1.5 שניות) ---------- */
/* כבר נראתה בסשן הזה — לא מציירים אותה בכלל */
.no-splash #splash { display: none !important; }

#splash {
  position: fixed; inset: 0; z-index: 999;
  background: radial-gradient(ellipse at 50% 42%, #FFFEFA 0%, var(--cream) 58%, #F4EEE0 100%);
  display: grid; place-items: center;
}
#splash.out { animation: splashOut .38s ease forwards; }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

.splash-name {
  font-family: 'Secular One', sans-serif; font-size: 2.2rem; color: var(--ink);
  margin-top: 16px; text-align: center; opacity: 0;
  animation: nameIn .44s cubic-bezier(.2,.8,.3,1) .96s forwards;
}
.splash-sub {
  font-size: .84rem; color: var(--ink-2); text-align: center; opacity: 0;
  animation: nameIn .38s ease 1.10s forwards;
}
@keyframes nameIn {
  from { opacity: 0; transform: translateY(10px); letter-spacing: .14em; }
  to   { opacity: 1; transform: none; letter-spacing: 0; }
}

/* הלוח הריק נכנס */
.sp-grid { transform-box: fill-box; transform-origin: center; animation: gridIn .28s ease both; }
@keyframes gridIn { from { opacity: 0; transform: scale(.93); } to { opacity: 1; transform: none; } }

/* צ'יפ = עובד שנוחת במשבצת */
.sp-chip {
  transform-box: fill-box; transform-origin: center;
  animation: chipIn .4s cubic-bezier(.18,1.4,.4,1) both;
}
.sp-chip.up { animation-name: chipInUp; }
@keyframes chipIn {
  0%   { opacity: 0; transform: translateY(52px) scale(.5) rotate(-8deg); }
  55%  { opacity: 1; }
  76%  { transform: translateY(-3px) scale(1.08) rotate(1.5deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes chipInUp {
  0%   { opacity: 0; transform: translateY(-52px) scale(.5) rotate(8deg); }
  55%  { opacity: 1; }
  76%  { transform: translateY(3px) scale(1.08) rotate(-1.5deg); }
  100% { opacity: 1; transform: none; }
}

/* הווי הירוק בסוף */
.sp-check {
  transform-box: fill-box; transform-origin: center; opacity: 0;
  animation: checkPop .36s cubic-bezier(.2,1.6,.4,1) 1.0s both;
}
.sp-cring {
  transform-box: fill-box; transform-origin: center; opacity: 0;
  animation: ringOut .52s cubic-bezier(.2,.6,.3,1) 1.04s;
}
@keyframes checkPop { 0% { opacity: 0; transform: scale(.2); } 100% { opacity: 1; transform: none; } }
@keyframes ringOut  { 0% { opacity: .85; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.3); } }

@media (prefers-reduced-motion: reduce) {
  #splash * { animation: none !important; opacity: 1 !important; transform: none !important; }
  .sp-cring { opacity: 0 !important; }
  .modal { animation: none !important; }
}

/* ---------- מובייל ---------- */
@media (max-width: 860px) {
  .board { grid-template-columns: 1fr; }
  .dayhead { border-radius: var(--r-sm) var(--r-sm) 0 0; }
  .desktop-only { display: none !important; }

  /* במובייל הסידור עולה למעלה. ההסברים והפאנלים יורדים מתחתיו. */
  .flow { display: flex; flex-direction: column; }
  .flow > .f-sub   { order: 1; }
  .flow > .f-build { order: 2; }
  .flow > .f-mob   { order: 3; }
  .flow > .f-sug   { order: 4; }
  .flow > .f-info  { order: 5; }
  .flow > .f-alert { order: 6; }
  .hide-mobile { display: none !important; }
  .editor .card#drawer { position: static !important; width: 100% !important; flex-basis: auto !important; }
}
@media (min-width: 861px) {
  .mobile-only { display: none !important; }
  .tabbar { display: none; }
  .app { padding-bottom: 40px; }
}

/* ---------- הגשות (manager_submit) ---------- */
.emp { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 8px; overflow: hidden; }
.emp .head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; user-select: none; }
.emp .head b { font-size: 1.02rem; }
.emp .head .cnt { margin-inline-start: auto; }
.emp .caret { transition: transform .15s; }
.emp.open { border-color: var(--sky); box-shadow: 0 2px 12px rgba(46,127,168,.08); }
.emp.open .head { background: var(--sky-soft); }
.emp.open .caret { transform: rotate(180deg); }
.emp .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 12px 14px 6px; }
.emp .day { text-align: center; }
.emp .day .dn { font-family: 'Secular One'; font-size: .95rem; }
.emp .day .dd { font-size: .68rem; color: var(--ink-2); margin-bottom: 6px; }
.emp .day.we .dn { color: var(--blue); }
.emp .chip { display: block; width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 0; margin-bottom: 5px;
  background: #fff; color: var(--ink-2); font-family: 'Alef', sans-serif; font-size: .86rem; cursor: pointer; min-height: 38px; }
.emp .chip:hover { border-color: var(--sky); }
.emp .chip.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.emp .chip.na { opacity: .32; border-style: dashed; cursor: default; }
.emp .foot { display: flex; gap: 8px; align-items: center; padding: 6px 14px 12px; font-size: .8rem; flex-wrap: wrap; }
.emp .foot .sv { color: var(--sage); margin-inline-start: auto; }
.mini { display: flex; gap: 3px; margin-inline-start: 6px; }
.mini span { width: 14px; height: 14px; border-radius: 4px; background: var(--cream-2); position: relative; display: inline-block; }
.mini span.m::before { content: ''; position: absolute; inset: 0 0 50% 0; background: var(--sky); border-radius: 4px 4px 0 0; }
.mini span.e::after  { content: ''; position: absolute; inset: 50% 0 0 0; background: var(--blue); border-radius: 0 0 4px 4px; }
.mini span.m.e::before { border-radius: 4px 4px 0 0; }
@media (max-width: 600px) {
  .emp .days { grid-template-columns: repeat(4, 1fr); }
  .emp .head { padding: 11px 12px; }
}

/* ---------- הגדרות ---------- */
.set-card { min-width: 240px; color: var(--ink); display: block; transition: border-color .15s, transform .15s; }
.set-card:hover { border-color: var(--sky); transform: translateY(-1px); }
.set-card p { margin: 0; }

/* ---------- מגירת הצוות: כותרות קבוצה ---------- */
.grp { font-family: 'Secular One', sans-serif; font-size: .84rem; color: var(--blue); margin: 13px 0 6px;
  padding-bottom: 4px; border-bottom: 1.5px solid var(--sky); display: flex; align-items: center; gap: 6px; }
.grp .n { font-family: 'Alef', sans-serif; font-size: .72rem; background: var(--sky-soft); color: var(--blue);
  border-radius: 10px; padding: 1px 7px; }
.grp-other summary { cursor: pointer; list-style: none; opacity: .75; }
.grp-other summary::-webkit-details-marker { display: none; }
.grp-other summary::after { content: ' ▾'; font-size: .7rem; }
.grp-other[open] summary::after { content: ' ▴'; }
