/* 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: 2em auto;
    }
}

@media print {
    body {
        margin: 0 2em;
    }
}

/* Data table */

table {
    border-collapse: collapse;
    margin: 0 0 2em 0%;
}

caption {
    text-align: left;
    font-size: 150%;
    font-weight: bold;
    border-bottom: 1px solid #303030;
    padding-left: 1em;
    display: none;
}

th {
    padding: 0 .2em;
}

th[scope="col"] {
    text-align: center;
    width: 2em;
    border-bottom: 1px solid #303030;
}

th[scope="col"].rank {
    text-indent: -9999px;
}

th[scope="col"].player {
    text-indent: -9999px;
    width: 10em;
}

th[scope="col"].total {
    width: 5em;
}

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;
}

/* Scores */

th[scope="row"].rank {
    text-align: right;
}

th[scope="row"].player {
    text-align: left;
}

tbody .score {
    overflow: hidden;
}

tbody .score .par {
    display: block;
    position: relative;
    width: 50%;
    margin: 0;
    padding: 0;
    list-style: none;
    text-indent: -9999px;
    border-right: 1px solid #303030;
}

tbody .total .par {
    width: 70%;
}

tbody .score .index {
    position: absolute;
    display: block;
    top: 20%;
    font-size: 60%;
    background: #d0d0d0;
}

tbody .top.score .index {
    background: #303030;
}

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%;
}


