.trial-bay {
    width: auto;
    height: 60px;
    overflow: none;
    border: 1px solid #444444;
    flex: none;
    font-size: 1.6rem;
    padding: 0.15rem;
    margin: 5px;
}

.trial-boundary {
    background: #bbbbbb;
}

.trial-design-map {
    outline: 1px solid #444444;
    height: 500px;
    width: 100%;
}

.trial-design-map .trial-reference {
    width: 100px;
    height: 50px;
    position: absolute;
    margin: 0;
}

#trial_site_field_plan {
    /*height: 680px;*/

}

.trial-area {
    position: absolute;
    top: 60px;
    bottom: 60px;
    left: 120px;
    right: 120px;
    height: auto;
    width: auto;
}

.trial-area .plot {
    font-weight: bold;
    border: 1px solid #444444;
}

.trial-area .sample {
    font-weight: bold;
    font-size: 0.9rem;
}

/** LEAFLET MAP **/
#trial_site_map {
    width: 100%;
    height: 400px;
}

#trial_site_map.tall_map {
    height: 635px;
}

#trial_site_map #treatment_legend,
#trial_site_map.tall_map #treatment_legend {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    background: #ffffff;
    padding: 5px;
    border-radius: 3px;
}


.trial_site_hover_details {

    background: none;
    bottom: 10px;
    padding: 8px 12px;
    position: relative;
    min-width: 260px;
    z-index: 10000;
    height: 20px;
    color: pink;
}

#trial_site_static_map {
    overflow: hidden;
}

.map-treatment-label {
    background: none;
    border: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
}


.trial-design-map .bottom-right {
    bottom: 0;
    right: 0;
}

.orientation-ne {
    transform: rotate(45deg);
}

.orientation-e {
    transform: rotate(90deg);
}

.orientation-se {
    transform: rotate(135deg);
}

.orientation-s {
    transform: rotate(180deg);
}

.orientation-sw {
    transform: rotate(225deg);
}

.orientation-w {
    transform: rotate(270deg);
}

.orientation-nw {
    transform: rotate(315deg);
}

/** DEFAULT BOOSTRAP OVERRIDES **/
h2 {
    color: #127441;
}

h4 {
    border-bottom: 2px solid #599245;

}

h5 {
    border-bottom: 1px solid #599245;
}

a.btn-secondary:visited, a.btn-secondary:link {
    color: #ffffff;
}

a:visited, a:link {
    color: #127441;
}

a:hover {
    color: #B5D3BB;
    text-decoration: underline;
}

.alert-info {
    color: #444444;
    background-color: #ffffff;
    border-color: #B5D3BB;
}

a.bg-secondary:link,
a.bg-secondary:visited {
    color: #ffffff;

}

.bg-rating-1,
.badge-rating-1 {
    color: #fff;
    background-color: #D9534F !important;
}

.bg-rating-2,
.badge-rating-2 {
    color: #fff;
    background-color: #F0AD4E !important;
}

.bg-rating-3,
.badge-rating-3 {
    color: #fff;
    background-color: #5CB85C !important;
}

.bg-rating-4,
.badge-rating-4 {
    color: #fff;
    background-color: #50CB9C !important;
}

.bg-rating-5,
.badge-rating-5 {
    color: #fff;
    background-color: #5BC0DE !important;
}


.alert-warning {
    border-color: #B5D3BB;
}

.btn-light {
    color: #127441 !important;
    border-color: #127441;
}

.btn-light:hover {
    color: #212529;
    background-color: #e2e6ea;
    border-color: #127441;
}

.btn-primary {
    color: #fff;
    background-color: #127441;
    border-color: #ffffff;
}

.btn-primary:hover {
    color: #cecece;
    background-color: #127441;
    border-color: #ffffff;
}


.input-group.trial_site_overview > .input-group-prepend,
.input-group.trial_site_contact > .input-group-prepend {
    flex: 0 0 20%;
}

.input-group.trial_site_overview .input-group-text,
.input-group.trial_site_contact .input-group-text {
    width: 100%;
}

.btn-light:not(:disabled):not(.disabled).active,
.btn-light:not(:disabled):not(.disabled):active,
.show > .btn-light.dropdown-toggle {
    color: #212529;
    background-color: #dae0e5;
    border-color: #127441;
}

.dropdown-item.active {
    background: #127441;
}

.form-control.nutrient {
    font-size: 0.8rem;


}

.nav.trial-overview {
    background-color: #eee;

    border: 1px solid #dee2e6;
    border-radius: 0.7rem;

}

.mild_heat_stress {
    color: #ebb434;

}

.moderate_heat_stress {
    color: #DF5A21;

}

.severe_heat_stress {
    color: #E3462A;

}


.mild_frost {
    color: #a1b8b8;

}

.moderate_frost {
    color: #5fb9b7;

}

.severe_frost {
    color: #11aba7;

}

.trial_site_location {
    color: #666666;
    text-transform: uppercase;
    font-weight: 600;
}

.img-logo-thumbnail {
    padding: .25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    max-width: 115px;
    height: auto;

}

.report_card_block.editable > .new_block {
    border: 1px #444 dotted;
    cursor: pointer;
    background: '#abacab';

}

.report_card_block.editable > .edit_block {
    border: 1px #444 dotted;
    cursor: pointer;
    background: '#abacab';
    margin-bottom: 5px;

}

/** Important required for Puppeteer PDF background colour ***/
#report_card_container .table-info > tr,
#report_card_container .table-info > td {
    background: #13ba71 !important;
    color: #ffffff !important;
}

.report_card_photo_grid_container {
    border: 1px dashed #343434;
    margin-top: 15px;
    margin-bottom: 15px;

}

.container {
    background: transparent !important;

}

h1 {
    color: #C79228;

}


/*** HANDSONTABLE ****/
.handsontable .htCheckboxRendererInput {
    height: 100% !important;
    width: 100% !important;
    margin: auto !important;
}

.handsontable .plot_compromised {
    background: #f8d7da;
    color: #721c24;

}


.handsontable .equation_result {
    background: #bcbcbc;
    color: #000000;

}

.handsontable .shared_result,
span.shared_result {

    background: #454545;
    color: #ffffff;

}

.select2.select2-container {
    width: 100% !important;

}


.crop-type-wheat {
    color: #fff;
    background-color: #fbd94f;
}

.crop-type-barley {
    color: #fff;
    background-color: #C4A484;
}

.crop-type-canola {
    color: #fff;
    background-color: #008cf4;
}

.crop-type-spring-barley,
.crop-type-sp-barley {
    color: #fff;
    background-color: #9de82a;
}

.pagination .page-link:hover {
    text-decoration: none;
}

.nav-tabs .nav-link {
    border: 1px solid transparent;
    color: #127441; /* your base brand color */
    background-color: transparent;
    text-decoration: none;
}

.nav-tabs .nav-link:hover {
    border-color: #dee2e6 #dee2e6 #fff;
    background-color: #f8f9fa;
    color: #127441;
    text-decoration: none;
}

.nav-tabs .nav-link.active {
    color: #212529;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}


/*Match Bootstrap 4 max container width */
.container, .container-xl, .container-xxl {
    max-width: 1140px !important;
}

li.nav-item.active {
    text-decoration: underline;
}