/* Resets to avoid browser differences */

body, button, div, fieldset, form, h1, h2, h3, input, label, li, p, pre, select, td, th, textarea {
    margin: 0;
    padding: 0;
    text-align: justify;
    font-family: sans-serif;
    font-size: 100%;
    line-height: 1.25;
    letter-spacing: 0;
    border: none;
    background: none;
}

input {
    border-bottom: 1px dashed #303030;
    width: 2.5em;
}

/* Overall page layout */

body {
    background: white;
    color: #303030;
}

@media screen {
    body {
        margin: 1em auto;
        width: 100%;
    }
}

@media print {
    body {
        margin: 0 2em;
    }
}

/* Visualization */

.visualization {
    display: block;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    text-indent: -9999px;
}

.progress {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #e0e0e0;
    z-index: -1;
    text-indent: -9999px;
}

.bar.visualization {
    border-left: 1px solid #303030;
}

.relative.visualization {
    display: block;
    position: relative;
    width: 50%;
    margin: 0;
    padding: 0;
    list-style: none;
    border-right: 1px solid #303030;
    border-left: none;
}

.bar.visualization .value {
    position: absolute;
    display: block;
    top: 20%;
    font-size: 60%;
    background: #303030;
}

.left.bar.visualization {
    border-left: none;
    border-right: 1px solid #303030;
}

.left.bar.visualization .value,
.relative.visualization .left.value {
    right: 0;
    -moz-border-radius-topleft: .4em;
    -moz-border-radius-bottomleft: .4em;
    -webkit-border-top-left-radius: .4em;
    -webkit-border-bottom-left-radius: .4em;
    -moz-border-radius-topright: 0;
    -moz-border-radius-bottomright: 0;
    -webkit-border-top-right-radius: 0;
    -webkit-border-bottom-right-radius: 0;
}

.bar.visualization .value,
.bar.visualization .right.value {
    -moz-border-radius-topleft: 0;
    -moz-border-radius-bottomleft: 0;
    -webkit-border-top-left-radius: 0;
    -webkit-border-bottom-left-radius: 0;
    -moz-border-radius-topright: .4em;
    -moz-border-radius-bottomright: .4em;
    -webkit-border-top-right-radius: .4em;
    -webkit-border-bottom-right-radius: .4em;
}

.bar.relative.visualization .right.value {
    left: 100%;
}

.bar.visualization .extra.value {
    background-color: #d0d0d0;
    z-index: -1;
}

/* Header */

.header {
    border: solid #303030;
    border-width: 1px 0;
    margin-bottom: 1em;
}

h1 {
    text-indent: 0;
    font-size: 200%;
    padding-left: .25em;
}

.header p {
    float: right;
    display: block;
    text-indent: 0;
    margin-top: -1.25em;
    font-weight: bold;
    font-size: 200%;
    padding-right: .25em;
}

.header .total {
    display: none;
}

.header img.flag {
    vertical-align: middle;
    margin-top: -.2em;
    display: none;
}

.header .progress {
    background-color: #cae3ca;
    z-index: -3;
}

ul.caution {
    list-style: none;
    text-indent: -9999px;
    height: 100%;
    margin-top: -1em;
}

ul.caution li {
    margin-top: -1.5em;
    position: absolute;
    background-color: #f6f0c5;
    height: 100%;
    z-index: -2;
}

ul.caution li.stop {
    background-color: #f65c5c;
    width: .2%;
    z-index: -1;
}

/* Data table */

table {
    border-collapse: collapse;
    margin: 0;
    width: 100%;
}

caption {
    text-align: left;
    font-size: 150%;
    font-weight: bold;
    border-bottom: 1px solid #303030;
    padding-left: 1em;
    display: none;
}

tr > * {
    padding: 0 .2em;
}

th[scope="col"] {
    text-align: center;
    border-bottom: 1px solid #303030;
}

th[scope="col"].rank,
th[scope="col"].driver {
    text-indent: -9999px;
    white-space: nowrap;
}

th[scope="row"] {
    font-weight: normal;
    text-align: center;
}

tr > * {
    white-space: nowrap;
}

tbody + tbody tr > * {
    border-top: 1px solid #303030;
}

tbody tr + tr > * {
    border-top: none;
}

/* Drivers */

th.behind-leader {
    width: 5em;
}

th.rank {
    width: 2em;
    display: none;
}

th.driver {
    width: 1px;
}

th.inactive.driver {
    color: #d0d0d0;
}

tr.chase th.rank,
tr.chase th.driver {
    color: darkblue;
}

tr.chase th.inactive.driver {
    color: lightblue;
}

/* Behind Leader */

td.behind-leader {
    border-right: 1px solid #303030;
    text-align: right;
}

td.behind-leader .visualization {
    width: 100%;
    border-right: none;
    text-align: left;
    margin-right: -.2em;
    right: -.2em;
}

/* Movement */



/* Laps Led */

td.laps-led {
    border-left: 1px solid #303030;
}

.laps-led .visualization {
    border-right: 1px solid #d0d0d0;
    border-left: none;
    margin-left: -1px;
    left: -.2em;
}

.laps-led .value {
    left: 0;
    margin-left: 1px;
}

.laps-led .dim.value {
    left: 0;
    background: #d0d0d0;
}

.laps-led .visualization {
    overflow: visible;
}

/* Season Points */



/* Scores */

th[scope="row"].rank {
    text-align: right;
    display: none;
}

th[scope="row"].driver {
    text-align: left;
}

th[scope="row"].driver img {
    vertical-align: top;
}

tbody .total .par {
    width: 70%;
}

tbody .score .under .index {
    right: 0;
    -moz-border-radius-topleft: .4em;
    -moz-border-radius-bottomleft: .4em;
    -webkit-border-top-left-radius: .4em;
    -webkit-border-bottom-left-radius: .4em;
}

tbody .score .over .index {
    left: 100%;
    margin-left: 1px;
    -moz-border-radius-topright: .4em;
    -moz-border-radius-bottomright: .4em;
    -webkit-border-top-right-radius: .4em;
    -webkit-border-bottom-right-radius: .4em;
}

tr.detail > * {
    border-top: 1px solid #303030;
}

tr.detail + tr.detail > * {
    border-top: none;
}

tr.detail + tr.summary > * {
    border-top: 1px solid #303030;
}

tr.detail th[scope="row"] {
    text-align: right;
}

tfoot .total {
    text-indent: -9999px;
}

tfoot td {
    text-align: center;
}

tfoot .index {
    display: none;
}

#totals {
    width: 100%;
}

#totals th[scope="col"].total {
    width: 15%;
}

/* Progress */

.progress {
    padding: 0;
}

.price a { 
    position: relative; 
    display: block; 
    width: 100%;
    color: #303030;
}

.price span { 
    display: block; 
    position: absolute; 
    top: 0; 
    left: 0; 
    height: 100%; 
    background: #e0e0e0; 
    overflow: hidden; 
}

.price span + span {
    position: relative;
    background: none;
    padding: .2em;
}
