/*Global Ol Style Map*/
#map,#map-canvas{
    direction: ltr !important;
}
@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.spinner:after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border-radius: 50%;
    border: 5px solid rgba(180, 180, 180, 0.6);
    border-top-color: rgba(0, 0, 0, 0.6);
    animation: spinner 0.6s linear infinite;
}

.ol-control button{
    width: 2em !important;
    height: 2em !important;
}

.clear-tool-icon {
    top: 100px;
    left: .5em;
}
.polygon-tool-icon{
    top: 130px;
    left: .5em;
}
.polygon-tool-icon.active > button {
    background: #ffd82f;
}
.ol-touch .rotate-north {
    top: 80px;
}
.map:-webkit-full-screen {
    height: 100%;
    margin: 0;
}
.map:fullscreen {
    height: 100%;
}
/* position the rotate control lower than usual */
.map .ol-rotate {
    top: 3em;
}
#layer-switch{
    box-shadow: 0px 0px 3px #00000030;
}
#layer-switch label.active {
    color: #fff;
    background-color: #8ca4db;
    border-color: #cacaca;
}
#layer-switch label {
    color: #000;
    background-color: #fcfcfcde;
    border-color: #ffffff;
    padding: 5px 8px;
    line-height: 2;
    font-size: 12px;
}
/*Global Style OL Map END */



/*Style OLD MAP - POPUP Set Location Store START */
.ol-popup{
    position: absolute;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    bottom: 12px;
    /*left: -50px;*/
    left: -35px;
    min-width: 280px;
    z-index: 1000;
}
.ol-popup:after, .ol-popup:before{
    /*top: 100%;*/
    top: calc(100% + -20px);
    border: solid transparent;
    content: '';
    height: 40px;
    width: 40px;
    position: absolute;
    pointer-events: none;

    background: url('/public/assets/admin/img/location.png') top center no-repeat;
    background-size: contain;
}
/* .ol-popup:after{
     border-top-color: white;
     border-width: 10px;
     left: 48px;
     margin-left: -10px;
 }
 .ol-popup:before{
     border-top-color: #cccccc;
     border-width: 11px;
     left: 48px;
     margin-left: -11px;
 }*/
.ol-popup-closer{
    text-decoration: none;
    position: absolute;
    top: 2px;
    right: 8px;
}
.ol-popup-closer:after{
    content: "X";
}
.map-popup-content{
    font-size: 12px;
    font-weight: 500;
}

.suggestions-dropdown{
    position: absolute;
    z-index: 1000;
    background: white;
    border: 1px solid #ccc;
    width: calc(100% - 2px);
    max-height: 200px;
    overflow-y: auto;
    display: none;
}
.suggestions-dropdown div {
    padding: 8px;
    cursor: pointer;
}
.suggestions-dropdown div:hover {
    background: #f0f0f0;
}


.pointer-ol-popup {
    position: absolute;
    background: #fff;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    font-size: 12px;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px;
    bottom: 10px;
    transform: translate(-50%, 10%);
    z-index: 1000;
}

/* مثلث کوچک زیر باکس */
.pointer-ol-popup::after {
  content: "";
  position: absolute;
  bottom: -8px;       /* ۸px پایین‌تر از بطن باکس */
  left: 50%;          /* وسطِ باکس */
  transform: translateX(-50%);
  border-width: 8px 6px 0 6px;  /* بالا:8px، چپ/راست:6px */
  border-style: solid;
  border-color: #fff transparent transparent transparent; /* رنگ بالا سفید، بقیه شفاف */
}
/*Style OLD MAP - POPUP Set Location Store END */


.ribbon{
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
}
.daterangepicker .ranges .range_inputs {
    display: flex;
    gap: 6px; /* فاصله بین دکمه‌ها */
}

.daterangepicker .ranges .range_inputs button {
    width: auto; /* یا اگر لازم بود مقدار مشخص */
    margin-bottom: 0;
}



@media screen and (min-width: 1650px){
    .map-warper {
        height: 400px !important;
    }
}
#map-canvas > div > div:nth-child(4),#map > div > div:nth-child(4){
    display: none !important;
}


#pac-input {
    display:none;
}
#location_map_canvas #pac-input,
    #map-canvas #pac-input {
        height: 40px;
        border: 1px solid #fbc1c1;
        outline: none;
        box-shadow: none;
        top: 7px !important;
        transform: translateX(7px);
        padding-inline-start: 10px;
    }

    @media (min-width: 576px) {
        #location_map_canvas #pac-input,
        #map-canvas #pac-input {
            width: 200px;
        }
    }
    #location_map_canvas .gmnoprint,
    #map-canvas .gmnoprint {
        transform: translateY(10px) !important;
    }

    #location_map_canvas .gmnoprint ~ div,
    #map-canvas .gmnoprint ~ div {
        transform: translateY(10px) !important;
    }

    #map #pac-input {
        height: 40px;
        border: 1px solid #fbc1c1;
        outline: none;
        box-shadow: none;
        top: 7px !important;
        transform: translateX(7px);
        padding-inline-start: 10px;
    }

    @media (min-width: 576px) {
        #map #pac-input {
            width: 200px;
        }
    }


    /* شروع استایل اینپوت شماره موبایل و تلفن با پرچم کشور */
    [dir=rtl] .iti--allow-dropdown input.iti__tel-input, [dir=rtl] .iti--allow-dropdown input.iti__tel-input[type=text], [dir=rtl] .iti--allow-dropdown input.iti__tel-input[type=tel], [dir=rtl] .iti--show-selected-dial-code input.iti__tel-input, [dir=rtl] .iti--show-selected-dial-code input.iti__tel-input[type=text], [dir=rtl] .iti--show-selected-dial-code input.iti__tel-input[type=tel]{
        padding-right: 6px;
        padding-left: 52px;
        margin-left: 0;
    }

    [dir=rtl] .iti--allow-dropdown .iti__flag-container, [dir=rtl] .iti--show-selected-dial-code .iti__flag-container{
        right: auto;
        left: 0;
    }

    [dir=rtl] .iti__arrow {
        margin-right: 6px;
        margin-left: 0;
    }
    .iti {
        direction: ltr;
        z-index: 5;
    }
    [dir=rtl] .iti__arrow {
        margin-right: 0;
        margin-left: 6px;
    }
    /* پایان استایل اینپوت شماره موبایل و تلفن با پرچم کشور */

    [dir="rtl"] .custom-select:not(.ltr) {
        background-position: right .5rem center;
    }

    @media screen and (min-width: 768px) {
        .__nav-module-items {
            -moz-column-gap: 25px;
            column-gap: 8px;
            row-gap: 19px;
            padding: 6px;
        }
        .__nav-module-items .__nav-module-item {
            width: calc(33.333333% - 7.666667px);
        }
    }