/* Como le men� superior es sticky-top para que se vea bien en el m�vil cuando no entra en la pantalla (va haciendo scroll) 
      tenemos que restarle al tama�o completo lo que ocupa el navbar normal que son esas 56px que lo he encontrado en los ejempos del
      bootstrap no es que lo haya puesto a lo tonto*/
:root {
    --map-left-panel-width: 430px;
    --map-left-panel-min-width: 320px;
    --map-left-panel-max-width: 700px;
}

#map {
    width: 100%;
    height: calc(100vh - 56px);
    min-height: 300px;
}

#mainToolBar {
    top: 15rem;
    left: .5rem;
}
.ews-tool-bar {
    top: 5rem;
    left: .5rem;
}

.mainChildrenDiv {
    max-height: 300px;
}

.normal-map-tool/* Controles sobre el mapa basicos*/
{
	z-index: 21;
}

.above-map-tool/* Controles sobre el mapa que siempre se dibujan por encima*/
{
	z-index: 22;
}


.modal-map-tool/* Modales sobre el mapa que siempre se dibujan por encima*/
{
	z-index: 999;
}
   
       
/* Cualquier boton accionable de nuestra barra de herramientas tiene que tener esta clase para 
poder tener el cursor indicado*/
.custom_map_tool_button:hover  
{
	cursor: pointer !important;
}


/***** MAP POPUP *****/

.ol-popup {
    position: absolute;
    background-color: #FFFFFF;
    -webkit-filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
    padding: 2px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    bottom: 12px;
    left: -50px;
    min-width: 180px;
    text-align: center;
    font-size: 12px;
}

.ol-popup:after, .ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.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;
}

#mainToolBar.map_tool_enable:hover {
	background-color: rgba(255,255,255,.9);
}

/*** BEGIN LEGEND SELECTION CONTROL ************************************/

#toggle_map-tool-legend-selection {
  position: absolute;
  left: 50px;
}

#map-tool-legend svg {
  margin-left: .7em;
}


/*** END LEGEND SELECTION CONTROL ************************************/

/*** BEGIN LAYER SELECTION CONTROL ************************************/

#toggle_map-tool-layer-selection {
    position: absolute;
    left: 2.1rem;
    top: 8.8rem;
    z-index: 1000;
}

/*** END LAYER SELECTION CONTROL ************************************/


/*** BEGIN ORIGIN SELECTION CONTROL ************************************/

#toggle_map-tool-origin-selection {
  position: absolute;
  left: 50px;
}

/*** END ORIGIN SELECTION CONTROL ************************************/

/*** BEGIN EVENT SET SELECTION CONTROL ************************************/

#toggle_map-tool-event-set-selection {
  position: absolute;
  left: 50px;
}

/*** END ORIGIN SELECTION CONTROL ************************************/


/*** EVENT TIME SELECTOR CONTROL ************************************/

#toggle_map-tool-time-selection {
    position: absolute;
    left: 2.1rem;
    top: 10.0rem;
}

.btn-time-selector {
  padding-top: 0px !important;
  padding-right: 0px !important;
  padding-bottom: 0px !important;
  padding-left: 0px !important;
}

/*** END TIME SELECTOR CONTROL  ************************************/

/*** BEGIN OVERVIEW MAP ************************************/

.ol-custom-overviewmap,
      .ol-custom-overviewmap.ol-uncollapsible {
        top: auto;
        right: auto;
        bottom: 2em;
        z-index: 20;
      }
/*** END OVERVIEW MAP ************************************/



/*** BEGIN ELEMENT SELECTION CONTROL ************************************/

#toggle_map-tool-element-selection {
  position: absolute;
  left: 50px;
}

/*** END LAYER SELECTION CONTROL ************************************/



/*** BEGIN BASELINE FORECAST SELECTION CONTROL ************************************/

#toggle_map-tool-forecast-selection {
  position: absolute;
  left: 50px;
}

#toggle_map-tool-risk-execution-selection {
  position: absolute;
  left: 50px;
}

#toggle_map-tool-alarm_administrative_unit {
    position: absolute;
    left: 10px;
    bottom: 10px;
}
/*** END BASELINE FORECAST SELECTION CONTROL ************************************/


/*** SUMMARIZED TIME SELECTOR CONTROL ************************************/

#toggle_map-summarized_time_selector {
    position: absolute;
    left: 50px;
    top: 60px;
    border-radius: 10px;
    border: 1px solid;
    padding: 5px;
}

.btn.map-time-selector-period:hover   {
    cursor: pointer !important;
}

.btn.map-time-selector-period.selected {
    background-color: #7FB0C1 !important;
    color: #000000 !important;
}

.risks-table-observed-element-row.active {
    border-color: #3494c7!important;
}

.pane-risks-table-header {
    background-color: #d0dee1;
    text-transform: uppercase;
}
.pane-risks-table-cell {
    outline: 1px solid #dee2e6!important;
    cursor: pointer;
}
.pane-risks-table-cell.active {
    outline: 2px solid #29495a!important;
    outline-offset: -3px;
}
.pane-risks-table-risk-cell {
    border: 1px solid #dee2e6;
    border-width: 0 1px 1px 1px;
}

/*
.pane-risks-table-risk-cell:hover   {
    cursor: pointer !important;
}
*/


/*** END TIME SELECTOR CONTROL  ************************************/

/*** BEGINNING OF MAP LEFT PANEL  ***/
.map-layout {
    display: flex;
    width: 100%;
    height: calc(100vh - 56px);
    min-height: calc(100vh - 56px);
    overflow: hidden;
}

.map-container {
    flex: 1;
    min-width: 0;
    min-height: 0;
    position: relative;
    height: 100%;
}

.map-container #map {
    height: 100%;
}

.map-left-panel {
    width: 0;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    background-color: #f5f8fa;
    border-right: 0 solid #dcdcdc;
    box-sizing: border-box;
    position: relative;
    transition: width 0.25s ease, min-width 0.25s ease, border-right-width 0.25s ease;
}

.map-layout.panel-open .map-left-panel {
    width: var(--map-left-panel-width);
    min-width: var(--map-left-panel-width);
    border-right-width: 1px;
}

.map-left-panel__inner {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 10px;
}

.is-collapsed {
    display: none !important;
}

.map-left-panel__section + .map-left-panel__section {
    margin-top: 2em;
}

.map-left-panel__section-title {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #243447;
    background: linear-gradient(to bottom, #f7f9fb, #e9edf2);
    border: 1px solid #cfd6dd;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    transition:
            background 0.18s ease,
            border-color 0.18s ease,
            box-shadow 0.18s ease,
            transform 0.05s ease;
}

.map-left-panel__section-title:hover {
    background: linear-gradient(to bottom, #eef3f7, #e2e8ef);
    border-color: #b9c4cf;
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}

.map-left-panel__section-title:active {
    transform: translateY(1px);
    background: linear-gradient(to bottom, #e4ebf2, #dbe3eb);
}

.map-left-panel__section-title::after {
    content: "▾";
    font-size: 13px;
    line-height: 1;
    color: #4f6477;
    opacity: 0.9;
    transition: transform 0.2s ease;
}

.map-left-panel__section-title.collapsed::after {
    transform: rotate(-90deg);
}

.map-left-panel__content {
    width: 100%;
    transition: opacity 0.18s ease;
}

.map-left-panel__content.is-collapsed {
    display: none !important;
}

#map-tool-filter,
#toggle_map-occurrences-summary {
    background: #f5f8fa;
    /*border: 1px solid #d9dee3;*/
    border-radius: 8px;
    padding: 10px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

#map-tool-filter {
    margin-bottom: 0;
}

.map-left-panel__section-title.is-sticky {
    position: sticky;
    top: 0;
    z-index: 2;
}

.map-left-panel__section-title > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#map_filters {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    width: calc(100% - 8px);
    max-width: calc(100% - 8px);
    overflow: visible !important;
}

#map_filters input[type="text"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #cfd6dd;
    border-radius: 6px;
    background: #f5f8fa;
    color: #243447;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#map_filters .row {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-left: 0;
    margin-right: 0;
}

#map_filters .row .btn {
    flex: 0 0 auto;
    margin: 0;
}

#map_filters .dropdown,
#map_filters .bootstrap-select,
#map_filters .multiselect-native-select,
#map_filters .btn-group {
    position: relative;
    overflow: visible !important;
    width: 100%;
    max-width: 100%;
}

#map_filters .dropdown-menu,
#map_filters .multiselect-container {
    position: absolute !important;
    z-index: 2000 !important;
    top: 100%;
    left: 0;
    min-width: 100%;
}

#toggle_map-tool-alert-selection {
    position: relative;
    z-index: 10;
    overflow: visible !important;
}

#toggle_map-occurrences-summary {
    position: relative;
    z-index: 1;
}

#map_filters,
#map_filters * {
    box-sizing: border-box;
}

#toggle_map-tool-layer-selection.inside-map-container {
    top: 5rem;
}

.map-left-panel__resize {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    cursor: col-resize;
    z-index: 100;
    background: transparent;
}

.map-left-panel__resize:hover {
    background: rgba(0, 0, 0, 0.05);
}

/*** TAGS ***/
.tag-list {
    list-style: none outside none;
}

.tag-list li {
    display: inline-block;
    padding: .5em .25em;
}

.tag-list li a {
    pointer-events: none;
    font-size: medium;
    background-color: #f3f3f4;
    padding: 5px 12px;
    color: inherit;
    border-radius: 2px;
    border: 1px solid #e7eaec;
    margin-right: 5px;
    margin-top: 5px;
    display: inline;
}

.littleSvgContainer {
    width: 24px;
    height: 24px;
}

.alertsOnlyCheck {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding-left: 0;
    box-sizing: border-box;
}

.alertsOnlyCheck input[type="checkbox"] {
    margin: 0 6px 0 0;
}