.tasks-page {
  height: calc(100vh - 96px);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.75rem;
  min-height: 560px;
}
.tasks-content {
  min-height: 0;
  overflow: auto;
}
.task-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.task-card {
  border-left: 5px solid var(--task-color, #6c757d);
  cursor: pointer;
}
.task-card:hover {
  box-shadow: 0 5px 16px #17212b18;
}
.task-priority-LOW {
  --task-color: #6c757d;
}
.task-priority-NORMAL {
  --task-color: #0d6efd;
}
.task-priority-HIGH {
  --task-color: #fd7e14;
}
.task-priority-URGENT {
  --task-color: #dc3545;
}
.task-priority-IMMEDIATE {
  --task-color: #8b0000;
}
.kanban-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(260px, 1fr));
  gap: 0.75rem;
  overflow: auto;
  height: 100%;
  padding-bottom: 0.5rem;
}
.kanban-column {
  background: #eef1f3;
  border-radius: 0.65rem;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}
.kanban-column-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #e3e7ea;
  border-radius: 0.65rem 0.65rem 0 0;
  padding: 0.65rem;
  font-weight: 800;
}
.kanban-column-body {
  padding: 0.55rem;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-height: 180px;
}
.kanban-column-body.drag-over {
  outline: 2px dashed #c8202f;
  outline-offset: -4px;
}
.task-group {
  margin-bottom: 1rem;
}
.task-group-title {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  border-bottom: 2px solid #dee2e6;
  padding: 0.5rem 0;
}
.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.75rem;
}
.task-overdue {
  background: #fff3f3;
}
.task-history-line {
  border-left: 3px solid #dee2e6;
  padding-left: 0.75rem;
  margin-left: 0.35rem;
}
@media (max-width: 767.98px) {
  .tasks-page {
    height: calc(100vh - 74px);
  }
  .task-toolbar .form-select {
    flex: 1 1 45%;
  }
}
