/* =====================================================================
   main.css del portlet mapa.portlet
   Maquetación AUTOCONTENIDA portada desde el tema (CSN-theme), para que
   el mapa se vea correctamente también en el MODAL (pop_up), donde el
   CSS del tema NO se carga.
   - Imágenes servidas desde el portlet (/o/mapa.portlet/images/...).
   - Variables del tema con fallback: var(--x, valorPorDefecto).
   - Sin sintaxis SCSS (este fichero es CSS plano, no se compila con Sass).
   ===================================================================== */

/* ------------------- ESTADOS OPERATIVOS - MAPA ------------------- */
.mapa .calendarDiv {
    margin-left: 3em;
}
.mapa .calendarDiv .contenedorBotonBusquedaFecha {
    float: right;
    margin-top: 2em;
}
.mapa .calendarDiv .contenedorBotonBusquedaFechabuscar {
    float: right;
    margin-top: 40px !important;
}
.mapa .calendarDiv .contenedorBotonBusquedaFecha .btn {
    background-color: var(--gris-body, #595959);
    background-image: linear-gradient(to bottom, #777, var(--gris-body, #595959));
}
.mapa .contenedorFiltroFecha {
    float: left;
    width: 50%;
    margin: 1em 0 0 0;
}
.mapa .control-group .control-label {
    font-family: Helvetica, Arial, sans-serif;
    color: var(--gris-body, #595959);
    font-weight: bold;
}
.mapa .textoCabeceraMapa {
    float: left;
    width: 100%;
    font-family: Helvetica, Arial, sans-serif;
    color: var(--gris-body, #595959);
    font-weight: bold;
}
.mapa .textoNoDatos {
    float: left;
    width: 100%;
    font-family: Helvetica, Arial, sans-serif;
    text-align: center;
}
.mapa .imagenMapa {
    background: url(/o/mapa.portlet/images/mapa_Esp.png) no-repeat !important;
    float: left;
    position: relative;
    width: 500px;
    height: 377px;
    border: 1px solid #cdcdcd;
}
.mapa .detalleCentral {
    float: right;
    width: 100%;
    font-family: Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 5px 0 10px 0;
}
.mapa .detalleCentral ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.mapa .detalleCentral ul li {
    padding: 0 0 0 6px;
}
.mapa .detalleCentral ul li.detalleCabecera {
    font-weight: bold;
    font-size: 1em;
    line-height: 16px;
}
.mapa .detalleCentral ul li.detalleElementos {
    font-size: 0.8em;
    line-height: 20px;
    border-bottom: 1px dotted #cdcdcd;
}
.mapa .detalleCentral ul li.detalleElementos:nth-child(odd) { background-color: #fff; }
.mapa .detalleCentral ul li.detalleElementos:nth-child(even) { background-color: #fafafa; }
.mapa .detalleCabecera { color: var(--primario, #0a64a4); }
.mapa .nombreDetalle { font-weight: bold; width: 72%; float: left; }
.mapa .valorDetalle { width: 28%; float: right; }
.mapa .clear { clear: both; }
.mapa .nombre a { color: var(--gris, #999); font-weight: 100; }
.mapa .enlaces {
    float: left; position: relative; clear: left;
    font-family: Helvetica, Arial, sans-serif;
    margin: 1em 0 0 0;
}
.mapa .enlaces a { color: #666; text-decoration: none; }
.mapa .enlaces a:hover { color: #999; text-decoration: none; }

@media (min-width: 992px) { .mapa .detalleCentral { width: 28%; } }
@media (min-width: 1200px) { .mapa .detalleCentral { width: 38%; } }

/* ------------------- ENLACE VOLVER ------------------- */
.filtroVolver,
.filtroVolverValoresAmbientales {
    font-family: Helvetica, Arial, sans-serif;
}
.filtroVolver { margin: 0.5em 0 0.75em 0; }
.filtroVolverValoresAmbientales { margin: 0.5em 0 0.75em 8em; }
.filtroVolver a, .filtroVolverValoresAmbientales a { color: #666; text-decoration: none; }
.filtroVolver a:hover, .filtroVolverValoresAmbientales a:hover { color: #999; text-decoration: none; }

/* ------------------- FILTRO ESTADOS OPERATIVOS ------------------- */
.filtroEstadosOperativos .formulario_report_fecha_entrada {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}
.filtroEstadosOperativos .formulario_report_fecha_entrada input { width: 100%; }
@media (min-width: 576px) {
    .filtroEstadosOperativos .formulario_report_fecha_entrada {
        align-items: end;
        flex-wrap: wrap;
        flex-direction: row;
    }
    .filtroEstadosOperativos .formulario_report_fecha_entrada .filtroDesde { width: 15%; }
    .filtroEstadosOperativos .formulario_report_fecha_entrada .filtroHasta { width: 15%; }
    .filtroEstadosOperativos .formulario_report_fecha_entrada .filtroCentral { width: 21%; }
    .filtroEstadosOperativos .formulario_report_fecha_entrada .filtroCampo { width: 30%; }
    .filtroEstadosOperativos .filtroSubmit { width: 12%; }
}
.filtroEstadosOperativos .filtroSubmit .button-holder .btn {
    background-color: var(--gris-body, #595959);
    background-image: linear-gradient(to bottom, #777, var(--gris-body, #595959));
    width: 100%;
}

/* =====================================================================
   VALORES AMBIENTALES
   ===================================================================== */

/* FILTRO (valores individuales / graficas) */
.formulario_report_fecha_valores_ambientales .filtroSubmit .button-holder .btn {
    background-color: var(--gris-body, #595959);
    background-image: linear-gradient(to bottom, #777, var(--gris-body, #595959));
}
.filtroValoresAmbientales { margin-left: 8em; padding-bottom: 10px; }
.filtroValoresAmbientales .formulario_report_fecha_valores_ambientales .filtroSubmit .button-holder {
    display: inline-block;
    margin-top: 22px;
}
.formulario_report_fecha_valores_ambientales .control-group .field {
    font-family: Helvetica, Arial, sans-serif;
    color: #666;
}
.formulario_report_fecha_valores_ambientales .control-group .control-label {
    font-family: Helvetica, Arial, sans-serif;
    color: var(--gris-body, #595959);
    font-weight: bold;
}
/* Filtro (valores individuales / graficas): flexbox para que no se solapen los campos en el modal estrecho */
.formulario_report_fecha_valores_ambientales {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-end !important;
    gap: 1.5em !important;
}
.formulario_report_fecha_valores_ambientales .filtroDesde,
.formulario_report_fecha_valores_ambientales .filtroHasta,
.formulario_report_fecha_valores_ambientales .filtroEstacion,
.formulario_report_fecha_valores_ambientales .filtroSubmit {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}
.formulario_report_fecha_valores_ambientales .filtroDesde label,
.formulario_report_fecha_valores_ambientales .filtroHasta label,
.formulario_report_fecha_valores_ambientales .filtroEstacion label {
    display: block;
    margin-bottom: 4px;
    white-space: nowrap;
}
/* Misma altura para todos los campos del filtro (desde / hasta / estacion / fecha mapa) */
.formulario_report_fecha_valores_ambientales .filtroDesde input,
.formulario_report_fecha_valores_ambientales .filtroHasta input,
.formulario_report_fecha_valores_ambientales .filtroEstacion input[type="text"],
.mapaVA .calendarDiv .contenedorFiltroFecha .filtroFechaDiv input {
    height: 38px !important;
    padding: 6px 9px !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    vertical-align: middle;
}
.formulario_report_fecha_valores_ambientales .filtroEstacion input[type="text"] {
    width: 242px;
}
/* Botón "Buscar" a la misma altura que los campos */
.mapaVA .filtroSubmit .btn,
.mapaVA .filtroSubmitnuscar .btn,
.formulario_report_fecha_valores_ambientales .filtroSubmit .btn {
    height: 38px !important;
    box-sizing: border-box !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
/* Quitar el margen inferior del .form-group (Clay) para que el input quede
   alineado por abajo con el botón (align-items: flex-end). */
.formulario_report_fecha_valores_ambientales .form-group,
.formulario_report_fecha_valores_ambientales .filtroFechaDiv .form-group {
    margin-bottom: 0 !important;
}
/* La fila de filtro alinea sus elementos por la base */
.formulario_report_fecha_valores_ambientales {
    align-items: flex-end !important;
}

/* GRAFICA / TABLA INDIVIDUALES */
.alertaGrafica, .alertasFiltroValoresAmbientales { margin-left: 8em; }
.contenedorGrafica { margin: -2.3em 0 0 8em; padding-bottom: 4em; }
.contenedorTabla { margin: -2.3em 0 0 8em; }
.contenedorGrafica .tablaValoresGeneralesAmbientales,
.contenedorTabla .tablaValoresGeneralesAmbientales {
    float: left !important;
    margin: 0.5em 0 0 0 !important;
    width: 100% !important;
}
.contenedorGrafica .cabeceraMapaValoresAmbientales,
.contenedorTabla .cabeceraMapaValoresAmbientales {
    font: 80%/120% Arial, Trebuchet Ms, Verdana, Arial, Helvetica, sans-serif;
    width: 100%;
    float: left;
    margin: 0 0 0.75em 0;
}
/* Cabecera de la tabla (valores individuales): margen superior de 30px */
.contenedorTabla .cabeceraMapaValoresAmbientales {
    margin: 63px 0 0.75em 0 !important;
}
.cabeceraMapaValoresAmbientales .textoCabeceraValoresAmbientales {
    font-size: 1.5em;
    color: var(--gris-body, #595959);
    font-weight: bold;
}
.cabeceraMapaValoresAmbientales .indicadorCabeceraValoresAmbientales {
    font-size: 1.15em;
    padding: 1em 0 0.2em;
    font-weight: normal;
    border-bottom: 1px dotted #ccc;
    color: #888;
}

/* VALORES GENERALES - TABLA */
.mapaVA .contenedorMapa .tablaValoresGeneralesAmbientales {
    float: left;
    margin: -1.5em 0 0 8em;
    width: 88%;
}

/* ------------------- MAPA VALORES AMBIENTALES ------------------- */
.mapaVA .calendarDiv {
    width: 100%;
    float: left;
    margin: 0 0 -2.4em 8em;
}
.mapaVA .calendarDiv .contenedorFiltroFecha { width: 100%; }
.mapaVA .calendarDiv .contenedorFiltroFecha .filtroFechaDiv {
    width: 16% !important;
    float: left !important;
    margin: 0 2.5em 0 0 !important;
}
.mapaVA .calendarDiv .contenedorFiltroFecha .filtroSubmit {
    float: left;
    padding-top: 0.4em;
}
.mapaVA .calendarDiv .contenedorFiltroFecha .filtroSubmit .button-holder { margin: 0; }
.mapaVA .calendarDiv .contenedorFiltroFecha .filtroSubmit .button-holder .btn {
    background-color: var(--gris-body, #595959);
    background-image: linear-gradient(to bottom, #777, var(--gris-body, #595959));
}

.mapaVA .contenedorMapa .cabeceraMapaValoresAmbientales {
    font: 80%/120% Arial, Trebuchet Ms, Verdana, Arial, Helvetica, sans-serif;
    width: 88%;
    float: left;
    margin: 63px 0 0.75em 10em !important;
}
.mapaVA .contenedorMapa .imagenMapaValoresAmbientales {
    background: url(/o/mapa.portlet/images/mapa_valores_ambientales_Esp.png) no-repeat !important;
    float: right;
    position: relative;
    width: 770px;
    height: 580px;
    border: 1px solid #cdcdcd;
}
.mapaVA .contenedorMapa .imagenMapaValoresAmbientales .point {
    font: 80%/120% Arial, Trebuchet Ms, Verdana, Arial, Helvetica, sans-serif;
    font-size: 0.8em;
    font-weight: bold;
    vertical-align: text-top;
}
.mapaVA .contenidoInferior .leyendaValoresAmbientales {
    background: url(/o/mapa.portlet/images/leyenda_mapa.png) no-repeat !important;
    float: right;
    position: relative;
    width: 450px;
    height: 149px;
    margin-top: 1em;
}
.mapaVA .contenidoInferior .enlacesValoresAmbientales {
    width: 38%;
    float: left;
    position: relative;
    clear: left;
    font-family: Helvetica, Arial, sans-serif;
    margin: 1.5em 0 0 1em;
}
.mapaVA .contenidoInferior .enlacesValoresAmbientales a { color: #666; text-decoration: none; }
.mapaVA .contenidoInferior .enlacesValoresAmbientales a:hover { color: #999; text-decoration: none; }

/* Cabeceras de tabla valores generales/individuales */
.tablaValoresGeneralesAmbientales .lfr-search-container .table .table-columns .table-first-header { width: 30%; }
.tablaValoresGeneralesAmbientales .lfr-search-container .table .table-columns .table-last-header { width: 35%; }

.textoCabeceraTabla { padding-top: 10px; }


/* =====================================================================
   BOTÓN "Buscar" — estilos base + aspecto, para que se vea como botón
   también en el MODAL pop_up (donde no se carga Bootstrap/Clay del tema).
   ===================================================================== */
.mapaVA .filtroSubmit .btn,
.mapaVA .filtroSubmitnuscar .btn,
.filtroValoresAmbientales .filtroSubmit .btn,
.filtroEstadosOperativos .filtroSubmit .btn,
.mapa .calendarDiv .btn {
    display: inline-block;
    padding: 7px 18px;
    margin: 0;
    font: bold 13px/1.4 Helvetica, Arial, sans-serif;
    color: #fff;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid var(--gris-body, #595959);
    border-radius: 4px;
    background-color: var(--gris-body, #595959);
    background-image: linear-gradient(to bottom, #777, var(--gris-body, #595959));
    -webkit-appearance: none;
    appearance: none;
}
.mapaVA .filtroSubmit .btn:hover,
.mapaVA .filtroSubmitnuscar .btn:hover,
.filtroValoresAmbientales .filtroSubmit .btn:hover,
.filtroEstadosOperativos .filtroSubmit .btn:hover,
.mapa .calendarDiv .btn:hover {
    background-image: linear-gradient(to bottom, #888, #4d4d4d);
    color: #fff;
    text-decoration: none;
}
