@font-face {
    font-family: 'FontAwesome';
    src: url('../fonts/fontawesome-webfont.eot?v=4.3.0');
    src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.3.0') format('embedded-opentype'),
    url('../fonts/fontawesome-webfont.woff2?v=4.3.0') format('woff2'),
    url('../fonts/fontawesome-webfont.woff?v=4.3.0') format('woff'),
    url('../fonts/fontawesome-webfont.ttf?v=4.3.0') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face{
    font-family: 'Montserrat';
    src: url("../fonts/Montserrat-Regular.ttf");
    font-weight: normal;
    font-style: normal;
}@font-face{
    font-family: 'Montserrat';
    src: url("../fonts/Montserrat-Light.ttf");
    font-weight: 300;
    font-style: normal;
}@font-face{
    font-family: 'Montserrat';
    src: url("../fonts/Montserrat-Bold.ttf");
    font-weight: 700;
    font-style: normal;
}

:root{
    --uiBottomLength: 35px;
    --interactionFontSize: 14px;
    --interactionFont: "Lato", "Helvetica", Sans-serif;
    --highlightColor: #96B539;
    --interregBlue: #ECF5FB;
    --interregBlueBG: #DFE8EF;
}

/*----- LOADER -----*/
#ibsr_flowmap .leaflet-map{
    max-height: 80vh;
    max-width: 85vw;
    margin: 0 auto;
}
#ibsr_flowmap.ibsr_flowmap_fullscreen .leaflet-map{
    max-height: 100vh;
    max-width: 100vw;
    min-width: 100vw;
    overflow: hidden;
}

#ibsr_flowmap .leaflet-map .leaflet-bottom.leaflet-right{
    z-index: 999 !important;
}

/*----- LOADER -----*/
#ibsr_flowmap #preloader, #ibsr_flowmap #popup-preloader {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: #222327;
    transition: all .4s ease-in;
}
#ibsr_flowmap #popup-preloader{
    background-color: rgba(34, 35, 39, .7);
    border-radius: 6px;
}

#ibsr_flowmap.ibsr_flowmap_fullscreen #preloader{
    width: 100vw;
}
#ibsr_flowmap #loader,  #ibsr_flowmap #popup-loader{
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #284F85;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}
#ibsr_flowmap #loader:before, #ibsr_flowmap #popup-loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #377AB2;
    -webkit-animation: spin 3s linear infinite;
    animation: spin 3s linear infinite;
}
#ibsr_flowmap #loader:after, #ibsr_flowmap #popup-loader:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #96B539;
    -webkit-animation: spin 1.5s linear infinite;
    animation: spin 1.5s linear infinite;
}
@-webkit-keyframes spin {
    0%   {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes spin {
    0%   {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/*----- ERROR MESSAGE -----*/
#ibsr_flowmap #errorWrapper{
    max-width: 320px;
    padding: 25px;
    position: absolute;
    bottom: 150px;
    left: calc(50% - 125px);
    bottom: calc(50% - 75px);
    z-index: 1010;
    background-color: #e9ecef;
    border-radius: 12px;
        box-shadow: 0px -1px 16px rgba(0, 0, 0, .16);
}
#ibsr_flowmap #errorWrapper h2, #ibsr_flowmap #errorWrapper p{
    font-family: var(--interactionFont);
    color: #282828;
}
#ibsr_flowmap #errorWrapper h2{
    font-size: 26px;
    line-height: 32px;
}
#ibsr_flowmap #errorWrapper p{
    font-size: 14px;
    line-height: 21px;
}
#ibsr_flowmap #errorRefresh{
    text-decoration: underline;
    color: #44812f;
    cursor: pointer;
}

/*----- SETTINGS -----*/
#ibsr_flowmap .leaflet-top.leaflet-left{
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
}
#ibsr_flowmap .leaflet-control{
    margin-left: 10px !important;
}

#ibsr_flowmap .leaflet-bar{
    border: none !important;
}

#lightMode{
    width: var(--uiBottomLength) !important;
    height: var(--uiBottomLength) !important;
    margin: 5px 0 5px 10px !important;
    background-color: #fff;
    border-radius: 4px;
}
#lightMode:hover, #lightMode:focus,
#zoomHomeBtn:hover, #zoomHomeBtn:focus,
.leaflet-control-zoom-in:hover, .leaflet-control-zoom-in:focus,
.leaflet-control-zoom-out:hover, .leaflet-control-zoom-out:focus,
.leaflet-control-fullscreen-button:hover, .leaflet-control-fullscreen-button:focus{
    border-bottom: 2px solid #343a40 !important;
}
.leaflet-control-fullscreen-button{
    border-radius: 4px!important;
}

#ibsr_flowmap .legendContainer{
    background-color: #fff;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    padding: 5px 10px 5px 0;
    pointer-events: all;
}
#ibsr_flowmap .legendRow{
    padding: 2px 0;
    display: flex;
    align-items: center;
}
#ibsr_flowmap .svgWrapper{
    width: 30px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*----- UI WRAPPER -----*/
#ibsr_flowmap #uiWrapper{
    position: absolute;
    bottom: 5%;
    right: 5%;
    z-index: 1000;
    background-color: var(--interregBlueBG);
    /*background-color: rgba(233, 236, 239, .9);*/
    width: 270px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    max-height: 90%;
    border-radius: 8px;
}
#ibsr_flowmap .leaflet-fullscreen-on #uiWrapper{
    pointer-events: all;
    z-index: 2147483647 !important;
    right: 5% !important;
}
#ibsr_flowmap #select2-leadSelect-results, #ibsr_flowmap .select2-results{
    pointer-events: all;
}

#ibsr_flowmap #mobileInfoContainer{
    max-width: 85vw;
    margin: 0 auto;
    background-color: var(--interregBlueBG);
    border-radius: 0 0 8px 8px;
}

/*----- INFO WRAPPER -----*/
#ibsr_flowmap #infoWrapper{
    width: 100%;
    background-color: transparent;
    overflow-y: auto;
    box-shadow: 0px -1px 16px rgba(0, 0, 0, .16);
    border-radius: 12px 12px 0 0;
}
#ibsr_flowmap #infoWrapper h2, #ibsr_flowmap #infoWrapper p{
    position: relative;
    z-index: 1001;
}

@media(max-width: 850px){
    #ibsr_flowmap #infoWrapper{
        border-radius: 0 0 12px 12px;
    }
}
#ibsr_flowmap #infoWrapper>h2{
    font-size: 24px;
    font-family: var(--interactionFont);
    padding: 0;
    margin: 0;
    color: #282828;
}
#ibsr_flowmap #infoWrapper>p{
    margin: 0;
    font-family: var(--interactionFont);
    font-size: 12px;
    line-height: 18px;
    color: #282828;
}
.projectTable{
    border-collapse: collapse;
    width: 100%;
    border: none !important;
    margin-top: 8px !important;
}

.projectTable>tbody>tr>td{
    padding: 3px 0;
    margin: 0;
    border: none;
    border-top: 1px solid #eee;
    font-family: var(--interactionFont);
    font-size: 12px;
    line-height: 18px;
    color: #282828;

}
.projectTable>tbody>tr>td:first-of-type{
    padding-right:10px;
}.projectTable>tbody>tr>td:last-of-type{
     word-break: break-word;
}

#ibsr_flowmap .disabled{
     pointer-events: none;
 }

 /*Programme wrapper*/

.programmeSelectWrapper{
    padding: 6%;
    background-color: #F8F8F8;
    border-radius: 8px;
}
.programmeWrapper h2{
    color: var(--highlightColor);
    font-weight: 700;
    font-family: var(--interactionFont);
    font-size: 18px;
    padding: 8% 6%;
}
.programmeWrapper h3, .showNonLeadWrapper h2{
    font-size: 16px;
    font-family: var(--interactionFont);
    color: #284F85;
    font-weight: bold;
    padding: 0 0 8px 0;
}
.programmeWrapper h3:last-of-type{
    margin-top: 20px;
}
.checkContainer, .legendRow span{
    font-family: var(--interactionFont);
    font-size: 14px;
}


/*-----TOGGLE MENU BTN-----*/
#toggleMenuBtn{
    width: 50px;
    height: 35px;
    position: absolute;
    top: -25px;
    right: 20px;
    z-index: 1000;
    background-color: var(--interregBlueBG);
    border: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
}
#toggleMenuBtn::after{
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    border-radius: 1px;
    background-color: #6c757d;
    margin: 0 auto 7px;
    transition: all .2s ease-in;
}
#toggleMenuBtn:hover::after{
    background-color: #343a40;
    transform: translateY(2px);
}

#toggleMenuBtn.toggledDown{
    transition: all .3s ease-in;
    height: 50px;
    border-radius: 50%;
    top: -60px;
    box-shadow: 0px -1px 16px rgba(0, 0, 0, .16);
}
@media(max-width: 850px){
    #toggleMenuBtn.toggledDown{
        right: 5px;
    }
}

#toggleMenuBtn.toggledDown::after{
    width: 50%;
    height: 100%;
    background-color: transparent;
    font-family: FontAwesome;
    content:"\f1de";
    font-size: 2em;
    line-height: 1.8em;
}

#toggleMenuBtn.toggledDown:hover::after{
    transform: translateY(0px);
}

/*-----INSTRUCTIONS-----*/
#instructionList{
    list-style: none;
}
.instruction{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.instruction:first-of-type{
    margin: 8px 0 12px;
}
#ibsr_flowmap .number{
    width: 40px;
    height: 40px;
    border: 2px solid #343a40;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-family: var(--interactionFont);
    margin-bottom: 5px;
}
.instruction p{
    text-align: center;
    font-size: var(--interactionFontSize);
    font-family: var(--interactionFont);
    line-height: 21px;
}


/*----- INTERACTION WRAPPER -----*/
#interactionWrapper{
    padding: 6%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
}

/*----- FILTER -----*/
.filterWrapper{
    width: 90%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}
#ibsr_flowmap .filter{
    width: 47%;
    height: 45px;
    font-family: var(--interactionFont);
    margin-bottom: 4%;
    font-size: var(--interactionFontSize);
    cursor: pointer;
    color: #fff;
    opacity: 1;
    transition: all .15s ease-in;
    pointer-events: all;
    background-color: #fff;
    color: #282828;
    border: 3px solid;
}
:not(.wait).filter:hover, :not(.wait).filter:focus{
    color: #e9ecef;
}

#innovationBtn{
    border-color: #ec6801;
}
#naturalBtn{
    border-color: #44812f;
}
#transportBtn{
    border-color: #0679ac;
}
#seedMoneyBtn{
    border-color: #a4a999;
}

#innovationBtn.button-active, #innovationBtn:hover, #innovationBtn:focus {
    background-color: #ec6801;
}#naturalBtn.button-active, :not(.wait)#naturalBtn:hover, :not(.wait)#naturalBtn:focus {
    background-color: #44812f;
}#transportBtn.button-active, :not(.wait)#transportBtn:hover, :not(.wait)#transportBtn:focus {
    background-color: #0679ac;
}#seedMoneyBtn.button-active, :not(.wait)#seedMoneyBtn:hover, :not(.wait)#seedMoneyBtn:focus {
    background-color: #a4a999;
}

.wait:hover{
    cursor: wait;
    background-color: #bbb;
    color: #282828;
}

/* -- Zoom in & Zoom out -- */
#ibsr_flowmap .leaflet-control-container .leaflet-top .leaflet-control-zoom .leaflet-control-zoom-in, #ibsr_flowmap .leaflet-control-container .leaflet-top .leaflet-control-zoom .leaflet-control-zoom-out{
    width: var(--uiBottomLength);
    height: var(--uiBottomLength);
    font-family: "Lato", sans-serif;
    font-weight: bold;
    font-size: 25px;
    line-height: var(--uiBottomLength);
}

#ibsr_flowmap .leaflet-left .leaflet-control {
    margin-left: 10px;
}
#ibsr_flowmap .leaflet-top .leaflet-control {
    margin-top: 10px;
}
#ibsr_flowmap .leaflet-bar{
    box-shadow: none !important;
}
#ibsr_flowmap .leaflet-control-container .leaflet-top .leaflet-control-zoom .leaflet-control-zoom-in{
    border-radius: 4px 4px 0 0;
    box-shadow: 0px -1px 16px rgba(0, 0, 0, .16) !important;

}
#ibsr_flowmap .leaflet-control-container .leaflet-top .leaflet-control-zoom .leaflet-control-zoom-out{
    border-radius: 0 0 4px 4px;
}

/*----- LIGHT TOGGLE -----*/
#lightMode{
    display: block;
    width: var(--uiBottomLength);
    height: var(--uiBottomLength);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    pointer-events: all;
    background-color: #fff;
}




/*-----BOTTOM SETTINGS WRAPPER-----*/
#zoomClearWrapper{
    width: 90%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 4% 0;
    height: var(--uiBottomLength);
}
#leftWrapper{
    display: flex;
    flex-direction: row;
}
#lightMode{
    margin-left: 5px
}
/*-----CLEAR SELECTION BUTTON-----*/
#clearSelectionBtn{
    position: relative;
    height: var(--uiBottomLength);
    color: #282828;
    padding: 10px 20px 10px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--interactionFont);
}
#clearSelectionBtn::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 90%;
    border: 2px solid #343a40;
    border-right: none;
    transition: all .2s ease-in;
}
#clearSelectionBtn::after{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 90%;
    border: 2px solid #343a40;
    border-left: none;
    transition: all .2s ease-in;
}

#clearSelectionBtn.disabledClear{
    cursor: default;
}

#clearSelectionBtn:hover::before, #clearSelectionBtn:focus::before{
    width: 50%;
}
#clearSelectionBtn:hover::after, #clearSelectionBtn:focus::after{
    width: 50%;
}
#clearSelectionBtn.disabledClear:hover::before, #clearSelectionBtn:focus::before{
    width: 10px;
}
#clearSelectionBtn.disabledClear:hover::after, #clearSelectionBtn:focus::after{
    width: 10px;
}

.clearLight{
    color: #282828 !important;
    background-color: #343a40 !important;
}
.clearLight::before, .clearLight::after{
    border-color: #495057 !important;
    
}


/*-----ZOOM HOME BUTTON-----*/
#zoomHomeBtn{
    width: var(--uiBottomLength);
    height: var(--uiBottomLength);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    background-color: #fff;
    margin: 0 0 0 10px;
    border-radius: 4px;
}
#zoomHomeBtn .homeInnerSvg{
    fill: var(--highlightColor);
    transition: all .2s ease-in;
}
#homeSvg{
    width: 100%;
    height: 100%;
}




/*-----SELECT-----*/
.select2-container.select2-container--default{
    max-height: 45px !important;
}
.select2-results .select2-results__options{
    padding: 0;
}
.select2-results__option{
    height: 35px !important;
    line-height: 35px !important;
    display: flex;
    align-items: center;
    font-family: "Lato", sans-serif;
    font-size: 16px;
}

.select2-results__group{
    background-color:  #284F85;
    color: #F8F8F8;
    height: 35px !important;
    display: flex !important;
    width: 100% !important;
    align-items: center;
}
.select2-results__option--highlighted[aria-selected]{background-color:#377AB2 !important;color:white}

#select2-prioritySelect_2014-2020-container, #select2-leadSelect_2014-2020-container, #select2-prioritySelect_2021-2027-container, #select2-leadSelect_2021-2027-container{
    display: flex;
    align-items: center;
    height: 45px;
    background-color: var(--interregBlue);
    border: none;
    color: #4B4B4A;
    font-size: 16px;
    font-weight: normal;
    border-bottom: 1px solid #cccccc;
}
.select2-selection__placeholder{
    color: #4B4B4A !important;
    font-weight: normal;
    font-size: 16px !important;
}

.select2-selection--single{
    height: 45px !important;
    border: none !important;
    border-radius: 0 !important;
}
.select2-selection__arrow{
    height: 100% !important;
}

.select2-search__field{
    height: 45px !important;
    line-height: 15px !important;
    border: 3px solid #96B539 !important;
    font-family: var(--interactionFont) !important;
    font-size: 16px !important;
}
.resetLeadFilter{
    background-color: transparent;
    border: none;
    font-family: var(--interactionFont);
    color: #284F85;
    font-size: 16px;
    cursor: pointer;
}
.resetLeadFilter::after{
    display: block;
    content: '';
    width: 0;
    height: 2px;
    background-color: #284F85;
    transition: all .2s ease-in;
}
.resetLeadFilter:hover::after{
    display: block;
    width: 100%;
}

.leadSelect, .prioritySelect{
    box-sizing: border-box;
    cursor: pointer;
    width: 100%;
    height: 45px;
    background-color: var(--interregBlue) !important;
    transition: all .2s ease-in;
    border: none;
    font-family: var(--interactionFont);
    font-size: var(--interactionFontSize);
    padding: 0 10px !important;
    margin: 5% 0;
}
.leadSelect{
    margin: 5% 0 0;
}
.leadSelect option, .prioritySelect option{
    font-size: var(--interactionFontSize);
    line-height: 21px !important;
}
.leadSelect:hover, .leadSelect:focus ,.prioritySelect:hover, .prioritySelect:focus{
    background-color: var(--interregBlueBG) !important;
}
.leadSelect:hover option, .leadSelect:focus option, .prioritySelect:hover option, .prioritySelect:focus option{
    background-color: #fff !important;
    color: #284F85 !important;
}

.selectWait{
    cursor: wait!important;
}

/*-----NON-LEAD CHECKBOX-----*/
#showNonLeadWrapper{
    width: 100%;
    margin-top: 4%;
}
#showNonLeads{
    cursor: pointer;
}
#showNonLeadWrapper label{
    font-family: var(--interactionFont);
    font-size: var(--interactionFontSize);
    cursor: pointer;
}

.checkContainer{
    height: 25px;
    line-height: 25px;
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin-top: 5%;
}

.checkContainer input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 1em;
    width: 1em;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #fff;
    border: 2px solid #9FB2C2;
    box-sizing: border-box;
    transition: all .2s ease-in;
}

.checkContainer:hover input ~ .checkmark, .checkContainer input:focus ~ .checkmark {
    border-color: #343a40 !important;
}
.checkContainer:hover input ~ .checkmark::after, .checkContainer input:focus ~ .checkmark::after {
    border-color: #F8F8F8;
}

.checkContainer input:checked ~ .checkmark {
    background-color: var(--highlightColor);
}

.checkmark::after {
    box-sizing: border-box;
    content: "";
    position: absolute;
    display: none;
}

.checkContainer input:checked ~ .checkmark::after {
    display: block;
}

.checkContainer .checkmark::after {
    left: 7px;
    top: 3px;
    width: 8px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.leaflet-bottom.leaflet-right{
    z-index: 999;
}

