/*
=====================================================================================
    map-style css
=====================================================================================
	
	Version History:
	Name				Date		Changes
	------------------	----------	-------------------------------------------------
	map-style-04.css	Jul 2026	Fixed ESRI search box issue folowing ArcGIS release
	------------------	----------	-------------------------------------------------
	map-style-03.css	Mar 2025	Collated code from Alloy map forms
									Reduced font size and margins on popup so it  
									takes up less space on mobile
	------------------	----------	-------------------------------------------------
	map-style-02.css	Aug 2024	Popup title - removed bold
									Popup bottom margin - reduced to 15px when docked
									Popup action text (btn) - text centered
	------------------	----------	-------------------------------------------------
	map-style-01.css	2023		Initial map styles
	------------------	----------	-------------------------------------------------
*/

/* this gives the container for the map and buttons some height */
#dform_page_map_page > div {
    height: 700px;
}

    /* this reverses the above rule on any divs that have .header2 */
    #dform_page_map_page > div.header2 {
        height: auto;
    }

#dform_widget_html_DgcMapWidget {
    height: calc(100% - 28px);
}

#dform_widget_cs_customer_search_searchbutton {
    background-color: mediumblue;
}

#map-view {
    height: 100%;
    width: 100%;
}

#dform_container div[title='Zoom to'] {
    display: none !important;
}

#dform_container div[title='Dock'] {
    display: none;
}

#dform_container .coordinate-comma {
    padding-right: 2px;
}

.esri-widget {
    font-family: "Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif;
}

.hidden {
    display: none;
}

.container {
    height: 10%;
    width: 95%;
}

#dform_container .esri-search__container,
#dform_container .esri-search__input-container,
#dform_container .esri-search__form {
    display: flex !important;
    flex-flow: row nowrap;
    align-items: center;
}

#dform_container .esri-search__form {
    display: flex !important;
    flex-flow: row nowrap;
    align-items: stretch;
}

#dform_container .esri-search__submit-button {
    flex: 0 0 auto;
}

#dform_container .esri-search__input,
#dform_container .esri-search__submit-button {
    height: 36px !important;
    box-sizing: border-box;
}

#dform_holder {
    overflow: auto;
}

.footer {
    margin-top: 1rem;
}

#dform_container .esri-search__container button {
    background-image: none !important;
    background-color: #007A33 !important;
    border: 2px solid #007A33;
    color: #fff;
    padding: 0.1em 0.8em;
}

#dform_container .esri-search__container button {
    width: inherit;
}

#dform_container .esri-search__container button {
    min-width: auto;
    height: auto;
    margin: auto;
    margin-top: inherit;
}

#dform_container .esri-search__submit-button {
    border-radius: 0 4.5rem 4.5rem 0;
}

#dform_container .esri-search__sources-button {
    display: none;
}

    #dform_container .esri-search__sources-button .esri-widget--button {
        border-radius: 0 !important;
        border-bottom-left-radius: 4.5rem;
        border-top-left-radius: 4.5rem;
    }

#dform_container .esri-search__clear-button {
    display: none;
}

/* ======================= */
/*         Popup           */
/* ======================= */
.esri-ui .esri-popup {
    min-width: 300px;
}

#dform_container div.esri-popup .esri-popup__main-container {
    width: auto !important;
    min-height: 75px;
}

    #dform_container div.esri-popup .esri-popup__main-container h2 {
        color: #fff;
    }

    /* Popup Header */

    #dform_container div.esri-popup .esri-popup__main-container header {
        background-color: #5d285f;
    }

        #dform_container div.esri-popup .esri-popup__main-container header div[title='Dock'] {
            visibility: hidden;
        }

        #dform_container div.esri-popup .esri-popup__main-container header div[title='Close'] {
            color: #fff;
        }

            #dform_container div.esri-popup .esri-popup__main-container header div[title='Close']:hover {
                color: #5d285f;
            }

#dform_container div.esri-popup .esri-popup__header-container {
    background: none;
    border: none;
    margin: 0;
    padding: 0.2rem 1rem;
    box-shadow: none;
}

    #dform_container div.esri-popup .esri-popup__header-container:focus,
    #dform_container div.esri-popup .esri-popup__header-container:active {
        background: none;
        border: none;
        boxshadow: none;
    }

    #dform_container div.esri-popup .esri-popup__header-container h2 {
        font-size: 1.1rem;
        font-weight: normal;
        text-transform: none;
        color: white;
        text-align: center;
    }

#dform_container div.esri-popup .esri-popup__header-container--button:hover {
    background-color: #5d285f;
}

#dform_container div.esri-popup .esri-popup__header-title {
    border: none;
    margin: 0;
    padding: 0;
}

#dform_container div.esri-popup .esri-popup__header {
    background-color: #5d285f;
}

#dform_container .esri-popup__header-buttons .esri-popup__button {
    color: #fff;
}

/* Popup Content */

#dform_container div.esri-popup .popup-content {
    font-size: 1.0em;
    color: #5d285f;
    padding: 0 16px;
    font-family: "segoe ui";
}

    #dform_container div.esri-popup .popup-content b {
        display: inline-block;
        width: 60px;
        margin-right: 4px;
        text-align: right;
    }

#dform_container div.esri-popup .esri-popup__content {
    font-size: 1rem;
    padding: 0 12px;
    margin: 10px 12px 12px 12px;
    align-items: center;
    text-align: center;
}

.esri-component.esri-popup.esri-popup--is-docked.esri-popup--is-docked-bottom-center {
    margin-bottom: 0;
}

.esri-view-width-less-than-medium .esri-popup__action-text {
    display: initial;
}

.esri-popup__inline-actions-container:only-child {
    justify-content: center;
}

span.esri-popup__icon.esri-icon-default-action {
    display: none;
}

#dform_container .esri-popup__button[title="Close"] {
    display: none;
}

#dform_container .esri-popup__inline-actions-container div,
#dform_container .esri-popup__footer .esri-popup__button {
    border-style: none;
    background-color: var(--color-green);
    border-bottom: 0.1875rem solid var(--color-green-darken);
    border-radius: 0.3125rem;
    font-size: 0.9rem;
    font-weight: 600;
    height: 100%;
    padding: 0.625rem 1rem;
    color: var(--color-white);
    text-decoration: none;
    text-transform: none;
    background-image: none;
    min-width: 200px;
    margin: 0.75rem 0 0;
}

#dform_container div.esri-popup .esri-popup__action-image {
    display: none;
}

#dform_container .esri-popup__inline-actions-container:only-child {
    justify-content: center;
}

#dform_container span.esri-popup__action-text {
    font-size: 1.2em;
    width: 100%;
    text-align: center;
}

#dform_container .esri-popup__inline-actions-container div:hover,
#dform_container .esri-popup__inline-actions-container div:focus {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

#dform_container .esri-popup__inline-actions-container div:focus {
    box-shadow: 0 0 0 3px #FFBF47;
}


/* Popup Footer */

#dform_container .esri-popup__footer {
    padding: 0;
}

/* ====================================== */
/*         Map wait and spinner           */
/* ====================================== */

#map-wait {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(49,20,47,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

#map-wait-message {
    background: white;
    border-radius: 0.5rem;
    padding: 6px 12px;
}

#map-wait-text {
    margin: 6px 0;
}

#map-wait-spinner {
    border: 4px solid #5D285F;
    border-radius: 50%;
    border-top: 2px solid #007A33;
    width: 6px;
    height: 20px;
    margin: auto;
    -webkit-animation: spin 1.5s linear infinite;
    animation: spin 1.5s linear infinite;
}

/* ====================================== */
/*       media queries & keyframes        */
/* ====================================== */

@media (max-width: 768px) {
    #dform_widget_html_html_M4H4RT59 {
        display: none;
    }
}

@media only screen and (max-height: 850px) {
    #dform_page_map_page > div {
        height: 700px;
    }
}

@media only screen and (max-height: 768px) {
    #dform_page_map_page > div {
        height: 600px;
    }

    #dform_container .esri-search {
        width: calc(100% - 50px) !important;
    }

    #dform_container .esri-search__container {
        width: 100% !important;
    }
}

@media only screen and (max-height: 660px) {
    #dform_page_map_page > div {
        height: 550px;
    }

    #dform_container div.esri-popup .esri-popup__header-container h2 {
        font-size: 0.9rem;
    }

    #dform_container div.esri-popup .esri-popup__content {
        padding: 0;
        margin: 4px 0;
        font-size: 0.8rem;
    }

    .esri-popup--is-docked .esri-popup__header {
        padding-top: 0;
    }

    #dform_container div.esri-popup .esri-popup__header-container {
        padding: 0.1rem;
    }
}

@media only screen and (max-height: 425px) {
    #dform_page_map_page > div {
        height: 520px;
    }
}

@media only screen and (max-height: 550px) {
    #dform_page_map_page > div {
        height: 480px;
    }

    #dform_container .dform_table .dform_tr, #dform_container .dform_table .dform_th, #dform_container .dform_table .dform_td, #dform_container table tr, #dform_container table th, #dform_container table td {
        padding: 6px;
    }

    h1, .h1, .header1, #dform_container h1, #dform_container .h1, #dform_container .header1, h2, .h2, .header2, #dform_container h2, #dform_container .h2, #dform_container .header2, h3, .h3, .header3, #dform_container h3, #dform_container .h3, #dform_container .header3, h4, .h4, .header4, #dform_container h4, #dform_container .h4, #dform_container .header4, h5, .h5, .header5, #dform_container h5, #dform_container .h5, #dform_container .header5, h6, .h6, .header6, #dform_container h6, #dform_container .h6, #dform_container .header6, .heading, #dform_container .heading {
        margin-bottom: 0.2rem;
    }

    #dform_container div[data-type="header"] {
        display: none;
    }
}

@media only screen and (max-height: 375px) {
    #dform_page_map_page > div {
        height: 350px;
    }
}

@media only screen and (max-height: 320px) {
    #dform_page_map_page > div {
        height: 230px;
    }
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
