﻿
#trial-map-container {
    margin: -15px;
    margin-top: -20px !important;
    margin-bottom: -40px;
}

@media only screen and (min-width: 300px) 
{
    #trial-map {
        position: relative;
        margin-left: 23px;
        overflow: hidden;
    }
}
@media only screen and (min-width: 1200px)
{
    #trial-map {
        position: static;
    }
}

#trial-map {
    width: 100%;
    height: calc(100vh - 144px);
}

    #trial-map.sm-view {
        height: 300px;
    }

#trial-search {
    position: relative;
    width: 100%;
    height: auto;
    padding: 25px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
    background-color: #fff;
    top:20px;
    margin-bottom:20px;
}

#search-container {
    display: block;
}


    #search-container p {
        margin: 0 0 20px 0;
    }

.plot-location {
    width: 80%;
}

#search-form {
}

.form-group {
    width: 100%;
    margin-bottom: 7px;
    position: relative;
}

    .form-group label {
        width: 100%;
        text-align: left;
        padding-right: 10px;
        font-size: 15px;
        font-weight: bold;
    }

    .form-group select {
        width: 85%;
    }

    .form-group input {
        width: 100%;
        padding: 7px 10px 6px;
        margin-bottom: 10px;
    }

        .form-group input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
            color: #999;
            font-style: italic;
        }

        .form-group input::-moz-placeholder { /* Firefox 19+ */
            color: #999;
            font-style: italic;
        }

        .form-group input:-ms-input-placeholder { /* IE 10+ */
            color: #999;
            font-style: italic;
        }

        .form-group input:-moz-placeholder { /* Firefox 18- */
            color: #999;
            font-style: italic;
        }

.btn-search-form {
    background-color: #19BEDC;
    border-radius: 9px;
    font-size: 17px;
    letter-spacing: -0.015em;
    color: #333333;
    padding: 7px 35px;
    margin-top: 0px;
    font-weight: 700;
    /*  width: auto;
    background-repeat: no-repeat;
    background-position: 90% center;
    text-align: left;
    float: left;*/
    text-decoration: none;
}

#btn-edit {
    float: right;
}

.btn-search-form span {
    padding-left: 5px;
    position: absolute;
    color: #333333;
}

    .btn-search-form span svg {
        fill: #333333;
        height: 16px;
        width: 16px;
    }

.btn-search-form:hover {
    color: #333333;
    cursor: pointer;
    text-decoration: none;
}

    .btn-search-form:hover span svg {
        fill: #333333;
    }

.btn-search-form.disabled,
.btn-search-form.disabled:hover {
    cursor: not-allowed;
    background: #C4D4D7;
    pointer-events: none;
}

    .btn-search-form.disabled:hover span svg {
        fill: #333333;
    }

.form-group #btn-searching {
    padding: 8px 15px 7px 15px;
}

#search-summary {
    position: relative;
}

    #search-summary p {
        margin: 0;
        float: left;
        text-transform: capitalize;
        line-height: 35px;
        padding-bottom: 0px;
    }

        #search-summary p span.divider {
            padding: 0 10px;
        }

#plot-report {
    position: relative;
    width: 100%;
    height: auto;
    padding: 15px;
    background-color: #fff;
}

    #plot-report #btn-close {
        display: block;
        width: 35px;
        height: 35px;
        background-color: #1B7383;
        border: 1px solid #1B7383;
        padding: 4px;
        position: absolute;
        right: 25px;
        top: 25px;
    }

    #plot-report #btn-print {
        display: none;
        width: 35px;
        height: 35px;
        background-color: #1B7383;
        border: 1px solid #1B7383;
        padding: 5px;
        position: absolute;
        right: 70px;
        top: 25px;
    }

        #plot-report #btn-close svg,
        #plot-report #btn-print svg {
            fill: #fff;
        }

        #plot-report #btn-close:hover,
        #plot-report #btn-print:hover {
            background-color: #fff;
        }

            #plot-report #btn-close:hover svg,
            #plot-report #btn-print:hover svg {
                fill: #0073ac;
            }


.pd-container {
    height: auto;
    overflow: auto;
}



#plot-details {
    width: 100%;
    max-width: 100%;
}

    #plot-details .pd-info {
        display: flex;
        flex-wrap: wrap;
    }

        #plot-details .pd-info .pdi-single {
            width: 50%;
            float: left;
            padding: 0 0 10px 0;
        }

            #plot-details .pd-info .pdi-single.pdi-full {
                width: 100%;
            }

            #plot-details .pd-info .pdi-single span {
                display: block;
                width: 100%;
            }

                #plot-details .pd-info .pdi-single span.pd-label {
                    font-size: 15px;
                    font-weight: bold;
                }

                #plot-details .pd-info .pdi-single span.pd-data {
                    font-size: 15px;
                }

                    #plot-details .pd-info .pdi-single span.pd-data[data-type="standard"]::after {
                        content: url('../trial-results/img/small-marker-icon-std.png');
                        margin-left: 8px;
                    }

                    #plot-details .pd-info .pdi-single span.pd-data[data-type="agronomy"]::after {
                        content: url('../trial-results/img/small-marker-icon-agro.png');
                        margin-left: 8px;
                    }

    #plot-details hr {
        border: 1px solid #ccc;
    }

    #plot-details .pd-yield {
        position: relative;
        display: block;
        min-height: 200px;
    }

        #plot-details .pd-yield h2 {
            margin: 0;
            font-weight: normal;
            margin-bottom: 0px;
        }

table.yd-results {
    margin: 20px 0;
    width: 100%;
    min-width: 500px;
}

    table.yd-results tr {
        padding: 0px 5px 9px 9px;
        line-height: 1;
        border-bottom: 1px solid #ccc;
    }

        table.yd-results tr th {
            font-size: 12px;
            text-align: center;
            border-right: 1px solid #ccc;
            border-left: 1px solid #ccc;
            border-top: 1px solid #ccc;
            padding: 10px 5px;
        }

        table.yd-results tr td {
            font-size: 14px;
            line-height: 17px;
            text-align: center;
            border-right: 1px solid #ccc;
            border-left: 1px solid #ccc;
            padding: 10px 5px;
        }

        table.yd-results tr th.yr-seed {
            width: 32%;
        }

        table.yd-results tr th.yr-yield,
        table.yd-results tr th.yr-mst,
        table.yd-results tr th.yr-test-wt
        table.yd-results tr th.yr-milk-wt {
            width: 12%;
        }



        table.yd-results tr:nth-child(even) {
            background-color: #e5e5e5;
        }

/* Select 2 overrides */

.trailresults .select2-selection__arrow b:before {
    font-size: 16px !important;
}

.trailresults .select2 {
    border: 1px solid #bdbdbd !important;
    border-radius: 7px !important;
}

.trailresults .select2-container--default.select2-container--disabled .select2-selection--single {
    width: 100% !important;
}

.trailresults .select2-container--default .select2-results > .select2-results__options {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    /*width: 100% !important;*/
}

.btn-search-form {
    padding-left: 25px;
}

.form-group input {
    margin-bottom: 0;
    font-size: 15px;
    border: 1px solid #bdbdbd !important;
    border-radius: 7px !important;
}

.trailresults .select2 {
    width: 100% !important;
    border: 1px solid #bdbdbd !important;
    border-radius: 7px !important;
}

.trailresults .select2-container--default .select2-selection--single {
    border-radius: 0;
}

.trailresults .select2-selection__rendered {
    line-height: 34px !important;
    font-size: 15px;
}

.trailresults .select2-container .select2-selection--single {
    height: 35px !important;
    width: 100%;
}

.trailresults .select2-selection__arrow {
    height: 36px !important;
}

.trailresults .select2-container .select2-selection--single .select2-selection__clear {
    background-color: transparent;
    border: none;
    font-size: 22px;
    margin-top: 4px;
    margin-right: 23px;
}

.trailresults .select2-selection__placeholder {
    font-style: italic;
}

/* Google map remove logo */
a[href^="http://maps.google.com/maps"] {
    display: none !important
}

a[href^="https://maps.google.com/maps"] {
    display: none !important
}

.gmnoprint a, .gmnoprint span, .gm-style-cc {
    display: none;
}


span.west-soy {
    display: none;
}

    span.west-soy.show {
        display: block;
    }

#plot-report .table-info p.legal {
    font-size: 12px;
    line-height: 18px;
    background: #fff;
}

.form-group.clearfix {
    margin-top: 20px;
}

@media (min-width: 500px) {
    #plot-report #btn-print {
        display: block;
    }

    .plot-location {
        width: 85%;
    }

    table.yd-results tr th {
        font-size: 15px;
    }

    span.scroll-warning {
        display: none;
    }
}

@media (max-width: 767px) {
    #btn-edit span {
        top: 4px;
    }
}

@media (min-width: 768px) {
    #plot-details .pd-info .pdi-single {
        width: 33.2%;
    }

    #btn-edit span {
        top: 4px;
    }

    table.yd-results tr th.yr-yield,
    table.yd-results tr th.yr-mst,
    table.yd-results tr th.yr-test-wt
    table.yd-results tr th.yr-milk-wt {
        width: 12%;
    }

    .btn-search-form span {
        padding-left: 5px;
        position: absolute;
        top: 0px;
        color: #333333;
    }

    #plot-report {
        position: absolute;
        top: 200px;
    }
}

@media (min-width: 992px) {
    #trial-map {
        height: calc(100vh - 150px);
        min-height: 700px;
        margin-top: 25px;
        z-index: 1;
    }

    #trial-search {
        position: absolute;
        top: 95px;
        left: 20px;
        width: 40%;
        max-width: 650px;
        min-width: 500px;
        height: auto;
        padding: 25px;
        box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
        background-color: #fff;
        z-index: 10;
        margin-top: -20px;
        margin-bottom: 0px;
    }

    .trailresults .select2 {
        width: 85% !important;
        border: 1px solid #bdbdbd !important;
        border-radius: 7px !important;
    }

    .trailresults .select2-container--default.select2-container--disabled .select2-selection--single {
        width: 100% !important;
    }

        .trailresults .select2-container--default .select2-results > .select2-results__options {
            padding-top: 0px !important;
            padding-bottom: 0px !important;
            /*width: 100% !important;*/
        }

    .form-group {
        margin-bottom: 15px;
    }

        .form-group input {
            width: 85%;
            margin-bottom: 0;
            font-size: 15px;
            border: 1px solid #bdbdbd !important;
            border-radius: 7px !important;
        }

        .form-group label {
            width: 14%;
            text-align: right;
        }

    .btn-search-form {
        float: right;
    }

    #plot-report {
        position: absolute;
        top: 200px;
        left: 20px;
        width: 40%;
        max-width: 650px;
        min-width: 500px;
        max-height: calc(100vh - 300px);
        padding: 25px;
        box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
        background-color: #fff;
        overflow: hidden;
        z-index: 10;
    }

    .pd-container {
        height: calc(100vh - 430px);
        overflow-y: auto;
    }

    table.yd-results tr td {
        font-size: 15px;
        line-height: 20px;
    }

    .btn-search-form span {
        top: 5px;
    }

    .form-group.clearfix {
        margin-top: 0px;
    }
}

/* Spinner Code */
.lds-spinner {
    color: official;
    display: inline-block;
    position: absolute;
    left: calc(50% - 32px);
    top: calc(50% - 32px);
    width: 64px;
    height: 64px;
}

    .lds-spinner div {
        transform-origin: 32px 32px;
        animation: lds-spinner 1.2s linear infinite;
    }

        .lds-spinner div:after {
            content: " ";
            display: block;
            position: absolute;
            top: 3px;
            left: 29px;
            width: 5px;
            height: 14px;
            border-radius: 20%;
            background: #0073ac;
        }

        .lds-spinner div:nth-child(1) {
            transform: rotate(0deg);
            animation-delay: -1.1s;
        }

        .lds-spinner div:nth-child(2) {
            transform: rotate(30deg);
            animation-delay: -1s;
        }

        .lds-spinner div:nth-child(3) {
            transform: rotate(60deg);
            animation-delay: -0.9s;
        }

        .lds-spinner div:nth-child(4) {
            transform: rotate(90deg);
            animation-delay: -0.8s;
        }

        .lds-spinner div:nth-child(5) {
            transform: rotate(120deg);
            animation-delay: -0.7s;
        }

        .lds-spinner div:nth-child(6) {
            transform: rotate(150deg);
            animation-delay: -0.6s;
        }

        .lds-spinner div:nth-child(7) {
            transform: rotate(180deg);
            animation-delay: -0.5s;
        }

        .lds-spinner div:nth-child(8) {
            transform: rotate(210deg);
            animation-delay: -0.4s;
        }

        .lds-spinner div:nth-child(9) {
            transform: rotate(240deg);
            animation-delay: -0.3s;
        }

        .lds-spinner div:nth-child(10) {
            transform: rotate(270deg);
            animation-delay: -0.2s;
        }

        .lds-spinner div:nth-child(11) {
            transform: rotate(300deg);
            animation-delay: -0.1s;
        }

        .lds-spinner div:nth-child(12) {
            transform: rotate(330deg);
            animation-delay: 0s;
        }

@keyframes lds-spinner {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}



/*Print styles*/

@media print {
    header,
    footer,
    #trial-search,
    #trial-map,
    #plot-report #btn-close,
    #plot-report #btn-print,
    span.west-soy,
    span.scroll-warning {
        display: none;
    }

    #plot-report {
        margin: 0;
        padding: 0;
        position: relative;
        top: 0;
    }

    #plot-details .pd-info .pdi-single {
        width: 33%;
        float: left;
        padding: 0 0 10px 0;
    }

    a {
        color: #4a4a4a !important;
    }

    form#main {
        padding-top: 0 !important;
    }
}

    .table-info {
        background: #fff;
    }

.select2-container--default .select2-results > .select2-results__options {
    padding-top: 0px !important;
    padding-bottom: 0px !important;   
}

#search-form .select2-container--open .select2-selection__arrow {
    top: -3px !important;
    right: 3px !important;
}

.select2-container--default .select2-selection--single {
    background-color: transparent !important;
}

#select2-trial-year-results, #select2-trial-crop-results, #select2-trial-variety-results, #select2-trial-brand-results {
    width: 100%;
}


#search-form .select2-container--default .select2-selection--single .select2-selection__arrow b {
    top: 10px !important;
    left: 6px !important;
}