/* 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;
    }
}

/* Headings */

form {
    text-align: center;
    margin: 1em 0 1em 0;
    font-size: 150%;
}

a {
    text-decoration: none;
}

/* Data table */

table {
    border-collapse: collapse;
    margin: 0 1em 2em 2em;
}

@media screen {
    table {
        width: 45%;
        float: left;
    }
}

@media print {
    table {
        width: 100%;
        margin: 0 0 2em 0;
        float: left;
    }
}

caption {
    text-align: center;
    font-size: 150%;
    font-weight: bold;
    padding-bottom: 1em;
    display: none;
}

table + table {
    float: right;
    margin-left: 1em;
}

th[scope="col"] {
    border-bottom: 1px solid black;
}

th[scope="col"].date {
    text-align: center;
}

th[scope="col"].airline,
th[scope="col"].price {
    text-indent: -9999px;
}

tr > * {
    white-space: nowrap;
    border: 0;
}

th img {
    vertical-align: top;
}

.schedule {
    width: 50%;
}

/* Flight Schedules */

.schedule {
    font-size: 50%;
}

.schedule ol {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.schedule .flight,
.schedule .layover {
    text-indent: -9999px;
    position: absolute;
    border: solid #303030;
    border-width: 1px 0;
    top: -.7em;
}

.schedule .flight {
    background: #303030;
}

.schedule .layover {
    background: white;
}

.schedule .first {
    -moz-border-radius-topleft: .4em;
    -moz-border-radius-bottomleft: .4em;
    -webkit-border-top-left-radius: .4em;
    -webkit-border-bottom-left-radius: .4em;
}

.schedule .last {
    -moz-border-radius-topright: .4em;
    -moz-border-radius-bottomright: .4em;
    -webkit-border-top-right-radius: .4em;
    -webkit-border-bottom-right-radius: .4em;
}

/* Pricing */

.price {
    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;
}