/* PJ1 — projects and time as drawn (mk-auto-projects-index, mk-auto-projects-timesummary): the list's row details, the project's
   window (its time from attendance, overtime by band, labour cost, people, tasks), the time summary's period below its table. */
.pj1-card table { font-size: 14px; }
.pj1-sub { font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 2px; }
.pj1-tasks { display: flex; flex-wrap: wrap; gap: 4px; max-width: 220px; }
.pj1-budget { display: flex; flex-direction: column; gap: 4px; min-width: 90px; }
.pj1-budget .en1-bar-bg { flex: 0 0 auto; height: 6px; }
.en1-bar-fg.pj1-over { background: var(--rd, #dc2626); }
.pj1-acts { flex-direction: column; align-items: stretch; gap: 4px; min-width: 112px; }
.pj1-acts .btn { width: 100%; justify-content: center; }
.pj1-acts .lt-open { text-align: center; }
.pj1-ot-sub { justify-content: flex-end; }
.pj1-acts .inline-form { margin: 0; }
.pj1-win { display: grid; gap: 4px; }
.pj1-win-hd { margin: 0 0 8px; font-size: 15px; }
.pj1-h { font-size: 14px; font-weight: 700; margin: 14px 0 8px; }
.pj1-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 10px; }
.pj1-kpi { border: 1px solid var(--bd, #e2e8f0); border-radius: 10px; padding: 10px 12px; font-size: 12px; }
.pj1-kpi .k { color: var(--mu, #64748b); }
.pj1-kpi .v { font-size: 18px; font-weight: 700; margin: 2px 0; }
.pj1-ot { margin: 0 0 8px; font-size: 13px; }
.pj1-more { margin: 10px 0; }
.pj1-more > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ac, #0f766e); }
.pj1-filter { width: 100%; margin: 8px 0; }
.pj1-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; max-height: 220px; overflow: auto; padding: 4px;
  border: 1px solid var(--bd, #e2e8f0); border-radius: 8px; }
.pj1-pick-row { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.pj1-pick-row[hidden] { display: none; }
.pj1-addtask { margin: 8px 0 0; }
.pj1-period { margin-top: 12px; }
.pj1-period .md-grid2 { max-width: 640px; }
.pj1-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.pj1-foot .btn { min-height: 36px; }
@media (max-width: 760px) { .pj1-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pj1-pick { grid-template-columns: 1fr; } }
@media (max-width: 640px), (pointer: coarse) { .pj1-card .btn, .pj1-foot .btn { min-height: 44px; } }
