/*
 * Print styles.
 *
 * The ranking table is the sheet that gets printed and taken into the judging
 * meeting, so it has to fit on paper without the interface around it.
 */

@page { margin: 12mm; }

body.swcomp-body {
  background: #fff;
  color: #000;
  font-size: 11pt;
}

.swcomp-header,
.swcomp-sidebar,
.swcomp-toolbar,
.swcomp-pagination,
.swcomp-btn,
.swcomp-btn-row,
.swcomp-toasts,
.swcomp-dialog-backdrop,
.swcomp-skip-link,
.swcomp-tabs,
.swcomp-alert {
  display: none !important;
}

.swcomp-shell,
.swcomp-narrow {
  display: block;
  max-width: none;
  padding: 0;
  margin: 0;
}

.swcomp-card {
  border: none;
  box-shadow: none;
  break-inside: auto;
}

.swcomp-card-content,
.swcomp-card-header { padding: 0; }

.swcomp-table { font-size: 9.5pt; width: 100%; }
.swcomp-table th {
  background: #f2f2f2 !important;
  color: #000;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.swcomp-table th,
.swcomp-table td { border: 1px solid #ccc; padding: 4px 6px; }

/* Repeat the header on every printed page and never split a row. */
.swcomp-table thead { display: table-header-group; }
.swcomp-table tr { break-inside: avoid; }

/* The judges' scores cell: the edit pencil means nothing on paper. */
.swcomp-edit-pencil { display: none !important; }
.swcomp-judge-score { padding: 0 !important; background: transparent !important; outline: none !important; }
.swcomp-judge-score-name { color: #000 !important; }

.swcomp-badge {
  border: 1px solid #999;
  background: transparent !important;
  color: #000 !important;
}

.swcomp-print-title {
  display: block !important;
  font-size: 14pt;
  font-weight: 700;
  margin-bottom: 4mm;
}

a { color: #000; text-decoration: none; }
