@page {
  size: A4;
  margin: 0;
}

@media print {
  /* A4 */
  html, body {
    width: 210mm;
    height: 297mm;
  }
  .is-print-hidden {
    display: none;
  }
  #content {
    width: 100%; margin: 0; float: none;
  }
  p {
    font-size: 11pt;
  }
  div.box {
    font-size: 11pt;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
  table {
    width: 100%;
  }
}

.user-select-all {
  -webkit-user-select: all;
  -moz-user-select: all;
  -ms-user-select: all;
  user-select: all;
}

.hide-if-empty:empty {
  display: none;
}

.has-background-info {
  background-position: center right;
  background-size: 100%;
}

.result, pre {
  white-space: pre-wrap; /* safari workaround */
  overflow-wrap: anywhere;
  white-space: break-spaces;
  font-family: "Source Sans Pro";
}

tr.is-selected > td,
tr.is-selected > th {
  font-weight: bolder;
}

tr.is-secondRound > td,
tr.is-secondRound > th {
  background-color: paleTurquoise;
  color: var(--bulma-primary);
  font-weight: bolder;
}

tbody > tr.is-ineligible {
  background-color: var(--bulma-info-soft) !important;
  opacity: 0.5;
}

img.minilogo {
  width: 5em;
  margin: 1em;
}
img.micrologo {
  height: 1em;
  margin-left: 0.2em;
  margin-right: 0.2em;
}
span.europe {
  color: #003399;
}

.card_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  align-items: stretch;
  grid-gap: 1rem;
}
.card-footer {
  margin-top: auto;
}

/* do not show arrows in number input */
input[type='number'] {
  appearance: textfield;
}

table tr > th:not([align]) {
  text-align: left;
}
th.verticalText {
  width: 1.5em;
  padding-left: 0;
  padding-right: 0;
}
th.verticalText > * {
  writing-mode: vertical-lr;
  padding-left: 0;
  padding-right: 0;
}
.is-clickable {
  cursor: pointer;
}
.is-clickable:hover {
  background-color: paleTurquoise;
}
td.collapsedCell {
  cursor: pointer;
  padding: 0;
}
td.collapsedCell > * {
  display: none;
}
td.collapsedCell.emptyInput {
  background: #eeeeee;
}

div.CodeMirror {
  border: 1px solid lightgray;
  height: auto;
  margin: 0.5em;
}

col:hover {
  background: red;
}

summary {
  cursor: pointer;
}

table.key-value-box {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0.3em;
}
table.key-value-box > tbody > tr > th:first-child {
  text-align: right;
  width: 15em;
}
table.key-value-box > tbody > tr > td > input,
table.key-value-box > tbody > tr > td > textarea {
  width: 100%;
}

.whitespace {
  white-space: pre-wrap;
}

.is-double {
  background-color: lightgray;
  font-style: italic;
  opacity: 0.5;
}

span.highlight-added, span.highlight-removed, span.highlight-modified {
  background-color: hsl(var(--bulma-link-h), var(--bulma-link-s), var(--bulma-link-l));
  color: hsl(var(--bulma-link-h), var(--bulma-link-s), var(--bulma-link-invert-l));
  border-radius: var(--bulma-notification-radius);
  padding: 4px;
}
.cell.highlight-added, .cell.highlight-removed, .cell.highlight-modified {
  border: solid 2px;
  border-color: hsl(var(--bulma-link-h), var(--bulma-link-s), var(--bulma-link-l));
}

.hero.is-soft {
  --bulma-hero-background-l: var(--bulma-soft-l);
  --bulma-hero-color-l: var(--bulma-soft-invert-l);
}
