﻿/*
 * General
 */

/**
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    contenteditable attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that are clearfixed.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
.cf:before,
.cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.cf:after {
    clear: both;
}

/**
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */
.cf {
    *zoom: 1;
}


/* jQuery Mobile overrides */
.ui-content {
    padding: 0;
}

.ui-footer {
    display: none;
}

.ui-input-text {
    border-radius: 0;
    font-size: 1em;
}

.ui-focus {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

.ui-input-text.ui-state-disabled {
    filter: Alpha(Opacity=100);
    opacity: 1;
    background: #DDD;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}

/*
 * Colors
 */

/* Leica Red */
.pageTitle, /* Page title*/
label.label .value /* Option Values */,
.toggleButton span, /* Buttons */
a.button, a.button:hover,
input[type=submit] {
    color: #0097ba;
}

.progress .value {
    background: #0097ba;
}

/* Dark Gray */
.group .title /* Group Titles */
label.label, /* Normal Labels */
label.big .value /* Big Values */ {
    color: #212121;
}

/* Light Gray */
.group .subtitle, /* Group Subtitles*/
label.big, /* Big Labels */
label.center /* Centered Values */ {
    color: #757575;
}



/*
 * Font Sizes & Weights
 */

/* 12px (Small) */
.pageDescription, /* Page Description */
.group .subtitle /* Group Subtitles */ {
    font-size: 12px;
}

/* 14px (Normal) */
*, /* Global Page (others are needed because of jQuery UI) */
label.label, /* Labels */
label.big, /* Big Labels */
label.label .value /* Label Values */ {
    font-size: 14px;
}

/* 16px (Medium) */
.group .title /* Group Titles */ {
    font-size: 16px;
}

/* 24px (Big) */
.pageTitle, /* Page title*/
label.big .value /* Big Label Values */ {
    font-size: 24px;
}

/* Bold */
.group .title, /* Group Titles */
label.label .value, /* Label Values */
label.big .value, /* Big Label Values */
label.center /* Centered Label */ {
    font-weight: bold;
}

/*
 * Element Specific
 */

.pageTitle {
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid #AAA;
}

.pageDescription {
    margin-top: 10px; /* remove jQuery UI margin */
    padding: 10px;
    text-align: center;
}

/* Normal Labels */
label.label {
    margin: 5px 0;
}

    label.label .value {
        float: right; /* Values are aligned on the right */
    }

/* Big Labels */
label.big .value {
    float: none;
    display: block;
}

/* Aligned Labels */
label.left {
    float: left;
}

label.right {
    float: right;
    text-align: right;
}

label.center {
    text-align: center;
}

/* Buttons */
.toggleButton span,
a.button, a.button:hover,
input[type=submit] {
    display: block;
    background: #ffffff;
    border: 1px solid #dddddd;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 10px;
    text-decoration: none;
    font-weight: normal;
    outline: none;
}

input[type=submit] {
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-border-radius: 0;
    border-radius: 0;
}

.toggleButton input {
    display: none;
}

    .toggleButton input:checked + span,
    a.button:active, a.button.loading,
    input[type=submit]:active, input[type=submit].loading {
        background-color: #0097ba;
        color: #FFF;
        box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
        border: 1px solid #0097ba;
        text-shadow: none;
    }

a.button.loading, a.button.success, a.button.failed,
input[type=submit].loading, input[type=submit].success, input[type=submit].failed {
    background-repeat: no-repeat;
    background-position: 10px center;
    white-space: pre-line;
    padding-left: 35px;
}

input[type=submit].loading,
a.button.loading {
    background-image: url('Images/Icons16/ajax-loader-red.gif');
}

input[type=submit].success,
a.button.success {
    background-color: #4F8A10;
    color: #ffffff;
    padding-left: 10px;
}

input[type=submit].failed,
a.button.failed {
    background-image: url('Images/Icons16/blockedRed.png');
}

input[type=submit]:disabled {
    color: #AAA;
    box-shadow: none;
}

/* Progress Bar */
.progress {
    position: relative;
    width: 100%;
    height: 15px;
    background: #DDDDDD;
}

    .progress .value {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
    }

/* Groups */
.group {
    border-bottom: 1px solid #AAA;
    margin: 5px 0;
    padding: 1em;
}

    .group .title,
    .group .subtitle {
        text-align: center;
    }

    .group:first-child {
        border-top: 1px solid #AAA;
    }

    .group .subtitle {
        margin-bottom: 1em;
    }

    .group .content {
        padding: 0 1em;
    }

     .group .content .total{
         margin-top: 20px;
    }

.blockLabels label .value {
    float: none;
    margin: 5px 0;
}

    .blockLabels label .value:before {
        content: ' ';
        clear: right;
        display: block;
    }

label .value.overflowText {
    word-wrap: break-word;
}

.errorMessage {
    color: #FF0033;
    font-size: 12pt;
    display: block;
}

.leaflet-control-attribution * {
    font-size: 11px;
}
