html, body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.prevent_selection {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.pkgimg {
    overflow: hidden;
    background: url(../res/img/pack.png) no-repeat;
    line-height: 9999px;
}

.wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    min-width: 1350px;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 30;
    width: 100%;
    height: 50px;
    border-bottom: 1px solid #000;
    background: #333;
}

.header h1 {
    display: inline-block;
    padding: 0;
    margin: 0 0 0 30px;
    color: #FFF;
    font-size: 18px;
    line-height: 50px;
    font-weight: bold;
    text-shadow: 1px 1px 1px #000;
    cursor: pointer;
}

.jrr_container {
    position: absolute;
    top: 50px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
}

.aside {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    border-right: 1px solid #555;
    width: 300px;
    z-index: 3;
    background-color: #FFF;
}

.aside_menu1 {
    padding: 0;
    margin: 0;
    list-style-type: none;
    height: 100%;
    display: flex;

    width: 300px;
}

.aside_menu1 li {
    padding: 0;
    margin: 0;
    height: 100%;
    flex: 1;
    background-color: #555;
}

.aside_menu1 ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
    display: block;
    position: absolute;
    top: 0;
}

.aside_menu1 ul li {
    padding: 0;
    margin: 0;
    flex: none;
    background-color: #555;
}

.aside .btn_aside_close {
    position: absolute;
    top: 50%;
    right: -10px;
    width: 10px;
    height: 60px;
    z-index: 3;
    cursor: pointer;
    background-position: 0 0;
}

.aside .btn_aside_close:hover {
    background-position: -10px 0px;
}

.aside.aside_close .btn_aside_close {
    background-position: 0 -60px;
}

.aside.aside_close .btn_aside_close:hover {
    background-position: -10px -60px;
}

.base_bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #555;
    overflow: hidden;
}

.content {
    position: absolute;
    top: 0;
    left: 300px;
    bottom: 0;
    right: 0;
    overflow: hidden;
}

.aside.aside_close {
    left: -300px;
}

.content.aside_close {
    left: 0px;
}

.base_bar > li a {
    display: block;
    width: 100%;
    height: 100%;
}

.aside_menu1 .farm_weather {
    background-position: -20px 0px;
}

.aside_menu1 .farm_weather:hover {
    background-position: -20px -40px;
}

.aside_menu1 .farm_weather.highlight {
    background-position: -20px -40px;
}

.aside_menu1 .farm_disease {
    background-position: -95px 0px;
}

.aside_menu1 .farm_disease:hover {
    background-position: -95px -40px;
}

.aside_menu1 .farm_disease.highlight {
    background-position: -95px -40px;
}

.aside_menu1 .special_weather {
    background-position: -170px 0px;
}

.aside_menu1 .special_weather:hover {
    background-position: -170px -40px;
}

.aside_menu1 .special_weather.highlight {
    background-position: -170px -40px;
}

.aside_menu1 .chronic_weather {
    background-position: -245px 0px;
}

.aside_menu1 .chronic_weather:hover {
    background-position: -245px -40px;
}

.aside_menu1 .chronic_weather.highlight {
    background-position: -245px -40px;
}

.menu_item1 {
    display: block;
    width: 100%;
    height: 100%;
}

.aside_sub {
    position: absolute;
    top: 40px;
    bottom: 20px;
    left: 0;
    right: 0;
}

.aside_sub_content > ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
    font-size: 12px;
}

.aside_sub_content > ul a {
    text-decoration: none;
}

.aside_sub_content > ul > li > a {
    display: block;
    padding: 12px;
    margin-top: -1px;
    border: 1px solid #ccc;
    border-left: none;
    background: url(../res/img/check_background.png);
    color: #444;
    font-size: 14px;
    font-weight: bold;
}

.aside_sub_content > ul > li ul {
    padding-left: 20px;
}

.aside_sub_content > ul ul.closed {
    display: none;
}

.aside_sub_content > ul li {
    padding: 0;
    margin: 0;
    position: relative;
}

.aside_sub_content > ul ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.aside_sub_content > ul ul li > a {
    display: block;
    padding-left: 5px;
    height: 30px;
    line-height: 30px;
    margin-top: -1px;
    border: 1px solid #ccc;
    background-color: #f8f8fc;
    color: #444;
    font-size: 12px;
    font-weight: bold;
}

.aside_sub_content > ul ul li > a:hover {
    background-color: #FFF;
}

.aside_sub_content > ul ul li .highlight {
    color: #F60;
}

.aside_sub_content {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0px;
    overflow-y: scroll;
}

.aside_sub_copyright {
    position: absolute;
    left: 0;
    right: 0;
    height: 21px;
    bottom: 0px;
    border-top: 1px solid #aaa;
}

.aside_sub_copyright ul {
    margin: 0 20px 0 20px;
    padding: 0;
    list-style-type: none;
}

.aside_sub_copyright ul li {
    text-align: center;
    font-size: 11px;
    float: left;
    line-height: 20px;
    width: 33.3%;
}

.aside_sub_copyright a:hover {
    cursor: pointer;
}

.menuitem {
    cursor: pointer;
}

.menuitem:hover {
    color: orange;
}

.menuItemContainer {
    height: 100%;
    background: url(../res/img/noise_background.png);
}

.menuItemContainer ul {
    border-left: 1px solid #ddd;
}

.menuItemContainer > li > ul > li ul {
    display: none;
}

.map_container {
    position: absolute;
    top: 40px;
    bottom: 0;
    right: 0;
    left: 0;
}

.unit {
    float: right;
    color: #777;
    font-size: 13px;
}

.leafitem {
    display: none;
    padding: 10px 10px 10px 20px;
    margin-top: -1px;
    border: 1px solid #ccc;
    background-color: #FFF;
}

#olMap {
    position: relative;
    width: 100%;
    height: 100%;
}

#summaryCalendarContainer {
    display: none;
    padding: 5px;
    position: absolute;
    bottom: 40px;
    left: 5px;
}

#summaryCalendar {
    display: none;
    width: 400px;
    padding: 5px;
    position: absolute;
    bottom: 35px;
    left: 5px;
    background: white;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

#summaryCalendar .table {
    width: 100%;
    height: 100%;
    margin-bottom: 0px;
}

#summaryCalendar .table td, #summaryCalendar .table th {
    border: 1px solid #ccc;
    padding: 5px;
}

#summaryCalendar .table th {
    text-align: center;
    background-color: #F2F2F2;
}

#summaryCalendar .table td {
    padding: 3px;
    width: 14.2%;
    height: 30px;
    color: #aaa;
    font-size: 9px;
}

#summaryCalendar .table td p {
    padding: 0;
    margin: 0;
}

#summaryCalendar .table td p.data {
    text-align: center;
}

#summaryCalendar .table td p:first-child {
    font-weight: bold;
}

#summaryCalendar .table td.currentMonth {
    width: 14.2%;
    color: #000;
}

.weather_overlay_controller_container {
    text-align: right;
}

.ol-attribution.ol-uncollapsible {
    height: auto !important;
}

#chartContainer {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 400px;
    height: 300px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.2);
}

.aside_sub_content > ul ul li > a.show_map_button {
    position: absolute;
    top: 0;
    right: 0px;
    width: 80px;
    height: 39px;
    padding: 12px 10px 10px 10px;
    border: 1px solid #ccc;
    background-color: #eee;
    color: #555;
    margin: 0;
    text-align: center;
    cursor: pointer;
}

.aside_sub_content > ul ul li > a.show_map_button:hover {
    color: #777;
    background-color: #FFF;
    font-weight: bold;
}

.aside_sub_content > ul ul li > a.show_map_button:active {
    background-color: #fff8f8;
    color: #000;
}

#innerMapController {
    position: absolute;
    top: .5em;
    left: .5em;
    width: 400px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    opacity: 0.7;
}

#innerMapController:hover {
    opacity: 1;
}

#farm_list_row {
    display: none;
}

#innerMapController input {
    text-align: center;
    vertical-align: middle;
}

#innerMapController .row {
    margin: 0;
    display: none;
}

#innerMapController .row.padding {
    margin: 5px 0 5px 0;
}

#innerMapController .row .halfleft {
    width: 50%;
    float: left;
    padding: 0 5px 0 0;
}

#innerMapController .row .halfright {
    width: 50%;
    float: left;
    padding: 0 0 0 5px;
}

#innerMapController .row .col-30 {
    width: 30%;
}

#innerMapController .row .col-70 {
    width: 70%;
}

#innerMapController .row .float-left {
    float: left;
}

#innerMapController .row .label {
    font-weight: bold;
    line-height: 25px;
    font-size: 13px;
    color: #555;
    text-shadow: none;
}

.special_weather_list a {
    background: url(../res/img/pack.png) no-repeat;
}

.special_weather_list a:hover {
    opacity: 1.0 !important;
}

.special_weather_list a.True {
    opacity: 1.0;
}

.special_weather_list a.False {
    opacity: 0.2;
}

.special_weather_list a.off {
    opacity: 0.2;
}

.special_weather_list a.gale {
    background-position: -252px -472px;
}

.special_weather_list a.heavy_rain {
    background-position: -252px -432px;
}

.special_weather_list a.cold_wave {
    background-position: -252px -392px;
}

.special_weather_list a.dry {
    background-position: -252px -352px;
}

.special_weather_list a.typhoon {
    background-position: -252px -312px;
}

.special_weather_list a.heavy_snow {
    background-position: -252px -272px;
}

.special_weather_list a.asian_dust {
    background-position: -252px -232px;
}

.special_weather_list a.heat_wave {
    background-position: -252px -192px;
}

#legendContainer {
    display: none;
    padding: 6px 8px;
    background: white;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    position: absolute;
    right: 10px;
    bottom: 10px;
}

#nationwide_watershed {
    display: none;
    width: 410px;
    height: 430px;
    overflow: hidden;
    padding: 3px 3px;
    background: white;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 9999;
}

.info {
    margin-top: 20px;
}

#farmInfo {
    display: none;
    padding: 5px;
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

#farmInfo > .table {
    margin-bottom: 0;
}

#farmInfo > .ctrl {
    display: flex;
}

#farmInfo > .ctrl > div {
    margin: auto;
    width: 100%;
}

#farmInfo > .ctrl > div > button {
    display: none;
    width: 100%;
}

svg #header .axis path,
svg #header .axis line {
    fill: none;
    stroke: #000;
    shape-rendering: crispEdges;
}

svg #header .x.axis path,
svg #header .x.axis .tick line {
    display: none;
}

svg #header .x.axis .tick {
    font-size: 13px;
}

svg #chart .line {
    fill: none;
    stroke: steelblue;
    stroke-width: 1.5px;
}

/* HACK: allow mouse event on IE */
svg #chart .bg {
    pointer-events: visiblePainted;
}

.popover-content table td {
    white-space: nowrap;
}

.popover {
    max-width: 1000px;
}

.label {
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.label-important, .badge-important {
    background-color: #b94a48;
}

.label-important[href], .badge-important[href] {
    background-color: #953b39;
}

.label-warning, .badge-warning {
    background-color: #f89406;
}

.label-warning[href], .badge-warning[href] {
    background-color: #c67605;
}

.label-success, .badge-success {
    background-color: #468847;
}

.label-success[href], .badge-success[href] {
    background-color: #356635;
}

.label-info, .badge-info {
    background-color: #3a87ad;
}

.label-info[href], .badge-info[href] {
    background-color: #2d6987;
}

.label-inverse, .badge-inverse {
    background-color: #333333;
}

.label-inverse[href], .badge-inverse[href] {
    background-color: #1a1a1a;
}

.aside_sub_content > ul ul li .abcdefg {
    /*color: #bbb !important;*/
    opacity: 0.4;
}

#additionalInfo {
    position: absolute;
    top: 150px;
    left: .5em;
    padding: 5px;
    border: 1px solid #888;
    border-radius: 3px;
    z-index: 999;
    background-repeat: no-repeat;
    background-color: #FFF;
}

#wwlegend {
    width: 80px;
    height: 70px;
    background-repeat: no-repeat;
    background-color: #FFF;
}

.basin_popup_close_btn_container {
    height: 25px;
    float: right;
}

.basin_address {
    float: left;
    padding: 0 10px 0 10px;
    background: #FFF;
    border: 1px solid #ddd;
}

.interest_container {

}

.synthetic_info {
    float: left;
    margin: 0;
    line-height: 41px;
    font-size: 11px;
}

.focus {
    color: #F90 !important;
}

#lol {
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.5);
    position: absolute;
    bottom: 11px;
    background: url(../res/img/lol.png) no-repeat;
    width: 120px;
    height: 50px;
    opacity: 0;
}

div.synthetic_info > div {
    float: left;
    border: 1px solid #ccc;
    border-radius: 2px;
    margin: 10px 5px 0 0;
    background-color: #FFF;
}

div.synthetic_info > div > div {
    float: left;
    line-height: 15px;
    padding: 2px 5px 2px 5px;
}

div.synthetic_info > div > div.name {
    border-right: 1px solid #ccc;
    background-color: #f5f5f5;
}

.special_weather_list.disable {
    opacity: 0.4;
    pointer-events: none;
}

#ctrl {
    width: 400px;
    height: 300px;
    float: left;
    background-color: #333;
    font-size: 11px;
}

#ctrl #featureInfo {
    border-bottom: 1px dashed #999;
}

#ctrl #nationwideChartContainer {
    height: 200px;
    background-color: #222;
}

#ctrl table.line_table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    height: 200px;
}

#ctrl table.line_table, table.line_table th, table.line_table td {
    border: 1px solid #000;
    padding: 1px;
    text-align: center;
}

#ctrl table.line_table th {
    width: 100px;
}

#ctrl table.line_table td {
    color: #ccc;
}

#syntheticInfoContainer {
    display: none;
    padding-left: 10px;
}

#selectThreeHourContainer {
    display: none;
}

#selectThreeHour {
    text-align-last: center;
}

#farm-trend {
    overflow: hidden;
}

#farm-trend > svg {
    float: right;
}

.pickvalue-overlay {
    padding: 5px;
    border: 1px solid #000;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.7);
}