/* Minimal Leaflet layer control overrides */

#map .leaflet-top.leaflet-right {
    width: auto !important;
    max-width: none !important;
}

#map .leaflet-control-layers,
#map .leaflet-control-layers-list {
    width: auto !important;
    max-width: 170px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

#map .leaflet-control-layers.leaflet-control-layers-collapsed {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
}

#map .leaflet-control-layers label {
    display: block !important;
    position: relative !important;
    padding-left: 30px !important;
    margin-bottom: 6px !important;
    font-size: 13px !important;
    line-height: 1.3em !important;
    white-space: normal !important;
}

#map .leaflet-control-layers input.leaflet-control-layers-selector {
    position: absolute !important;
    left: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    box-sizing: content-box !important;
}

#map .leaflet-control-layers .leaflet-control-layers-separator {
    margin: 6px 0 !important;
}

/* text box background colour changes according to conservation status */
.status-pe { background-color: #f80505; 
            color: black; 
            font-weight: bold;}   /* Extinct in the Wild NCA*/
.status-ex { background-color: #f80505; 
            color: black; 
            font-weight: bold;}   /* Extinct EPBC*/
.status-xw { background-color: #f80505; 
            color: black; 
            font-weight: bold;}   /* Extinct in the Wild EPBC*/            
.status-x { background-color: #f80505; 
            color: black; 
            font-weight: bold;}   /* Extinct NCA*/
.status-cr { background-color: #f80505; 
            color: black; 
            font-weight: bold;}   /* Critically Endangered NCA*/
.status-ce { background-color: #f80505; 
            color: black; 
            font-weight: bold;}   /* Critically Endangered EPBC*/
.status-cd { background-color: #f80505; 
            color: black; 
            font-weight: bold;}   /* Conservation Dependent EPBC*/                         
.status-e  { background-color: pink; 
            color: black; 
            font-weight: bold;}      /* Endangered */
.status-v  { background-color: #fff0b3; 
            color: black; 
            font-weight: bold;}   /* Vulnerable */
.status-nt  { background-color: #c9f3bf; 
            color: black; 
            font-weight: bold;}   /* Near Threatened */
