﻿.selection-container {
    padding: 10px;
    border-radius: 5px;
    background-color: #fff;
    border: 1px solid #ddd;
}

    .selection-container + .selection-container {
        margin-block-start: 5px;
        padding: 0px;
        background: none;
        border: none;
    }

    .selection-container .description {
        font-size: 11px;
        margin-block-end: 10px;
    }

    .selection-container .selection-tools {
        display: flex;
        justify-content: space-between;
        column-gap: 5px;
    }

.tool-button {
    cursor: pointer;
    border: 1px solid #ddd;
    background-position: center;
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    border-radius: 4px;
}

    .tool-button:hover, .tool-button.selected {
        border: 1px solid #767676;
    }

    .tool-button.tool-dropdown {
        width: 40px;
        background-position: right 15px center;
    }

        .tool-button.tool-dropdown::after {
            content: '';
            display: inline-block;
            background-image: url('../images/drop_down.png');
            background-repeat: no-repeat;
            background-position: center;
            width: 9px;
            height: 30px;
            margin-inline-start: 26px;
        }

[dir=rtl] .tool-button.tool-dropdown {
    background-position: left 15px center;
}

.select-select {
    background-image: url('../images/Selection.png?a=1');
    background-position: center;
    background-repeat: no-repeat;
    width: 20px;
    height: 30px;
}

.select-add {
    background-image: url('../images/AddToSelection.png');
    background-position: center;
    background-repeat: no-repeat;
    width: 20px;
    height: 30px;
}

.select-remove {
    background-image: url('../images/RemoveFromSelection.png');
    background-position: center;
    background-repeat: no-repeat;
    width: 20px;
    height: 30px;
}

.select-from-selection {
    background-image: url('../images/SelectFromSelection.png');
    background-position: center;
    background-repeat: no-repeat;
    width: 20px;
    height: 30px;
}

.clear-selection {
    background-image: url('../images/ClearSelection.png');
    margin-inline-start: auto;
}

.select-point {
    background-image: url('../images/SelectPoint.png');
    background-position: center;
    background-repeat: no-repeat;
    width: 20px;
    height: 30px;
}

.select-polygon {
    background-image: url('../images/SelectPolygon.png?a=6');
    background-position: center;
    background-repeat: no-repeat;
    width: 20px;
    height: 30px;
}

.select-polyline {
    background-image: url('../images/DrawPolyline.png?a=6');
    background-position: center;
    background-repeat: no-repeat;
    width: 20px;
    height: 30px;
}

.select-layer {
    background-image: url('../images/SelectionLayers.png?a=2');
}

.select-location {
    background-image: url('../images/SelectByLocation.png');
}

.location-section .location-description {
    font-size: 11px;
}

.location-dialog {
    width: 500px;
    min-height: 420px;
}

.apply-buffer {
    display: flex;
    cursor: pointer;
    column-gap: 5px;
    line-height: 24px;
}

    .apply-buffer .checked-box, .apply-buffer .unchecked-box {
        display: inline-block;
        height: 24px;
        width: 10px;
    }

.select-buffer {
    column-gap: 10px;
    line-height: 25px;
    margin-block-start: 10px;
}

    .select-buffer span {
        font-size: 11px;
        margin-inline-end: 10px;
    }

    .select-buffer input, .select-buffer select {
        width: 120px;
        margin-inline-end: 5px;
        height: 25px;
    }

.popup-downwards {
    border: 1px solid #767676;
    background-color: #fff;
    border-start-start-radius: 4px;
    border-start-end-radius: 0px;
    border-end-end-radius: 4px;
    border-end-start-radius: 4px;
    max-height: 320px;
    min-width: 150px !important;
    overflow-y: auto;
    box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.3);
    inset-inline-start: unset !important;
    inset-inline-end: -1px;
    z-index: 5;
}

    .popup-downwards::before {
        content: '';
        position: absolute;
        inset-inline-end: -1px;
        inset-block-start: -2px;
        border-inline-start: 1px solid #767676;
        border-inline-end: 1px solid #767676;
        height: 2px;
        width: 28px;
        background-color: #fff;
    }

.tool-button .popup-downwards::before {
    inset-block-start: -3px;
    height: 3px;
    width: 38px;
}

.popup-upwards {
    border: 1px solid #767676;
    background-color: #fff;
    border-start-start-radius: 4px;
    border-start-end-radius: 4px;
    border-end-end-radius: 0px;
    border-end-start-radius: 4px;
    box-shadow: 0px -3px 5px -1px rgba(0,0,0,0.3);
    inset-inline-start: unset !important;
    inset-inline-end: -1px;
    overflow-y: auto;
    z-index: 5;
}

    .popup-upwards::before {
        content: '';
        position: absolute;
        inset-inline-end: -1px;
        inset-block-end: -2px;
        border-inline-start: 1px solid #767676;
        border-inline-end: 1px solid #767676;
        height: 2px;
        width: 28px;
        background-color: #fff;
    }

.tool-button .popup-upwards::before {
    inset-block-end: -3px;
    height: 3px;
    width: 38px;
}

.popup-downwards-open {
    border: 1px solid #767676;
    border-radius: 0px;
    box-shadow: 0px 0px 9px 0px rgba(0,0,0,0.3);
}

.popup-upwards-open {
    border: 1px solid #767676;
    border-radius: 0px;
    box-shadow: 0px 0px 9px 0px rgba(0,0,0,0.3);
}

.selection-popup {
    cursor: default;
}

.popup-item {
    padding-inline-start: 10px;
    padding-inline-end: 10px;
    white-space: nowrap;
    display: flex;
    column-gap: 5px;
}

    .popup-item:hover {
        background-color: #eee;
        cursor: pointer;
    }

    .popup-item span {
        color: #000;
        font-size: 11px;
        line-height: 30px;
        white-space: nowrap;
    }

    .popup-item .checked, .popup-item .unchecked {
        margin-inline-start: auto;
    }

.popup-item-invisible span {
    background-color: transparent;
    cursor: default;
    color: rgb(195, 195, 195);
}

.popup-item-invisible .checked-box {
    background-image: url('../images/Box.png');
}

.selection_count_div {
    display: inline-block;
}

.popup-item .unchecked, .popup-item .checked {
    width: 13px;
    display: inline-block;
    height: 30px;
}

.popup-item .unchecked-box, .popup-item .checked-box {
    width: 11px;
    display: inline-block;
    height: 30px;
    position: relative;
}

.checked-box {
    background-image: url('../images/CheckedBox.png');
    background-position: center;
    background-repeat: no-repeat;
}

.unchecked-box {
    background-image: url('../images/Box.png');
    background-position: center;
    background-repeat: no-repeat;
}

.checked {
    background-image: url('../images/check.png');
    background-position: center;
    background-repeat: no-repeat;
}

.mapservice-name {
    font-size: 11px;
    font-weight: bold;
    margin-inline-start: 10px;
    line-height: 14px;
    padding: 3px 0px;
    display: block;
}

.no-layers {
    color: #000;
    display: inline-block;
    font-size: 11px;
    font-style: italic;
    line-height: 30px;
    margin-inline-start: 10px;
    margin-inline-end: 10px;
    white-space: nowrap;
}

/*location dialog*/
.location-dialog .section-header {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #eee;
    cursor: pointer;
    display: flex;
    column-gap: 10px;
    line-height: 30px;
    padding-inline-start: 10px;
    padding-inline-end: 10px;
    margin-block-end: 10px;
}

    .location-dialog .section-header:hover {
        border: 1px solid #ccc;
        background: #ddd;
    }

    .location-dialog .section-header.selected {
        border-block-end: none;
        border-end-end-radius: 0px;
        border-end-start-radius: 0px;
    }

    .location-dialog .section-header span {
        font-size: 11px;
        font-weight: bold;
        white-space: nowrap;
        flex-grow: 1;
    }

    .location-dialog .section-header .heading-count {
        flex-grow: 0;
    }

    .location-dialog .section-header .expand-icon {
        background-image: url("../images/Expand.png?a=5");
        background-position: center;
        background-repeat: no-repeat;
        width: 10px;
        height: 30px;
        cursor: pointer;
    }

    .location-dialog .section-header.selected {
        margin-block-end: 0px;
    }

        .location-dialog .section-header.selected .expand-icon {
            display: none !important;
        }

.location-dialog .location-description {
    margin-block-end: 10px;
}

.location-dialog .location-section {
    border: 1px solid #ccc;
    border-block-start: none;
    border-start-start-radius: 0px;
    border-start-end-radius: 0px;
    border-end-end-radius: 4px;
    border-end-start-radius: 4px;
    padding: 10px;
    height: 350px;
    margin-block-end: 10px;
}

.validation-message {
    color: #FF0000;
    font-size: 11px;
    font-style: italic;
    display: none;
}

.add-shape {
    background-image: url("../images/DrawToAddSmall.png?a=2");
}

    .add-shape:hover {
        background-image: url("../images/DrawToAddSmallHovered.png?a=2");
    }

.remove-shape {
    background-image: url("../images/RemoveFromSelectionIcon.png");
}

    .remove-shape:hover {
        background-image: url("../images/RemoveFromSelectionIconHovered.png");
    }

.trimble-map .selection-mode {
    background-image: url('../images/Selection.png');
}
