/* Реестр задач координации: недели — блоками, цвета — легенда таблицы координации. */
.tk-legend { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.tk-chip { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2); font-style: normal; }
.tk-chip.overdue { background: color-mix(in srgb, var(--bad) 14%, var(--surface)); color: var(--bad); border-color: transparent; }
.tk-chip.today { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.tk-chip.late { background: var(--warn-bg); color: var(--warn-text); border-color: transparent; }
.tk-chip.done { background: color-mix(in srgb, var(--good) 14%, var(--surface)); color: var(--good); border-color: transparent; }
.tk-week { margin-bottom: 18px; }
.tk-week h2 { font-size: 15px; margin: 6px 0 8px; }
.tk-grid td { vertical-align: top; }
.tk-grid td.tk-what { min-width: 240px; max-width: 420px; }
.tk-grid td.tk-what b { display: block; font-weight: 600; }
.tk-grid td.tk-what small { display: block; color: var(--muted); white-space: pre-wrap; margin-top: 2px; }
.tk-grid td.tk-what small.tk-check-what { color: var(--accent); }
.tk-grid td.tk-due { white-space: nowrap; }
.tk-grid td.tk-due .tk-chip { display: block; width: fit-content; margin-top: 3px; }
.tk-grid td.tk-done { white-space: nowrap; }
.tk-grid td.tk-done input { width: 16px; height: 16px; accent-color: var(--good); cursor: pointer; vertical-align: -3px; }
.tk-grid td.tk-verify { font-size: 12px; white-space: nowrap; color: var(--muted); }
.tk-grid .tk-ok { color: var(--good); }
.tk-grid .tk-warn { color: var(--warn-text); cursor: help; }
.tk-grid td.tk-note { min-width: 200px; }
.tk-grid td.tk-note input { width: 100%; box-sizing: border-box; border: 1px solid transparent; border-radius: 6px;
  padding: 4px 6px; background: transparent; color: var(--text); }
.tk-grid td.tk-note input:hover, .tk-grid td.tk-note input:focus { border-color: var(--line); background: var(--surface); }
.tk-grid td.tk-note input.saved { border-color: var(--good); }
.tk-grid tr.tk-overdue td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.tk-grid tr.tk-overdue td.tk-due { color: var(--bad); font-weight: 600; }
.tk-grid tr.tk-late td:first-child { box-shadow: inset 3px 0 0 var(--warn-text); }
.tk-grid tr.tk-done td:first-child { box-shadow: inset 3px 0 0 var(--good); }
.tk-grid tr.tk-done td.tk-what b, .tk-grid tr.tk-late td.tk-what b { color: var(--muted); }
.tk-grid tr.tk-cancelled td { opacity: .5; text-decoration: line-through; }
.tk-hint { font-size: 12px; margin: 0 0 8px; }
#task-form textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; background: var(--surface); color: var(--text); font: inherit; }
/* Уведомления в MAX */
.tn-chats { padding: 4px 16px; }
.tn-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 8px 16px; }
.tn-row input[type="time"] { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px;
  background: var(--surface); color: var(--text); }
.notice.ok { background: color-mix(in srgb, var(--good) 12%, var(--surface)); color: var(--text); }
/* План-факт недели */
.wk-weeks { flex-wrap: wrap; margin: 4px 0 12px; }
.wk-grid td.good { color: var(--good); }
.wk-grid td.out { color: var(--bad); }
.wk-grid tr.wk-total th, .wk-grid tr.wk-total td { font-weight: 600; border-top: 2px solid var(--line); }
/* Зарплата */
.sl-grid td.good { color: var(--good); }
.sl-grid td.out { color: var(--bad); }
.sl-grid th small { font-weight: 400; color: var(--muted); }
.sl-settings { margin-top: 18px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.sl-settings h2 { margin: 0 0 10px; font-size: 16px; }
.tn-people { padding: 2px 16px; margin: 0; font-size: 13px; color: var(--muted); }
.tn-contacts { width: 100%; }
.tn-contacts td.tn-flag { text-align: center; }
.tn-name, .tn-id { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px;
  background: var(--surface); color: var(--text); font: inherit; }
.tn-contacts .tn-name { width: 100%; box-sizing: border-box; }
.tn-id { width: 130px; }
/* «Что сделать»: своё в поле, готовое — кнопкой «Из списка» */
.tk-pick { position: relative; display: flex; gap: 8px; }
.tk-pick input { flex: 1; min-width: 0; }
.tk-pick-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 10; max-height: 320px;
  overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15); padding: 4px 0; }
.tk-pick-group { padding: 8px 12px 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.tk-pick-item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 6px 12px 6px 20px;
  font: inherit; color: var(--text); cursor: pointer; }
.tk-pick-item:hover, .tk-pick-item:focus { background: var(--accent-soft); outline: none; }
.tk-pick-foot { position: sticky; bottom: -4px; display: flex; justify-content: flex-end; padding: 6px 12px;
  background: var(--surface); border-top: 1px solid var(--line); margin-top: 4px; }
.tk-pick-list .notice { margin: 6px 12px; }
.mn-form .tk-pick-list .tk-pick-edit, .mn-form .tk-pick-list .tk-pick-add input { box-sizing: border-box; border: 1px solid var(--line); border-radius: 6px;
  padding: 5px 8px; background: var(--surface); color: var(--text); font: inherit; }
.mn-form .tk-pick-list .tk-pick-edit { display: block; width: calc(100% - 32px); margin: 3px 12px 3px 20px; }
.tk-pick-add { display: flex; gap: 6px; margin: 4px 12px 8px 20px; }
.mn-form .tk-pick-list .tk-pick-add input { flex: 1; width: auto; min-width: 0; }
