html, body {
    height: 100%;
    background-color: #f8f8f8;
}

#map {
    width: 100%;
    height: 550px;
    background-color: transparent;
}

leaflet-editing-icon {

}

.border {
    border: 1px solid #ccc;
    border-radius: 4px;
}

div.margin {
    margin-bottom: 5px;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-xs-1, .col-xs-10, .col-xs-11, .col-xs-12, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9 {
    padding: 5px;
}

.container-fluid {
    padding-right: 0;
    padding-left: 0;
}

span.h1,
span.h2,
span.h3,
span.h4 {
    padding-top: 5px;
}

/* Start by setting display:none to make this hidden.
   Then we position it in relation to the viewport window
   with position:fixed. Width, height, top and left speak
   for themselves. Background we set to 80% white with
   our animation centered, and no-repeating */
.divLoading {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, .8) 50% 50% no-repeat;
}

.divLoading .divLoadingIcon {
    position: absolute;
    top: 50%;
    left: 50%;
}

/* When the body has the loading class, we turn
   the scrollbar off with overflow:hidden */
body.loading {
    overflow: hidden;
}

/* Anytime the body has the loading class, our
   modal element will be visible */
body.loading .divLoading {
    display: block;
}


#controlbox {
    position: absolute;
    left: 0;
    margin: 16px;
    top: 0;
    transition: left .5s;
    -webkit-transform: translateX(0);
    transform: translateX(0);
    transition-property: -webkit-transform, transform, visibility, opacity;
    transition-duration: .2s;
    transition-timing-function: cubic-bezier(0, 0, .2, 1);
}

.searchbox {
    padding: 11px 10px 11px;
}

.searchbox-shadow {
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 -1px 0 rgba(0, 0, 0, .02);
}

.searchbox {
    position: relative;
    background: #fff;
    border-radius: 2px;
    box-sizing: border-box;
    width: 360px;
    height: 48px;
    border-bottom: 1px solid transparent;
    padding: 12px 70px 11px;
    transition-property: background, box-shadow;
    transition-duration: .3s;
}

/* TypeAhead - Searchbox  */
.typeahead__container {
    font: inherit;
}

.searchbox {
    padding: 11px 10px 11px;
}

.searchbox .typeahead__field {
    width: 340px;
}

.searchbox .typeahead__field input {
    border: none;
}

.searchbox .typeahead__container button {
    border: none;
}

.searchbox .typeahead__result {
    padding-top: 8px;
}

.searchbox .typeahead__list {
    padding-top: 0;
}

/* Leaflet Controls (Layout angleichen; keine runde Ecken etc.)*/
.leaflet-control-measure {
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0;
}

.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0;
}

.leaflet-popup-content-wrapper {
    border-radius: 0;
}

/*Standard-Cursor für Leaflet (ansonsten immer drag)*/
.leaflet-grab {
    cursor: auto;
}

.leaflet-control-layers-group-name {
    font-weight: bold;
}

.leaflet-control-layers-group input[type=checkbox] {
    margin-left: 20px;
}

.leaflet-control-layers-group-selector {
    margin-left: 3px !important;
    font-weight: bold !important;
}

.leaflet-control-layers-base label {
    display: block;
}

.leaflet-control-layers-header {
    height: 30px;
    border-bottom: 1px solid darkgrey;
    margin-right: -10px;
}

.dojoxFloatingPaneTitle {
    font-size: 14px;
    padding: 2px 4px 4px 6px !important;
    border-bottom: none !important;
    background-color: #eee;
    color: #666;
}

.dojoxFloatingCloseIcon {
    cursor: pointer;
    background: url(../img/buttons/Button_Delete_Square_black.png) no-repeat scroll 0 0 transparent;
    width: 16px;
    height: 16px;
    overflow: hidden;
    float: right;
    margin: 3px 0 0 0;
}

.leaflet-overlay-pane svg {
    z-index: 1000000 !important; /*z.B. Highlighting soll immer über allen Layern liegen*/
}

#divTextBox0 > .col-lg-12,
#divTextBox1 > .col-lg-12,
#divTextBox2 > .col-lg-12 {
    padding: 1px 5px 5px 5px;
}


/*Control Icons*/
/*Selection*/
.circle-select {
    background: url(../img/control_icons/Tools_CircleSelect.png);
    display: inline-block;
    background-size: cover;
    height: 100%;
    width: 100%;
    filter: grayscale(100%);
}

.rectangle-select {
    background: url(../img/control_icons/Tools_RectangleSelect.png);
    display: inline-block;
    background-size: cover;
    height: 100%;
    width: 100%;
    filter: grayscale(100%);
}

.polygon-select {
    background: url(../img/control_icons/Tools_PolygonSelect.png);
    display: inline-block;
    background-size: cover;
    height: 100%;
    width: 100%;
    filter: grayscale(100%);
}

.multipoint-select {
    background: url(../img/control_icons/Tools_MultiSelect.png);
    display: inline-block;
    background-size: cover;
    height: 100%;
    width: 100%;
    filter: grayscale(100%);
}

.point-select {
    background: url(../img/control_icons/Tools_Select.png);
    display: inline-block;
    background-size: cover;
    height: 100%;
    width: 100%;
    filter: grayscale(100%);
}

.clear-select {
    background: url(../img/control_icons/Tools_ClearSelect.png);
    display: inline-block;
    background-size: cover;
    height: 100%;
    width: 100%;
    filter: grayscale(100%);
}

/*active state of the buttons*/
.active-active {
    background-color: #d3d3d3 !important;
}

.draw-text {
    background: url(../templates/img/ribbon/btn_rl_text.svg);
    display: inline-block;
    background-size: cover;
    height: 20px;
    width: 20px;
    filter: grayscale(100%);
}

.draw-symbol {
    background: url(../templates/img/ribbon/btn_rl_point.svg);
    display: inline-block;
    background-size: cover;
    height: 20px;
    width: 20px;
    filter: grayscale(100%);
}

.draw-line {
    background: url(../templates/img/ribbon/btn_rl_line.svg);
    display: inline-block;
    background-size: cover;
    height: 20px;
    width: 20px;
    filter: grayscale(100%);
}

.draw-polygon {
    background: url(../templates/img/ribbon/btn_rl_area.svg);
    display: inline-block;
    background-size: cover;
    height: 20px;
    width: 20px;
    filter: grayscale(100%);
}

.draw-circle {
    background: url(../templates/img/ribbon/btn_rl_circle.svg);
    display: inline-block;
    background-size: cover;
    height: 20px;
    width: 20px;
    filter: grayscale(100%);
}

.drag {
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+DQogIDxkZWZzPg0KICAgIDxwYXRoIGlkPSJtb3ZlLWEiIGQ9Ik0yMSwxNCBMMjEsMTAgTDI3LDE1IEwyMSwyMCBMMjEsMTYgTDE2LDE2IEwxNiwyMSBMMjAsMjEgTDE1LDI3IEwxMCwyMSBMMTQsMjEgTDE0LDE2IEw5LDE2IEw5LDIwIEwzLDE1IEw5LDEwIEw5LDE0IEwxNCwxNCBMMTQsOSBMMTAsOSBMMTUsMyBMMjAsOSBMMTYsOSBMMTYsMTQgTDIxLDE0IFoiLz4NCiAgPC9kZWZzPg0KICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0zIC0zKSI+DQogICAgPG1hc2sgaWQ9Im1vdmUtYiIgZmlsbD0iI2ZmZiI+DQogICAgICA8dXNlIHhsaW5rOmhyZWY9IiNtb3ZlLWEiLz4NCiAgICA8L21hc2s+DQogICAgPHVzZSBmaWxsPSIjRDhEOEQ4IiB4bGluazpocmVmPSIjbW92ZS1hIi8+DQogICAgPGcgZmlsbD0iIzVCNUI1QiIgbWFzaz0idXJsKCNtb3ZlLWIpIj4NCiAgICAgIDxyZWN0IHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIvPg0KICAgIDwvZz4NCiAgPC9nPg0KPC9zdmc+DQo=);
    display: inline-block;
    background-size: cover;
    height: 100%;
    width: 100%;
    filter: grayscale(100%);
}

.edit {
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+DQogIDxkZWZzPg0KICAgIDxwYXRoIGlkPSJlZGl0X2FuY2hvci1hIiBkPSJNMTMuNSwxMSBDMTEuNTY3MDAzNCwxMSAxMCw5LjQzMjk5NjYyIDEwLDcuNSBDMTAsNS41NjcwMDMzOCAxMS41NjcwMDM0LDQgMTMuNSw0IEMxNS40MzI5OTY2LDQgMTcsNS41NjcwMDMzOCAxNyw3LjUgQzE3LDkuNDMyOTk2NjIgMTUuNDMyOTk2NiwxMSAxMy41LDExIFogTTEzLjUsOSBDMTQuMzI4NDI3MSw5IDE1LDguMzI4NDI3MTIgMTUsNy41IEMxNSw2LjY3MTU3Mjg4IDE0LjMyODQyNzEsNiAxMy41LDYgQzEyLjY3MTU3MjksNiAxMiw2LjY3MTU3Mjg4IDEyLDcuNSBDMTIsOC4zMjg0MjcxMiAxMi42NzE1NzI5LDkgMTMuNSw5IFogTTEyLjAwMDI4ODksNy41Mjk3Mzg5MyBDMTIuMDEyNTk4Myw4LjE2MjczNjcyIDEyLjQxNzAxOTcsOC42OTk2NjQzIDEyLjk4MDcxMTEsOC45MDc2Nzk2NiBMMywxNSBMMywxMyBMMTIuMDAwMjg4OSw3LjUyOTczODkzIFogTTE0LjIxNzI3MjIsNi4xODIyODQ3MiBMMTkuNDUzMTI1LDMgTDIyLjY1ODkzNTUsMyBMMTQuOTg5MTAyLDcuNjgxNzM4ODUgQzE0Ljk5NjI5NzEsNy42MjIxNjQ1OSAxNSw3LjU2MTUxNDcyIDE1LDcuNSBDMTUsNi45MzEzODM4MSAxNC42ODM2MDk4LDY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QjVCNUIiIG1hc2s9InVybCgjZWRpdF9hbmNob3ItYikiPg0KICAgICAgPHJlY3Qgd2lkdGg9IjMwIiBoZWlnaHQ9IjMwIi8+DQogICAgPC9nPg0KICA8L2c+DQo8L3N2Zz4NCg==);
    display: inline-block;
    background-size: cover;
    height: 100%;
    width: 100%;
    filter: grayscale(100%);
}

/*Redlining/Drawing*/

/*EasyButton, EasyBar */
.leaflet-bar button {
    padding: 4px 4px 4px 4px;
}

.leaflet-bar button:first-of-type{
    border-radius: 0px;
}

.leaflet-layerstree-header-name {
    margin-left: 4px;
}

.leaflet-layerstree-header-label {
    margin-bottom: 0;
    font-weight: normal;
}

.leaflet-layerstree-node .leaflet-layerstree-children {
    padding-left: 30px;
}

/*Kosmetischer Layer*/
.agis-text-label {
    background-color: transparent;
    border: none;
    box-shadow: none;
    z-index: 1 !important;
}

.agis-text-label:before {
    content: none;
}

.agis-measure-label {
    width: max-content;
    height: max-content;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1 !important;
}

.agis-inline-label {
    width: max-content;
    height: max-content;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1 !important;
    line-height: initial;
}

.leaflet-cosmetic-pane svg {
    z-index: 0;
}

.leaflet-cosmetic-pane img {
    z-index: 2 !important;;
}

/* white text and icons but input still black for navbar with primary background blue */
#nav.bg-primary *:not(input, .navbar-toggler) {
    color: white !important; /* important or set visited etc. too */
}

/* span direct after fa-icon with space left */
#nav i.fa + span {
    margin-left: 0.25rem;
}

/* fa-icon direct after span with space left */
#nav span + i.fa {
    margin-left: 0.25rem;
}

div#inlinewrapper {
    background: #FFF;
    top: 282px;
    padding: 15px;
    border: none;
    position: absolute !important;
    box-shadow: 0 2px 5px #ddd;
    width: 300px;
    z-index: 10000;
    margin-left: 45px;
}

.giveme_focus {
    display: block;
    width: 20px;
    height: 20px;
    background: url(../img/buttons/tick.svg) center center no-repeat #F00;
    position: relative;
    bottom: 21px;
    left: 241px;
    cursor: pointer;
}

.editbox-container {
    margin-left: 6px !important;
    margin-bottom: 3px !important;
}

.editbox-container .typeahead__query .typeahead__hint {
    color: transparent !important;
}

.editbox-container .typeahead__cancel-button {
    padding: 5px !important;
}

.editbox-container .typeahead__result .typeahead__list .typeahead__item > a {
    padding: 3px !important;
}

.editbox-container .typeahead__field input {
    min-height: 0;
}

.editbox-container input[type="search"]::-webkit-search-decoration,
.editbox-container input[type="search"]::-webkit-search-cancel-button,
.editbox-container input[type="search"]::-webkit-search-results-button,
.editbox-container input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

.editbox-container .typeahead__result .typeahead__list {
    min-width: 132px;
    padding: 5px 0;
    margin: 22px 0 0;
}

.link {
    color: #0078D7;
    text-decoration: underline; /*ggf. none. aktuell ist aber der bootstrap default für a mit href underline*/
    cursor: pointer;
}

.link:hover {
    color: #23527c;
    text-decoration: underline; /*ggf. none. aktuell ist aber der bootstrap default für a mit href underline*/
    cursor: pointer;
}

.leaflet-mouse-marker {
    cursor: unset;
}

/*Flag removed*/
.leaflet-control-attribution svg {
    display: none !important;
}

/*remove focus border around map on load (since leaflet 1.8.0)*/
#map:focus-visible{
    outline-width: 0;
}

.rangedate-container-link-ej2 {
    border: 1px solid #696969;
    height: 28px;
    width: 202px;
    margin-left: 7px;
}

/*CSS for pencil icon for cosmetic and edit type layer*/
.imgbtn {
    float: right;
}

.btn_color_pencil {
    display: block;
    width: 14px;
    height: 14px;
    background: url(../templates/img/ribbon/btn_pencil.svg) center center no-repeat;
    position: relative;
    cursor: pointer;
    background-size: 100%;
    margin: 0 5px;
}

.btn_color_pencil_active {
    display: block;
    width: 14px;
    height: 14px;
    background: url(../templates/img/ribbon/btn_pencil_active.svg) center center no-repeat;
    position: relative;
    cursor: pointer;
    background-size: 100%;
    margin: 0 5px;
}

.radiopencilbtn {
    position: absolute;
    opacity: 0;
    width: 0 !important;
    height: 0 !important;
}

.radiopencilbtn [type=radio] + i {
    cursor: pointer;
}

@media (max-width: 576px) {
    /*input.input-date-search {*/
    /*    width: 170px !important;*/
    /*}*/

    /*.rangedate-container {*/
    /*    width: 168px !important;*/
    /*}*/

    .rangedate-container-link-ej2 {
        width: 168px !important;
    }

    /*.e-datewidget .e-widget {*/
    /*    width: 170px !important;*/
    /*}*/

    /*label.search-label {*/
    /*    margin-right: 21px !important;*/
    /*}*/

    /*label.search-labels {*/
    /*    margin-right: 63px !important;*/
    /*}*/
}
