/* Assignments ledger: grouped section titles (Overdue/Today/This week/...), individual
   rows (checkbox, title, course, due date, priority dot, delete), and the collapsible
   "Done" group. */

.ledger-group { margin-bottom: 18px; }
.ledger-group:last-child { margin-bottom: 0; }
.ledger-group-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ledger-group-title.is-overdue { color: var(--danger); }
.ledger-group-title .count {
  background: var(--surface-sunken);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 0.68rem;
}

.row {
  display: grid;
  grid-template-columns: 22px 1fr auto auto auto 22px;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: none; }
.row.done .row-title { color: var(--ink-muted); text-decoration: line-through; }

.row-check {
  width: 18px; height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}
.row-main { min-width: 0; }
.row-title { font-weight: 500; font-size: 0.92rem; }
.row-course {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 2px;
}
.row-course .course-swatch { width: 8px; height: 8px; margin-right: 0; }

.row-due {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  white-space: nowrap;
  color: var(--ink-muted);
}
.row-due.overdue { color: var(--danger); font-weight: 500; }
.row-due.due-today { color: var(--warn); font-weight: 500; }

.row-priority {
  width: 9px; height: 9px;
  border-radius: 50%;
  justify-self: center;
}
.row-priority.high { background: var(--danger); }
.row-priority.medium { background: var(--warn); }
.row-priority.low { background: var(--ink-muted); opacity: 0.6; }

.row-del {
  width: 20px; height: 20px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 0.9rem;
}
.row-del:hover { color: var(--danger); }

details.ledger-group summary { cursor: pointer; list-style: none; }
details.ledger-group summary::-webkit-details-marker { display: none; }
details.ledger-group summary .ledger-group-title::before {
  content: "▸";
  font-size: 0.7em;
}
details.ledger-group[open] summary .ledger-group-title::before { content: "▾"; }
