
body {
    margin: 0;
    font-family: Helvetica;
    background: #FFFFFF;
    color: #000000;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
}

body > h1 {
    position: fixed;
    width: 100%;
    z-index: 1;
    -webkit-box-shadow: 0px 5px 10px #E0E0E0;
    -moz-box-shadow: 0px 5px 10px #E0E0E0;
    box-sizing: border-box;
    margin: 0;
    padding: 10px;
    line-height: 20px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    text-shadow: rgba(0, 0, 0, 0.6) 0px -1px 0;
    text-overflow: ellipsis;
    color: #FFFFFF;
    background: url(iPhoneToolbar.png) #6d84a2 repeat-x;
    border-bottom: 1px solid #2d3642;
}

body > dl > dt,
body > table > tbody > tr:nth-child(1) > th,
body > table > tbody > tr:nth-child(2) > td:first-child,
.button {
    position: fixed;
    top: 7px;
    right: 7px;
    z-index: 1;
    -webkit-border-image: url(iPhoneButton.png) 0 5 0 5;
    -webkit-border-radius: 0;
    -moz-border-image: url(iPhoneButton.png) 0 5 0 5;
    -moz-border-radius: 0;
    border-width: 0 5px 0 5px;
    padding: 0;
    height: 28px;
    line-height: 28px;
    font-size: 12px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: rgba(0, 0, 0, 0.6) 0px -1px 0;
    text-decoration: none;
    background: none;
}

body > table > tbody > tr:nth-child(1) {
    position: fixed;
    top: 7px;
    right: 7px;
    z-index: 1;
}

body > table > tbody > tr:nth-child(1) > th {
    display: inline-block;
    position: static;
    margin-left: 2px;
}

body > table > tbody > tr:nth-child(2) > td:not(:first-child) {
    display: none;
}

body > table > tbody > tr:nth-child(2) > td:first-child,
#homeButton {
    display: none;
    left: 6px;
    right: auto;
    -webkit-border-image: url(iPhoneBackButton.png) 0 8 0 14;
    -moz-border-image: url(iPhoneBackButton.png) 0 8 0 14;
    border-width: 0 8px 0 14px;
}

.goButton {
    -webkit-border-image: url(iPhoneGoButton.png) 0 5 0 5;
    -moz-border-image: url(iPhoneGoButton.png) 0 5 0 5;
    border-width: 0 5px;
}

body > dl,
body > table,
body > div,
body > form,
body > ul {
    display: none;
    position: absolute;
    left: 0;
    top: 41px;
    width: 100%;
    min-height: 418px;
    margin: 0;
    padding: 0;
}

body > dl,
body > table > tbody > tr:nth-child(2) > td:first-child,
body > *[selected="true"] {
    display: block;
}

body > table {
    display: table;
}

body > dl > dd,
body > table > tbody > tr > td,
body > ul > li {
    margin: 0;
    border-bottom: 1px solid #E0E0E0;
    padding: 0;
    background: url(iPhoneArrow.png) no-repeat right center;
    font-size: 20px;
    font-weight: bold;
    list-style: none;
}

body > table > tbody > tr > td:not(:first-child) {
    background: none;
}

body > table > tbody > tr > th > a,
body > table > tbody > tr > td > a,
body > dl > dd > a,
body > ul > li > a {
    display: block;
    padding: 8px 32px 8px 8px;
    text-decoration: none;
    color: inherit;
}

body > table > tbody > tr > th > a,
body > table > tbody > tr:nth-child(2) > td:first-child > a {
    padding: 0;
}

.panel {
    box-sizing: border-box;
    padding: 10px;
    background: #c8c8c8 url(pinstripes.png);
}

/************************************************************************************************/

.dialog {
    position: absolute;
    top: 0;
    width: 100%;
    min-height: 468px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.8);
    padding: 0;
    text-align: right;
}

fieldset {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    border: none;
    padding: 10px 6px;
    background: url(iPhoneToolbar.png) #7388a5 repeat-x;
}

fieldset > h1 {
    margin: 0 10px 0 10px;
    padding: 0;
    font-size: 20px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: rgba(0, 0, 0, 0.6) 0px -1px 0;
    text-align: center;
}

label {
    position: absolute;
    margin: 14px 0 0 6px;
    font-size: 14px;
    color: #BBBBBB;
}

input {
    box-sizing: border-box;
    width: 100%;
    margin: 6px 0 0 0;
    padding: 6px 6px 6px 44px;
    font-size: 16px;
    font-weight: normal;
}
