/* אלפון עובדים — עיצוב */
#alfon-root{max-width:none;margin:0;padding:0 0 40px;direction:rtl;font-family:'Rubik','Tahoma',sans-serif;color:#334155}
#alfon-root *{box-sizing:border-box}

.alf-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.alf-title{font-size:22px;font-weight:700;color:#101828;display:flex;align-items:center;gap:10px}
.alf-title .alf-emoji{font-size:24px}
.alf-badge{width:40px;height:40px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:linear-gradient(135deg,#e11d48,#be123c);box-shadow:0 4px 12px rgba(225,29,72,.32)}
.alf-badge svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.alf-title-txt{display:flex;flex-direction:column;line-height:1.25}
.alf-title small{display:block;font-size:12px;font-weight:400;color:#64748b;margin-top:2px}
.alf-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.alf-search{height:40px;width:340px;max-width:70vw;border:1.5px solid #e2e8f0;border-radius:22px;padding:0 18px;font-family:inherit;font-size:14px;color:#334155;background:#fff;transition:border-color .2s,box-shadow .2s}
.alf-search:focus{outline:none;border-color:#e11d48;box-shadow:0 0 0 3px rgba(225,29,72,.12)}
.alf-btn{height:40px;border:1.5px solid #e2e8f0;background:#fff;border-radius:11px;padding:0 15px;font-family:inherit;font-size:13px;font-weight:600;color:#475569;cursor:pointer;transition:all .2s;white-space:nowrap}
.alf-btn:hover{border-color:#e11d48;color:#be123c;background:#fff1f2}
.alf-btn-on{background:#be123c;color:#fff;border-color:#9f1239}
.alf-btn-on:hover{background:#9f1239;color:#fff}
.alf-btn-primary{background:linear-gradient(135deg,#e11d48,#9f1239);color:#fff;border-color:#9f1239}
.alf-btn-primary:hover{color:#fff;box-shadow:0 4px 12px rgba(190,18,60,.3)}

.alf-tracks{display:flex;align-items:center;gap:8px;margin-bottom:14px}
.alf-tracks-lbl{font-size:13px;color:#64748b;font-weight:600}
.alf-pill{height:36px;border:1.5px solid #e2e8f0;background:#fff;border-radius:20px;padding:0 20px;font-family:inherit;font-size:13px;font-weight:600;color:#64748b;cursor:pointer;transition:all .2s}
.alf-pill:hover{border-color:#cbd5e1;color:#334155}
.alf-pill.on-all{background:#fff1f2;border-color:#be123c;color:#be123c}
.alf-pill.on-reut{background:#fce4ec;border-color:#e91e63;color:#c2185b}
.alf-pill.on-kumi{background:#fff3e0;border-color:#ff9800;color:#e65100}

.alf-notice{background:#fffbeb;border:1px solid #fde6c4;border-radius:var(--r-btn);padding:9px 16px;margin-bottom:20px;font-size:13px;color:#b45309;font-weight:500}

.alf-dep{background:#fff;border-radius:var(--r-card);box-shadow:var(--sh-card);border:1px solid var(--line);margin-bottom:20px;overflow:hidden}
.alf-dep-head{padding:15px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #f1f3f8}
.alf-dep-head h2{font-size:17px;font-weight:600;margin:0}
.alf-count{font-size:12px;font-weight:600;color:inherit;background:rgba(15,23,42,.06);padding:4px 12px;border-radius:20px}

.alf-table-wrap{overflow-x:auto}
.alf-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}
.alf-table thead th{background:#f6f8fb;color:#64748b;font-weight:700;font-size:12px;letter-spacing:.3px;text-align:right;padding:0 16px;height:46px;border-bottom:2px solid #e2e8f0;white-space:nowrap}
.alf-table td{padding:8px 16px;height:56px;border-bottom:1px solid #f4f7fb;vertical-align:middle;color:#334155}
.alf-table tbody tr:last-child td{border-bottom:none}
.alf-table tbody tr:nth-child(even) td{background:#fcfdfe}
.alf-table tbody tr:hover td{background:#f5faff}
.alf-table .c-name strong{font-weight:600}
.alf-emp{display:none}
/* עיגול ראשי־תיבות לצד השם */
.alf-person{display:flex;align-items:center;gap:11px}
.alf-avatar{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;font-weight:700;font-size:13px;flex-shrink:0;letter-spacing:.3px}
.alf-table .c-wa{width:34px;text-align:center;padding:0 2px}
.alf-table .c-name{min-width:150px}
.alf-table .c-bday{min-width:140px}
.alf-dash{color:#cbd5e1}

.alf-tel,.alf-mail{color:#334155;text-decoration:none;font-weight:500;direction:ltr;display:inline-block}
.alf-tel:hover,.alf-mail:hover{color:#be123c;text-decoration:underline}
.alf-wa{display:inline-flex;transition:transform .15s}
.alf-wa:hover{transform:scale(1.15)}
.alf-heb-v{display:block;font-weight:600;color:#1e293b}
.alf-greg{display:block;font-size:11px;color:#94a3b8;direction:ltr}

.alf-in{width:100%;min-width:90px;height:34px;border:1.5px solid #e2e8f0;border-radius:8px;padding:0 10px;font-family:inherit;font-size:13px;color:#334155;background:#fff;transition:border-color .15s,box-shadow .15s}
.alf-in:focus{outline:none;border-color:#e11d48;box-shadow:0 0 0 3px rgba(225,29,72,.1)}
.alf-in.alf-date{direction:ltr;min-width:140px}
.alf-saving{border-color:#fbbf24!important;background:#fffbeb}
.alf-saved{border-color:#86efac!important;background:#ecfdf3}
.alf-err{border-color:#fca5a5!important;background:#fef2f2}
.c-bday .alf-heb{display:block;font-size:11px;color:#64748b;margin-top:3px;font-weight:600}
.alf-dep-sel{height:34px;border:1.5px solid #e2e8f0;border-radius:8px;padding:0 8px;font-family:inherit;font-size:13px;color:#334155;background:#fff;cursor:pointer}
.alf-dep-sel:focus{outline:none;border-color:#e11d48}

.alf-empty{text-align:center;color:#94a3b8;padding:50px;font-size:15px;background:#fff;border-radius:var(--r-card);border:1px dashed #cbd5e1}
.alf-foot{text-align:center;color:#94a3b8;font-size:13px;margin-top:10px}

/* צבעי מחלקות */
.dep0 .alf-dep-head{background:#edf7ee} .dep0 .alf-dep-head h2,.dep0 .alf-count{color:#2e7d32}   /* הוראה */
.dep1 .alf-dep-head{background:#f7edfa} .dep1 .alf-dep-head h2,.dep1 .alf-count{color:#7b1fa2}   /* מנהלה */
.dep2 .alf-dep-head{background:#fde8f0} .dep2 .alf-dep-head h2,.dep2 .alf-count{color:#c2185b}   /* פנימייה רעות */
.dep3 .alf-dep-head{background:#fff2e2} .dep3 .alf-dep-head h2,.dep3 .alf-count{color:#e65100}   /* פנימייה קומי אורי */
.dep4 .alf-dep-head{background:#e4f6f9} .dep4 .alf-dep-head h2,.dep4 .alf-count{color:#0e7490}   /* מטבח */
.dep5 .alf-dep-head{background:#eef0ff} .dep5 .alf-dep-head h2,.dep5 .alf-count{color:#4f46e5}   /* מדרשה */

/* מודאל הדבקה */
.alf-modal{position:fixed;inset:0;background:rgba(15,23,42,.5);z-index:3000;display:flex;align-items:center;justify-content:center;padding:20px}
.alf-box{background:#fff;border-radius:18px;width:860px;max-width:96vw;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,.3);direction:rtl;overflow:hidden}
.alf-box-head{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;border-bottom:1px solid #eef0f4;font-size:16px;color:#101828}
.alf-x{border:none;background:#f1f5f9;width:32px;height:32px;border-radius:8px;cursor:pointer;font-size:15px;color:#64748b}
.alf-x:hover{background:#e2e8f0}
.alf-box-body{padding:20px 22px;overflow:auto}
.alf-help{font-size:13px;color:#64748b;margin:0 0 12px}
.alf-ta{width:100%;height:220px;border:1.5px solid #e2e8f0;border-radius:12px;padding:12px;font-family:monospace;font-size:13px;resize:vertical;direction:ltr}
.alf-ta:focus{outline:none;border-color:#e11d48}
.alf-box-foot{display:flex;align-items:center;gap:10px;justify-content:flex-end;margin-top:16px}
.alf-prev-wrap{overflow:auto;border:1px solid #eef0f4;border-radius:10px;max-height:46vh}
.alf-prev{border-collapse:collapse;font-size:13px;width:100%}
.alf-prev th{background:#f8fafc;padding:8px;border:1px solid #eef0f4;position:sticky;top:0}
.alf-prev td{padding:7px 10px;border:1px solid #f1f5f9;white-space:nowrap;color:#475569}
.alf-map{height:32px;border:1.5px solid #cbd5e1;border-radius:7px;font-family:inherit;font-size:12px;padding:0 4px;background:#fff;color:#be123c;font-weight:600}

@media (max-width:640px){
  .alf-title{font-size:18px}
  .alf-search{width:100%}
  .alf-actions{width:100%}
  .alf-table .c-addr,.alf-table thead .c-addr{display:none}
  .alf-table td,.alf-table th{padding:9px 8px;font-size:13px}
}

/* ── יישור לשפת הפורטל (v5) ── */
.alf-btn{display:inline-flex;align-items:center;gap:7px}
.alf-btn svg.bico{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.alf-search-wrap{position:relative;display:inline-flex;align-items:center;max-width:100%}
.alf-search-wrap .sico{position:absolute;right:16px;width:17px;height:17px;stroke:#94a3b8;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.alf-search.has-ico{padding-right:42px}
.alf-pill{display:inline-flex;align-items:center;gap:7px}
.alf-pcnt{background:rgba(15,23,42,.08);border-radius:12px;padding:1px 8px;font-size:11px;font-weight:700}
.alf-pill.on-all .alf-pcnt{background:rgba(190,18,60,.15)}
.alf-pill.on-reut .alf-pcnt{background:rgba(233,30,99,.15)}
.alf-pill.on-kumi .alf-pcnt{background:rgba(255,152,0,.22)}
.alf-dep-l{display:flex;align-items:center;gap:11px}
.alf-dep-chip{width:34px;height:34px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 3px 8px rgba(16,24,40,.16)}
.alf-dep-chip svg{width:19px;height:19px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.alf-avatar{box-shadow:0 0 0 2px #fff,0 0 0 3px currentColor}
.alf-table .c-phone{white-space:nowrap}
@media (max-width:640px){.alf-search-wrap{width:100%}}

/* כותרות טבלה — קו תחתון בגוון המחלקה */
.dep0 .alf-table thead th{border-bottom-color:#2e7d32}
.dep1 .alf-table thead th{border-bottom-color:#7b1fa2}
.dep2 .alf-table thead th{border-bottom-color:#c2185b}
.dep3 .alf-table thead th{border-bottom-color:#f57c00}
.dep4 .alf-table thead th{border-bottom-color:#0e7490}
.dep5 .alf-table thead th{border-bottom-color:#4f46e5}

/* רוחב עמודות אחיד בכל הטבלאות */
.alf-table{table-layout:fixed}
.alf-table .c-name{width:19%;min-width:0}
.alf-table .c-phone{width:13%}
.alf-table .c-wa{width:42px}
.alf-table .c-email{width:25%}
.alf-table .c-addr{width:21%}
.alf-table .c-bday{width:15%;min-width:0}
.alf-table .c-dep{width:12%}

/* ==== באנר-דף (hero) — סגול האלפון ==== */
.alf-hero{position:relative;border-radius:16px;padding:18px 24px;overflow:hidden;margin-bottom:16px;color:#fff;background:linear-gradient(100deg,#be123c,#e11d48 60%,#fb7185);background-size:220% 100%;animation:alfHeroDrift 16s ease-in-out infinite alternate}
@keyframes alfHeroDrift{0%{background-position:0% 50%}100%{background-position:100% 50%}}
.alf-hero::before{content:"";position:absolute;inset:auto;width:155px;height:155px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.20),rgba(255,255,255,0) 70%);top:-48px;right:13%;animation:alfFloatA 12s ease-in-out infinite;z-index:0;pointer-events:none}
.alf-hero::after{content:"";position:absolute;inset:auto;width:120px;height:120px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.15),rgba(255,255,255,0) 70%);bottom:-42px;left:16%;animation:alfFloatB 15s ease-in-out infinite;z-index:0;pointer-events:none}
@keyframes alfFloatA{0%,100%{transform:translate(0,0)}50%{transform:translate(-20px,18px)}}
@keyframes alfFloatB{0%,100%{transform:translate(0,0)}50%{transform:translate(22px,-15px)}}
@media (prefers-reduced-motion:reduce){.alf-hero,.alf-hero::before,.alf-hero::after{animation:none}}
.alf-hero .ah-row{display:flex;align-items:center;gap:13px;flex-wrap:wrap;position:relative;z-index:1}
.alf-hero .ah-left{display:flex;align-items:center;gap:13px}
.alf-hero .ah-ic{width:46px;height:46px;border-radius:13px;background:rgba(255,255,255,.18);display:grid;place-items:center;flex:none}
.alf-hero .ah-ic svg{width:24px;height:24px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.alf-hero h2{font-size:20px;font-weight:700;margin:0;color:#fff}
.alf-hero .ah-desc{font-size:13px;opacity:.92;margin:9px 0 0;line-height:1.55;max-width:720px;position:relative;z-index:1}
.alf-hero .ah-tools{display:flex;align-items:center;gap:8px;margin-inline-start:auto;flex-wrap:wrap}
.alf-hero .alf-search-wrap{max-width:100%}
.alf-hero .alf-search{height:38px;width:250px;max-width:48vw;border:none;border-radius:20px;background:rgba(255,255,255,.18);color:#fff}
.alf-hero .alf-search::placeholder{color:rgba(255,255,255,.78)}
.alf-hero .alf-search:focus{outline:none;box-shadow:none;background:rgba(255,255,255,.27);border:none}
.alf-hero .alf-search-wrap .sico{stroke:rgba(255,255,255,.82)}
/* === כפתורי פעולה בבאנר — שפה אחידה (alfon/כח אדם/הוראה): 38px · radius 11 · 700 === */
.alf-hero .alf-btn{height:38px;padding:0 16px;border-radius:11px;font-size:13px;font-weight:700;background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.45)}
.alf-hero .alf-btn:hover{background:rgba(255,255,255,.28);color:#fff;border-color:rgba(255,255,255,.55)}
.alf-hero #alf-export{background:#fff;color:#be123c;border-color:#fff}
.alf-hero #alf-export:hover{background:#f3effe;box-shadow:0 4px 12px rgba(0,0,0,.14)}
.alf-hero .alf-btn.alf-btn-on{background:#fff;color:#be123c;border-color:#fff}

/* ==== מודאל חמוד (alert) ==== */
.alfm-ov{position:fixed;inset:0;background:rgba(15,23,42,.45);backdrop-filter:blur(3px);z-index:10080;display:flex;align-items:center;justify-content:center;padding:20px;animation:alfmFade .15s ease}
@keyframes alfmFade{from{opacity:0}to{opacity:1}}
.alfm-box{background:#fff;border-radius:18px;box-shadow:0 24px 60px rgba(0,0,0,.28);padding:24px 26px;max-width:380px;width:100%;text-align:center;direction:rtl;font-family:'Rubik','Tahoma',sans-serif;animation:alfmPop .2s cubic-bezier(.2,.9,.3,1.25)}
@keyframes alfmPop{from{opacity:0;transform:scale(.93) translateY(8px)}to{opacity:1;transform:none}}
.alfm-ic{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;margin:0 auto 14px}
.alfm-ic svg{width:28px;height:28px;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.alfm-ic.warn{background:#fff7ed}.alfm-ic.warn svg{stroke:#ea580c}
.alfm-ic.ok{background:#ecfdf3}.alfm-ic.ok svg{stroke:#16a34a}
.alfm-ic.q{background:#fff1f2}.alfm-ic.q svg{stroke:#be123c}
.alfm-title{font-size:16px;font-weight:700;color:#1e293b;margin-bottom:6px}
.alfm-msg{font-size:13px;color:#64748b;line-height:1.6;margin-bottom:20px;white-space:pre-line}
.alfm-btn{width:100%;height:42px;border-radius:11px;border:none;background:linear-gradient(135deg,#e11d48,#be123c);color:#fff;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}

/* «בלי וואטסאפ» — במצב עריכה, בעמודת הסמל */
.alf-nowa{display:flex;flex-direction:column;align-items:center;gap:1px;font-size:9.5px;line-height:1.1;color:#64748b;cursor:pointer;border:1px solid transparent;border-radius:6px;padding:2px 0;white-space:nowrap}
.alf-nowa input{margin:0;width:14px;height:14px;accent-color:#dc2626;cursor:pointer}
.alf-nowa:has(input:checked){color:#dc2626;font-weight:700}
