/* One shared interaction scale across headquarters and standalone workflows. */
:root{--action-size:48px;--action-radius:14px;--content-gap:16px}
button,input,select,textarea,a.button{font:inherit}button,.btn,.mini,.aibtn,summary{min-height:var(--action-size)}button,.btn,.mini,.aibtn{white-space:normal;overflow-wrap:anywhere}input:not([type=checkbox]):not([type=radio]),select{min-height:44px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--accent,#c9a468);outline-offset:4px}p,h1,h2,h3,h4,h5,label{overflow-wrap:anywhere}button:disabled{cursor:not-allowed}.view{scroll-margin-top:100px}.boardwrap{overflow-x:auto;overscroll-behavior-x:contain}.panel,.pcard{min-width:0}.simple-home{padding:28px;border:1px solid var(--line,var(--mf-border-subtle,#49413a));border-radius:24px;background:var(--panel-a,#18181B);margin-block:20px}.simple-home h1{font-size:clamp(24px,5vw,36px);margin:0 0 8px}.simple-home p{color:var(--muted,#c1bab0);line-height:1.7}.simple-home-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.simple-action,.simple-primary{display:flex;align-items:center;justify-content:center;gap:10px;padding:18px;min-height:72px;border-radius:16px;border:1px solid var(--line,var(--mf-border-subtle,#49413a));background:var(--panel-a,#18181B);color:var(--ink,#f4f0e8);text-decoration:none;font:inherit;font-weight:600;cursor:pointer;text-align:center}.simple-primary{background:var(--accent,#c9a468);color:var(--mf-on-accent,#0E0E10);border-color:transparent}.simple-clock{margin-top:20px;border-top:1px solid var(--line,var(--mf-border-subtle,#49413a));padding-top:20px}.simple-clock .simple-primary{max-width:440px}.simple-timer{display:block;font-size:36px;font-variant-numeric:tabular-nums;margin-bottom:16px}.simple-page-heading{display:flex;align-items:center;gap:18px;margin:20px 0}.simple-page-heading h1{font-size:24px;margin:0}.simple-page-heading button{min-height:44px;padding:10px 16px}.simple-disclosure{border:1px solid var(--line,var(--mf-border-subtle,#49413a));border-radius:18px;margin-block:12px;background:var(--panel-a,#18181B);min-width:0}.simple-disclosure>summary{padding:18px;cursor:pointer;font-size:1rem;font-weight:600;line-height:1.5;color:var(--ink,#f4f0e8)}.simple-disclosure[open]>summary{border-bottom:1px solid var(--line,var(--mf-border-subtle,#49413a));color:var(--accent,#c9a468)}.simple-disclosure>.panel,.simple-disclosure>.pcard{margin:0!important;border:0;box-shadow:none}.simple-disclosure>.panel>h3:first-child,.simple-disclosure>.pcard>h5:first-child{display:none}.simple-disclosure[hidden]{display:none!important}body.simple-inside nav.main-menu{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}body.simple-inside nav.main-menu>button,body.simple-inside nav.main-menu>a{min-height:48px;padding:10px 15px;flex:0 1 auto;box-shadow:none;gap:0}body.simple-inside nav.main-menu small,body.simple-inside nav.main-menu .menu-icon{display:none}body.simple-inside nav.main-menu strong{font-size:.9rem}.scenariobar,.drawerbtns,.actbar{gap:12px;flex-wrap:wrap}.hrsedit{max-width:calc(100vw - 24px)}
@media(max-width:600px){.simple-home{padding:20px}.simple-home-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.simple-action,.simple-primary{font-size:.95rem;padding:14px}.simple-page-heading{gap:12px}.simple-page-heading h1{font-size:21px}body.simple-inside nav.main-menu>button,body.simple-inside nav.main-menu>a{flex:1 1 100px}.simple-disclosure>summary{padding:16px}.panel h3{line-height:1.6}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

button,.btn,.mini,.aibtn{min-width:44px}

.simple-home-active .view,.simple-home-active .simple-page-heading{display:none!important}.simple-home{scroll-margin-top:140px}nav.main-menu>[hidden]{display:none!important}body.simple-home-active nav.main-menu>.simple-main-action{background:var(--accent);color:var(--mf-on-accent,#0E0E10)}body.simple-home-active nav.main-menu>.simple-main-action small,body.simple-home-active nav.main-menu>.simple-main-action .menu-icon{color:var(--mf-on-accent,#0E0E10)}body.simple-home-active nav.main-menu>button,body.simple-home-active nav.main-menu>a{min-height:106px;padding:16px}body.simple-home-active nav.main-menu small{display:none}body.simple-home-active nav.main-menu .menu-icon{font-size:1.3rem}

/* הסידור שלי בתחתית המסך הראשי */
.simple-week{margin-top:22px;padding:16px;border:1px solid var(--line,var(--mf-border-subtle,#49413a));border-radius:14px;background:rgba(255,255,255,.02);text-align:start}
.simple-week h2{margin:0 0 10px;font-size:1rem;color:var(--gold,#c9a468)}
.simple-week-list{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.simple-week-list li{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.03)}
.simple-week-list li.today{outline:1px solid var(--gold,#c9a468);background:rgba(201,164,104,.12)}
.simple-week-list strong{font-weight:600}
.simple-week p{margin:0 0 12px;color:var(--muted,var(--mf-text-muted,#a39a8c))}
.simple-week-list li.today strong{color:#7ed492;text-decoration:underline;text-underline-offset:3px}
.simple-next h2,.simple-alerts h2{color:var(--gold,#c9a468)}
.simple-alerts .simple-action{margin-top:4px}
/* עד שהאפליקציה מחליטה איזה מסך מוצג — שום תצוגה לא מצוירת (בלי הבזק של החמ"ל או של תפריט ישן) */
body:not(.simple-inside):not(.simple-home-active) .view{visibility:hidden}

/* ═══ המסך הראשון: מסך אחד, משימה אחת ═══ */
.simple-first{margin-top:14px;display:grid;gap:10px;text-align:start}
.simple-shift{margin:0;color:var(--muted,var(--mf-text-muted,#a39a8c));font-size:1rem}
.simple-status{margin:0;font-size:1.25rem;font-weight:700;line-height:1.35}.simple-status.on{color:#9fd8a6}.simple-status.bad{color:#ff9aa4}
.simple-note,.simple-tomorrow{margin:0;font-size:.95rem;color:var(--muted,var(--mf-text-muted,#a39a8c));line-height:1.5}.simple-tomorrow{color:var(--ink,#f4f0e8)}
.simple-primary.simple-clock{max-width:none;min-height:96px;font-size:1.35rem;margin-top:6px}
.simple-quiet{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}.simple-quiet>*{flex:1 1 120px;min-height:48px;padding:10px 12px;font-size:.95rem}
.simple-needs{margin:10px 0 0;font-size:1.05rem;color:var(--gold,#c9a468)}
/* בעלים 27.10: הכותרת היא drop-down — שורה אחת עם מונה וחץ, בלי מסגרת; החץ מסתובב כשפתוח */
button.simple-needs{display:flex;align-items:center;justify-content:flex-start;gap:8px;/* בעלים 27.10: המונה והחץ צמודים לטקסט, לא בקצה השורה */width:100%;min-height:48px;padding:10px 0;background:none;border:0;font:inherit;font-weight:600;text-align:start;cursor:pointer;color:var(--gold,#c9a468)}
button.simple-needs .simple-needs-words{font-weight:600}
button.simple-needs .simple-needs-count{margin-inline-start:2px;min-width:28px;height:28px;padding:0 9px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--gold,#c9a468) 18%,transparent);color:var(--gold,#c9a468);font-size:.9rem;font-weight:700}
button.simple-needs .simple-needs-chev{width:20px;height:20px;flex:0 0 20px;margin:0;transition:transform .2s ease;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
button.simple-needs[aria-expanded="true"] .simple-needs-chev{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){button.simple-needs .simple-needs-chev{transition:none}}
#simpleNeedsList[hidden]{display:none}
.simple-list{display:grid;gap:8px}
.simple-row{border:1px solid var(--line,var(--mf-border-subtle,#49413a));border-radius:14px;background:rgba(255,255,255,.03);overflow:hidden}
.simple-row-main{width:100%;display:grid;gap:4px;text-align:start;padding:14px;background:none;border:0;color:var(--ink,#f4f0e8);cursor:pointer;min-height:56px}.simple-row-main small{color:var(--muted,var(--mf-text-muted,#a39a8c));font-size:.85rem}
.simple-row-actions{display:flex;gap:8px;padding:0 14px 14px}.simple-row-actions>*{flex:1;min-height:48px;padding:10px;font-size:.95rem}
.simple-done{margin:0;padding:14px;color:#9fd8a6}.simple-err{margin:0;padding:0 14px 14px;color:#ff9aa4;font-size:.9rem}
/* כל שאר ההפעלות מאחורי "עוד" */
@media(min-width:700px){.simple-first{max-width:640px}.simple-primary.simple-clock{max-width:640px}}
.simple-action.simple-approve{background:var(--accent,#c9a468);color:var(--mf-on-accent,#0E0E10);border-color:transparent;font-weight:700}
.simple-row-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 14px 10px}.simple-row-fields label{display:grid;gap:4px;font-size:.85rem;color:var(--muted,var(--mf-text-muted,#a39a8c))}.simple-row-fields input{min-height:44px;border:1px solid var(--line,var(--mf-border-subtle,#49413a));border-radius:10px;background:transparent;color:var(--ink,#f4f0e8);padding:6px 8px;font:inherit;min-width:0}
/* Correction cards must fit their container, including the shell's inserted action icons.
   Fields collapse before a native date/time control loses its readable width; actions wrap as whole buttons. */
.simple-row.correction .simple-row-fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr))}
.simple-row.correction .simple-row-fields label{min-width:0}
.simple-row.correction .simple-row-fields input{box-sizing:border-box;width:100%;max-width:100%}
/* QA B 28.10: the same grid for every row with אישור / דחייה / פתיחה (swap-approve, leave) — at 390 the flex row broke "אישור" into "אי/שור" */
.simple-row.correction .simple-row-actions,.simple-row.swap-approve .simple-row-actions,.simple-row.leave .simple-row-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr))}
.simple-row.correction .simple-row-actions>*,.simple-row.swap-approve .simple-row-actions>*,.simple-row.leave .simple-row-actions>*{box-sizing:border-box;min-width:0;width:100%;line-height:1.35;white-space:normal;overflow-wrap:normal;word-break:normal}
.simple-primary.simple-clock:disabled{background:rgba(201,164,104,.35);color:var(--ink,#f4f0e8);cursor:default}

/* טבלאות ככרטיסים בטלפון */
@media(max-width:700px){
 .boardwrap{overflow:visible}
 table.adm.cards{min-width:0!important;border-collapse:separate;border-spacing:0 10px}
 table.adm.cards thead{display:none}
 table.adm.cards,table.adm.cards tbody,table.adm.cards tr,table.adm.cards td{display:block;width:100%}
 table.adm.cards tbody tr{border:1px solid var(--line,var(--mf-border-subtle,#49413a));border-radius:14px;padding:10px 12px;background:rgba(255,255,255,.03)}
 table.adm.cards tbody tr.drawer{padding:0;border:0;background:none}
 /* התיק האישי הפתוח: התוכן (פרטים, פעולות, אימונים) זה מתחת לזה — לא טורים צפופים */
 table.adm.cards tbody tr.drawer td{display:block;padding:0}
 table.adm.cards td{border:0;padding:6px 0;display:flex;gap:10px;align-items:center;justify-content:space-between;font-size:.95rem}
 table.adm.cards td[data-label]::before{content:attr(data-label);color:var(--muted,var(--mf-text-muted,#a39a8c));font-size:.8rem;flex:0 0 34%}
 table.adm.cards td:first-child{font-weight:700;font-size:1.05rem}
 table.adm.cards td.cell-actions{justify-content:flex-start;flex-wrap:wrap}
 table.adm.cards td.cell-danger{display:none}
 table.adm.cards tr.open td.cell-danger{display:flex}
 table.adm.cards tr:not(.open) td.cell-actions:not(.cell-danger)::after{content:'';flex:1}
 /* סבב 3 (13.10, כספים): שורה על כל הרוחב (עורך, הודעת "אין נתונים") — בלוק רגיל, לא שדה מודגש עם תווית; שדה רחב לא חורג מהכרטיס */
 table.adm.cards td.cell-full{display:block;font-weight:inherit;font-size:inherit}
 table.adm.cards td.cell-full input,table.adm.cards td.cell-full select{max-width:100%}
 /* טבלה שמוצגת ככרטיסים לא נגללת לצדדים — בלי "↔ גלול לצדדים לכל ימי השבוע" מתחתיה (הופיע מתחת לתלושים בעולם הכסף) */
 .boardwrap:has(table.adm.cards)::after{content:none;display:none}
}
.simple-first{margin-bottom:6px}

/* סולם טיפוגרפי (מערכת העיצוב §3) */
.simple-status{font-size:20px;font-weight:700}.simple-note,.simple-tomorrow,.simple-row-main small{font-size:14px}.simple-primary.simple-clock{font-size:22px;font-weight:700}.simple-needs{font-size:17px;font-weight:600}.simple-row-main strong{font-size:16px}
.simple-home.simple-collapsed .app-home-launchers{display:none}.simple-more{margin-top:12px;width:100%}

/* בעלים 5.10: החץ בשורות "צריך אותך" (למשל "סידור שבוע הבא") דינמי ולא סטטי — סגור: מצביע לכיוון הפתיחה (שמאלה בעברית, ימינה באנגלית);
   פתוח: מצביע למטה. הסיבוב על האייקון ש-app-shell מוסיף לכפתור (data-icon="left"/"right") */
.simple-row-main .app-icon[data-icon="left"],.simple-row-main .app-icon[data-icon="right"]{transition:transform .2s ease;transform-origin:50% 50%}
.simple-row-main[aria-expanded="true"] .app-icon[data-icon="left"]{transform:rotate(-90deg)}
.simple-row-main[aria-expanded="true"] .app-icon[data-icon="right"]{transform:rotate(90deg)}
@media(prefers-reduced-motion:reduce){.simple-row-main .app-icon[data-icon="left"],.simple-row-main .app-icon[data-icon="right"]{transition:none}}
/* SITE STAFFING 26.10: the home's "איוש עכשיו" button — a compact action under the status line, not a full-width tile */
.simple-home .simple-action.simple-staffing{display:inline-flex;width:auto;min-height:48px;padding:10px 20px;margin:4px 0 8px;align-self:flex-start}
/* בעלים 27.10: "אסור שזה יקרה במובייל — לא יציב והכול בורח מהרקע" — כרטיס עובד/ת בטלפון: רוחב הכרטיס כולל את הריפוד (box-sizing), בלי גלישה
   אופקית; שם + טלפון בשורה אחת מתחילת השורה, תפקיד/אתר/צ'יפים בשורות מלאות שנשברות, כפתורים בסוף; "הוזמנו לאחרונה" — עמודה, לא זרימה סביב הכפתור */
@media(max-width:700px){
 table.adm.cards,table.adm.cards tbody,table.adm.cards tr,table.adm.cards td,table.adm.cards td *{box-sizing:border-box}
 table.adm.cards{width:100%;max-width:100%;table-layout:fixed}
 table.adm.cards tbody tr{max-width:100%;overflow:hidden}
 table.adm.cards td{justify-content:flex-start;flex-wrap:wrap;gap:6px 8px;max-width:100%;min-width:0;text-align:start;overflow-wrap:anywhere}
 table.adm.cards td:not([data-label])::before{content:none}
 table.adm.cards td>.actrow,table.adm.cards td .actrow{display:flex;width:100%;max-width:100%;justify-content:flex-start;flex-wrap:wrap}
 table.adm.cards td .mini,table.adm.cards td .statchip,table.adm.cards td .rolecell{max-width:100%;white-space:normal}
 table.adm.cards tr:not(.open) td.cell-actions:not(.cell-danger)::after{content:none}
 .invited-row{flex-direction:column;align-items:flex-start;gap:6px}
 .invited-meta{flex:none;width:100%;min-width:0}
 .invited-row .statchip{margin:0}
}
