/* Task inbox of the main page (frontend/tasks.js) with the bell in the header and the counters in the sidebar. */
.tasks-bell{position:relative;display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 12px;font-size:13px}
.tasks-bell span{margin-left:0}
.bell-count{min-width:18px;padding:1px 6px;border-radius:9px;background:var(--surface-3);color:var(--ink);font-size:10px;line-height:16px;text-align:center}
.bell-count.alert,.count.alert{background:#b3412f;color:#fff}
.tasks-toolbar{justify-content:flex-start;flex-wrap:wrap}
.tasks-toolbar .checkbox-label{font-size:11px}
.tasks-status{display:flex;align-items:center;gap:12px;min-height:34px;margin-bottom:10px;font-size:12px;color:var(--ink)}
.tasks-status .secondary{margin:0;padding:6px 12px}
.tasks-list{display:flex;flex-direction:column;gap:8px}
.tasks-group{font-size:12px;letter-spacing:.4px;font-weight:650;color:var(--ink-soft);margin:18px 0 4px}
.tasks-group.state-overdue{color:var(--err-text)}
.task-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:16px;align-items:center;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--line-2);border-radius:9px;padding:12px 16px}
.task-row.state-overdue{border-left-color:var(--err)}
.task-row.state-today{border-left-color:var(--warn)}
.task-row.state-later{border-left-color:var(--faint)}
/* Put aside by the user (backend/tasks.py hide, „Ausgeblendete anzeigen“): muted, with the day it comes back or „Ignoriert“. */
.task-row.state-hidden{border-left-style:dashed;background:var(--surface-2)}
.task-hidden{font-size:10px;border-radius:4px;padding:2px 6px;border:1px dashed var(--line-2);color:var(--ink-soft)}
.task-main{min-width:0}
.task-head{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:4px}
.task-app,.task-kind,.task-priority{font-size:10px;border-radius:4px;padding:2px 6px;background:var(--surface-3);color:var(--ink-soft)}
.task-app{background:var(--brand-soft);color:var(--brand-text);font-weight:600}
.task-priority.high{background:var(--err-bg);color:var(--err-text);font-weight:600}
.task-title{display:block;font-size:13px;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.task-context{margin:3px 0 0;font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.task-due{font-size:11px;color:var(--ink-soft);white-space:nowrap}
.state-overdue .task-due{color:var(--err-text);font-weight:600}
.task-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.task-actions .primary,.task-actions .secondary{margin:0;padding:8px 12px}
.task-actions .help{font-size:11px;color:var(--muted)}
.tasks-note{margin-top:24px;font-size:11px;color:var(--muted)}
.reschedule-quick{flex-wrap:wrap}
/* Dialog of an action with a note (e.g. „Ablehnen“ with its reason): head and footer stay in view, only the fields scroll
   (docs/Projektregeln/editor-dialog-layout.md); the message of the app has its own row above the button. */
.task-action-dialog{width:min(560px,calc(100% - 32px));padding:0;background:var(--surface)}
.task-action-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
#task-action-form{display:flex;flex-direction:column;min-height:0;flex:1 1 auto}
.task-action-dialog .dialog-head{flex:none;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px 14px;border-bottom:1px solid var(--line)}
.task-action-dialog .dialog-head h2{margin:0;min-width:0;font-size:18px;overflow-wrap:anywhere}
.task-action-dialog .dialog-head button{flex:none;margin:0}
.task-action-fields{flex:1 1 auto;min-height:0;overflow:auto;padding:16px 24px;align-content:start;gap:14px}
.task-action-task{overflow-wrap:anywhere}
.task-action-fields textarea{min-height:96px;background:var(--input-bg)}
.task-action-dialog footer{flex:none;display:grid;gap:8px;padding:12px 24px 18px;border-top:1px solid var(--line);background:var(--surface)}
.task-action-buttons{display:flex;justify-content:flex-end;gap:10px}
.task-action-buttons button{margin:0;white-space:nowrap}
@media(max-width:900px){
  .task-row{grid-template-columns:minmax(0,1fr) auto}
  .task-actions{grid-column:1/-1;justify-content:flex-start}
}
@media(max-width:600px){
  .task-row{grid-template-columns:minmax(0,1fr)}
  .task-due{white-space:normal}
  .task-actions .primary,.task-actions .secondary{min-height:44px}
  .tasks-bell{padding:6px 10px}
  .task-action-dialog .dialog-head{padding:16px 16px 12px}
  .task-action-fields{padding:14px 16px}
  .task-action-dialog footer{padding:12px 16px 16px}
  .task-action-buttons button{min-height:44px}
}
