/* ═══════════════════ הטופס הציבורי — אילוצי משמרות ═══════════════════
   עצמאי לגמרי (בלי styles.css של המערכת): אותם צבעים, פחות תלות.
   מובייל קודם — העובדים פותחים מוואטסאפ בטלפון. */
:root{
  --navy:#1A3A8C; --navy-deep:#0D2257; --navy-soft:#EAF0FB;
  --ink:#141B2E; --muted:#4B5470; --faint:#626C8C;
  --paper:#F1F4FB; --surface:#FFFFFF; --line:#E1E6F2; --line-strong:#C9D2E6;
  --accent:#C8861E; --on-accent:#FFFFFF;
  --morning:#B0741A; --morning-bg:#FBF1DE;
  --evening:#3A3F9E; --evening-bg:#E8E9F9;
  --open:#1B7A57; --open-bg:#E7F4EF;
  --off:#5B6480; --off-bg:#EEF0F5;
  --bad:#AE3B3B; --bad-bg:#FAEBEB;
  --good:#1B7A57;
  --shadow:0 1px 2px rgba(20,27,46,.05), 0 8px 24px -12px rgba(20,27,46,.14);
  --he:'Assistant',-apple-system,'Segoe UI',sans-serif;
  --display:'Rubik','Assistant',sans-serif;
}
/* תמיד בהיר — החלטת רמי: הטופס לעובדים לא עוקב אחרי מצב הלילה של הטלפון */

*{ box-sizing:border-box }
html{ -webkit-text-size-adjust:100% }
body{ margin:0; background:var(--paper); color:var(--ink); font-family:var(--he); font-size:16px; line-height:1.45;
  min-height:100dvh; padding-bottom:calc(88px + env(safe-area-inset-bottom,0px)) }
button, input, textarea{ font:inherit; color:inherit }

.top{ background:linear-gradient(180deg,#1C2B68,#0D2257); color:#fff; padding:calc(14px + env(safe-area-inset-top,0px)) 18px 16px;
  display:flex; align-items:center; gap:14px }
.top .logo{ height:44px; width:auto }
.top h1{ margin:0; font:700 18px/1.2 var(--display) }
.top .branch{ font-size:14px; opacity:.85; margin-top:2px }
.top .branch b{ color:#F0BB66 }

.wrap{ max-width:560px; margin:0 auto; padding:16px 16px 0 }
.loading, .error{ text-align:center; color:var(--muted); padding:40px 10px }
.error{ color:var(--bad) }

.card{ background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow);
  padding:16px; margin-bottom:14px }
.card h2{ margin:0 0 10px; font:700 15.5px var(--display); color:var(--navy) }
.hint{ font-size:13px; color:var(--faint) }

.lock{ display:flex; align-items:center; gap:10px; background:var(--navy-soft); border-radius:10px; padding:10px 12px; font-size:14px }
.lock b{ font-size:17px; color:var(--navy) }
.lock .ico{ font-size:18px }

label.lbl{ display:block; font-weight:700; font-size:14px; margin-bottom:6px }
input.txt, textarea{ width:100%; padding:12px 13px; border:1.5px solid var(--line-strong); border-radius:11px; background:var(--surface);
  font-size:17px }
textarea{ min-height:84px; resize:vertical; font-size:15.5px }
input.txt:focus, textarea:focus{ outline:none; border-color:var(--navy); box-shadow:0 0 0 3px rgba(26,58,140,.15) }
.bad input.txt{ border-color:var(--bad); box-shadow:0 0 0 3px rgba(174,59,59,.15) }

.day{ display:grid; grid-template-columns:78px 1fr; gap:10px; align-items:center; padding:10px 0; border-top:1px solid var(--line) }
.day:first-of-type{ border-top:0 }
.day .dn{ font-weight:800; font-size:15px; line-height:1.15 }
.day .dn small{ display:block; font-weight:500; color:var(--muted); font-size:12px; margin-top:2px }
.day .en{ display:block; font-weight:500; color:var(--faint); font-size:11px }
.opts{ display:grid; grid-template-columns:repeat(4,1fr); gap:6px }
.opts.n3{ grid-template-columns:repeat(3,1fr) }
.opts.n2{ grid-template-columns:repeat(2,1fr) }
.opt{ padding:9px 4px; border:1.5px solid var(--line-strong); border-radius:10px; background:var(--surface); font-weight:700; font-size:14px;
  cursor:pointer; text-align:center; line-height:1.15; min-height:42px; transition:background .12s,border-color .12s,color .12s }
.opt small{ display:block; font-weight:500; font-size:10.5px; opacity:.75 }
.opt.on.morning{ background:var(--morning-bg); border-color:var(--morning); color:var(--morning) }
.opt.on.evening{ background:var(--evening-bg); border-color:var(--evening); color:var(--evening) }
.opt.on.open{ background:var(--open-bg); border-color:var(--open); color:var(--open) }
.opt.on.off{ background:var(--off-bg); border-color:var(--off); color:var(--off) }
.day.bad .opts{ outline:2px solid var(--bad); outline-offset:3px; border-radius:12px }
.closed{ color:var(--faint); font-size:14px; padding:8px 4px }

.foot{ position:fixed; inset-inline:0; bottom:0; background:var(--surface); border-top:1px solid var(--line);
  padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px)); box-shadow:0 -6px 20px -12px rgba(0,0,0,.25) }
.foot-in{ max-width:560px; margin:0 auto; display:flex; gap:10px; align-items:center }
.btn{ padding:13px 18px; border-radius:12px; border:1.5px solid var(--line-strong); background:var(--surface); font-weight:700; font-size:16px; cursor:pointer }
.btn-primary{ background:var(--navy); border-color:var(--navy); color:#fff; flex:1 }
.btn[disabled]{ opacity:.6; cursor:default }
.msg{ font-size:13.5px; color:var(--bad); flex:1 }

.done{ text-align:center; padding:12px 0 }
.done .mark{ width:64px; height:64px; border-radius:50%; background:var(--open-bg); color:var(--good); font-size:34px; font-weight:800;
  display:flex; align-items:center; justify-content:center; margin:6px auto 12px }
.done h2{ font:700 22px var(--display); margin:0 0 4px; color:var(--ink) }
.done p{ margin:4px 0; color:var(--muted) }
.sum{ display:grid; grid-template-columns:repeat(7,1fr); gap:5px; margin:16px 0 }
.sum div{ font-size:11.5px; color:var(--muted); font-weight:700 }
.sum .cell{ display:block; margin-top:4px; padding:7px 2px; border-radius:8px; font-size:12px; font-weight:700; border:1px solid transparent }
.cell.morning{ background:var(--morning-bg); color:var(--morning) }
.cell.evening{ background:var(--evening-bg); color:var(--evening) }
.cell.open{ background:var(--open-bg); color:var(--open) }
.cell.off{ background:var(--off-bg); color:var(--off) }
.cell.none{ background:transparent; color:var(--faint); border-color:var(--line) }
.note{ background:var(--paper); border-radius:10px; padding:10px 12px; font-size:14px; text-align:start; white-space:pre-wrap }
.again{ margin-top:16px; display:flex; flex-direction:column; gap:8px }

/* הודעת הסניף: כרטיס רגיל עם פס נייבי בצד, כותרת קטנה ושקטה, טקסט רגיל */
.notice{ border-inline-start:4px solid var(--navy); background:var(--surface) }
.notice-h{ font-size:12px; font-weight:700; color:var(--navy); letter-spacing:.04em; margin-bottom:5px }
.notice-t{ white-space:pre-wrap; font-size:15px; font-weight:400; color:var(--ink); line-height:1.5 }


/* ═══════════════ עמוד החתימה על הסכם עבודה ═══════════════ */
.sign-body .ct-wrap{ padding:0; overflow:hidden }
/* הגיליון נקרא בטלפון: רוחב מלא במקום A4, בלי גלילה הצידה */
.sign-body .doc .sheet{ width:100%; min-height:0; box-shadow:none; border-radius:12px }
.sign-body .done-note{ border-inline-start:4px solid var(--good, #1B7F4F) }

.sig-pad{ position:relative; height:160px; border:2px dashed var(--line, #C9D2E4);
  border-radius:12px; background:#fff; touch-action:none; overflow:hidden }
.sig-pad canvas{ width:100%; height:100%; display:block; touch-action:none; cursor:crosshair }
.sig-hint{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color:var(--muted, #6B7A99); font-size:15px; pointer-events:none }
.sig-acts{ display:flex; justify-content:flex-end; margin-top:8px }


/* שאלת "למלא כמו בפעם הקודמת" — כרטיס בולט עם פס נייבי, שלא ייראה כמו
   עוד שדה בטופס אלא כמו החלטה שצריך לקבל. (רמי, 2026-09-22) */
.ask{ border-inline-start:4px solid var(--navy) }
.ask-t{ font-weight:800; font-size:16px; margin-bottom:4px }
.ask-t small{ display:block; font-weight:500; font-size:12.5px; color:var(--faint); margin-top:2px }
.ask-b{ display:flex; gap:8px; margin-top:12px; flex-wrap:wrap }
.ask-b .btn{ flex:1 1 130px; min-height:46px }
.filled-note{ background:var(--navy-soft); color:var(--navy); border-radius:9px;
  padding:8px 10px; margin-bottom:10px; font-weight:600 }

/* ═══════════════ טופס הקליטה של עובד חדש ═══════════════ */

/* מתג השפה: כפתור אחד גדול בראש הדף ולא תפריט — מי שלא קורא עברית צריך
   לראות את הדרך החוצה מיד, בלי לחפש. (רמי, 2026-09-22) */
.top{ position:relative }
.langbtn{ margin-inline-start:auto; align-self:center; flex:0 0 auto;
  padding:10px 16px; border-radius:12px; border:1.5px solid rgba(255,255,255,.45);
  background:rgba(255,255,255,.12); color:#fff; font-weight:800; font-size:15px;
  cursor:pointer; white-space:nowrap; min-height:44px }
.langbtn:active{ background:rgba(255,255,255,.22) }

.intro h2{ font-size:19px; color:var(--ink); margin-bottom:8px }
.intro p{ margin:0 0 9px; font-size:15px; color:var(--muted); line-height:1.55 }
.intro p:last-child{ margin-bottom:0; font-weight:700; color:var(--navy) }

.flds{ display:flex; flex-direction:column; gap:12px; margin-top:12px }
.flds.muted{ opacity:.45 }
.fld-row{ display:grid; grid-template-columns:1fr 1fr; gap:10px }
.fld .hint{ margin-top:4px }
select.txt{ width:100%; padding:12px 13px; border:1.5px solid var(--line-strong); border-radius:11px;
  background:var(--surface); font-size:17px; appearance:none;
  /* החץ מצויר ידנית וממוקם לפי כיוון הכתיבה — ב-RTL ברירת המחדל נדחקת
     אל מחוץ לשדה באייפון. */
  background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-size:6px 6px,6px 6px; background-repeat:no-repeat }
html[dir="rtl"] select.txt{ background-position:left 15px top 22px,left 9px top 22px; padding-inline-start:34px }
html[dir="ltr"] select.txt{ background-position:right 15px top 22px,right 9px top 22px; padding-inline-end:34px }
select.txt:disabled, input.txt:disabled{ background:var(--paper); color:var(--faint) }
.fld.bad input.txt, .fld.bad select.txt{ border-color:var(--bad); box-shadow:0 0 0 3px rgba(174,59,59,.15) }
.fld-err{ color:var(--bad); font-size:13px; font-weight:700; margin-top:5px }
.card.bad{ border-color:var(--bad) }

.chk{ display:flex; align-items:flex-start; gap:10px; margin-top:14px; padding:11px 12px;
  background:var(--paper); border-radius:11px; cursor:pointer; font-size:15px; font-weight:700 }
.chk input{ width:22px; height:22px; flex:0 0 auto; margin:0; accent-color:var(--navy) }
.chk small{ display:block; font-weight:400; font-size:13px; color:var(--faint); margin-top:2px }

.q{ font-size:15.5px; font-weight:700; margin:0 0 12px; line-height:1.45 }
.picks{ display:flex; flex-direction:column; gap:8px }
.pick{ padding:13px 14px; border:1.5px solid var(--line-strong); border-radius:12px; background:var(--surface);
  font-weight:700; font-size:16px; cursor:pointer; text-align:start; min-height:48px;
  transition:background .12s,border-color .12s,color .12s }
.pick.on{ background:var(--navy-soft); border-color:var(--navy); color:var(--navy) }

.up{ margin-top:14px; padding-top:14px; border-top:1px solid var(--line) }
.file-btn{ display:inline-block; margin-top:10px; text-align:center }
.file-name{ font-size:13.5px; color:var(--good); font-weight:700; margin-top:8px }

.f101 .btn-accent{ display:block; text-align:center; text-decoration:none;
  background:var(--accent); border-color:var(--accent); color:var(--on-accent); margin-top:10px }
.done .f101{ box-shadow:none; border:0; padding:0; margin:18px 0 0 }
