.esri-ui-top-right {
    /* Adjust the top position as needed */
    right: 77%; /* Adjust the right position as needed */
    z-index: 99; /* Ensure the search widget is above other UI elements */
}

html,
body {
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.navbar {
    background-color: #808080; /* Use your preferred shade of gray */
    height: 45px;
}

.navbar-brand-left,
.navbar-brand-center {
    display: flex;
    align-items: center;
    height: 100%;
    color: #ffffff; /* Optional: Set text color to white or any preferred color */
}

.navbar-brand-left {
    display: flex;
    align-items: center;
    margin-left: 1.5px;
    height: 100%;
    font-weight: bold;
}

.navbar-brand-left img {
    max-width: 100px; /* Set the maximum width of the image */
    margin-right: 25px; /* Add some margin for spacing */
    color: #ffffff;
}

.navbar-brand-center {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10%;
    height: 100%;
}

.esri-view {
    --esri-view-outline-color: none;
    --esri-view-outline: none;
    --esri-view-outline-offset: none;
}

.posImg {
    margin-right: 5px;
    width: 25px;
    height: 25px;
    margin-left: -4px;
}

/* Adjusted styles for "Serviced Roads" to match spacing */
.servicedRoadsItem {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    margin-right: 10px; /* Adjust the margin to match the spacing of other items */
    margin-left: 30px;
}

/* Dropdown item for "Serviced Roads" */
.servicedRoadsItem span {
    margin-right: 10px; /* Adjust the margin to match the spacing of other items */
}

.btn-danger {
    z-index: 100; /* Set a higher z-index value */
    width: 2px;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    height:55px;
    background-color: gray;
}

.popover-body {
    max-height: 300px;
    overflow-y: auto;
    font-size: 12px;
}

.custom-btn {
    background-color: gray !important; /* Set the background color to gray */
    color: white !important; /* Set the text color to white or any other color you prefer */
}

/* Override the hover and focus styles */
.custom-btn:hover,
.custom-btn:focus {
    background-color: gray !important;
    color: white !important;
}

/* Override the active (clicked) styles */
.custom-btn:active,
.custom-btn.active {
    background-color: gray !important;
    color: white !important;
    box-shadow: none !important; /* Remove the default box shadow */
}


/* Ipad */
@media only screen and (max-width: 810px) and (max-height: 1080px) {


    .esri-ui-top-right {
        right: 63%;
    }

    .esri-search .esri-search__input,
    .esri-search .esri-search__submit-button {
        padding: 5px;
        font-size: 6px;
        width: 75%;
    }

    .esri-ui-top-right .esri-search .esri-search__submit-button {
        width: 50%; /* Adjust the width as needed */
    }

    .navbar {
        background-color: #808080; /* Use your preferred shade of gray */
        height: 61px;
    }

    .navbar-brand-center {
        display: none;
    }



    /* Custom styles for the dropdown menu items if needed */

}

/* iphone 12/13 Pro Max, Galaxy Note 20 Ultra, Galaxy Note 20*/
@media only screen and (max-width: 428px) and (max-height: 926px) {

    .esri-ui-top-right {
        right: 20%;
    }

    .esri-search .esri-search__input,
    .esri-search .esri-search__submit-button {
        padding: 5px;
        font-size: 6px;
        width: 75%;
    }

    .esri-ui-top-right .esri-search .esri-search__submit-button {
        width: 50%; /* Adjust the width as needed */
    }

    .navbar {
        background-color: #808080; /* Use your preferred shade of gray */
        height: 61px;
    }

    .navbar-brand-center {
        display: none;

    }

}

/* Iphone 12/13 + Pro, 11 Pro Max, 11 Pro*/
@media only screen and (max-width: 390px) and (max-height: 844px) {


    .esri-ui-top-right {
        right: 18%;
    }

    .esri-search .esri-search__input,
    .esri-search .esri-search__submit-button {
        padding: 5px;
        font-size: 6px;
        width: 75%;
    }

    .esri-ui-top-right .esri-search .esri-search__submit-button {
        width: 50%; /* Adjust the width as needed */
    }

    .navbar-brand-center {
        display: none;

    }


}

/* Galaxy S20+, S20 Ultra,  */
@media only screen and (max-width: 384px) and (max-height: 854px) {


    .esri-ui-top-right {
        right: 17%;
    }

    .esri-search .esri-search__input,
    .esri-search .esri-search__submit-button {
        padding: 5px;
        font-size: 6px;
        width: 75%;
    }

    .esri-ui-top-right .esri-search .esri-search__submit-button {
        width: 50%; /* Adjust the width as needed */
    }

    .navbar-brand-center {
        display: none;

    }

}

/* Iphone 12/13 Mini*/
@media only screen and (max-width: 375px) and (max-height: 812px) {


    .esri-ui-top-right {
        right: 16.5%;
    }

    .esri-search .esri-search__input,
    .esri-search .esri-search__submit-button {
        padding: 5px;
        font-size: 6px;
        width: 75%;
    }

    .esri-ui-top-right .esri-search .esri-search__submit-button {
        width: 50%; /* Adjust the width as needed */
    }

    .navbar-brand-center {
        display: none;

    }

}

/* Galaxy S20 */
@media only screen and (max-width: 360px) and (max-height: 800px) {


    .esri-ui-top-right {
        right: 15%;
    }

    .esri-search .esri-search__input,
    .esri-search .esri-search__submit-button {
        padding: 5px;
        font-size: 6px;
        width: 75%;
    }

    .esri-ui-top-right .esri-search .esri-search__submit-button {
        width: 50%; /* Adjust the width as needed */
    }

    .navbar-brand-center {
        display: none;

    }


}

@media only screen and (max-width: 360px) and (max-height: 760px) {


    .esri-ui-top-right {
        right: 15.25%;
    }

    .esri-search .esri-search__input,
    .esri-search .esri-search__submit-button {
        padding: 5px;
        font-size: 6px;
        width: 75%;
    }

    .esri-ui-top-right .esri-search .esri-search__submit-button {
        width: 50%; /* Adjust the width as needed */
    }

    .navbar-brand-center {
        display: none;

    }


}

/* iphone se */
@media only screen and (max-width: 375px) and (max-height: 667px) {


    .esri-ui-top-right {
        right: 15%;
    }

    .esri-search .esri-search__input,
    .esri-search .esri-search__submit-button {
        padding: 5px;
        font-size: 6px;
        width: 75%;
    }

    .esri-ui-top-right .esri-search .esri-search__submit-button {
        width: 50%; /* Adjust the width as needed */
    }

    .navbar-brand-center {
        display: none;

    }


}