/* Rapport de gains BE v2 — scope hermétique body.be-mvp (toutes loteries) */

body.be-mvp .be-rapport-gains {
	--be-rapport-c1: #001367;
	--be-rapport-c2: #fbb94f;
	--be-rapport-border: #dfdee8;
	--be-rapport-head-bg: #f9f9fe;
	--be-rapport-text: #0a0827;
}

body.be-mvp .be-rapport-gains--lotto { --be-rapport-c1: rgb(238, 49, 36); --be-rapport-c2: #000; }
body.be-mvp .be-rapport-gains--keno { --be-rapport-c1: rgb(202, 110, 221); --be-rapport-c2: rgb(202, 110, 221); }
body.be-mvp .be-rapport-gains--joker { --be-rapport-c1: rgb(254, 77, 7); --be-rapport-c2: rgb(254, 77, 7); }
body.be-mvp .be-rapport-gains--vikinglotto { --be-rapport-c1: #1a1a1a; --be-rapport-c2: #1a1a1a; }
body.be-mvp .be-rapport-gains--pick3 { --be-rapport-c1: #fbb94f; --be-rapport-c2: #1a1a1a; }
body.be-mvp .be-rapport-gains--eurodreams { --be-rapport-c1: #A061C1; --be-rapport-c2: #e24f61; }

body.be-mvp .be-rapport-gains__section-title {
	margin: 30px auto 20px;
	padding-left: 5px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	color: #111;
	background: none !important;
	text-align: left;
	height: auto !important;
	width: auto !important;
	float: none !important;
	font-family: Roboto, Arial, Helvetica, sans-serif;
}

body.be-mvp .be-rapport-gains__card {
	position: relative;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--be-rapport-border);
	border-radius: 12px;
	box-shadow: 0 2px 8px 0 rgba(38, 34, 98, 0.05);
}

body.be-mvp .be-rapport-gains__card-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 20px 0 0;
	padding: 0 20px 20px;
	border-bottom: 1px solid var(--be-rapport-border);
	background: none !important;
	color: #000 !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	text-align: left !important;
	height: auto !important;
	width: auto !important;
	float: none !important;
	padding: 12px 20px !important;
}

body.be-mvp .be-rapport-gains__card-icon {
	width: 19px;
	height: 19px;
	flex-shrink: 0;
	margin-right: 5px;
}

body.be-mvp .be-rapport-gains__table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	table-layout: fixed;
	background: #fff !important;
	margin: 0;
	padding: 0;
}

body.be-mvp .be-rapport-gains__table thead tr {
	background: var(--be-rapport-head-bg) !important;
}

body.be-mvp .be-rapport-gains__table tbody tr:nth-child(odd) {
	background: #fff !important;
}

body.be-mvp .be-rapport-gains__table tbody tr:nth-child(even) {
	background: var(--be-rapport-head-bg) !important;
}

body.be-mvp .be-rapport-gains__table th,
body.be-mvp .be-rapport-gains__table td {
	border: 0;
	text-align: left;
	vertical-align: middle;
	padding: 16px 12px;
	color: #000;
	font-weight: 400;
}

body.be-mvp .be-rapport-gains__table th {
	font-size: 15px;
	font-weight: 500;
	color: var(--be-rapport-text);
	width: 33.33%;
}

body.be-mvp .be-rapport-gains__table td {
	font-size: 17px;
}

body.be-mvp .be-rapport-gains__table tr th:first-child,
body.be-mvp .be-rapport-gains__table tr td:first-child {
	padding-left: 20px;
}

body.be-mvp .be-rapport-gains__table tbody tr:first-child td {
	font-weight: 600;
}

/* Colonne Super Viking (loteries type "viking") — pastilles vert/gris, design aligné magictable */
body.be-mvp .be-rapport-gains--vikinglotto .be-rapport-gains__table th {
	width: auto;
}
body.be-mvp .be-rapport-gains__sv {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}
body.be-mvp .be-rapport-gains__sv--yes {
	background: #dcfce7;
	color: #15803d;
}
body.be-mvp .be-rapport-gains__sv--no {
	background: #f1f5f9;
	color: #475569;
}
body.be-mvp .be-rapport-gains__sv--dash {
	padding: 0;
	background: transparent;
	color: #94a3b8;
	font-weight: 700;
}

body.be-mvp #rapport_gains_tirage.be-rapport-gains {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

body.be-mvp .be-rapport-gains__tier-name {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

body.be-mvp .be-rapport-gains__ball {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

body.be-mvp .be-rapport-gains__ball--num {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--be-rapport-c1);
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
}

/* Boule bonus générique ("+Y" lotto/viking...) — couleur globale par loterie (--be-rapport-c2) */
body.be-mvp .be-rapport-gains__ball--bonus {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--be-rapport-c2);
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
}

/* Bonus Joker+ — SVG du signe astrologique (fill currentColor = --be-rapport-c2), même gabarit */
body.be-mvp .be-rapport-gains__ball--zodiac {
	width: 30px;
	height: 30px;
	background: transparent;
	color: var(--be-rapport-c2);
}

body.be-mvp .be-rapport-gains__ball--zodiac .be-rapport-gains__zodiac-svg {
	width: 26px;
	height: 26px;
}

body.be-mvp .be-rapport-gains__ball--star {
	position: relative;
	width: 31px;
	height: 31px;
}

body.be-mvp .be-rapport-gains__ball--star .star-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

body.be-mvp .be-rapport-gains__ball--star .star-num {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 4%;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	line-height: 1;
}

/* Bonus Vikinglotto — SVG cornes (couleur --be-rapport-c2) + numéro superposé */
body.be-mvp .be-rapport-gains__ball--viking {
	position: relative;
	width: 31px;
	height: 31px;
}

body.be-mvp .be-rapport-gains__ball--viking .viking-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

body.be-mvp .be-rapport-gains__ball--viking .viking-svg path {
	fill: var(--be-rapport-c2);
}

body.be-mvp .be-rapport-gains__ball--viking .viking-num {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1;
}

body.be-mvp .be-rapport-gains__tier-text {
	font-size: 15px;
	font-weight: 500;
}

/* HTML legacy ranks (lotto, etc.) */
body.be-mvp .be-rapport-gains__tier-legacy .boulescombinaisons {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 4px;
	width: auto;
	margin: 0;
}

body.be-mvp .be-rapport-gains__tier-legacy span.boulerapport,
body.be-mvp .be-rapport-gains__tier-legacy span.chancerapport {
	float: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: 0;
	border-radius: 50%;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	color: #fff;
}

body.be-mvp .be-rapport-gains__tier-legacy span.boulerapport {
	background: var(--be-rapport-c1);
}

body.be-mvp .be-rapport-gains__tier-legacy span.chancerapport {
	background: var(--be-rapport-c2);
}

body.be-mvp .be-rapport-gains__card--empty {
	overflow: hidden;
}

body.be-mvp .be-rapport-gains__table--placeholder {
	position: relative;
	padding-bottom: 20px;
}

body.be-mvp .be-rapport-gains__empty-msg {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	margin: 0;
	padding: 0 20px 60px;
	text-align: center;
	font-size: 17px;
	font-weight: 500;
	color: #000;
	pointer-events: none;
	background-image: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 1) 70%);
	border-radius: 0 0 12px 12px;
}

body.be-mvp section.resultats-loto div.box.box_rapport {
	background: none;
	box-shadow: none;
	border-radius: 0;
	overflow: visible;
}

@media only screen and (max-width: 768px) {
	body.be-mvp .be-rapport-gains__section-title {
		font-size: 16px;
		margin: 24px auto 16px;
	}

	body.be-mvp .be-rapport-gains__card-title {
		font-size: 13px !important;
	}

	body.be-mvp .be-rapport-gains__card-icon {
		width: 16px;
		height: 16px;
	}

	body.be-mvp .be-rapport-gains__table th {
		font-size: 13px;
	}

	body.be-mvp .be-rapport-gains__table td {
		font-size: 15px;
		padding: 12px 10px;
	}

	body.be-mvp .be-rapport-gains__table tr th:first-child,
	body.be-mvp .be-rapport-gains__table tr td:first-child {
		padding-left: 15px;
	}

	body.be-mvp .be-rapport-gains__ball--num,
	body.be-mvp .be-rapport-gains__ball--bonus,
	body.be-mvp .be-rapport-gains__tier-legacy span.boulerapport,
	body.be-mvp .be-rapport-gains__tier-legacy span.chancerapport {
		width: 25px;
		height: 25px;
		font-size: 12px;
	}

	body.be-mvp .be-rapport-gains__ball--star,
	body.be-mvp .be-rapport-gains__ball--viking {
		width: 26px;
		height: 26px;
	}

	body.be-mvp .be-rapport-gains__ball--zodiac {
		width: 26px;
		height: 26px;
	}

	body.be-mvp .be-rapport-gains__ball--zodiac .be-rapport-gains__zodiac-svg {
		width: 22px;
		height: 22px;
	}

	body.be-mvp .be-rapport-gains__ball--star .star-num,
	body.be-mvp .be-rapport-gains__ball--viking .viking-num {
		font-size: 11px;
	}

	body.be-mvp .be-rapport-gains__empty-msg {
		font-size: 15px;
		padding-bottom: 50px;
	}
}

@media only screen and (max-width: 400px) {
	body.be-mvp .be-rapport-gains__card-title {
		font-size: 12px !important;
	}

	body.be-mvp .be-rapport-gains__table th {
		font-size: 12px;
	}

	body.be-mvp .be-rapport-gains__table td {
		font-size: 14px;
	}

	body.be-mvp .be-rapport-gains__empty-msg {
		font-size: 14px;
	}
}
