/* 任务中心 /my_tasks */
.my-tasks-header-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.my-tasks-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.my-tasks-head-panel {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
}

.my-tasks-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
}

.my-tasks-head-row + .my-tasks-head-row {
  border-top: 1px solid #e5e7eb;
}

.my-tasks-head-row-filter {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.my-tasks-filter-label {
  font-size: 13px;
  color: #475569;
  margin: 0;
}

.my-tasks-stage-select {
  min-width: 220px;
  height: 32px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  padding: 0 10px;
}

.my-tasks-filter-active {
  font-weight: 700;
}

button.my-task-force-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: #2563eb;
  text-decoration: underline;
  min-width: 44px;
  min-height: 44px;
  line-height: 44px;
  touch-action: manipulation;
}

.my-tasks-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.my-tasks-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.my-tasks-metric-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
}

.my-tasks-metric-card.is-warning {
  border-color: #f59e0b;
  background: #fffbeb;
}

.my-tasks-metric-card.is-good {
  border-color: #16a34a;
  background: #f0fdf4;
}

.my-tasks-metric-label {
  font-size: 12px;
  color: #64748b;
}

.my-tasks-metric-value {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
  margin-top: 6px;
}

.my-tasks-metric-unit {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.my-tasks-view-toggle,
.my-tasks-quick-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.my-tasks-view-btn {
  min-width: 80px;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  touch-action: manipulation;
}

.my-tasks-view-btn.is-active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
}

.my-tasks-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.my-tasks-sort-select {
  min-height: 44px;
  min-width: 160px;
}

.my-tasks-filter-inline {
  margin-left: 10px;
}

.my-tasks-overdue-chip {
  color: #b91c1c;
  font-weight: 700;
}

.my-tasks-list-wrap.is-hidden,
.my-tasks-kanban.is-hidden {
  display: none;
}

.my-tasks-kanban {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  contain: layout paint;
  content-visibility: auto;
  will-change: transform;
}

.my-tasks-kanban-col {
  flex: 0 0 300px;
  min-width: 300px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.my-tasks-kanban-col-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.my-tasks-kanban-col-bd {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 320px);
  overflow-y: auto;
}

.my-tasks-card {
  display: block;
  text-decoration: none;
  color: #0f172a;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px;
  min-height: 44px;
  touch-action: manipulation;
}

.my-tasks-card.is-overdue,
.my-tasks-card.is-blinking-red {
  border-color: #dc2626;
  animation: myTasksOverdueBlink 1.2s infinite;
}

@keyframes myTasksOverdueBlink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.10); }
  50% { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.28); }
}

.my-tasks-card-overdue {
  margin-bottom: 8px;
  border-radius: 6px;
  background: #dc2626;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
}

.my-tasks-card-top,
.my-tasks-card-progress-meta,
.my-tasks-card-ft {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.my-tasks-card-progress-meta {
  font-size: 12px;
  margin: 8px 0 4px;
}

.my-tasks-card-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.my-tasks-card-progress-fill {
  width: 0;
  height: 100%;
  background: #2563eb;
  border-radius: 999px;
}

.my-tasks-card-ft {
  margin-top: 8px;
  font-size: 12px;
  color: #334155;
}

.my-tasks-kanban-empty {
  color: #64748b;
  font-size: 13px;
  padding: 8px;
}
