:root{--navy:#0a1f5c;--navy2:#16337f;--blue:#1d4ed8;--sky:#eaf0ff;--line:#e3e8f2;--ink:#14213d;--mute:#5f6b85;--bg:#f4f6fb;--ok:#15803d;--okbg:#e7f6ec;--warn:#b45309;--warnbg:#fff4e0;--amber:#f2b84b;--bad:#c62828;--badbg:#fdecec;--r:14px}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:Heebo,Arial,sans-serif;direction:rtl;color:var(--ink);background:var(--bg);font-size:15px;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums;min-height:100vh;display:flex;flex-direction:column}
button,input,select{font:inherit;color:inherit}
a{color:var(--blue)}
#app{flex:1;display:flex;flex-direction:column}
.hidden{display:none!important}

/* header */
.top{background:var(--navy);color:#fff}
.top-in{max-width:1280px;margin:0 auto;padding:12px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.logo{background:#fff;color:var(--navy);font-weight:800;font-size:14px;padding:5px 10px;border-radius:7px;letter-spacing:.3px;white-space:nowrap}
.apptitle{font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sub{font-size:12.5px;opacity:.8}
.tabs{display:flex;gap:4px;overflow-x:auto}
.tabs a{color:#fff;text-decoration:none;font-size:14px;padding:8px 14px;border-radius:9px;opacity:.75;white-space:nowrap}
.tabs a.on{background:rgba(255,255,255,.14);opacity:1;font-weight:700}
.who{display:flex;align-items:center;gap:10px;font-size:13px;opacity:.9;white-space:nowrap}
.linkbtn{background:none;border:0;color:inherit;text-decoration:underline;cursor:pointer;padding:0;font-size:13px}
.tabs-row{background:var(--navy)}
.tabs-row .tabs{max-width:1280px;margin:0 auto;padding:0 12px 10px}

main{flex:1;width:100%;max-width:1280px;margin:0 auto;padding:20px 18px}
main.narrow{max-width:560px;padding:14px}
h1{font-size:22px;font-weight:800;margin:0}
h2{font-size:17px;font-weight:800;margin:0}
.row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.muted{color:var(--mute);font-size:13px}

/* footer logos - bottom left */
.foot{display:flex;justify-content:center;align-items:center;gap:12px;direction:ltr;padding:14px 18px 18px;max-width:1280px;width:100%;margin:0 auto}
.foot img{display:block;width:auto;opacity:.9}
.fl-la{height:26px}.fl-likud{height:18px}
.fsep{width:1px;height:20px;background:var(--line)}
.credit{font-size:11px;color:var(--mute);direction:rtl;white-space:nowrap;margin-left:-4px}
.appicon{width:38px;height:38px;border-radius:10px;flex:none;box-shadow:0 0 0 1px rgba(255,255,255,.15)}
.hero-icon{width:96px;height:96px;border-radius:22px;display:block;margin:0 auto 16px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.apptitle{font-size:17px;font-weight:800;line-height:1.15}
/* cards & kpis */
.card{background:#fff;border:1px solid var(--line);border-radius:var(--r)}
.pad{padding:16px}
.kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:16px 0}
.kpi{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:14px 16px}
.kpi .l{font-size:13px;color:var(--mute)}
.kpi .n{font-size:28px;font-weight:800;margin-top:2px;line-height:1.2}
.kpi .s{font-size:12px;color:var(--mute)}
.kpi.dark{background:var(--navy);color:#fff;border:0}.kpi.dark .l,.kpi.dark .s{color:#c8d3f2}
@media (max-width:900px){.kpis{grid-template-columns:repeat(2,1fr)}.kpi.dark{grid-column:span 2}}

.grid2{display:grid;grid-template-columns:1fr 320px;gap:16px;align-items:start}
@media (max-width:1000px){.grid2{grid-template-columns:1fr}}

/* tables */
.tbl-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px}
th{font-size:12px;color:var(--mute);font-weight:700;text-align:right;padding:10px 12px;background:#f8faff;border-bottom:1px solid var(--line);white-space:nowrap;cursor:default;user-select:none}
th.sort{cursor:pointer}th.sort:hover{color:var(--ink)}
td{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:middle}
tr.click{cursor:pointer}tr.click:hover td{background:#f8faff}
.bar{height:8px;background:#e6ebf5;border-radius:6px;overflow:hidden;width:120px;display:inline-block;vertical-align:middle}
.bar i{display:block;height:100%;border-radius:6px;background:var(--blue)}
.pct{font-weight:700;margin-right:8px;font-size:13px}

/* chips */
.chip{display:inline-block;font-size:12px;font-weight:700;border-radius:20px;padding:3px 10px;white-space:nowrap}
.ok{background:var(--okbg);color:var(--ok)}.warn{background:var(--warnbg);color:var(--warn)}.bad{background:var(--badbg);color:var(--bad)}.info{background:var(--sky);color:var(--blue)}.gray{background:#eef1f6;color:var(--mute)}

/* filters */
.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px 14px}
.pill{font-size:13px;border:1px solid var(--line);border-radius:20px;padding:6px 12px;color:var(--mute);background:#fff;cursor:pointer}
.pill.on{background:var(--sky);color:var(--blue);border-color:#c9d6fb;font-weight:700}
.search{border:1px solid var(--line);border-radius:9px;padding:7px 12px;min-width:200px;background:#fff}
select.sel{border:1px solid var(--line);border-radius:9px;padding:7px 10px;background:#fff}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:var(--blue);color:#fff;border:0;border-radius:12px;font-weight:700;font-size:16px;padding:13px 18px;cursor:pointer;text-decoration:none}
.btn:disabled{background:#9db1e6;cursor:not-allowed}
.btn.block{width:100%}
.btn.ghost{background:#fff;color:var(--blue);border:1.5px solid var(--blue)}
.btn.danger{background:var(--bad)}
.btn.sm{font-size:14px;padding:8px 14px;border-radius:9px}
.btn .arr{margin-right:auto}
.act{color:var(--blue);font-weight:700;font-size:13px;background:none;border:0;cursor:pointer;padding:0;white-space:nowrap}

/* forms */
.field{margin-bottom:13px}
.field label{display:block;font-size:13px;font-weight:700;margin-bottom:6px}
.in{width:100%;background:#fff;border:1.5px solid #cfd7e6;border-radius:10px;padding:12px 14px;font-size:16px;outline:none}
.in:focus{border-color:var(--blue);box-shadow:0 0 0 3px var(--sky)}
.in.err{border-color:var(--bad);background:#fffafa}.in.good{border-color:var(--ok)}
.ltr{direction:ltr;text-align:left;letter-spacing:.5px}
.msg{font-size:12.5px;margin-top:5px;min-height:0}.msg.e{color:var(--bad)}.msg.g{color:var(--ok)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.seg{display:flex;background:#e6ebf5;border-radius:10px;padding:3px;gap:3px}
.seg button{flex:1;border:0;background:none;padding:9px 6px;border-radius:8px;color:var(--mute);font-size:14px;cursor:pointer}
.seg button.on{background:#fff;color:var(--ink);font-weight:700;box-shadow:0 1px 2px rgba(0,0,0,.06)}

/* login */
.hero{background:linear-gradient(180deg,var(--navy),var(--navy2));color:#fff;padding:40px 24px 44px;text-align:center}
.hero .logo{display:inline-block;font-size:20px;padding:8px 18px;border-radius:10px;margin-bottom:18px}
.hero h1{font-size:24px}.hero p{opacity:.85;margin:6px 0 0;font-size:14px}
.otp{display:flex;gap:8px;direction:ltr;justify-content:center;margin:6px 0 14px}
.otp input{width:46px;height:56px;border:1.5px solid #cfd7e6;border-radius:10px;background:#fff;text-align:center;font-size:24px;font-weight:700}
.otp input:focus{border-color:var(--blue);box-shadow:0 0 0 3px var(--sky);outline:none}
.note{font-size:13px;color:var(--mute);text-align:center;line-height:1.55}

/* coordinator */
.prog{background:var(--navy);color:#fff;padding:0 16px 16px}
.prog-in{max-width:560px;margin:0 auto}
.pc{background:rgba(255,255,255,.1);border-radius:14px;padding:14px;display:flex;gap:14px;align-items:center}
.ring{width:78px;height:78px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none}
.ring div{width:60px;height:60px;border-radius:50%;background:var(--navy2);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:17px}
.pc .t{font-size:14px;line-height:1.5}.pc .t b{font-size:22px}
.mini{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:10px}
.mini div{background:rgba(255,255,255,.08);border-radius:10px;padding:7px 4px;text-align:center;font-size:11.5px}
.mini b{display:block;font-size:18px}
.list{display:flex;flex-direction:column;gap:9px;margin-top:12px}
.cl{padding:12px 14px;display:flex;justify-content:space-between;align-items:center;gap:10px;cursor:pointer;border-right:4px solid var(--line)}
.cl:hover{background:#fbfcff}
.cl .nm{font-weight:700;font-size:15px}.cl .ad{font-size:12.5px;color:var(--mute);margin-top:2px}
.cl.s-empty{border-right-color:var(--bad)}.cl.s-need_morning,.cl.s-need_evening{border-right-color:var(--amber)}.cl.s-full{border-right-color:var(--ok)}
.chev{color:#9aa6bf;font-size:18px}
.dh{background:var(--navy);color:#fff;padding:6px 16px 16px}
.dh-in{max-width:560px;margin:0 auto}
.back{color:#fff;opacity:.85;font-size:13.5px;text-decoration:none;display:inline-block;margin-bottom:8px;cursor:pointer;background:none;border:0;padding:0}
.dh h1{font-size:20px}.dh p{font-size:13px;opacity:.85;margin:3px 0 0}
.need{margin-top:12px;background:#fff;color:var(--ink);border-radius:12px;padding:10px 12px;display:flex;justify-content:space-between;align-items:center;font-size:14px}
.slots{display:flex;gap:6px}.slots i{width:26px;height:8px;border-radius:4px;background:var(--ok)}.slots i.x{background:#e6ebf5}
.shift{margin-top:14px}
.shift-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.shift-h b{font-size:15px}
.w{padding:12px 14px;margin-bottom:8px}
.w .nm{font-weight:700;font-size:16px}.w .meta{font-size:13px;color:var(--mute);margin-top:3px}
.w .acts{display:flex;gap:8px;margin-top:10px}
.w .acts button{flex:1;text-align:center;font-size:13.5px;font-weight:700;border:1px solid var(--line);border-radius:9px;padding:8px;color:var(--blue);background:#fff;cursor:pointer}
.w .acts button.del{color:var(--bad)}
.add{width:100%;border:2px dashed #b9c7e6;border-radius:12px;padding:14px;text-align:center;color:var(--blue);font-weight:700;font-size:15px;background:#f8faff;cursor:pointer}
.empty{border:2px dashed #f0b4b4;border-radius:12px;padding:12px;text-align:center;color:var(--bad);font-size:13.5px;background:#fffafa;margin-bottom:8px}

/* sheet / modal */
.shade{position:fixed;inset:0;background:rgba(10,20,50,.45);z-index:20;display:flex;align-items:flex-end;justify-content:center}
.sheet{background:#fff;width:100%;max-width:560px;border-radius:22px 22px 0 0;padding:14px 20px 24px;max-height:92vh;overflow:auto}
@media (min-width:700px){.shade{align-items:center}.sheet{border-radius:18px}}
.grab{width:44px;height:5px;border-radius:3px;background:#d4dbe8;margin:0 auto 14px}
.sheet h3{font-size:18px;font-weight:800;margin:0 0 4px}
.sheet p{font-size:14px;color:var(--mute);margin:4px 0 14px;line-height:1.5}
.btns{display:flex;flex-direction:column;gap:9px;margin-top:6px}
.cmp{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;margin-bottom:14px}
.cmp div{border:1px solid var(--line);border-radius:10px;padding:9px;font-size:13px;text-align:center}
.cmp .o{background:#fafbfd;color:var(--mute);text-decoration:line-through}.cmp .n{border-color:var(--ok);background:var(--okbg)}

/* toast */
.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:11px 18px;border-radius:12px;font-size:14px;z-index:40;box-shadow:0 8px 24px rgba(0,0,0,.2);max-width:90vw}
.toast.e{background:var(--bad)}

.alert{background:var(--warnbg);border-radius:10px;padding:12px;font-size:13.5px;color:#7a4a06;line-height:1.6}
.donut{width:150px;height:150px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:6px auto 14px}
.donut div{width:108px;height:108px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center}
.donut b{font-size:28px;font-weight:800}.donut small{font-size:12px;color:var(--mute)}
.leg{font-size:13.5px;display:flex;flex-direction:column;gap:8px}
.leg div{display:flex;justify-content:space-between}
.dot{display:inline-block;width:10px;height:10px;border-radius:3px;margin-left:7px}
.drop{border:2px dashed #b9c7e6;border-radius:12px;background:#f8faff;padding:22px;text-align:center;font-size:14px;color:var(--mute);cursor:pointer}
.drop.over{border-color:var(--blue);background:var(--sky)}
.num{width:26px;height:26px;border-radius:50%;background:var(--blue);color:#fff;font-size:14px;display:inline-flex;align-items:center;justify-content:center;margin-left:8px}
.spin{width:28px;height:28px;border:3px solid #dbe3f3;border-top-color:var(--blue);border-radius:50%;animation:sp 0.8s linear infinite;margin:40px auto}
@keyframes sp{to{transform:rotate(360deg)}}
.lockbar{background:var(--warnbg);color:#7a4a06;text-align:center;font-size:13.5px;padding:8px}
.check{display:flex;gap:8px;align-items:center;font-size:14px}
