/* Tasks given on the spot (6.10.2026): the card in "המשימות שלי" and on deal.html
   (app/staff-tasks-ui.js). Tokens only (tokens.css); phone first: one column at
   360px, every target at least 44px. No pink button here: a page keeps it for its one
   main action. The pink edge says "this is ringing you" while a task waits. */
.st-card {
  border-inline-start: 4px solid var(--ds-navy); border-radius: var(--ds-r-card); background: var(--ds-ground);
  padding: 14px 16px; margin: 0 0 var(--ds-gap); display: grid; gap: 10px; min-width: 0;
}
.st-card.has-mine { border-inline-start-color: var(--ds-hot); }
.st-card h2 { margin: 0; font-size: 20px; }
.st-card h2:focus-visible { outline: 2px solid var(--ds-navy); outline-offset: 4px; border-radius: var(--ds-r-sm); }
.st-card .hint { margin: 0; color: var(--ds-muted); font-size: 14px; }
.st-sub { margin: 6px 0 0; font-size: 16px; }
.st-item { border-radius: var(--ds-r-item); background: var(--ds-surface); padding: 14px; display: grid; gap: 6px; min-width: 0; }
.st-item.is-mine { box-shadow: inset 0 0 0 2px var(--ds-hot-soft); }
.st-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 12px; flex-wrap: wrap; }
.st-who { font-size: 16px; }
.st-body { margin: 0; font-size: 16.5px; font-weight: 600; color: var(--ds-ink); white-space: pre-line; overflow-wrap: anywhere; }
.st-item:not(.is-mine) .st-body { font-size: 15px; font-weight: 500; }
.st-meta { margin: 0; color: var(--ds-ink-2); font-size: 14px; overflow-wrap: anywhere; }
.st-meta a { color: var(--ds-navy-text); }
.st-next { margin: 0; color: var(--ds-hot-text); font-size: 14px; font-weight: 600; }
.st-state { display: inline-block; border-radius: var(--ds-r-sm); padding: 2px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.st-state.is-open { color: var(--ds-amber); background: var(--ds-amber-soft); }
.st-state.is-done { color: var(--ds-ok); background: var(--ds-ok-soft); }
.st-state.is-cancelled { color: var(--ds-ink-2); background: var(--ds-soft); }
/* "בטיפול": the assignee pressed "אני על זה" (8.11.2026). */
.st-state.is-taken { color: var(--ds-navy-text); background: var(--ds-soft); }
.st-claim { min-height: 48px; font-size: 16px; }
.st-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.st-acts .btn { min-height: 44px; }
/* "בוצע" and "שליחת המשימה": the card's own main actions, navy and filled (pink stays the page's). */
.st-done, .st-send { background: var(--ds-navy); border-color: var(--ds-navy); color: var(--ds-on-navy); }
.st-done:hover, .st-send:hover { background: var(--ds-navy-2); border-color: var(--ds-navy-2); color: var(--ds-on-navy); }
.st-done { min-width: 132px; min-height: 48px; font-size: 16px; }
.st-form { border-radius: var(--ds-r-item); background: var(--ds-surface); padding: 14px; display: grid; gap: 12px; min-width: 0; }
.st-form h3 { margin: 0; font-size: 17px; }
.st-form .field { min-width: 0; }
.st-form textarea { min-height: 96px; resize: vertical; }
.st-under { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.st-under .err { margin-top: 6px; }
.st-count { margin-inline-start: auto; color: var(--ds-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.st-more { justify-self: start; min-height: 44px; }
/* The giver's row: the title (and "nothing open") beside "משימה חדשה"; the lists fold under it. */
.st-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; min-width: 0; }
.st-top-t { display: grid; gap: 2px; min-width: 0; }
.st-top .btn { min-height: 44px; }
.st-card.is-quiet { padding-block: 10px; gap: 4px; }
.st-card.is-quiet h2 { font-size: 16px; font-family: inherit; font-weight: 600; }
.st-folds { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.st-fold-h { margin: 0; font: inherit; }
.st-more[aria-expanded]::after { content: ''; display: inline-block; inline-size: 7px; block-size: 7px; margin-inline-start: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.st-more[aria-expanded='true']::after { transform: translateY(1px) rotate(-135deg); }
@media (max-width: 480px) {
  .st-acts .btn { flex: 1 1 40%; }
  .st-acts .st-done, .st-acts .st-send { flex-basis: 100%; }
}
/* Protocol v10: the mandatory brief of a task for Nirel (the four fields), in the form and on the task. */
.st-brief-form { margin: 0; padding: 12px; border: 1px solid var(--ds-line, var(--line)); border-radius: var(--ds-r-item); display: grid; gap: 10px; min-width: 0; }
.st-brief-form[hidden] { display: none; }
.st-brief-form legend { padding: 0 6px; font-weight: 700; font-size: 15px; }
.st-form .st-brief-form textarea { min-height: 64px; }
.st-brief { margin: 0; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 4px 10px; font-size: 14px; }
.st-brief dt { color: var(--ds-ink-2); }
.st-brief dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
@media (max-width: 480px) { .st-brief { grid-template-columns: minmax(0, 1fr); } .st-brief dd { margin-bottom: 4px; } }
.st-client-q { margin-bottom: 6px; }
/* "הערות מיוחדות לעובדים" (9.11.2026; app/staff-notes-ui.js): the writers' card, under the
   "נודניק" card and in its look. The notes by person; "מחיקה" beside who wrote each. */
.sn-card { border-inline-start-color: var(--ds-hot); }
.sn-card h2 { margin: 0; font-size: 16px; font-family: inherit; font-weight: 600; }
.sn-group { display: grid; gap: 6px; min-width: 0; }
.sn-to { margin: 4px 0 0; font-size: 15px; }
.sn-row { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; min-width: 0; }
.sn-row .st-meta { flex: 1 1 auto; min-width: 0; }
.sn-del { min-height: 44px; min-width: 88px; }
#sn-form .input { font-size: 16px; } /* 16px: no zoom on focus in iOS */
/* Graphics tasks that close by themselves (17.11.2026; app/gfx-auto-logic.js): the giver's optional
   kind and number, the progress line, and the system's "נסגר אוטומטית" with "לפתוח מחדש". */
.st-gfx-form { margin: 0; padding: 12px; border: 1px solid var(--ds-line, var(--line)); border-radius: var(--ds-r-item); display: grid; gap: 10px; min-width: 0; }
.st-gfx-form[hidden], .st-gfx-count[hidden] { display: none; }
.st-gfx-form legend { padding: 0 6px; font-weight: 700; font-size: 15px; }
.st-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-inline-size: 360px; } /* four kinds: two rows of two (24.11.2026) */
.st-chip { position: relative; display: flex; min-width: 0; }
.st-chip input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; }
.st-chip span {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; inline-size: 100%; min-width: 0; padding: 0 8px;
  border: 1.5px solid var(--ds-line, var(--line)); border-radius: 999px; background: var(--ds-surface); color: var(--ds-ink);
  font-size: 15.5px; font-weight: 600; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.st-chip input:checked + span { background: var(--ds-navy); border-color: var(--ds-navy); color: var(--ds-on-navy); }
.st-chip input:focus-visible + span { outline: 2px solid var(--ds-navy); outline-offset: 2px; }
.st-gfx-count .input { max-inline-size: 140px; font-size: 16px; font-variant-numeric: tabular-nums; } /* 16px: no zoom on focus in iOS */
.st-gfx { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: var(--ds-ink-2); }
.st-gfx-k { display: inline-block; border-radius: var(--ds-r-sm); padding: 2px 10px; background: var(--ds-soft); color: var(--ds-navy-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.st-auto { margin: 0; color: var(--ds-ok); font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.st-auto::before { content: '✓'; margin-inline-end: 6px; }
.st-item.is-auto { box-shadow: inset 0 0 0 2px var(--ds-ok-soft); }
.st-reopen { min-height: 44px; }
.st-gfx-hint { margin: 0; color: var(--ds-muted); font-size: 14px; }
