/* wider navbar menu */
#navbarSupportedContent > ul > li > ul.dropdown-menu.show {
  min-width: 176px;
}
div.navbar-collapse.collapse.show > ul > li > ul.dropdown-menu.show {
  min-width: initial !important;
}

/* kne marker */

#kne-marker-div {
    display: inline-block;
    height: 20px;
    width: 20px;
    background: #aaa;
    border-radius: 10px;
    margin-left: 2px;
    margin-top: -4px;
    vertical-align: middle;
}

#kne-marker-div::before {
    content: '+';
    color: #fff;
    font-size: 15px;
    padding-left: 5.5px;
    font-weight: 700;
}

#dune-cov-map label:nth-child(4) {
    border-top: 1px solid #BBB;
    margin-top: 12px;
    padding-top: 6px;
    margin-bottom: 2px;
    font: 14px/16px Arial, Helvetica, sans-serif;
    font-weight: normal;
}

.leaflet-control-layers-separator {
    border-top: 1px solid #aaa !important;
    margin: 5px 0px 5px 0px !important;
}

/* datatables */

@media (max-width: 820px) {
    .mobile-scroll-table {
        overflow-x: scroll;
    }
}

/* hide elements programmatically */

.display-none {
    display: none !important;
}

.hidden-by-box {
    display: none !important;
}

.dune-legend-width {
    width: 170px;
}

/* link map to table custom */

.faded-marker {
    fill-opacity: 0.2;
    stroke-opacity: 0.2;
}

.faded-by-box {
    fill-opacity: 0.2;
    stroke-opacity: 0.2;
}

/* CHECKBOX CONTROLS */

.gwrc-control {
    position: relative;
    display: block;
    min-height: 1.5rem;
    padding-left: 18px;
    padding-top: 2px;
    font: 14px/16px Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.gwrc-control-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.gwrc-control-label {
    margin-bottom: 0;
}

.gwrc-checkbox .gwrc-control-label::before {
    border-radius: 2px;
}

.gwrc-control-input:checked~.gwrc-control-label::before {
    color: #fff;
}

.gwrc-control-label::before {
    position: absolute;
    top: .25rem;
    left: 0;
    display: block;
    width: 15px;
    height: 15px;
    pointer-events: none;
    content: "";
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: #dee2e6;
}

.gwrc-checkbox .gwrc-control-input:checked~.gwrc-control-label::after {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E");
}

.gwrc-control-label::after {
    position: absolute;
    top: .25rem;
    left: 0;
    display: block;
    width: 15px;
    height: 15px;
    content: "";
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
}

/* for div links temp fix */
.help {
  margin: 0 0 10px;
}
.help a {
    color: #174a5b;
    text-decoration: none;
    border-bottom: 1px solid #174a5b;
}
.help a:focus, .help a:hover {
    background: rgba(23, 74, 91, 0.1);
    outline: none;
}

/* bootstrap fix */
.section.level1, .section.level2, .section.level3, section.level1, section.level2, section.level3 {
  margin-top: 0px !important;
}
div.escir-shared-output {
    border: 1px solid #DDD;
    border-top: none;
    padding: 4px;
    padding-top: 12px;
    margin-top: -28px;
}

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

#pest-table td,
#pest-table th {
  padding: 0px 4px;
}

/* arrows */
div.legend > div.dune-diff > i:nth-of-type(1),
div.legend > div.dune-diff > i:nth-of-type(2),
div.legend > div.dune-diff > i:nth-of-type(3),
div.legend > div.dune-diff > i:nth-of-type(4) {
    background: none !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover !important;
    width: 20px;
    height: 20px;
    margin-bottom: 3px;
    -ms-interpolation-mode: nearest-neighbor;
        image-rendering: -moz-crisp-edges;
        image-rendering: -o-pixelated;
        image-rendering: pixelated;
    image-rendering: -webkit-optimize-contrast;
}
div.legend > div.dune-diff > i:nth-of-type(1){
    background-image: url(./images/arrow-decrease.png) !important;
    width: 18px;
    height: 18px;
    margin-right: 4px;
}
div.legend > div.dune-diff > i:nth-of-type(2){
    background-image: url(./images/arrow-no-change.png) !important;
    margin-right: 1px;
}
div.legend > div.dune-diff > i:nth-of-type(3){
    background-image: url(./images/arrow-increase.png) !important;
    width: 18px;
    height: 18px;
    margin-right: 4px;
}

div.legend > div.dune-diff > i:nth-of-type(4){
    background-image: url(./images/arrow-not-assessed.png) !important;
    width: 16px;
    height: 16px;
    margin-right: 6px;
}
