/* exec-uzd (Kārlis + Jānis 11.10.2026): owner + deadline on every task form, «Saplānot darbus», the calendar's
 * end-of-day list. Plain CSS in its own file, like jauns.css / dzest.css: static/app.css is compiled from the
 * templates and rebuilt by hand, so this stays out of it. Selected by data-attribute / own class names only. */

[data-u~="req"] { color: #e11d48; }

/* Quick deadline chips: Šodien · Rīt · Pirmdiena. A finger-sized target on a phone. */
[data-due-chips] { display: flex; flex-wrap: wrap; gap: 0.375rem; }
[data-due-chip], [data-u~="chip"] {
  display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 0.875rem; border-radius: 9999px;
  border: 1px solid var(--color-line, #e4e7eb); background: #fff; color: var(--color-ink-700, #3a424c);
  font-size: 12px; line-height: 1; cursor: pointer; transition: background-color .12s, border-color .12s;
}
[data-due-chip]:hover, [data-u~="chip"]:hover { background: var(--color-ink-50, #f7f8f9); }
[data-due-chip][aria-pressed="true"] {
  border-color: var(--color-accent, #31538f); background: var(--color-accent-50, #eff3fa);
  color: var(--color-accent-700, #2a4879); font-weight: 500;
}
@media (max-width: 640px) { [data-due-chip], [data-u~="chip"] { min-height: 2.75rem; } }

/* «nav termiņa» / «nav atbildīgā» on an open task made before the rule. */
[data-u~="missing"] {
  display: inline-flex; align-items: center; border-radius: 0.25rem; padding: 0.0625rem 0.375rem;
  background: #fffbeb; color: #92400e; border: 1px solid #fde68a; font-size: 11px; line-height: 1rem;
}

/* «Saplānot darbus» — the work list card on the project's Uzdevumi tab. */
[data-u~="plan"] { border: 1px solid var(--color-accent-200, #b7c8e6); background: var(--color-accent-50, #eff3fa);
  border-radius: 0.75rem; padding: 0.875rem; }
[data-u~="plan-row"] { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.5rem 0.25rem; align-items: center;
  border-top: 1px solid var(--color-accent-100, #dae3f4); padding: 0.5rem 0; }
[data-u~="plan-row"]:first-of-type { border-top: 0; }
[data-u~="plan-row"] > [data-u~="plan-tick"] { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; }
[data-u~="plan-row"] > [data-u~="plan-tick"] input { width: 1.25rem; height: 1.25rem; accent-color: var(--color-accent, #31538f); }
[data-u~="plan-fields"] { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.5rem; }
[data-u~="plan-row"]:not(:has([data-u~="plan-tick"] input:checked)) [data-u~="plan-fields"] { opacity: .45; }
[data-u~="plan-row"]:not(:has([data-u~="plan-tick"] input:checked)) [data-u~="plan-label"] { color: var(--color-ink-400, #98a1ad); }
@media (max-width: 640px) { [data-u~="plan-fields"] { grid-template-columns: minmax(0, 1fr); } }

/* The calendar's end-of-day list: one row per task, «Izdarīts» and «Pārcelt…» right there (≥ 44 px). */
[data-u~="day"] { border-top: 1px solid var(--color-line, #e4e7eb); padding: 0.75rem 1rem; }
[data-u~="day"] h3 { font-size: 13px; font-weight: 600; color: var(--color-ink-700, #3a424c); margin-bottom: 0.375rem; }
[data-u~="item"] { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.5rem 0;
  border-top: 1px solid var(--color-ink-100, #eef0f2); }
[data-u~="item"]:first-of-type { border-top: 0; }
[data-u~="item-main"] { flex: 1 1 14rem; min-width: 0; }
[data-u~="item-title"] { font-size: 14px; line-height: 1.3; color: var(--color-ink-900, #1b1f24); overflow-wrap: anywhere; }
[data-u~="item"][data-done] [data-u~="item-title"] { color: var(--color-ink-400, #98a1ad); text-decoration: line-through; }
[data-u~="item-meta"] { display: flex; flex-wrap: wrap; gap: 0.375rem 0.625rem; margin-top: 0.125rem; font-size: 12px;
  color: var(--color-ink-500, #6b7480); }
[data-u~="item-meta"] a { color: var(--color-accent-700, #2a4879); text-decoration: underline; text-underline-offset: 2px; }
[data-u~="late"] { color: #b91c1c; font-weight: 600; }
[data-u~="actions"] { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.375rem; }
[data-u~="btn"] { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; min-height: 2.75rem;
  min-width: 2.75rem; padding: 0 0.875rem; border-radius: 0.5rem; border: 1px solid var(--color-line, #e4e7eb);
  background: #fff; color: var(--color-ink-700, #3a424c); font-size: 13px; font-weight: 500; cursor: pointer; }
[data-u~="btn"]:hover { background: var(--color-ink-50, #f7f8f9); }
[data-u~="btn"][data-u~="done"] { border-color: #16a34a; color: #15803d; }
[data-u~="btn"][data-u~="done"]:hover { background: #f0fdf4; }
[data-u~="move"] > summary { list-style: none; }
[data-u~="move"] > summary::-webkit-details-marker { display: none; }
[data-u~="move"][open] > summary { background: var(--color-ink-100, #eef0f2); }
[data-u~="move-form"] { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; margin-top: 0.375rem; }
[data-u~="move-form"] input[type="date"] { min-height: 2.75rem; border: 1px solid var(--color-line, #e4e7eb);
  border-radius: 0.5rem; padding: 0 0.5rem; font-size: 14px; }
[data-u~="notice"] { margin: 0.5rem 1rem 0; border-radius: 0.375rem; padding: 0.375rem 0.75rem; font-size: 12px;
  border: 1px solid #fde68a; background: #fffbeb; color: #92400e; }
[data-u~="notice"][data-ok] { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
