.ol-red-gis-control{
    position: absolute;
    top: 0;
    left: 0;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: start;
    z-index: 9000;
}

.ol-red-gis-control.ol-red-gis-control-right{
    left: initial;
    right: 0;
    align-items: end;
}

.ol-red-gis-control a .fa{
    font-size: 15px;
    line-height: 30px;
    display: block;
    width: 100%;
    height: 100%;
}

.ol-red-gis-control a.active,
.ol-red-gis-control a.active:hover{
    border-color: var(--bs-primary);
    background-color: var(--bs-primary);
    color: var(--bs-primary-fg);
}

.ol-red-gis-control.ol-red-gis-control-top-right{
    left: initial;
    right: 0
}

.ol-red-gis-control-container{
    margin: 5px;
    border-radius: 3px;
    box-shadow: 0px 0px 5px -1px rgba(0,0,0,0.75);
    overflow: hidden;
    width: fit-content
}

.ol-red-gis-control-container > a{
    width: 38px;
    height: 38px;
    display: block;
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-gray-400);
    font-size: 20px;
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
    color: var(--bs-gray-800);
    cursor: pointer;
    padding: 3px;
    line-height: 30px;
    text-align: center;
}

.ol-red-gis-control-container > a:hover{
    background-color: var(--bs-gray-200);
}

.ol-red-gis-control-rotate-icon{
    width: 30px;
    height: 30px;
    display: block;
    transform-origin: center center;
    background-position: center center;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E");
}

[data-bs-theme=dark] .ol-red-gis-control-rotate-icon{
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E");
}

.ol-red-gis-control-layer-icon{
    width: 30px;
    height: 30px;
    display: block;
    transform-origin: center center;
    background-position: center center;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m0 0h24v24h-24z' fill='%23333' opacity='0' transform='matrix(-1 0 0 -1 24 24)'/%3E%3Cg fill='%23231f20'%3E%3Cpath d='m3.24 7.29 8.52 4.63a.51.51 0 0 0 .48 0l8.52-4.63a.44.44 0 0 0 -.05-.81l-8.52-3.48a.5.5 0 0 0 -.38 0l-8.52 3.48a.44.44 0 0 0 -.05.81z'/%3E%3Cpath d='m20.71 10.66-1.83-.78-6.64 3.61a.51.51 0 0 1 -.48 0l-6.64-3.61-1.83.78a.48.48 0 0 0 0 .85l8.52 4.9a.46.46 0 0 0 .48 0l8.52-4.9a.48.48 0 0 0 -.1-.85z'/%3E%3Cpath d='m20.71 15.1-1.56-.68-6.91 3.76a.51.51 0 0 1 -.48 0l-6.91-3.76-1.56.68a.49.49 0 0 0 0 .87l8.52 5a.51.51 0 0 0 .48 0l8.52-5a.49.49 0 0 0 -.1-.87z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 20px;
    background-repeat: no-repeat;
}

[data-bs-theme=dark] .ol-red-gis-control-layer-icon{
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m0 0h24v24h-24z' fill='%23fff' opacity='0' transform='matrix(-1 0 0 -1 24 24)'/%3E%3Cg fill='%23fff'%3E%3Cpath d='m3.24 7.29 8.52 4.63a.51.51 0 0 0 .48 0l8.52-4.63a.44.44 0 0 0 -.05-.81l-8.52-3.48a.5.5 0 0 0 -.38 0l-8.52 3.48a.44.44 0 0 0 -.05.81z'/%3E%3Cpath d='m20.71 10.66-1.83-.78-6.64 3.61a.51.51 0 0 1 -.48 0l-6.64-3.61-1.83.78a.48.48 0 0 0 0 .85l8.52 4.9a.46.46 0 0 0 .48 0l8.52-4.9a.48.48 0 0 0 -.1-.85z'/%3E%3Cpath d='m20.71 15.1-1.56-.68-6.91 3.76a.51.51 0 0 1 -.48 0l-6.91-3.76-1.56.68a.49.49 0 0 0 0 .87l8.52 5a.51.51 0 0 0 .48 0l8.52-5a.49.49 0 0 0 -.1-.87z'/%3E%3C/g%3E%3C/svg%3E");
}

.ol-red-gis-layer-dropdown{
    margin: 10px;
    border-radius: 3px;
    box-shadow: 0px 0px 5px -1px rgba(0,0,0,0.75);
    border-radius: 3px;
    overflow: hidden;
    width: 250px;
    background-color: var(--bs-body-bg);
    padding: 10px;
    display: none;
    list-style: none;
    font-size: 14px;
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
}

.ol-red-gis-layer-dropdown li{
    cursor: pointer;
    line-height: 35px;
    padding: 0 10px 0 30px;
}

.ol-red-gis-layer-dropdown .active{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29' style='enable-background:new 0 0 29 29' xml:space='preserve'%3E%3Cpath d='M24.3 4.4c.5-.3 1-.4 1.5-.3.5.1 1 .4 1.3.8.4.5.5 1.2.2 1.9-.3.6-.8 1-1.3 1.4-2.4 1.8-4.6 3.9-6.5 6.2-2.3 2.7-4.4 5.6-6.3 8.6-.4.6-.7 1.2-1.2 1.6-.6.4-1.3.6-2 .4-.6-.2-1.1-.7-1.4-1.2-1-1.5-2.2-2.9-3.4-4.2-.8-.9-1.6-1.7-2.4-2.5l-.6-.6c-.4-.5-.6-1.1-.5-1.7.1-.8.6-1.5 1.3-1.8.4-.2.9-.3 1.4-.2.6.1 1 .4 1.5.7 1.4 1.3 2.9 2.7 4.4 4 0 0 .1 0 .1.1 1.4-1.6 2.9-3.2 4.5-4.7 1.7-1.7 3.4-3.4 5.3-4.9 1.1-1.6 2.5-2.7 4.1-3.6z'/%3E%3C/svg%3E");
    background-size: 15px;
    background-position: center left 3px;
    background-repeat: no-repeat;
}

[data-bs-theme=dark] .ol-red-gis-layer-dropdown .active{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29' fill='%23fff' style='enable-background:new 0 0 29 29' xml:space='preserve'%3E%3Cpath d='M24.3 4.4c.5-.3 1-.4 1.5-.3.5.1 1 .4 1.3.8.4.5.5 1.2.2 1.9-.3.6-.8 1-1.3 1.4-2.4 1.8-4.6 3.9-6.5 6.2-2.3 2.7-4.4 5.6-6.3 8.6-.4.6-.7 1.2-1.2 1.6-.6.4-1.3.6-2 .4-.6-.2-1.1-.7-1.4-1.2-1-1.5-2.2-2.9-3.4-4.2-.8-.9-1.6-1.7-2.4-2.5l-.6-.6c-.4-.5-.6-1.1-.5-1.7.1-.8.6-1.5 1.3-1.8.4-.2.9-.3 1.4-.2.6.1 1 .4 1.5.7 1.4 1.3 2.9 2.7 4.4 4 0 0 .1 0 .1.1 1.4-1.6 2.9-3.2 4.5-4.7 1.7-1.7 3.4-3.4 5.3-4.9 1.1-1.6 2.5-2.7 4.1-3.6z'/%3E%3C/svg%3E");
}

.ol-red-gis-measure-icon{
    width: 30px;
    height: 30px;
    display: block;
    transform-origin: center center;
    background-position: center center;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 640 512' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M0 336c0 26.5 21.5 48 48 48l544 0c26.5 0 48-21.5 48-48l0-160c0-26.5-21.5-48-48-48l-64 0 0 80c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-80-64 0 0 80c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-80-64 0 0 80c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-80-64 0 0 80c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-80-64 0 0 80c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-80-64 0c-26.5 0-48 21.5-48 48L0 336z' fill='%23333'/%3E%3C/svg%3E");
    background-size: 20px;
    background-repeat: no-repeat;
}

[data-bs-theme=dark] .ol-red-gis-measure-icon{
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 640 512' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M0 336c0 26.5 21.5 48 48 48l544 0c26.5 0 48-21.5 48-48l0-160c0-26.5-21.5-48-48-48l-64 0 0 80c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-80-64 0 0 80c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-80-64 0 0 80c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-80-64 0 0 80c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-80-64 0 0 80c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-80-64 0c-26.5 0-48 21.5-48 48L0 336z' fill='%23fff'/%3E%3C/svg%3E");
}

.ol-red-gis-measure-line-icon{
    width: 30px;
    height: 30px;
    display: block;
    transform-origin: center center;
    background-position: center center;
    background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath fill="%23333" d="m13.5 3.5c-1.4 0-2.5 1.1-2.5 2.5 0 .3 0 .6.2.9l-3.8 3.8c-.3-.1-.6-.2-.9-.2-1.4 0-2.5 1.1-2.5 2.5s1.1 2.5 2.5 2.5 2.5-1.1 2.5-2.5c0-.3 0-.6-.2-.9l3.8-3.8c.3.1.6.2.9.2 1.4 0 2.5-1.1 2.5-2.5s-1.1-2.5-2.5-2.5z"/>%3C/svg>');
    background-repeat: no-repeat;
}

.active .ol-red-gis-measure-line-icon,
[data-bs-theme=dark] .ol-red-gis-measure-line-icon{
    background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath fill="%23fff" d="m13.5 3.5c-1.4 0-2.5 1.1-2.5 2.5 0 .3 0 .6.2.9l-3.8 3.8c-.3-.1-.6-.2-.9-.2-1.4 0-2.5 1.1-2.5 2.5s1.1 2.5 2.5 2.5 2.5-1.1 2.5-2.5c0-.3 0-.6-.2-.9l3.8-3.8c.3.1.6.2.9.2 1.4 0 2.5-1.1 2.5-2.5s-1.1-2.5-2.5-2.5z"/>%3C/svg>');
}

.ol-red-gis-measure-polygon-icon{
    width: 30px;
    height: 30px;
    display: block;
    transform-origin: center center;
    background-position: center center;
    background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath fill="%23333" d="m15 12.3v-4.6c.6-.3 1-1 1-1.7 0-1.1-.9-2-2-2-.7 0-1.4.4-1.7 1h-4.6c-.3-.6-1-1-1.7-1-1.1 0-2 .9-2 2 0 .7.4 1.4 1 1.7v4.6c-.6.3-1 1-1 1.7 0 1.1.9 2 2 2 .7 0 1.4-.4 1.7-1h4.6c.3.6 1 1 1.7 1 1.1 0 2-.9 2-2 0-.7-.4-1.4-1-1.7zm-8-.3v-4l1-1h4l1 1v4l-1 1h-4z"/>%3C/svg>');
    background-repeat: no-repeat;
}

.active .ol-red-gis-measure-polygon-icon,
[data-bs-theme=dark] .ol-red-gis-measure-polygon-icon{
    background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath fill="%23fff" d="m15 12.3v-4.6c.6-.3 1-1 1-1.7 0-1.1-.9-2-2-2-.7 0-1.4.4-1.7 1h-4.6c-.3-.6-1-1-1.7-1-1.1 0-2 .9-2 2 0 .7.4 1.4 1 1.7v4.6c-.6.3-1 1-1 1.7 0 1.1.9 2 2 2 .7 0 1.4-.4 1.7-1h4.6c.3.6 1 1 1.7 1 1.1 0 2-.9 2-2 0-.7-.4-1.4-1-1.7zm-8-.3v-4l1-1h4l1 1v4l-1 1h-4z"/>%3C/svg>');
}

.ol-red-gis-measure-group .ol-red-gis-measure-button, .ol-red-gis-measure-group.active a{
    display: none;
}

.ol-red-gis-measure-group.open .ol-red-gis-measure-button, .ol-red-gis-measure-group.active a.active{
    display: block;
}

.ol-red-gis-attribution{
    position: absolute;
    bottom: 0;
    background-color: var(--bs-body-bg);
    font-size: 12px;
    line-height: 18px;
    padding: 3px 7px;
    opacity: .75;
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
    border-top-right-radius: 3px;
}

.ol-red-gis-attribution svg{
    height: 14px;
    position: relative;
    top: -2px;
    margin-right: 2px;
}

.ol-red-gis-tooltip{
    position: relative;
    background: var(--bs-primary);
    border-radius: 4px;
    color: var(--bs-primary-fg);
    padding: 4px 8px;
    opacity: 0.7;
    white-space: nowrap;
    font-size: 12px;
    cursor: default;
    user-select: none;
}
.ol-red-gis-tooltip-measure{
    opacity: 1;
    font-weight: bold;
}

.ol-red-gis-tooltip-arrow:before{
    border-top: 6px solid var(--bs-primary);
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    content: '';
    position: absolute;
    bottom: -6px;
    margin-left: -7px;
    left: 50%;
}