/**
 * Componente Bloco Indicadores
 * Estilos baseados no design do Figma
 */

.bloco-indicadores {
    width: 100%;
    margin: 0 auto;
    padding-top: 32px;
}

.bloco-indicadores__container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.bloco-indicadores__block {
    position: relative;
    display: flex;
    /* align-items: stretch; */
    gap: 32px;
    background: #FFFFFF;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

/* Bloco Principal (Lado Esquerdo) */
.bloco-indicadores__main-block {
    padding: 0 0 0 18px;
    display: flex;
    align-items: center;
    gap: 24px;
    /* flex: 1; */
    min-height: 100%;
    color: #FFFFFF;
    position: relative;
}

.bloco-indicadores__main-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    /* padding-right: 24px; */
    /* border-right: 2px solid #FFFFFF; */
    height: 73px;
}

.bloco-indicadores__main-number {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 48px;
    line-height: 1.167;
    color: #FFFFFF;
}

.bloco-indicadores__main-header h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    color: #FFFFFF;
    margin: 0;
    text-transform: uppercase;
}

.bloco-indicadores__main-icon {
    width: 77px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bloco-indicadores__main-icon svg {
    width: 77px;
}

.bloco-indicadores__main-description {
    display: flex;
    align-items: center;
}
.bloco-indicadores__main-description p {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
    margin-bottom: 0;
}
@media (min-width: 992px) {
    .bloco-indicadores__main-block,
    .cs-pdf-generating .bloco-indicadores__main-block {
        position: relative;
        align-items: flex-start;
        width: calc( 100% - 462px );
    }
    .bloco-indicadores__indicators,
    .cs-pdf-generating .bloco-indicadores__indicators {
        width: 462px;
    }
    .bloco-indicadores__main-header,
    .cs-pdf-generating .bloco-indicadores__main-header {
        margin-top: 6px;
        width: 34%;
    }
    .bloco-indicadores__main-description,
    .cs-pdf-generating .bloco-indicadores__main-description {
        background-color: var(--neutral-900);
        color: #61668A;
        padding: 58px 32px;
        width: 66%;
        height: 100%;
    }
    .bloco-indicadores__main-description p,
    .cs-pdf-generating .bloco-indicadores__main-description p {
        color: #61668A;
    }
    .bloco-indicadores__main-icon,
    .cs-pdf-generating .bloco-indicadores__main-icon {
        position: absolute;
        left: 18px;
        bottom: 22px;
        width: 48px;
    }
    .bloco-indicadores__main-icon svg,
    .cs-pdf-generating .bloco-indicadores__main-icon svg {
        height: auto;
    }
}

/* Indicadores (Lado Direito) */
.bloco-indicadores__indicators {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 27px 30px 27px 10px;
    justify-content: center;
}

.bloco-indicadores__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bloco-indicadores__item-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    color: #333455;
    margin: 0;
    text-transform: uppercase;
}

/* Régua de Indicadores */
.bloco-indicadores__ruler-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bloco-indicadores__ruler {
    position: relative;
    width: 421px;
    height: 64px;
    display: flex;
    align-items: center;
}

.bloco-indicadores__ruler-segment {
    height: 17px;
    position: absolute;
    top: 23px;
}

.bloco-indicadores__ruler-segment--1 {
    left: 0;
    width: 102px;
    background-color: #D9E1EA;
}

.bloco-indicadores__ruler-segment--2 {
    left: 106px;
    width: 102px;
    background-color: #D9E1EA;
}

.bloco-indicadores__ruler-segment--3 {
    left: 212px;
    width: 103px;
    background-color: #D9E1EA;
}

.bloco-indicadores__ruler-segment--4 {
    left: 319px;
    width: 102px;
    background-color: #D9E1EA;
}

.bloco-indicadores__ruler--exception {
    /* width: 100%; */
    height: 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bloco-indicadores__ruler--exception .bloco-indicadores__ruler-segment {
    position: relative;
    width: 100%;
    top: auto;
    text-align: center;
    height: auto;
}

.bloco-indicadores__ruler--exception .bloco-indicadores__ruler-text {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    color: #100F2A;
}

.bloco-indicadores__circle-text--1 .bloco-indicadores__ruler-segment--1 {
    background-color: #CB1515;
}
.bloco-indicadores__circle-text--2 .bloco-indicadores__ruler-segment--1,
.bloco-indicadores__circle-text--2 .bloco-indicadores__ruler-segment--2 {
    background-color: #EFA00B;
}
.bloco-indicadores__circle-text--3 .bloco-indicadores__ruler-segment--1,
.bloco-indicadores__circle-text--3 .bloco-indicadores__ruler-segment--2,
.bloco-indicadores__circle-text--3 .bloco-indicadores__ruler-segment--3 {
    background-color: #F7D667;
}
.bloco-indicadores__circle-text--4 .bloco-indicadores__ruler-segment--1,
.bloco-indicadores__circle-text--4 .bloco-indicadores__ruler-segment--2,
.bloco-indicadores__circle-text--4 .bloco-indicadores__ruler-segment--3,
.bloco-indicadores__circle-text--4 .bloco-indicadores__ruler-segment--4 {
    background-color: #4BCA10;
}

/* Círculo Indicador */
.bloco-indicadores__circle {
    position: absolute;
    top: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    z-index: 2;
}

.bloco-indicadores__circle-text {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.25;
    color: var(--branco);
    text-align: center;
}
.bloco-indicadores__circle-text--2,
.bloco-indicadores__circle-text--3 {
    font-size: 13px;
    color: var(--preto);
}

/* Indicador World */
.bloco-indicadores__world-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.bloco-indicadores__world-icon {
    width: 12px;
    height: 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bloco-indicadores__world-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 8px;
    line-height: 1.5;
    color: #000000;
    text-align: center;
}

/* Indicador de Comparação */
.bloco-indicadores__comparison-position {
    position: absolute;
    top: 45px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

.bloco-indicadores__comparison-arrow {
    font-size: 11px;
    color: var(--preto);
    margin-bottom: -8px;
}

.bloco-indicadores__comparison-label {
    font-size: 12px;
    font-weight: 400;
    color: var(--preto);
    white-space: nowrap;
}

/* Estados dos Quadrantes */
.bloco-indicadores__ruler-segment--inactive {
    background-color: #D9E1EA !important;
}

.bloco-indicadores__ruler-segment--active {
    background-color: #EFA00B !important;
}

.bloco-indicadores__ruler-segment--completed {
    background-color: #4BCA10 !important;
}

.bloco-indicadores__disclaimer {
    margin-top: -26px;
}
.bloco-indicadores__disclaimer p {
    font-size: 12px;
    margin-bottom: 0;
}


@media (max-width: 1100px) {
    .bloco-indicadores__main-block,
    .cs-pdf-generating .bloco-indicadores__main-block {
        width: calc( 100% - 290px );
    }
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__ruler-segment--1 {
        left: 0;
        width: calc(25% - 2px);
    }
    
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__ruler-segment--2 {
        left: calc(25% + 1px);
        width: calc(25% - 2px);
    }
    
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__ruler-segment--3 {
        left: calc(50% + 1px);
        width: calc(25% - 2px);
    }
    
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__ruler-segment--4 {
        left: calc(75% + 1px);
        width: calc(25% - 2px);
    }
}

@media (max-width: 991px) {
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__block {
        flex-direction: column;
        gap: 0;
        min-height: auto;
        border-radius: 0;
        align-items: stretch;
    }

    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__main-block {
        flex-wrap: wrap;
        min-width: auto;
        width: 100%;
        padding: 8px;
        flex: none;
        gap:16px
    }
    
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__main-header {
        gap: 16px;
        border-right: none;
        width: calc( 100% - 16px - 60px);
        padding-right: 0;
        height: auto;
    }
    
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__main-number {
        font-size: 28px;
    }
    
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__main-header h2 {
        font-size: 14px;
    }
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__main-header h2 br {
        display: none;
    }

    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__main-icon {
        width: 60px;
        height: auto;
        justify-content: flex-end;
    }
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__main-icon svg {
        width: 60px;
        height: 40px;
    }
    
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__main-description {
        margin-top: -10px;
    }
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__main-description p {
        font-size: 10px;
        line-height: 2.2;
    }
    
}

/* Responsividade - Mobile */
@media (max-width: 768px) {
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores {
        padding-top: 14px;
    }
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__container {
        padding: 0 0;
        gap: 12px;
    }
    
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__indicators {
        padding: 8px;
        gap: 8px;
    }
    
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__item-title {
        font-size: 14px;
    }
    
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__ruler-container {
        padding: 0 16px;
    }
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__ruler {
        /* width: 299px; */
        width: 100%;
        height: 51px;
    }
    
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__ruler-segment {
        height: 17px;
        top: 13px;
    }
    
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__ruler-segment--1 {
        left: 1px;
        width: calc(25% - 2px);
    }
    
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__ruler-segment--2 {
        left: calc(25% + 1px);
        width: calc(25% - 2px);
    }
    
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__ruler-segment--3 {
        left: calc(50% + 1px);
        width: calc(25% - 2px);
    }
    
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__ruler-segment--4 {
        left: calc(75% + 1px);
        width: calc(25% - 2px);
    }
    
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__circle {
        width: 44px;
        height: 44px;
        border-width: 2px;
    }
    
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__circle-text {
        font-size: 10px;
        line-height: 2.4;
    }
    
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__world-indicator {
        position: absolute;
        right: 14px;
        bottom: 0;
        width: 41px;
        height: 22px;
    }
    
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__world-icon {
        width: 12px;
        height: 12px;
    }
    
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__world-text {
        font-size: 8px;
    }

    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__circle-text--2,
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__circle-text--3 {
        font-size: 9px;
        line-height: 1.1;
    }

    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__ruler.bloco-indicadores__ruler--exception {
        height: 24px;
        margin-top: 13px;
        margin-bottom: 20px;
    }
    .relatorio-pilares:not(.cs-pdf-generating) .bloco-indicadores__ruler--exception .bloco-indicadores__ruler-segment {
        top: auto !important;
        height: auto !important;
    }
    .bloco-indicadores__comparison-position {
        top: 35px;
    }
    .bloco-indicadores__comparison-arrow {
        margin-bottom: -1px;
    }

    .bloco-indicadores__comparison-arrow {
        /* margin-bottom: -10px; */
        font-size: 9px;
        line-height: 1;
    }
    .bloco-indicadores__comparison-label {
        font-size: 10px;
        line-height: 1;
    }
    .bloco-indicadores__disclaimer {
        margin-top: 0;
        margin-bottom: 10px;
    }
}

/* Animações */
.bloco-indicadores__circle {
    transition: left 0.5s ease-in-out, background-color 0.3s ease-in-out;
}

.bloco-indicadores__ruler-segment {
    transition: background-color 0.3s ease-in-out;
}

/* Estados de hover para interatividade */
.bloco-indicadores__item:hover .bloco-indicadores__circle {
    transform: translateX(-50%) scale(1.1);
    transition: transform 0.2s ease-in-out;
}

.bloco-indicadores__item:hover .bloco-indicadores__ruler-segment {
    opacity: 0.8;
    transition: opacity 0.2s ease-in-out;
}

/* Acessibilidade */
.bloco-indicadores__ruler:focus-within {
    outline: 2px solid #4BCA10;
    outline-offset: 2px;
}

.bloco-indicadores__circle:focus {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}


.bloco-indicadores__info-btn {
    position: absolute;
    right: -8px;
    top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--neutral-400);
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    z-index: 2;

    background-color: transparent !important;
    padding: 0 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.bloco-indicadores__info-btn:hover {
    color: var(--neutral-200);
    transform: scale(1.1);
}

.bloco-indicadores__info-btn:focus {
    outline: 2px solid var(--neutral-300);
    outline-offset: 2px;
    border-radius: 50%;
}

.bloco-indicadores__info-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}


/* Destaque visual para scroll automático */
/* .bloco-indicadores__block--highlighted {
    animation: highlightPulse 3s ease-in-out;
    box-shadow: 0px 0px 20px rgba(79, 172, 254, 0.4);
    border: 2px solid #4FACFE;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0px 0px 20px rgba(79, 172, 254, 0.4);
        border-color: #4FACFE;
    }
    50% {
        box-shadow: 0px 0px 30px rgba(79, 172, 254, 0.6);
        border-color: #4FACFE;
    }
    100% {
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);
        border-color: transparent;
    }
} */

/* Print styles */
@media print {
    .bloco-indicadores__block {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .bloco-indicadores__circle {
        border-color: #000;
    }
}
