/* styles.css */
html, body {
    height: 100%;
}

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    color: #333;
    background-color: #fff;
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #263D45;
}

h2 {
    font-size: 22px;
    /*font-weight: bold;*/
    margin: 10px 0 3px;
    letter-spacing: 0.3px;
}

h3 {
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    margin: 0;
}

p {
    font-size: 14px;
    color: #000;
}

ul {
    padding: 0;
    margin: 0;
}

a {
    color: #3E77B9;
}

a:hover {
    color: #EA3B33;
}

/* ================================================== */
/* Interactive styles
/* ================================================== */

#sm-interactive {
    width: 100%;
    height: 700px;
    background: #0A4360;
}


/* ================================================== */
/* Header
/* ================================================== */

.sm-main-header {
    /*position: absolute;
    z-index: 900;*/
    height: 60px;
    padding: 0 20px;
    background: #fff;
    border-bottom: 3px solid #0A4360;
}

.sm-main-title {
    float: left;
    margin-top: 5px;
}

.sm-main-title h1 {
    /*color: #333;*/
    font-size: 26px;
    margin: 0;
    /*margin: 20px 0;*/
    line-height: 0.85em;
    font-weight: bold;
}

.sm-main-title span {
    display: block;
    font-weight: normal;
    font-family: "Roboto Slab", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 0.07em;
    margin-left: 1px;
    text-transform: uppercase;
}

.sm-main-nav {
    margin: 10px 0;
    float: right;
}

.sm-nav-tabs li {
    display: inline-block;
    margin: 0 5px;
    vertical-align: top;
}

.sm-nav-tabs a {
    color: #465A63;
    display: block;
    /*max-width: 120px;*/
    border-top: 2px solid #465A63;
    text-decoration: none;
}

.sm-nav-tabs p {
    color: #465A63;
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    display: inline-block;
    padding-right: 10px;
    vertical-align: top;
    margin: 0;
    padding-top: 4px;
}

.sm-nav-tabs h4 {
    color: #465A63;
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    display: inline-block;
    margin: 0;
    max-width: 100px;
    padding-top: 5px;
    font-weight: normal;
}

.sm-nav-tabs a.active {
    cursor: default;
    border-top: 2px solid #EA3B33;
}

.sm-nav-tabs a.active p,
.sm-nav-tabs a.active h4 {
    color: #EA3B33;
}

/*.sm-sidebar .sm-nav-tabs li {
    display: block;
    margin: 5px 0;
}

.sm-sidebar .sm-nav-tabs {
    margin-bottom: 20px;
}*/

#sm-year-menu {
    margin-bottom: 20px;
}

#sm-year-menu h3 {
    display: inline-block;
    /*color: #455A64;*/
    color: #728C99;

    text-transform: uppercase;
    font-weight: bold;
    padding-right: 5px;
    letter-spacing: 1px;
    font-size: 16px;
}

#sm-year-menu select {
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    width: 100%;
    max-width: 500px;
    display: inline-block;
    line-height: 1.29em;
    line-height: 1.28571em;
    -webkit-appearance: button;
    overflow: hidden;
    white-space: nowrap;

    display: inline-block;
    height: 30px;
    padding: 5px 9px 5px 7px;
    background: #fff;
    font-size: 15px;
    -webkit-border-radius: 2px;
    -webkit-user-select: none;
    
    border: 2px solid #263D45;
    border-radius: 2px;
    color: #263D45;
    text-overflow: ellipsis;
    width: 90px;
    background-position: 101% center;
    background-repeat: no-repeat;
    padding-right: 35px;
    margin-right: 10px;
    background-image: url(../img/arrow-down.svg), linear-gradient(to right, #263D45, #263D45);
    background-size: 30px 30px, 30px 30px;
    -moz-appearance: none;
    outline: none;
}


/* ================================================== */
/* Sidebar
/* ================================================== */

.sm-sidebar-container {
    background: #fff;
    z-index: 900;
    height: 100%;
    width: 30%;
    /*max-width: 400px;*/
    position: absolute;
    right: 0;
    padding-top: 5px;
}

@media (max-width: 1000px) {
    .sm-sidebar-container {
        width: 40%;
    }
}

.sm-sidebar {
    background: #fff;
    padding: 20px 0;
    margin: 0 20px;
    border-bottom: 2px solid #eee;
    /*margin-top: 20px;*/
}

.sm-sidebar:last-of-type {
    border-bottom: none;
}

.sm-sidebar h3 {
    font-weight: normal;
    /*font-style: italic;*/
    color: #777;
}

.sm-sidebar-header {
    margin-bottom: 15px;
}

.sm-sidebar-header h2 {
}

#sm-display-sidebar-header {
    margin-bottom: 0;
}

#sm-display-sidebar-header h2 {
    margin-bottom: 8px;
    /*max-width: 260px;*/
}

.sm-sidebar h3.sm-display-figure {
    font-family: "Roboto Slab", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #0A4360;
    font-style: normal;
    font-size: 36px;
    margin: 0 0 5px;
    letter-spacing: -1px;
}

#sm-display-number {
    font-family: "Roboto Slab", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 64px;
    font-weight: bold;
    letter-spacing: 0px;
}

.sm-dollar-sign {
    /*font-family: "Roboto Slab", "Helvetica Neue", Helvetica, Arial, sans-serif;*/
    font-weight: bold;
    vertical-align: top;
    line-height: 1.6em;
    padding-right: 3px;
    letter-spacing: 0px;
}


/* ================================================== */
/* Table styles
/* ================================================== */

#sm-table {
    width: 100%;
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    padding-bottom: 15px;
}

#sm-table th {
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-align: left;
    font-weight: 700;
    padding: 2px 0;
    vertical-align: bottom;
    /*border-bottom: 1px solid #eee;*/
}

.sm-top-row td {
    padding-top: 5px;  
}


/* ================================================== */
/* Chart styles
/* ================================================== */

#sm-chart {
    width: 100%;
}

.bar rect {
    /*fill: #3E77B9;*/
    /*fill: #263D45;*/
    fill: #0A4360;
    /*fill: #728C99;*/
}

.bar rect.active,
.bar:hover rect {
    fill: #EA3B33;
}

.bar .label {
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    fill: #000;
    font-size: 12px;
}

.bar .value {
    fill: #fff;
    font-size: 12px;
    pointer-events: none;
}


/* ================================================== */
/* Map styles
/* ================================================== */

#sm-map {
    height: 100%;
    width: 70%;
}

@media (max-width: 1000px) {
    #sm-map {
        width: 60%;
    }
}

.leaflet-container {
    /*background: #728C99;*/
    background: #0A4360;
}

path.leaflet-interactive {
    fill: #F1F1F1;
    fill-opacity: 1;
    /*stroke: #DBD9D7;*/
    stroke: #0A4360;
}

path.overlay-circle {
    /*stroke: #3E77B9;
    fill: #3E77B9;*/
    stroke: #EA3B33;
    fill: #EA3B33;
    stroke-width: 1.5;
    fill-opacity: 0.5;
}

/*path.overlay-circle {
    stroke: #EA3B33;
    stroke-width: 2;
    fill: #EA3B33;
    fill-opacity: 0.5;
}*/

path.map-line {
    fill-opacity: 0;
    stroke: #3E77B9;
    stroke-width: 0;
}

/*Popup styles*/

.leaflet-popup {
    pointer-events: none;
}

.leaflet-popup h1 {
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #728C99;
    margin: 0;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.leaflet-popup h2 {
    font-family: "Roboto Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #0A4360;
    font-size: 26px;
    font-weight: bold;
    margin: 0;
    line-height: 1em;
}

.leaflet-popup h3 {
    font-family: "Hind", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #777;
    font-size: 14px;
    font-weight: normal;
    margin: 0;
}

.popup-bar {
    height: 5px;
    width: 100%;
    background-color: #f0f0f0;
    margin-top: 10px;
    margin-bottom: 2px;
}

.popup-bar-inner {
    height: 5px;
    background-color: #EA3B33;
}

.leaflet-popup-content-wrapper {
    border-radius: 2px;
    border: 2px solid #0A4360;
}

.leaflet-popup-tip-container,
.leaflet-popup-close-button {
    display: none;
}

#sm-map .overlay-circle.active {
    /*stroke: #EA3B33;
    fill: #EA3B33;*/
    fill-opacity: 1;
}

.leaflet-control-attribution {
    display: none;
}

.sm-branding {
    position: absolute;
    height: 20px;
    width: 180px;
    background-color: #fff;
    bottom: 5px;
    right: 5px;
    background-image: url(../img/watermark-gray.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 95%;
    opacity: 0.7;
    z-index: 999;
}

@media (max-width: 800px) {
    #sm-interactive {
        background: #fff;
    }

    #sm-map {
        display: none;
    }

    .sm-sidebar-container {
        width: inherit;
        margin-top: 5px;
    }

    .sm-main-nav {
        display: none;
    }
}

