/* basic setup */

*, *:before, *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    width: 100%;
    float: left;
    overflow-y: auto;
    color: #333;
    font-family: Arial, HelveticaNeue, Helvetica, sans-serif;
    font-size: 14px;
}

#wrapper {
    width: 100%;
    float: left;
    border: none;
    border-width: 0;
    padding: 0em;
}

h2.ttl {
    display: block;
    font-size: 1.5em;
    color: #fff;
    background-color: #6B6E6F;
    padding: 8px 12px;
    margin: 0;
    font-weight: normal;
    line-height: 1.125em;
}

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: 14px;
    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: 14px;
    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 #ddd;
    border-top: 1px solid #ddd;
    padding: 1em;
}

#range-selector {
    width: 100%;
    float: left;
}

#range-selector ul {
    border: medium none;
    float: left;
    width: 100%;
    display: table;
    table-layout: fixed;
}

#range-selector ul li {
    display: table-cell;
    float: none;
    width: auto;
    border-right: 1px solid #c2c2c2;
}

#range-selector ul li:last-child {
    border: none;
}

#range-selector ul li .chart-range-label--xs {
    display: none;
}

#range-selector a {
    background-color: #fff;
    border: 1px solid #c2c2c2;
    color: #000;
    display: block;
    font-size: 100%;
    margin: 0 2px 2px 0;
    padding: 0.4em;
    text-align: center;
    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-color: #e8e8e8;
}

#range-selector li:last-child a {
    margin-right: 0;
}

#range-selector .active a {
    color: #fff;
    background: #c2c2c2;
}

#range-input {
    /* Some vars, we want to avoid magic numbers, even in CSS! */
    width: 60%;
    float: left;
    position: relative;
    margin-bottom: 1em;
}

#range-input .title {
    display: block;
    font-weight: bold;
}

#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: 6px;
    z-index: 100;
}

#range-input .submit {
    width: 15%;
    position: absolute;
    bottom: 0;
    right: 0;
    display: block;
    color: #000;
    text-decoration: none;
    background-color: #dbdbdb;
    -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;
}

#range-input .submit:hover {
    background-color: #f5f5f5;
}

.select-charttype {
    /* Some vars, we want to avoid magic numbers, even in CSS! */
    width: 20%;
    float: left;
    position: relative;
    margin-bottom: 1em;
}

.select-charttype h3 {
    display: block;
    font-weight: bold;
    margin-left: 10%;
    margin-bottom: 20px;
}

.select-charttype .dropdown {
    margin-left: 10%;
    width: 90%;
}

#chartexport {
    width: 20%;
    float: left;
    padding-left: 10%;
}

#chartexport a {
    color: #000;
    text-decoration: none;
    background-color: #dbdbdb;
    -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;
    margin-top: 34px;
}

#chartexport a:hover {
    background-color: #f5f5f5;
}

#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;
    padding-left: 1em;
}