.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-item {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 12px 12px 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.list-item.overdue {
  border-left: 4px solid var(--danger);
  background: var(--danger-soft);
}

.task-tone-cabinetNew,
.task-tone-new {
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.7), rgba(255, 255, 255, 0.96));
}

.task-tone-cabinetInProgress,
.task-tone-in_progress,
.task-tone-active {
  border-color: rgba(22, 163, 74, 0.28);
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.7), rgba(255, 255, 255, 0.96));
}

.task-tone-cabinetReview,
.task-tone-review {
  border-color: rgba(249, 115, 22, 0.28);
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.78), rgba(255, 255, 255, 0.96));
}

.task-tone-cabinetOverdue,
.task-tone-overdue {
  border-color: rgba(220, 38, 38, 0.28);
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.76), rgba(255, 255, 255, 0.96));
}

.task-tone-cabinetDone,
.task-tone-done {
  border-color: rgba(21, 128, 61, 0.28);
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.72), rgba(255, 255, 255, 0.96));
}

.list-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.list-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.list-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.list-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

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

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.filter-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  padding: 8px 0;
  font-size: 13px;
  cursor: pointer;
}

.filter-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.search-input {
  width: 320px;
  max-width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 11px;
  font-size: 13px;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 940px;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: top;
}

th {
  background: #fafafa;
  color: #4b5563;
  font-weight: 600;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr.overdue-row {
  background: var(--danger-soft);
}

.cell-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.cell-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 10px;
  border: 1px solid transparent;
}

.badge-created {
  background: #f3f4f6;
  color: #4b5563;
  border-color: #e5e7eb;
}

.badge-accepted {
  background: #e8efff;
  color: #1d4ed8;
  border-color: #dbeafe;
}

.badge-in_progress {
  background: #ebf5ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.badge-review {
  background: #fff8e6;
  color: #b45309;
  border-color: #fde68a;
}

.badge-done {
  background: #e9f8ef;
  color: #166534;
  border-color: #bbf7d0;
}

.badge-private {
  background: #f3e8ff;
  color: #6b21a8;
  border-color: #d8b4fe;
}

.badge-active {
  background: #e9f8ef;
  color: #166534;
  border-color: #bbf7d0;
}

.badge-pending {
  background: #fff8e6;
  color: #b45309;
  border-color: #fde68a;
}

.badge-blocked {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.priority-low {
  color: #6b7280;
}

.priority-medium {
  color: #2563eb;
}

.priority-high {
  color: #b91c1c;
}

.deadline-overdue {
  color: var(--danger);
  font-weight: 600;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cabinet-status-actions {
  margin-top: 12px;
  flex-wrap: wrap;
}

.btn-inline {
  padding: 6px 10px;
  min-height: 32px;
  font-size: 12px;
}

.row-actions select {
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 8px;
  font-size: 12px;
}

@media (max-width: 720px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}
