/**
 * Log-In Logistica - Documentos Comerciais
 * Estilos do componente exibido pelo shortcode [login_documento_lista_termos]
 *
 * Este arquivo é carregado apenas no front-end, via wp_enqueue_style(),
 * e todas as classes são prefixadas com "lldc-" para evitar conflito
 * com estilos do tema ou do Elementor.
 */

.lldc-lista-documentos {
	display: flex;
	flex-direction: column;
	width: 100%;
	font-family: "Public Sans";
}

.lldc-linha {
	display: flex;
	align-items: center;
	gap: 16px;
	border-bottom: 1px solid #e5e7eb;
	flex-wrap: wrap;
	-webkit-border-radius: 5px;
	-webkit-border-bottom-left-radius: 0;
	-moz-border-radius: 5px;
	-moz-border-radius-bottomleft: 0;
	border-radius: 5px;
	border-bottom-left-radius: 0;
	overflow: hidden;
	height: 55px;
	margin-bottom: 12px;
	background-color: #FFFFFF;
}

.lldc-linha:last-child {
	border-bottom: none;
}

.lldc-badge-versao {
	height: 100%;
	font-size: 24px;
	background-color: #12362f;
	color: #ffffff;
	-webkit-border-top-left-radius: 5px;
	-webkit-border-bottom-right-radius: 7px;
	-moz-border-radius-topleft: 5px;
	-moz-border-radius-bottomright: 7px;
	border-top-left-radius: 5px;
	border-bottom-right-radius: 7px;
	padding: 0 30px 3px;
	font-weight: 700;
	line-height: 0.9;
	min-width: 145px;
	text-align: left;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.lldc-badge-label {
	display: block;
	text-transform: lowercase;
}

.lldc-badge-numero {
	display: block;
}

.lldc-info {
	display: flex;
	flex-direction: row;
	gap: 2px;
	font-size: 14px;
	flex: 1 1 200px;
}

.lldc-mes-ano {
	color: #74b742;
	font-weight: 700;
	width: 128px;
	text-wrap: nowrap;
	text-transform: uppercase;
}

.lldc-titulo {
	color: #084d44;
}

.lldc-botao-download {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #6ba644;
	color: #ffffff !important;
	text-decoration: none !important;
	padding: 7px 11px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.03em;
	white-space: nowrap;
	transition: filter 0.15s ease-in-out;
	border-radius: 5px;
	margin: 10px 18px 10px 10px;
}

.lldc-botao-download:hover,
.lldc-botao-download:focus {
	filter: brightness(0.92);
	color: #ffffff !important;
}

.lldc-icone-download {
	flex-shrink: 0;

}



.custom-scroll {
	position: relative;
	width: 100%;
	height: 385px;
}

.scroll-content {
	width: calc(100% - 20px);
	height: 385px;
	padding-right: 44px;

	overflow-y: scroll;
	overflow-x: hidden;

	/* Firefox */
	scrollbar-width: none;

	/* IE */
	-ms-overflow-style: none;
}

/* Chrome / Edge / Safari */

.scroll-content::-webkit-scrollbar {
	display: none;
}

.scrollbar {
	position: absolute;
	top: 0;
	right: 0;
	width: 19px;
	height: 100%;
	background: #fff;
	border-radius: 10px;
}

.scrollbar-thumb {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	min-height: 40px;
	background: rgba(54, 122, 67, 1);
	border-radius: 5px;
	cursor: grab;
	user-select: none;
	transition: background 0.2s;
}

.scrollbar-thumb:hover {
	background: rgba(54, 122, 67, .9);
}

.scrollbar-thumb.dragging {
	cursor: grabbing;

	background: rgba(54, 122, 67, 0.81);
}


/**
 * ------------------------------------------------------------------
 * VERSÃO MOBILE (empilhada e centralizada)
 * Layout de "cartão": badge, mês/ano, título e botão centralizados,
 * um abaixo do outro, com espaçamento maior entre cada documento.
 * ------------------------------------------------------------------
 */
@media (max-width: 600px) {
	.lldc-scroll-wrapper {
		overflow: unset;
		max-height: unset !important;
	}

	.lldc-scroll-wrapper,
	.scroll-content {
		overflow: unset !important;
		height: auto !important;
	}

	.custom-scroll {
		height: auto;
	}

	.lldc-linha {
		position: relative;
		overflow: unset;
		flex-direction: row;
		align-items: center;
		text-align: center;
		gap: 10px;
		padding: 10px 0;
		margin-top: 45px;
		border-bottom: none;
		height: auto;
		justify-content: center;
	}

	.lldc-badge-versao {
		align-self: center;
		text-align: center;
		padding: 8px 20px;
		font-size: 32px;
		display: flex;
		height: auto;
		flex-direction: row;
		gap: 5px;
		position: absolute;
		top: 0;
		left: 50%;
		transform: translate(-50%, -50%);
	}

	.lldc-badge-label,
	.lldc-badge-numero {
		display: inline;
	}

	.lldc-info {
		align-items: center;
		gap: 4px;
		padding-top: 40px;
		flex-direction: column;
	}

	.lldc-mes-ano {
		width: auto;
		font-size: 24px;
	}

	.lldc-titulo {
		font-size: 13px;
		max-width: 230px;
	}

	.lldc-botao-download {
		align-self: center;
		justify-content: center;
		padding: 11px 22px;
	}

	.scrollbar {
		display: none;
	}

	.scroll-content {
		padding: 0;
	}
}

/**
 * ------------------------------------------------------------------
 * MCUSTOMSCROLLBAR - customização de cores para casar com a marca
 * (a biblioteca em si vem do arquivo jquery.mCustomScrollbar.css,
 * carregado antes deste arquivo; aqui só sobrescrevemos as cores).
 * ------------------------------------------------------------------
 */
.lldc-scroll-wrapper {
	overflow: hidden;
	/* o mCustomScrollbar assume o controle do scroll */
	padding-right: 4px;
}

.lldc-scroll-wrapper .mCSB_scrollTools .mCSB_draggerRail {
	background-color: #e5e7eb;
	width: 4px;
}

.lldc-scroll-wrapper .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
	background-color: #6ba644;
	width: 4px;
}

.lldc-scroll-wrapper .mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar,
.lldc-scroll-wrapper .mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar {
	background-color: #12362f;
}