/* basic setup */

*, *:before, *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    color: #333333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 18px;
    margin: 0;
    width: 100%;
    float: left;
    overflow-y: auto;
}

#wrapper {
    width: 100%;
    float: left;
    border: none;
    border-width: 0;
}

table {
    width: 100%;
}

.alteration-up {
    color: #0c0;
}

.alteration-equal {
    color: #c2c2c2;
}

.alteration-down {
    color: #c00;
}


/* Select Dropdown */

.dropdown {
    position: relative;
    border: 1px solid #c2c2c2;
    height: 34px;
    line-height: 30px;
}

.dropdown select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    width: 99.9%;
    padding-left: 1em;
}

.dropdown:after {
    content: "\f0d7";
    font-family: 'FontAwesome';
    font-size: .8em;
    position: absolute;
    right: 6px;
    top: 30%;
    margin-top: -7px;
    bottom: 0;
    z-index: -1;
}

.dropdown::-ms-expand {
    display: none;
}

.dropdown:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
}


/* Radio Button */

input[type="radio"] {
    display: none;
}

input[type="radio"] + label {
    display: inline-block;
    cursor: pointer;
    position: relative;
    padding-left: 19px;
    margin-right: 15px;
}

input[type="radio"] + label:before {
    content: "\f10c";
    font-family: 'FontAwesome';
    display: inline-block;
    font-size: 13px;
    position: absolute;
    left: 0;
    bottom: 1px;
}

input[type="radio"]:checked + label:before {
    content: "\f192";
}


/* Checkbox */

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"] + label {
    display: inline-block;
    cursor: pointer;
    position: relative;
    padding-left: 19px;
    margin-right: 15px;
}

input[type="checkbox"] + label:before {
    content: "\f096";
    font-family: 'FontAwesome';
    display: inline-block;
    font-size: 13px;
    position: absolute;
    left: 0;
    bottom: 1px;
}

input[type="checkbox"]:checked + label:before {
    content: "\f046";
}


/* content organisation */

#top {
    margin-bottom: 1em;
}

#top .top-info {
    display: none;
}

#top-table td {
    border-bottom: 1px solid #ccc;
    color: #0b0b0b;
    font-family: Tahoma, ​sans-serif;
    font-size: 12px;
    line-height: 1.75em;
    padding: 5px 0;
}

#top-table td strong {
    font-weight: normal;
}

#top-table td:first-child {
    color: #0b0b0b;
    font-family: Tahoma, ​sans-serif;
    font-size: 12px;
    font-weight: normal;
}

#range-selector {
    width: 100%;
    float: left;
}

#range-selector ul {
    border-bottom: 1px solid #2175bc;
}

#range-selector ul li {
    display: inline;
}

#range-selector ul li:last-child {
    border: none;
}

#range-selector ul li .chart-range-label--sm {
    display: block;
}

#range-selector ul li .chart-range-label--xs {
    display: none;
}

#range-selector a {
    background: #2175bc none repeat scroll 0 0;
    border: 1px solid #2175bc;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    padding: 10px;
    position: relative;
    text-decoration: none;
    top: 1px;
    text-decoration: none;
    -webkit-transition: background-color 0.3s ease;
    -moz-transition: background-color 0.3s ease;
    -o-transition: background-color 0.3s ease;
    transition: background-color 0.3s ease;
}

#range-selector a:hover {
    background: #fff none repeat scroll 0 0;
    border-bottom: 1px solid #fff;
    color: #00375e;
    text-decoration: none;
}

#range-selector li:last-child a {
    margin-right: 0;
}

#range-selector .active a {
    background: #fff none repeat scroll 0 0;
    border-color: #2175bc #2175bc #fff;
    border-image: none;
    border-style: solid;
    border-width: 1px;
    color: #00375e;
}

#range-input {
    /* Some vars, we want to avoid magic numbers, even in CSS! */
    width: 50%;
    display: inline-block;
    position: relative;
    margin-bottom: 1em;
    float: left;
}

#range-input .title {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

#range-input .range-wrap {
    display: block;
    float: left;
    position: relative;
    width: 40%;
}

#range-input .range-wrap.range-begin {
    padding-right: 2px;
}

#range-input .range-wrap.range-begin .calendar-icon {
    right: 7px;
}

#range-input .range-wrap input {
    display: block;
    width: 100%;
    padding: 0 1em;
    height: 34px;
}

#range-input .range-wrap .calendar-icon {
    display: block;
    position: absolute;
    right: 5px;
    bottom: 2px;
    z-index: 100;
}

#range-input .submit {
    width: 15%;
    display: inline-block;
    color: #fff;
    text-decoration: none;
    background: #2175bc none repeat scroll 0 0;
    color: #fff;
    -webkit-transition: background-color 0.3s ease;
    -moz-transition: background-color 0.3s ease;
    -o-transition: background-color 0.3s ease;
    transition: background-color 0.3s ease;
    display: inline-block;
    height: 34px;
    line-height: 34px;
    text-align: center;
    margin-top: 23px;
    margin-left: 3px;
}

#range-input .submit:hover {
    background-color: #2175bc;
}

.select-charttype {
    /* Some vars, we want to avoid magic numbers, even in CSS! */
    width: 50%;
    position: relative;
    margin-bottom: 1em;
    display: inline-block;
}

.select-charttype h3 {
    display: block;
    font-weight: bold;
    margin-bottom: 31px;
}

.select-charttype .dropdown {
    width: 100%;
}

#chartexport {
    width: 100%;
    text-align: left;
    display: inline-block;
    float: left;
    margin-bottom: 1em;
}

#chartexport a {
    color: #fff;
    text-decoration: none;
    background: #2175bc none repeat scroll 0 0;
    color: #fff;
    -webkit-transition: background-color 0.3s ease;
    -moz-transition: background-color 0.3s ease;
    -o-transition: background-color 0.3s ease;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-align: center;
    padding: 0.4em 1em;
}

#chartexport a:hover {
    background-color: #2175bc;
}

#chartexport a span {
    display: none;
}

#footer {
    width: 100%;
    float: left;
    clear: both;
}

#footer > div:first-child {
    float: left;
    display: block;
}

#footer > div:last-child {
    float: left;
    display: block;
    font-size: 13px;
}

#footer a {
    color: #1d4c7f;
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}

.bg-up, .bg-down {
    background-color: #dff0d8;
    background-image: url("images/up_arrow.png");
    background-position: right 4px center;
    background-repeat: no-repeat;
    border-color: #d6e9c6;
    border-radius: 0;
    color: #468847;
    display: block;
    margin: 1px;
    padding: 0px 20px 0px 5px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    vertical-align: text-top;
}

.bg-down {
    background-color: #f2dede;
    background-image: url("images/down_arrow.png");
    border-color: #eed3d7;
    color: #b94a48;
}

.pika-table .pika-button:hover, .pika-table .is-selected .pika-button {
    background-color: #2175bc !important;
    color: #fff !important;
    box-shadow: none;
}

.pika-table .pika-button {
    color: #2175bc !important;
    font-weight: bold;
}

.range-wrap label {
    display: block;
    margin-bottom: 5px;
}

#footer a {
    color: #002b4b;
    font-weight: bold;
    text-decoration: none;
}

@media screen and (max-width: 800px) {
    #range-input {
        width: 100%;
    }
    #range-input .range-wrap {
        width: 100%;
    }
    .select-charttype, .select-charttype .dropdown {
        width: 100%;
    }
    .select-charttype h3 {
        margin-bottom: 5px;
        margin-top: 10px;
    }
    #chartexport {
        float: none;
        width: 100%;
    }
    #chartexport a {
        margin-top: 0;
    }
    #range-input .submit {
        margin-top: 20px;
        margin-left: 0;
        width: 100%;
    }
    #range-selector ul li .chart-range-label--sm {
        display: none;
    }
    #range-selector ul li .chart-range-label--xs {
        display: block;
    }
}

@media screen and (max-width: 420px) {
    #range-selector ul li {
        display: inline;
        float: none;
        width: 20%;
    }
    #range-selector li:last-child a {
        border: 1px solid #01b0c0;
    }
    #range-selector li:nth-child(5) a {
        margin-right: 0;
    }
    #range-selector li:last-child a {
        margin-right: 2px;
    }
    #range-selector ul li {
        width: auto;
        border-right: 1px solid #fff;
        font-size: 9px;
    }
    #range-selector a {
        padding: 10px 5px;
    }
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
