/*
=====================================================================================
    map-style css
=====================================================================================
	
	Version History:
	Name				Date		Changes
	------------------	----------	-------------------------------------------------
	map-style-03.css	Mar 2025	Collated code from Alloy map forms
									-- tbc
									
	------------------	----------	-------------------------------------------------
	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);
    /*height: calc(100% - 160px);*/
    /*margin-bottom: 10px;*/
    /*position: relative;*/
}

#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 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.4rem;
	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: 1.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: 15px;
}

.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: 1.0rem;
    font-weight: 600;
    height: 100%;
    padding: 0.625rem 1rem;
    color: var(--color-white);
    text-decoration: none;
    text-transform: none;
    background-image: none;
    margin: 0.75rem;
    min-width: 200px;
}

#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;
    }
}

@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: 560px){
    #dform_page_map_page > div {
        height: 480px;
    }
}

@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);
    }
}