body {
    font-family: Helvetica;
    background: #303134;
}

* {
	-webkit-tap-highlight-color:rgba(0, 0, 0, .5);
}

a {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
	-webkit-touch-callout: none;
}

.edgetoedge a[selected=true], .edgetoedge a:active, .inset a[selected=true], .inset a:active {
    background-color: #53b401 !important;
}

a[selected="progress"] {
   background-image: url(img/loading.gif);
   background-repeat: no-repeat;
   background-position: right center;

}

/* @group Toolbar */

.toolbar {
    -webkit-box-sizing: border-box;
    padding: 10px;
	height: 45px;
    padding-top: 8px;
    background: url(img/toolbar.png) bottom left repeat-x;
    position: relative;
	border-bottom: 1px solid #000;
}

body.fullscreen .toolbar {
    height: 60px;
    padding-top: 23px;
}

.toolbar > h1 {
    position: absolute;
    overflow: hidden;
    left: 50%;
    bottom: 8px;
    margin: 1px 0 0 -75px;
    font-size: 20px;
    width: 150px;
    font-weight: bold;
    text-shadow: rgba(0,0,0,1) 0 -1px 1px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ddd;
}

body[orient="landscape"] .toolbar > h1 {
    margin-left: -125px;
    width: 250px;
}

.button {
    position: absolute;
    overflow: hidden;
    bottom: 5px;
    right: 6px;
    margin: 0;
    border-width: 0 5px;
    padding: 0 3px;
    width: auto;
    height: 30px;
    min-width: 15px;
    text-align: center;
    line-height: 30px;
    font-family: inherit;
    font-size: 12px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: rgba(0, 0, 0, 0.6) 0px -1px 0;
    text-overflow: ellipsis;
    text-decoration: none;
    white-space: nowrap;
    background: none;
    -webkit-border-image: url(img/button.png) 0 5 0 5;
}

.button:active {
	    -webkit-border-image: url(img/button_clicked.png) 0 5 0 5;

}

.blueButton {
    -webkit-border-image: url(img/blueButton.png) 0 5 0 5;
    border-width: 0 5px;
}

.toolbar .leftButton {
    left: 6px;
    right: auto;
}

.toolbar .back {
    left: 6px;
    right: auto;
    padding: 0;
    max-width: 55px;
    border-width: 0 8px 0 15px;
    -webkit-border-image: url(img/back_button.png) 0 8 0 15;
}

.toolbar .back:active {
    -webkit-border-image: url(img/back_button_clicked.png) !important;
}

/* @end */

.whiteButton,
.grayButton {
    display: block;
    border-width: 0 12px;
    padding: 10px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    text-decoration: inherit;
    color: inherit;
}

.whiteButton {
    -webkit-border-image: url(img/whiteButton.png) 0 12 0 12;
    text-shadow: rgba(255, 255, 255, 0.7) 0 1px 0;
}

.grayButton {
    -webkit-border-image: url(img/grayButton.png) 0 12 0 12;
    color: #FFFFFF;
}


/* @group Edge to edge */


.edgetoedge li, .inset li {
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,.8);
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 10px 0 10px 10px;
    font-size: 20px;
    font-weight: bold;
    list-style: none;
    background: -webkit-gradient(linear, 0% 0%, 0% 75%, from(rgba(0,0,0,0)), to(#303032));
    color: #999;
}

body .head {
    position: relative;
    top: -1px;
    margin-bottom: -2px;
    border-top: 1px solid #64c114;
    border-bottom: 1px solid rgba(0,0,0,.5);
    padding: 1px 10px;
    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#488019), to(#53B401));
    font-size: 17px;
    font-weight: bold;
    text-shadow: rgba(0, 0, 0, 0.4) 0 1px 0;
    color: #FFFFFF;
}

body .inset .head {
    background:#222;
	color: #3ea1cb;
}

.edgetoedge li.head:first-child, .inset li.head:first-child {
    top: 0;
    border-top: none;
}

.edgetoedge li a, .inset li a {
    display: block;
    margin: -10px 0 -10px -10px;
    padding: 10px 32px 10px 10px;
    text-decoration: none;
    color: #fff;
    background-image: url(img/chevron.png), url(img/bg_row.png);
    background-repeat: no-repeat, repeat-x;
    background-position: right center, left bottom;
    text-shadow: rgba(0,0,0,.7) 0 1px 2px;
}

.inset {
	margin: 15px;
   -webkit-box-shadow: rgba(0,0,0,.9) 0 1px 2px;
   overflow: hidden !important;
   -webkit-background-clip: border;
   background-color: #404142;
   border: 1px solid #404c4f;
}

/* @end */

a[target="_replace"] {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    padding-top: 25px;
    padding-bottom: 25px;
    font-size: 18px;
    color: cornflowerblue;
    background-color: #FFFFFF;
    background-image: none;
}

.dialog > fieldset {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    width: 100%;
    border: none;
    border-top: 1px solid #6d84a2;
    padding: 10px 6px;
    background: url(img/toolbar.png) #7388a5 0 0 repeat-x;
}

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

.dialog > fieldset > label {
    position: absolute;
    margin: 16px 0 0 6px;
    font-size: 14px;
    color: #999999;
}

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


.panel {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    overflow: auto;
}

.pad {
	padding: 15px;
}

.panel fieldset {
    position: relative;
    margin: 0 0 20px 0;
    padding: 0;
    background: #222;
    color: #fff;
    -webkit-border-radius: 10px;
    border: 1px solid #999999;
    text-align: right;
    font-size: 14px;
    line-height: 18px;
}

/* @group Edge to edge lists */

.edgetoedge fieldset {
    position: relative;
    margin: 0 0 20px 0;
    padding: 0;
    background: #FFFFFF;
    border: 0;
    border-bottom: 1px solid #999999;
    text-align: right;
    font-size: 16px;
}

.edgetoedge textarea {
	width: 100%;
	height: 100%;
	border: 0;
	padding: 20px;
}

.edgetoedge .row {
	border-width: 0px;
	border-bottom: 1px solid #999;
}

.edgetoedge .row > label {
    position: absolute;
    margin: 0 0 0 14px;
    line-height: 42px;
    color: #999;
    font-weight: normal;
}

/* @end */

.row  {
    position: relative;
    min-height: 42px;
    border-bottom: 1px solid #999999;
    -webkit-border-radius: 0;
    text-align: right;
}

fieldset .row:last-child {
    border-bottom: none !important;
}

.row > input {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border: none;
    padding: 12px 10px 0 110px;
    height: 42px;
    background: none;
}

.row > label {
    position: absolute;
    margin: 0 0 0 14px;
    line-height: 42px;
    font-weight: bold;
}

.row > .toggle {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 100px;
    height: 28px;
}

.toggle {
    border: 1px solid #888888;
    -webkit-border-radius: 6px;
    background: #FFFFFF url(img/toggle.png) repeat-x;
    font-size: 19px;
    font-weight: bold;
    line-height: 30px;
}

.toggle[toggled="true"] {
    border: 1px solid #143fae;
    background: #194fdb url(img/toggleOn.png) repeat-x;
}

.toggleOn {
    display: none;
    position: absolute;
    width: 60px;
    text-align: center;
    left: 0;
    top: 0;
    color: #FFFFFF;
    text-shadow: rgba(0, 0, 0, 0.4) 0px -1px 0;
}

.toggleOff {
    position: absolute;
    width: 60px;
    text-align: center;
    right: 0;
    top: 0;
    color: #666666;
}

.toggle[toggled="true"] > .toggleOn {
    display: block;
}

.toggle[toggled="true"] > .toggleOff {
    display: none;
}

.thumb {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 40px;
    height: 28px;    
    border: 1px solid #888888;
    -webkit-border-radius: 6px;
    background: #ffffff url(img/thumb.png) repeat-x;
}

.toggle[toggled="true"] > .thumb {
    left: auto;
    right: -1px;
}

.panel h2 {
    margin: 0 0 8px 14px;
    font-size: inherit;
    font-weight: bold;
    color: rgb(17, 20, 23, .5);
    text-shadow: rgba(255, 255, 255, 0.75) 1px 1px 0;
}

.panel p a {
	color: #4195ca;
}

.info {
	background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ccc), to(#aaa), color-stop(.6,#CCCCCC));
	font-size: 12px;
	line-height: 16px;
	text-align: center;
	text-shadow: rgba(255,255,255,.8) 0 1px 0;
	color: #444;
	padding: 15px;
	border-top: 1px solid rgba(255,255,255,.2);
	font-weight: bold;
}
