
/* ============================================
   CONTENEDORES GENERALES
   ============================================ */
.voto-hist-contenedor {
    width: 100%;
    font-family: 'Encode Sans', sans-serif;
}

.voto-hist-titulo {
    font-family: 'Encode Sans', sans-serif;
    text-align: left;
    color: black;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.voto-hist-subtitulo {
    font-size: 14px;
    text-align: left;
    font-family: 'Encode Sans', sans-serif;
    line-height: 20px;
    color: #181818;
    margin: 0 0 20px 0;
}

.voto-hist-fuente {
    font-size: 12px;
    text-align: left;
    font-family: 'Encode Sans', sans-serif;
    line-height: 20px;
    color: #181818;
    margin-top: 10px;
}

/* ============================================
   GRÁFICO PROVINCIA
   ============================================ */
#voto-hist-contenedor-provincia {
    width: 100%;
    cursor: pointer;
}

#voto-hist-chart-provincia {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

#voto-hist-chart-provincia svg {
    display: block;
    flex-shrink: 0;
}

#voto-hist-chart-provincia text {
    font-size: 12px;
    font-family: 'Encode Sans', sans-serif;
}

.voto-hist-nombre-provincia {
    font-size: 16px !important;
    font-family: 'Encode Sans', sans-serif;
    fill: #333333;
    font-weight: 700;
}

/* ============================================
   GRÁFICO MUNICIPIO
   ============================================ */
#voto-hist-contenedor-municipio {
    width: 100%;
    cursor: pointer;
}

#voto-hist-chart-municipio {
    width: 100%;
}

#voto-hist-chart-municipio text {
    font-size: 14px;
    font-family: 'Encode Sans', sans-serif;
}

.voto-hist-nombre-pais-curva {
    font-size: 14px;
    font-family: 'Encode Sans', sans-serif;
    fill: #333333;
    font-weight: 700;
}

/* ============================================
   EJES COMUNES
   ============================================ */
.voto-hist-eje-vertical line {
    stroke: #c5c5c5;
    stroke-dasharray: 3;
    stroke-width: 0.5;
}

.voto-hist-eje-vertical text {
    fill: #939393;
}

.voto-hist-eje-vertical path {
    stroke-width: 0;
}

.voto-hist-eje-horizontal path {
    stroke-width: 0;
}

.voto-hist-eje-horizontal text {
    fill: #939393;
}

.voto-hist-eje-horizontal line {
    stroke: #939393;
    stroke-width: 1;
}

/* ============================================
   TOOLTIP
   ============================================ */
.voto-hist-tooltip {
    position: absolute;
    z-index: 1000;
    visibility: hidden;
    color: black;
    padding: 8px;
    background-color: white;
    border-radius: 0px;
    font-size: 12px;
    pointer-events: none;
    font-family: 'Encode Sans', sans-serif;
    box-shadow: 0 2px 2px 0 #ccc;
    border: 1px solid #ccc;
    margin-left: 2px;
    line-height: 1.5;
}

.voto-hist-columna-datos {
    text-align: right;
    padding-bottom: 0px;
    padding-top: 0px;
    border-bottom: 1px solid #ddd;
    color: #000000;
}

.voto-hist-primera-columna {
    border-bottom: 1px solid #ddd;
    padding-bottom: 0px;
    padding-top: 0px;
}

.voto-hist-fila-tabla td {
    padding: 2px 4px;
}

/* ============================================
   BUSCADOR DE MUNICIPIOS
   ============================================ */
.voto-hist-container-buscador {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.voto-hist-search-contenedor {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.voto-hist-input-wrapper {
    position: relative;
    width: 250px;
}

.voto-hist-input-wrapper svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
}

.voto-hist-search-contenedor input {
    width: 100%;
    border: 1px solid #d9d9d9;
    height: 35px;
    padding: 10px 10px 10px 40px;
    font-family: 'Encode Sans', sans-serif;
    font-size: 14px;
    background-color: #ffffff;
    color: rgba(0, 0, 0, 0.75);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    border-radius: 5px;
    box-sizing: border-box;
}

.voto-hist-search-contenedor input:focus {
    outline: none;
    border-color: #999;
}

#voto-hist-search-results {
    width: 280px;
    position: relative;
}

#voto-hist-suggestions {
    background-color: rgb(255, 255, 255);
    border-radius: 4px;
    list-style: none;
    margin: 0;
    padding: 0px 5px;
    position: absolute;
    z-index: 1000;
    overflow: hidden;
    font-size: 14px;
    width: 280px;
    font-family: 'Encode Sans', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#voto-hist-suggestions li {
    border-bottom: 1px solid #c5c5c5;
    vertical-align: middle;
    align-items: center;
    text-align: left;
    height: 30px;
    line-height: 30px;
    padding: 0 5px;
}

#voto-hist-suggestions li:hover {
    background-color: #f5f5f5;
}

#voto-hist-suggestions li:last-child {
    border-bottom: none;
}

/* ============================================
   LABELS
   ============================================ */
.voto-hist-label,
.voto-hist-label-muni {
    font-size: 11px;
    font-family: 'Encode Sans', sans-serif;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
    .voto-hist-titulo {
        font-size: 18px;
    }

    .voto-hist-subtitulo {
        font-size: 13px;
    }

    #voto-hist-chart-provincia text {
        font-size: 11px;
    }

    .voto-hist-nombre-provincia {
        font-size: 14px !important;
    }

    .voto-hist-input-wrapper {
        width: 100%;
        max-width: 280px;
    }

    #voto-hist-search-results {
        width: 100%;
        max-width: 280px;
    }

    #voto-hist-suggestions {
        width: 100%;
        max-width: 280px;
    }
}
