* {
    /* Prevent any object from being highlighted upon touch event*/
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
select,
.AddressList .ListItem{
    /*Note no alpha value, which mean activate default highlight for this element.*/
    -webkit-tap-highlight-color: #ccc;
}
body {
	background: #b1b1b1 url(../img/main-bg.png) top left repeat;
    background-color: #F0F0F0;
    font-family: Verdana, Geneva, sans-serif;
}
a:link,
a:visited,
a:hover,
a:active {
    color: #FFF;
    text-decoration: none;
}
.HuvudMenyRubrik {
    font-size: 12px;
    font-weight: bold;
    color: #FFF;
}
.HuvudBarTopp {
    background-color: #09F;
    font-weight: bolder;
    height: 40px;
    color: #FFF;
    font-size: 24px;
    background-image: url(../img/HuvudbarTopp.png);
    border-bottom-color: #333;
    border-bottom-width: 1px;
    border-bottom-style: solid;
}
.HuvudMenybarTopp {
    background-color: #DCDEE0;
    font-weight: bolder;
    height: 34px;
    color: #FFF;
    font-size: 12px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #666;
}
.HuvudBarToppText1 {
    font-weight: lighter;
    height: 40px;
    color: #FFF;
    font-size: 24px;
}
.HuvudBarToppText2 {
    font-weight: lighter;
    height: 40px;
    color: #FFF;
    font-size: 14px;
}
.DiagramMenyknapp,
.HuvudMenyknapp {
    font-weight: lighter;
    height: 18px;
    color: #FFF;
    font-size: 12px;
    border: 1px solid #006;
    background-color: #2279B2;
    padding: 2px;
    margin: 2px;
    cursor: pointer;
}
.DiagramMenyknapp:active,
.DiagramMenyknapp.Vald,
.HuvudMenyknapp:active,
.HuvudMenyknapp.Vald {
    background-color: #006;	
}
.TextMellanStorlek {
    font-size: 14px;
    font-weight: bold;
    color: #666;
}
.TextBrodtext1 {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    margin-right: 2px;
    padding-right: 2px;
    margin-left: 2px;
    padding-left: 2px;
}
.TextRubrik1 {
    font-size: 16px;
    font-weight: Bold;
    color: #666;
    margin-right: 2px;
    padding-right: 2px;
    margin-left: 2px;
    padding-left: 2px;
}
.TextMiniRubrik1 {
    font-size: 9px;
    font-weight: lighter;
    color: #333;
    margin-right: 2px;
    padding-right: 2px;
    margin-left: 2px;
    padding-left: 2px;
}
.TextRubrik2,
.TextRubrik3 {
    font-weight: bold;
    color: #333;
    margin-right: 2px;
    padding-right: 2px;
    margin-left: 2px;
    padding-left: 2px;
}
.TextRubrik2 {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.TextRubrik3 {
    font-size: 12px;
    font-style: italic;
    line-height: 12px;
    padding-top: 6px;
}
p.TextRubrik3{
    margin: 0;
}
.TextRubrik4 {
    font-size: 16px;
    line-height: 16px;
}
p.TextRubrik4{
    margin: 0;
}
.CellTextInmatning2 {
    border: 1px solid #333;
    margin: 2px;
    padding: 2px;
}
/*    Buttons designed with following resource:
    http://www.colorzilla.com/gradient-editor/*/
.CellButton,
.CellButton.blue {
    display: inline-block;
    margin: 4px 0 4px 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 100px;
    max-width: 30ex;
    font-size: 16px;
    padding: 4px 14px;
    line-height: 22px;
    text-align: center;
    color: #FFF;
    cursor: pointer;
    vertical-align: middle;
/*    text-shadow: 0px 1px 2px #606060;*/
    
    background: #1F7BBA; /* Old browsers */
    background: -moz-linear-gradient(top,  #2c96dd 1%, #005b93 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(1%,#2c96dd), color-stop(100%,#005b93)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #2c96dd 1%,#005b93 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #2c96dd 1%,#005b93 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #2c96dd 1%,#005b93 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #2c96dd 1%,#005b93 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2c96dd', endColorstr='#005b93',GradientType=0 ); /* IE6-9 */
    
    border: 1px solid #22282B;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}
.CellButton.pressed,
.CellButton.active,  /* For androids which don't handle :active psuedo class. */
.CellButton:active,
.CellButton.blue.pressed,
.CellButton.blue.active,  /* For androids which don't handle :active psuedo class. */
.CellButton.blue:active{
    background: #0f6faf;
}
.CellButton.green {
    background: #4FD65A; /* Old browsers */
    background: -moz-linear-gradient(top,  #54e560 0%, #43b74d 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#54e560), color-stop(100%,#43b74d)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #54e560 0%,#43b74d 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #54e560 0%,#43b74d 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #54e560 0%,#43b74d 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #54e560 0%,#43b74d 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#54e560', endColorstr='#43b74d',GradientType=0 ); /* IE6-9 */
}
.CellButton.green.pressed,
.CellButton.green.active,  /* For androids which don't handle :active psuedo class. */
.CellButton.green:active{
    padding-top: 6px;
    background: #43b74d;
}
.CellButton.red {
    background: #ff2002; /* Old browsers */
    background: -moz-linear-gradient(top,  #ff2002 0%, #ba1701 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff2002), color-stop(100%,#ba1701)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #ff2002 0%,#ba1701 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #ff2002 0%,#ba1701 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #ff2002 0%,#ba1701 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #ff2002 0%,#ba1701 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff2002', endColorstr='#ba1701',GradientType=0 ); /* IE6-9 */
}
.CellButton.red.pressed,
.CellButton.red.active, /* For androids which don't handle :active psuedo class. */
.CellButton.red:active{
    background: #ba1701;
}
.CellButton.lightblue {
    background: #2B9CFF; /* Old browsers */
    background: -moz-linear-gradient(top,  #7ac1ff 0%, #1088ea 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#7ac1ff), color-stop(100%,#1088ea)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #7ac1ff 0%,#1088ea 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #7ac1ff 0%,#1088ea 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #7ac1ff 0%,#1088ea 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #7ac1ff 0%,#1088ea 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7ac1ff', endColorstr='#1088ea',GradientType=0 ); /* IE6-9 */
}
.CellButton.lightblue.pressed,
.CellButton.lightblue.active, /* For androids which don't handle :active psuedo class. */
.CellButton.lightblue:active{
    background: #0186FF;
}
.CellButton.yellow {
    color: #000;
    background: #f7e17e; /* Old browsers */
    background: -moz-linear-gradient(top,  #f7e17e 0%, #fcce00 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f7e17e), color-stop(100%,#fcce00)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #f7e17e 0%,#fcce00 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #f7e17e 0%,#fcce00 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #f7e17e 0%,#fcce00 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #f7e17e 0%,#fcce00 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f7e17e', endColorstr='#fcce00',GradientType=0 ); /* IE6-9 */
}
.CellButton.yellow.pressed,
.CellButton.yellow.active, /* For androids which don't handle :active psuedo class. */
.CellButton.yellow:active{
    background: #fcce00;
}
.LoggTabell {
    font-size: 11px;
    font-weight: normal;
    color: #000;
    margin-right: 2px;
    padding-right: 2px;
    margin-left: 0px;
    padding-left: 0px;
    background-color: #D3D3D3;    
}
.LoggTabell tr:nth-child(even) {
    background-color: #CCC;
}
.LoggTabell th {
    border-bottom:1px solid #000;
    text-align: left;    
}
.Commands-List,
.ShortCut-List{
    list-style-type: none;
    margin-top: 2px;
    padding-top: 0;
    margin-left: 0;
    margin-left: 2px;
    padding-left: 2px; 
}
.AddressList{
    list-style-type: none;
    margin: 6px 0 0 0;
    padding: 0;
    border-top: 1px solid #A0A0A0;
    border-bottom: 1px solid #A0A0A0; 
}
.AddressList .ListItem{    
    display: block;
    list-style: none outside none;
    margin: 0;
    padding: 4px 0 2px 0;
    width: 100%;
/*    height: 50px;*/
	min-height: 50px;
    height: auto;
    border-bottom: 1px solid #A0A0A0;
    overflow: hidden;
    white-space: nowrap;
}

.AddressList .ListItem:hover,
.AddressList .ListItem.active,		/* TEST - For androids which don't handle :active psuedo class. */
.AddressList .ListItem:active {
    background-color: lightgray;
}
.ListItem p{
    margin: 0;
    padding: 0;
}
.ListItem .Arrow{
    margin: 20px 2px 0 0;
    float: right;
    height: 12px;
    line-height: 12px;
    font-size: 12px;
    font-weight: 800;
    color: #c1bdaf;
}
.ListItem .AddrName{
    display: inline-block;
    color: #333;
    font-size: 14px;
    line-height: 16px;
    padding: 2px 8px 0 0;
    margin: 0;
    border-right: 1px solid #919191;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ListItem .Time{
    display: inline;
    color: #919191;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ListItem .Status{    
    line-height: 14px;
    margin: 2px 0 2px 0;
    overflow: hidden;
}
.ListItem .Address{
    color: #919191;
    margin: 2px 0 0 0;
    font-size: 10px;
    line-height: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ShortCut-List .CellButton{
    margin-left:0;
}
.Commands-List{
    width: 164px;
/*    border: 1px solid #999;*/
}
.CommandExec{
    font-size: 14px;
    padding: 4px;
    width: 148px; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.StatusLabel{    
    display: inline-block;
    text-align: center;
    overflow:  hidden;
    text-overflow: ellipsis;
    background-color: #D3D3D3;
    min-height: 20px;
    margin-left: 2px;
    margin-bottom: 4px;
    margin-top: 4px;
    padding: 9px;
    border: 1px solid black;
    max-width: 320px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}
.SiteInfo,
.AddressInfoView{
    width: 100%;
    overflow: hidden;
    -webkit-text-size-adjust: none;
}
word-wrap{
    word-break: break-all;
    word-wrap: break-word;
}
.spinner{
    display: inline-block;
    margin: 2px 4px 0 4px;
    width: 16px;
    height: 16px;
    background-image: url(../img/spinner.gif);
    background-repeat: no-repeat;    
}


.onoffswitch {
    position: relative; width: 80px;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}
.onoffswitch-checkbox {
    display: none;
}
.onoffswitch-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 0px solid #999999; border-radius: 0px;
}
.onoffswitch-inner {
    display: block; width: 200%; margin-left: -100%;
    -moz-transition: margin 0.3s ease-in 0s; -webkit-transition: margin 0.3s ease-in 0s;
    -o-transition: margin 0.3s ease-in 0s; transition: margin 0.3s ease-in 0s;
}
.onoffswitch-inner > span {
    display: block; float: left; position: relative; width: 50%; height: 23px; padding: 0; line-height: 23px;
    font-size: 12px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: normal;
    -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
.onoffswitch-inner .onoffswitch-active {
    padding-left: 15px;
    background-color: #C2C2C2; color: #FFFFFF;
}
.onoffswitch-inner .onoffswitch-inactive {
    padding-right: 15px;
    background-color: #C2C2C2; color: #FFFFFF;
    text-align: right;
}
.onoffswitch-switch {
    display: block; width: 40px; margin: 0px; text-align: center; 
    border: 0px solid #999999;border-radius: 0px; 
    position: absolute; top: 0; bottom: 0;
}
.onoffswitch-active .onoffswitch-switch {
    background: #0F6FAF; left: 0;
}
.onoffswitch-inactive .onoffswitch-switch {
    background: #A1A1A1; right: 0;
}
.onoffswitch-active .onoffswitch-switch:before {
    content: " "; position: absolute; top: 0; left: 40px; 
    border-style: solid; border-color: #0F6FAF transparent transparent #0F6FAF; border-width: 11px 8px;
}
.onoffswitch-inactive .onoffswitch-switch:before {
    content: " "; position: absolute; top: 0; right: 40px; 
    border-style: solid; border-color: transparent #A1A1A1 #A1A1A1 transparent; border-width: 11px 8px;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}

