
/* ************************************************* */
/* MAP EDITOR ************************************** */
/* ************************************************* */

.map-editor-tool-bar-horizontal {
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: white;
    box-shadow: 0 1px 6px 0 #00000040;
    border-radius: 6px;
}

.map-editor-tool-bar-vertical {
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    box-shadow: 0 1px 6px 0 #00000040;
    border-radius: 6px;
}

.map-editor-tool-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-editor-tool-button:hover {
    cursor: pointer;
}

.map-editor-tool-button[data-state="disabled"]:hover {
    cursor: not-allowed;
}

.map-editor-tool-button .icon {
    width: 22px;
    height: 22px;
    fill: #000000bb;
    stroke: #000000bb;
    opacity: 1.0;
}

.map-editor-tool-button:hover .icon {
    fill: #000000;
    stroke: #000000;
}

.map-editor-tool-button[data-state="selected"] .icon {
    fill: #2976E8 !important;
    stroke: #2976E8 !important;
}

.map-editor-tool-button[data-state="disabled"] .icon {
    opacity: 0.5;
}








.map-editor-tool-button-hamburger .icon {
    width: 20px;
    height: 20px;
}

.map-editor-tool-button-zoom .icon {
    width: 22px;
    height: 22px;
}

.map-editor-tool-button-floor[data-state="selected"] {
    font-weight: 700;
}

.map-editor-tool-bar-horizontal .select2-choice {
    margin-top: 4px !important;
    border: none !important;
}


.map-editor-tool-select .icon {
    fill: blue !important;
}


.map-editor-tool-bar-horizontal .select2-container {
    font-weight: 600;
}







#map-editor-layers {
    position: absolute;
    top: 70px;
    right: 21px;
    width: 400px;
    height: calc(100% - 245px);
    display: none;
    flex-direction: column;
    justify-content: space-between;
    background-color: white;
    box-shadow: 0 1px 6px 0 #00000040;
    border-radius: 6px;
    overflow: hidden;
}

.map-editor-layers-section-categories {
    flex: 1;
    overflow-x: hidden;
    overflow-y: scroll;
}






#map-editor-layers-section-search {
    height: 0;
    background-color: blue;
}

#map-editor-layers-section-tile-layers {
    height: 0;
    background-color: red;
}







.map-editor-layers-category-item {
    height: 50px;
    padding: 10px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.map-editor-layers-category-item span {
    flex: 1;
    font-weight: 600;
}



/* **************************************************
/* LAYERS LIST **************************************
/* *************************************************/

.map-editor-layers-layer-item {
    height: 40px;
    padding: 10px 20px 10px 48px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    background-color: white;
    cursor: pointer;
    border-color: #eee !important;
    border-style: solid;
    border-width: 0 0 1px 0;
}

.map-editor-layers-layer-item:last-child {
    border: none;
}

.map-editor-layers-layer-item:hover {
    background-color: #f2f2f2;
}

.map-editor-layers-layer-item[data-state="selected"] {
    background-color: #2976E850;
}

.map-editor-layers-layer-item[data-state="selected"]:hover {
    background-color: #2976E860;
}

.map-editor-layers-layer-item[data-editor-visible="false"] {
    opacity: 0.6;
}

.map-editor-layers-layer-item .icon-group {
    width: unset;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}










.map-editor-layers-category {
    overflow: hidden;
}

.map-editor-layers-category[data-editor-visible="false"] .map-editor-layers-category-item,
.map-editor-layers-category[data-editor-visible="false"] .map-editor-layers-layer-item {
    opacity: 0.6;
}

.map-editor-layers-category-items {
    height: auto;
    transition: height 0.5s ease;
}

.map-editor-layers-category-item .icon,
.map-editor-layers-layer-item .icon {
    width: 16px;
    height: 100%;
    fill: #000000bb;
    stroke: #000000bb;
    opacity: 1.0;
}

.map-editor-layers-layer-item .icon-edit,
.map-editor-layers-layer-item .icon-delete {
    width: 22px;
    height: 40px;
    fill: #000000bb;
    stroke: #000000bb;
    opacity: 1.0;
}

.map-editor-layers-layer-item:hover .icon-edit {
    fill: #5C85B6;
    stroke: #5C85B6;
}
.map-editor-layers-layer-item .icon-edit:hover {
    fill: #3F628D;
    stroke: #3F628D;
}

.map-editor-layers-layer-item:hover .icon-delete {
    fill: #CB3C48;
    stroke: #CB3C48;
}
.map-editor-layers-layer-item .icon-delete:hover {
    fill: #A12B35;
    stroke: #A12B35;
}










.map-editor-layers-layer-item span {
    flex: 1;
    font-weight: 500;
}

.map-editor-layers-layer-item input {
    flex: 1;
    font-weight: 500;
    outline: none !important;
    background-color: transparent;
    border: none;
    border-radius: 0 !important;
    cursor: pointer;
}





#map-editor-tools-bottom-left,
#map-editor-tools-bottom-right {
    position: absolute;
    width: 40px;
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
}

#map-editor.map-editor-mode-preview #map-editor-tools-bottom-left,
#map-editor.map-editor-mode-incidents #map-editor-tools-bottom-left {
    bottom: 49px;
    left: 15px;
}

#map-editor.map-editor-mode-editor #map-editor-tools-bottom-left {
    bottom: 64px;
    left: 21px;
}

#map-editor.map-editor-mode-preview #map-editor-tools-bottom-right,
#map-editor.map-editor-mode-incidents #map-editor-tools-bottom-right {
    bottom: 49px;
    right: 15px;
}

#map-editor.map-editor-mode-editor #map-editor-tools-bottom-right {
    bottom: 64px;
    right: 21px;
}




#map-editor-info-bar {
    position: absolute;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background-color: white;
    box-shadow: 0 1px 6px 0 #00000040;
}

#map-editor-info-bar a {
    text-decoration: underline;
}

#map-editor.map-editor-mode-preview #map-editor-info-bar,
#map-editor.map-editor-mode-incidents #map-editor-info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

#map-editor.map-editor-mode-editor #map-editor-info-bar {
    position: absolute;
    bottom: 15px;
    left: 21px;
    right: 21px;
    border-radius: 6px;
}