/* Community creation: Select boundary page */
.selectBoundaryType input[type="radio"] {
    width: 25px;
    outline: none !important;
    box-shadow: none !important;
}

/* Community creation: draw boundary */
#selected-location-link,
.view-boundary-link{
    font-weight: bold;
    color: #007385;
    cursor: pointer;
}

/*  Draw Map assets */
#map {
    width: 100%;
    height: 68%;
    margin-top: 10px;
    z-index: 1;
}

.result-item{
    padding-top: 5px;
    padding-left: 20px;
    padding-bottom: 5px;
    background: white;
    transition: 0.3s;
    cursor: pointer;
    user-select: none;
}
.result-item:hover {
    background: #d7e7e4;
}

.selected-location-name-container {
    padding: 12px;
    border: 3px solid #007385;
    background: aliceblue;
    border-radius: 5px;
    user-select: none;
    width: 100%;
}

.selected-title-ellipsis{
    width: 430px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#expand-map i {
    font-size: 16px;
    font-weight: 400;
}

.toolbarDrawPencil {
    font-size: 16px;
}
a.fa-pencil.toolbarDrawPencil.drawingActive, 
a.fa-pencil.toolbarDrawPencil.drawingActive:hover {
    background: lightgrey;
}
a.fa-eraser.toolbarDrawErase {
    color: coral
}
a.fa-hand.toolbarDrawHand.handActive,
a.fa-hand.toolbarDrawHand.handActive:hover {
    background: lightgrey;
}

.selector-widget {
    background: darkseagreen;
    padding: 6px;
    border-radius: 8px;
    display: flex;
}
.select-tiles-button button{
    cursor: pointer;
}
.select-tiles-button img {
    width: 40px;
    height: 50px;
}
.select-tiles-button.without-countries {
    margin-left: 6px;
}

#map path{
    stroke: #ef6c00;
}
#map.without-countries path{
    stroke: white;
}


/* Create community: upload shapefile */

.community-boundary-upload {
    position: relative;
    display: flex;
}

.community-boundary-upload input {
    padding: 24px;
    padding-left: 10px;
    cursor: pointer;
}

.community-boundary-upload input{
    width: calc(100% - 120px);
}

.feedback {
    display: flex;
    width: 100%;
    font-size: 14px;
    padding: 16px;
    border-radius: 8px;
    margin-top: 8px;
}
.feedback i{
    font-size: 18px;
    margin-right: 12px;
}
.failure {
    color: #B01212;
    background: #FBF3F3;
    border: #B0120B 1px solid;
}
.success {
    color: #166534;
    background: #F2F7F4;
    border: #166534 1px solid;
}

/* Boundary dropdowns */
.region-results-wrapper,
.nld-list-wrapper {
    position: relative;
}

.region-results,
.nld-results {
    max-height: 190px;
    background: white;
    overflow-y: scroll;
    position: absolute;
    width: 100%;
    border: solid 1px #d9d1d1;
    border-radius: 2px;
    border-top: transparent;
    z-index: 2;
}

.community-boundary-search {
    position: relative;
}

.community-boundary-search input{
    width: 100%;
    padding: 20px;
}

.community-boundary-search i{
    position: absolute;
    right: 10px;
    top: 14px;
}

.save-cancel-container {
    margin-top: 20px;
    position: relative;
}
.save-cancel-container .spinner{
    z-index: 16;
    position: absolute;
    font-size: 50px;
    left: 270px;
}
.save-cancel-container .spinner.shown{
    display: block;
}

.tooltip .tooltiptext {
    z-index: 2;
}

#map-wrapper {
    height: 400px;
    margin-bottom: 12px;
}
#map-wrapper #map {
    height: 100%;
    margin-bottom: 10px;
}
#expandedMapModal .expandedMapModalRow:has(> #modal-map-container) {
    height: calc(100% - 100px);
}

.boundary-drop-down{
    padding-bottom: 20px;
}

.border-hr{
    border-bottom: 1px solid #DDDDDD;
}

#boundary-container-right{
    display: flex;
    flex-direction: row;
}

#remove-boundary{
    font-weight: bold;
    color: #007385;
    cursor: pointer;
    margin-right: 30px;
}

#editBoundaryNameIcon {
    display: block;
    margin-left: 8px;
    color: grey;
}

#existingBoundaryNameInput {
    border: none;
    color: #333;
    background-color: #fff;
    font-size: 15px;
}

#existingBoundaryNameInput:focus {
    display: block;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    color: #333;
}

.leaflet-toolbar-icon.toolbar-button--active {
    background: #ddd !important;
    border-color: #bbb;
    box-shadow: inset 0 0 0 1px #aaa;
}
