.task-panel .task-views {
  display: inline-flex;
  gap: 2px;
}

.task-panel .task-views > button {
  gap: 6px;
  white-space: nowrap;
}

.task-panel .task-package-heading {
  background: var(--package-wash);
}

.task-schedule {
  display: grid;
  gap: 3px;
}

.schedule-date {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  white-space: nowrap;
  font-size: .875rem;
}

.schedule-date > span:first-child {
  color: var(--muted);
  font-size: .75rem;
}

.schedule-date > time, .schedule-date .task-due {
  color: var(--ink-2);
  font-size: .875rem;
}

.schedule-date .task-date-late { color: var(--error); }
.task-schedule .overdue-label { justify-self: start; }

@media (min-width: 761px) {
  .task-panel .task-package-heading {
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
  }

  .task-panel .task-package-heading:has(+ .task-board) {
    border-radius: 8px;
    margin-bottom: 7px;
  }

  .task-panel .table-wrap:has(.task-table) {
    border-top: 0;
    border-radius: 0 0 8px 8px;
    border-inline-start: 5px solid var(--package-border);
  }

  .task-panel .task-table th {
    height: 35px;
    padding: 6px 10px;
  }

  .task-panel .task-table td {
    height: 45px;
    padding: 4px 10px;
  }

  .task-panel .task-table :is(th, td) + :is(th, td) {
    border-inline-start: 1px solid var(--line);
  }

  .task-panel .task-table td[data-label="Status"] {
    width: 120px;
    min-width: 120px;
    padding: 0;
    background: var(--state-bg);
  }

  .task-panel .task-table td[data-label="Status"] > :is(select, .task-state) {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    font-size: .875rem;
  }

  .task-panel .task-table td[data-label="Status"] > select {
    text-align: center;
  }

  .task-panel .task-table td[data-label="Status"] > select:focus-visible {
    outline-offset: -3px;
  }

  .task-panel .task-table td[data-label="Assignee"] { min-width: 146px; }
  .task-panel .task-table td[data-label="Priority"] { min-width: 101px; }
  .task-panel .task-table td[data-label="Schedule"] { min-width: 163px; }

  .task-panel .task-table .schedule-date > input {
    min-width: 0;
    min-height: 27px;
    padding-block: 1px;
    font-size: .8125rem;
  }
}

@media (max-width: 480px) {
  .task-panel .heading-actions { width: 100%; }
  .task-panel .task-views { flex: 1 1 100%; }
  .task-panel .task-views > button { flex: 1; justify-content: center; }
  .task-panel .task-table td[data-label="Schedule"] { grid-column: 1 / -1; }
}
