html, body {
   margin : 0;
   padding : 0;
   font-size: 11pt;
   font-family: sans-serif;
}

body {
   padding: 4ex;
}

div.container {
   display: inline-block;
   text-align: center;
}

@media screen and (min-width: 100ex) {
   div.container {
      min-width: 92ex;
   }
}

@media screen and (max-width: 100ex) {
   div.container {
      min-width: 100%;
   }
}

@media print {
   div.container {
      display: block !important;
   }
}

table {
   margin: 0;
   border: none !important;
   border-collapse: collapse;
   text-align: initial;
   white-space: nowrap;
}

table.results, table.startlist {
   width: 100%;
}

table caption {
   text-align: center;
   padding: 4ex;
}

table colgroup.colgrp {
   border-left: 2px solid black;
   border-right: 2px solid black;
}


table thead th.grp-head {
   border-left: hidden;
   border-right: hidden;
}

table thead th.ctl {
   font-size: 0.9em;
   font-weight: normal;
}

table thead tr:last-child {
   border-bottom: 0.5ex solid transparent !important;
}

table tfoot tr:first-child {
   border-top: 0.5ex solid transparent !important;
}

@media print {
   table tfoot {
      display: none;
   }
}

table.preo tbody tr:hover,
table.tempo tbody tr:hover {
   background-color: #eee;
}

table.preo tbody tr:nth-child(5n + 1),
table.tempo tbody tr:nth-child(5n + 1) {
   border-top: thin dotted gray;
}

table.relay tbody tr.leg-fst {
   border-top: thin dotted gray;
}

table.relay tbody tr.leg-fst:first-child {
   border-top: none !important;
}

table.relay td img {
   vertical-align: middle;
   margin-left: 1em;
   margin-right: 1em;
   border: thin solid gray;
}

td {
   border-left:  thin solid gray;
   border-right: thin solid gray;
   padding: 2pt;
}

th.grp-fst, td.grp-fst {
   padding-left: 4pt;
}

td:first-child {
   border-left: none !important;
}

th.grp-lst, td.grp-lst {
   padding-right: 4pt;
}

td:last-child {
   border-right: none !important;
}

td.ans {
   border: none;
   text-align: center;
}

td.ans.coded {
   border: thin solid grey;
}

td.ans.y {
   font-weight: bold;
   color: #262;
}

td.ans.n {
   font-style: italic;
   color: #b22;
}

.disabled {
   color: grey !important;
}

td.num, td.time, td.points, td.place {
   text-align: right;
}
