/**
 * mod_percentualsexo - estilos
 * Segue a identidade visual dos demais módulos do componente
 * (fontes Intro/Inter; navy #171C66 / #001957; azul #4D80CE; trilho #E6E6E6).
 */

.mod-percentualsexo {
	--ps-navy: #171C66;
	--ps-navy-strong: #001957;
	--ps-blue: #4D80CE;
	--ps-track: #E6E6E6;
	--ps-muted: #707070;
	color: #00166B;
	max-width: 960px;
	margin: 0 auto;
}

.mod-percentualsexo .ps-empty {
	color: var(--ps-muted);
	font-style: italic;
}

/* Bloco por tipo de quadro (cooperados / empregados) */
.mod-percentualsexo .ps-bloco+.ps-bloco {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid #E6E6E6;
}

.mod-percentualsexo .ps-bloco__title {
	font-family: 'Intro', sans-serif;
	color: var(--ps-navy-strong);
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 1.25rem;
}

/* ---- Seções / títulos ---- */
.mod-percentualsexo .ps-section {
	margin-bottom: 3rem;
}

.mod-percentualsexo .ps-section__title {
	font-family: 'Intro', sans-serif;
	color: var(--ps-navy);
	font-size: 28px;
	line-height: 35px;
	font-weight: 300;
	margin-bottom: 1rem;
}

.mod-percentualsexo .ps-section__title strong {
	font-weight: 700;
}

.mod-percentualsexo .ps-section__desc {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	line-height: 22px;
	color: #00166B;
	max-width: 920px;
	margin-bottom: 1.75rem;
}

.mod-percentualsexo .ps-section__desc strong {
	color: var(--ps-navy);
}

/* ---- Seção 1: barras horizontais ---- */
/* Ícone de sexo numa coluna à esquerda, centralizado verticalmente com as barras. */
.mod-percentualsexo .ps-bargroup {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center;
	/* gap: 1rem;
	margin: 0 0 2.5rem; */
}

.mod-percentualsexo .ps-bargroup__icon {
	flex: 0 0 56px !important;
	width: 56px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: var(--ps-blue) !important;
	margin-bottom: 45px !important;
}

.mod-percentualsexo .ps-bargroup__icon svg {
	width: 44px !important;
	height: 44px !important;
}

/* Barras horizontais no padrão modramos-* (com setas de navegação de ano) */
.mod-percentualsexo .modramos-grafico-container {
	flex: 1 !important;
	min-width: 0 !important;
	width: auto !important;
	position: relative !important;
}

/* Setas alinhadas na coluna do ano (mesma largura, à esquerda das barras). */
.mod-percentualsexo .modramos-seta-wrapper {
	width: 64px;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	padding: 2px 0;
}

/* Janela de rolagem das barras: clipa o "track" que desliza por translateY. */
.mod-percentualsexo .modramos-viewport {
	overflow: hidden;
	height: 110px;
}

.mod-percentualsexo .modramos-track {
	display: flex;
	flex-direction: column;
	transition: transform .45s ease;
	will-change: transform;
}

.mod-percentualsexo .modramos-linha-grafico {
	display: grid;
	grid-template-columns: 64px 1fr 150px;
	align-items: center;
	gap: 12px;
	flex: 0 0 34px;
	height: 34px;
}

.mod-percentualsexo .modramos-col-ano-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
}

.mod-percentualsexo .modramos-ano {
	font-family: 'Intro', sans-serif;
	font-size: 12px;
	font-weight: 600;
	display: inline-block;
	padding: 2px 14px;
	height: 27px;
	line-height: 24px;
	border-radius: 50px;
	border: 1px solid var(--ps-blue);
	color: var(--ps-blue);
	background-color: #fff;
	box-sizing: border-box;
}

.mod-percentualsexo .modramos-linha-grafico.is-active .modramos-ano {
	color: #fff;
	border: none;
	background-color: var(--ps-navy-strong) !important;
}

.mod-percentualsexo .modramos-barra-container {
	height: 34px;
	background: var(--ps-track);
	border-radius: 8px;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.mod-percentualsexo .modramos-barra {
	height: 100%;
	border-radius: 8px;
	flex-shrink: 0;
	background-color: #C9D7EB;
	transition: width .4s ease, background-color .2s ease;
}

.mod-percentualsexo .ps-bargroup--mulheres .modramos-linha-grafico.is-active .modramos-barra {
	background-color: var(--ps-navy);
}

.mod-percentualsexo .ps-bargroup--homens .modramos-linha-grafico.is-active .modramos-barra {
	background-color: var(--ps-navy);
}

.mod-percentualsexo .modramos-valor {
	font-family: 'Intro', sans-serif;
	text-align: left;
	font-size: 18px;
	font-weight: 400;
	color: var(--ps-muted);
}

.mod-percentualsexo .modramos-linha-grafico.is-active .modramos-valor {
	font-size: 29px;
	font-weight: 600;
}

.mod-percentualsexo .ps-bargroup--mulheres .modramos-linha-grafico.is-active .modramos-valor {
	color: var(--ps-navy);
}

.mod-percentualsexo .ps-bargroup--homens .modramos-linha-grafico.is-active .modramos-valor {
	color: var(--ps-navy);
}

.mod-percentualsexo .ps-bargroup__note {
	position: absolute !important;
	bottom: -24px !important;
	left: 76px !important;
	margin: 0 !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 12px !important;
	color: #8F8F8F !important;
	white-space: nowrap !important;
}

/* ---- Seção 2: ramos por ano (homens em cima, mulheres embaixo) ---- */
.mod-percentualsexo .ps-ramosano {
	max-width: 620px;
	margin: 0 auto;
	position: relative;
}

/* Seletor de ano fixo à esquerda, centralizado verticalmente. */
.mod-percentualsexo .ps-ramosano__selector {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 100px;
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 10;
}

.mod-percentualsexo .ps-ramosano__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px 0;
	cursor: pointer;
}

.mod-percentualsexo .ps-ramosano__arrow.disabled {
	opacity: .3;
	pointer-events: none;
}

.mod-percentualsexo .ps-ramosano__year {
	width: 90px;
	background: transparent;
	color: var(--ps-blue);
	text-align: center;
	border-radius: 20px;
	padding: 8px 6px;
	font-size: .75rem;
	font-weight: 700;
	border: 1px solid var(--ps-blue);
	margin: 10px 0;
	cursor: pointer;
}

.mod-percentualsexo .ps-ramosano__year.selected {
	background-color: var(--ps-blue);
	color: #fff;
}

.mod-percentualsexo .ps-ramosano__content {
	margin-left: 115px;
}

.mod-percentualsexo .ps-ramosano__section {
	display: flex;
	margin-bottom: 0;
}

.mod-percentualsexo .ps-ramosano__gender {
	max-width: 50px;
	display: flex;
	flex-direction: column;
	align-items: center;
	color: var(--ps-blue);
}

.mod-percentualsexo .ps-ramosano__gender.male {
	justify-content: flex-end;
}

.mod-percentualsexo .ps-ramosano__gender.female {
	justify-content: flex-start;
}

.mod-percentualsexo .ps-ramosano__gender img,
.mod-percentualsexo .ps-ramosano__gender svg {
	max-width: 50px;
	width: 50px;
	height: auto;
	margin: 30px auto;
}

.mod-percentualsexo .ps-ramosano__bars {
	display: flex;
	flex-grow: 1;
	justify-content: end;
	height: 300px;
}

.mod-percentualsexo .ps-ramosano__bars.male {
	align-items: flex-end;
}

.mod-percentualsexo .ps-ramosano__bars.female {
	align-items: flex-start;
}

.mod-percentualsexo .ps-ramosano__bars.male .ps-ramosano__group {
	flex-direction: column-reverse;
}

.mod-percentualsexo .ps-ramosano__group {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 10%;
	height: 100%;
	margin: 0 1.5%;
}

.mod-percentualsexo .ps-ramosano__bar {
	width: 100%;
	position: relative;
	transition: height .5s ease;
}

.mod-percentualsexo .ps-ramosano__bar.male {
	border-radius: 8px 8px 0 0;
}

.mod-percentualsexo .ps-ramosano__bar.female {
	border-radius: 0 0 8px 8px;
}

.mod-percentualsexo .ps-ramosano__value {
	width: 100%;
	text-align: center;
	font-family: 'Intro', sans-serif;
	font-weight: 700;
	font-size: 1.125rem;
}

.mod-percentualsexo .ps-ramosano__sector {
	width: 54px;
	height: auto;
	object-fit: contain;
	margin-bottom: 10px;
}

.mod-percentualsexo .ps-ramosano__divider {
	border-top: 1px solid #BEBEBE;
	margin: 10px 0;
	position: relative;
}

/* ---- Responsivo ---- */
@media (max-width: 768px) {
	.mod-percentualsexo .modramos-linha-grafico {
		grid-template-columns: 56px 1fr 90px;
	}

	.mod-percentualsexo .modramos-linha-grafico.is-active .modramos-valor {
		font-size: 20px;
	}

	.mod-percentualsexo .ps-ramosano__content {
		margin-left: 80px;
	}

	.mod-percentualsexo .ps-ramosano__selector,
	.mod-percentualsexo .ps-ramosano__year {
		width: 70px;
	}

	.mod-percentualsexo .ps-ramosano__year {
		font-size: .6rem;
	}

	.mod-percentualsexo .ps-ramosano__value {
		font-size: .7rem;
	}

	.mod-percentualsexo .ps-ramosano__sector {
		width: 34px;
	}

	.mod-percentualsexo .ps-ramosano__gender img,
	.mod-percentualsexo .ps-ramosano__gender svg {
		max-width: 20px;
		width: 20px;
	}

	.mod-percentualsexo .ps-ramosano__bars {
		justify-content: space-around;
		height: 150px;
	}

	.mod-percentualsexo .ps-ramosano__group {
		width: 12%;
		height: 80%;
		margin: 0 1%;
	}

	.mod-percentualsexo .ps-ramosano__gender {
		margin: 0 4%;
	}
}