/* Print-list styles (print-list.html). Screen shows a clean preview; @media
 * print strips the chrome and forces status colors to render on paper
 * (print-color-adjust: exact). Tokens come from ovg.css; this is layout only.
 * CSP-safe — no inline styles. */

.print-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.print-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.print-title {
  font-size: 20px;
  margin: 0;
}

.print-sub {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 4px 0 0;
}

.print-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.print-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 13px;
}

.print-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  padding: 8px 10px;
  border-bottom: 2px solid rgba(28, 53, 94, 0.25);
  vertical-align: bottom;
}

.print-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(28, 53, 94, 0.14);
  vertical-align: top;
  color: var(--text-primary);
}

.print-table .col-title {
  font-weight: 600;
  min-width: 160px;
}

.print-table .col-progress,
.print-table .col-due {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.print-notdone {
  color: var(--text-secondary);
}

.print-empty {
  color: var(--text-secondary);
  margin-top: 18px;
}

/* status label as a small colored pill inside the table cell */
.print-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.print-status.chip-upcoming {
  background: #e7edf7;
  color: var(--navy);
  border-color: rgba(28, 53, 94, 0.18);
}

.print-status.badge-warning {
  background: var(--warning-bg);
  color: var(--warning-text);
  border-color: rgba(146, 64, 14, 0.22);
}

.print-status.badge-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
  border-color: rgba(153, 27, 27, 0.22);
}

.print-status.badge-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: rgba(10, 110, 63, 0.22);
}

.print-status.chip-cancelled {
  background: #eceef3;
  color: var(--text-secondary);
  border-color: rgba(28, 53, 94, 0.16);
  text-decoration: line-through;
}

@media print {
  @page {
    size: landscape;
    margin: 12mm;
  }

  html,
  body {
    background: #fff;
  }

  .no-print {
    display: none !important;
  }

  .print-wrap {
    max-width: none;
    padding: 0;
  }

  .print-table {
    font-size: 11px;
  }

  /* Force chip/status colors onto paper. */
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* `break-inside`, not the legacy `page-break-inside` alias — matches its
     sibling print sheet (print-calendar.css) so one house style, one future
     lint rule (gate P2 pass-3 S-15). */
  .print-table tr {
    break-inside: avoid;
  }
}
