.chart{
    padding:30px;
}

.btn:focus {
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--link-color), transparent 75%) !important;
}

.btn--labeled {
    margin-bottom: .2rem; /* reservado para box-shadow :focus */
    border: 2px solid;
    border-radius: 4px;
    color: var(--link-color);
    position: relative;
}
.btn--labeled > span {
    position: absolute;
    left: .3rem;
    top: 0;
    margin-top: -.5rem;
    background: #fff;
    font-family: "Roboto Mono";
    font-size: .7rem;
    padding: .0rem .2rem;
    border-radius: 4px;
}

.btn--labeled > svg,
.btn--labeled > .material-icons {
    fill: var(--link-color);
    margin-right: .5rem;
}
.btn--labeled:hover, .btn--labeled:hover > svg {
    color: var(--link-hover-color);
    border-color: var(--link-hover-color);
    fill: var(--link-hover-color);
}

.btn--nube-resultados {
    margin-top: 1rem;
}

.btn--topics-treemap {
    --link-color: #008000;
    --link-hover-color: #004d00;
    margin-bottom: 1rem;
}

/* apariencia de enlaces para breadcrumbs de highcharts */

.highcharts-breadcrumbs-button rect {
    fill: none !important;
}

.highcharts-breadcrumbs-button text {
    color: var(--link-color) !important;
    fill: var(--link-color) !important;
}
.highcharts-breadcrumbs-button.highcharts-button-hover text {
    color: var(--link-hover-color) !important;
    fill: var(--link-hover-color) !important;
}

#herculesThematicChart_container {
    overflow: hidden;
}

#herculesThematicChart_container #herculesThematicChart_controls {
    display: none; /* oculto por defecto, hasta mostrar el chart asociado*/
    font-size: .8em;
}

#herculesThematicChart_container > #herculesThematicChart[data-highcharts-chart] + #herculesThematicChart_controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: end;
}

#herculesThematicChart_container #herculesThematicChartSelectLevel {    
    border: none;
    color: var(--link-color);
    box-shadow: none;
    border: 1px solid;
    padding: .2rem 1.7rem .2rem .6rem;
    margin: 5px 0;
    cursor: pointer;
}

#herculesThematicChart_container #herculesThematicChartSelectLevel:hover,
#herculesThematicChart_container #herculesThematicChartSelectLevel:focus {
    outline: 0;
    text-decoration: underline;
    color: var(--link-hover-color);
}

#herculesThematicChart_container::after {
    content:"";
    display: block;
    margin-top: 28px;
    height: 372px;
    background-color: #f6f6f6;
    background: linear-gradient(to right, #f6f6f6 5%, #efefef 20%, #f6f6f6 35%);
    -webkit-animation: placeholderShimmer 2s linear 0s infinite normal forwards;
    animation: placeholderShimmer 2s linear 0s infinite normal forwards;
}

#herculesThematicChart_container .highcharts-root {
    font-family: var(--font-family-sans-serif) !important;
}

@-webkit-keyframes placeholderShimmer {
  0% {
    background-position: -500px 0;
  }
  100% {
    background-position: 500px 0;
  }
}

@keyframes placeholderShimmer {
  0% {
    background-position: -500px 0;
  }
  100% {
    background-position: 500px 0;
  }
}


/* especialidades predominantes (hercules thematic L2)*/
.publicaciones-topics-topn {
    margin-top: 1rem;
}

.publicaciones-topics-topn ol {
    max-width: 540px;
    margin: 0 0 1rem 0;
    list-style: none;
}

.publicaciones-topics-topn ol li {
    margin-bottom: .5rem;
}

.publicaciones-topics-topn ol li::before {
    content: "circle";
    font-size: .7em;
    font-family: "Material Icons";
    filter: brightness(0.7);
    margin-left: -1.6rem;
    line-height: 1.6rem;
    position: absolute;
}

.publicaciones-topics-topn ol li span {
    color: #000;
}

.publicaciones-topics-topn ol li a {
    text-decoration: none;
    color: #000;
    display: block;
    overflow: visible;
    white-space: nowrap;
}

.publicaciones-topics-topn ol li a {
    text-decoration: none;
    color: #000;
    display: block;
}

.publicaciones-topics-topn ol li a .topic-hover-feedback {
    display: none;
    color: var(--link-color);
}

.publicaciones-topics-topn ol li a:hover .topic-hover-feedback {
    display: inline;
}

.publicaciones-topics-topn .bar {
    display: block;
    height: 2px;
    background: #000;
}

.publicaciones-topics-topn h2 {
    position: relative;
}

.publicaciones-topics-topn h2::before {
    content: "";
    display: block;
    width: 2.7em;
    height: 1.3em;
    border: 2px solid #A16C0C;
    position: absolute;
    top: 15px;
    left: -.625rem;
    border-width: 2px 0 0 2px;
    border-radius: 4px 0 0 0;
}

.publicaciones-topics-topn h2 small {
    font-family: "Roboto", sans-serif;
    font-size: .9rem;
    display: block;
    display: flex;
    align-items: center;
}

.publicaciones-topics-topn h2 > a small {
    padding-left: .2em;
}

.publicaciones-topics-topn h2 > span{
    position: absolute;
    left: -.1rem;
    top: 17px;
    margin-top: -.5rem;
    background: #fff;
    font-family: "Roboto Mono";
    font-size: .7rem;
    padding: .0rem .2rem;
    border-radius: 4px;
    color: #A16C0C;
    font-weight: 700;
    border-width: 2px 0 0 2px;
}

.publicaciones-topics-topn h2 .publicaciones-topics-topn-help .material-icons {
    font-size: 1.2em;
    line-height: 1em;
    margin-left: .25em;    
    user-select: none;
    float: left; /* para evitar underline on hover o si el cliente tiene así estilados los enlaces */
}

.publicaciones-topics-topn-help {
    cursor: help;
}

.publicaciones-topics-topn h2 .publicaciones-topics-topn-help-detail {
    display: none;
    font-size: .9rem;
    font-family: "Roboto", sans-serif;
    padding: .25rem .675rem .5rem;
    margin: -1.35rem -.625rem;
    position: absolute;
    background: #ffffff;
    box-sizing: border-box;
    max-width: 450px;
    border-left: 2px solid #daa520;
    z-index: 9;
}

.publicaciones-topics-topn h2:focus-within .publicaciones-topics-topn-help-detail {
    display: block;
}

.publicaciones-topics-topn h2 .publicaciones-topics-topn-help-detail small {
    opacity: 1;
}

.publicaciones-topics-topn h2 .publicaciones-topics-topn-help-detail span {
    font-size: .9rem;
    margin: .5rem 0;
    display: block;
}

.publicaciones-topics-topn h2 .publicaciones-topics-topn-help-detail p {
    margin: .5rem 0;
}

.publicaciones-topics-topn h2 .publicaciones-topics-topn-help-disclaimer {
    opacity: .8;
    font-size: .9em;
    font-style: normal;
}

.page-filters {
    display: flex;
    gap: .5em;
    font-size: .875rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* para no mostrar el icono de los filtros si no hay ninguno activo */
.page-filters > i.material-icons:first-child:last-child {
    display: none;
}

.page-filters > .filter-chip:first-of-type {
    text-transform: capitalize
}

.filter-chip {
    display: flex;
    align-items: center;
    font-weight: 700;
    border: 2px solid;
    padding: .0em .4em .0em .6em;
    border-radius: 5px;
    line-height: 1em;
    white-space: nowrap;
}

.filter-chip__label::after {
    content: ":";
    margin-right: .5em;
}

.filter-chip .close {
    opacity: 1;
    margin: 0 -.2em 0 .1em;
    height: 1em;
    width: 1em;
    outline: none;
    user-select: none;
}

.filter-chip .close .material-icons {
    font-size: .7em;
    font-weight: 700;
}

#financiadorBubbleChartModal .modal-dialog,
#financiadorBubbleChartModal .modal-content {
    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
}

#financiadorBubbleChartModal .modal-body {
    padding: 0;
    height: 100%;
}

#financiadorBubbleChart {
    width: 100%;
    height: 100%;
}

.scope-hint {
    font-size: .8rem;
    margin: .5rem;
    height: auto;
    white-space: normal
}