/* Use solid black ink for match documents without changing their screen theme. */
@media print {
  :is(.league-sheet, .tournament-group, .printed-order),
  :is(.league-sheet, .tournament-group, .printed-order) * {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    border-color: #000 !important;
    text-shadow: none !important;
    box-shadow: none !important;
  }

  /* Override the existing last-row print border as well as ordinary cells. */
  .league-matrix tbody tr:last-child > td,
  .printed-order tbody tr:last-child > td {
    border-bottom-color: #000 !important;
  }

  .draw-connectors,
  .draw-connectors * {
    stroke: #000 !important;
    stroke-opacity: 1 !important;
  }

  :is(.league-sheet, .tournament-group, .printed-order) button,
  .draw-connectors {
    opacity: 1 !important;
  }

  /* A team cannot play itself; keep the diagonal placeholder hidden. */
  .league-matrix .matrix-diagonal {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
  }
}
