/* ============================================================
   PJB Likes Report — Frontend Styles v2.2.3
   Corporate Dashboard (light base, navy headers)
   ============================================================ */

.pjb-likes-report-wrapper {
	max-width: 1200px;
	font-family: Ubuntu, sans-serif;
}

.pjb-likes-report-wrapper *,
.pjb-likes-report-wrapper *::before,
.pjb-likes-report-wrapper *::after {
	font-family: inherit;
	box-sizing: border-box;
}

/* --- Page header banner ----------------------------------- */

.pjb-report-header {
	/* background: linear-gradient(135deg, #1e3a5f 0%, #2d5fa0 100%);*/
	background: #fff;
	color: #fff;
	padding: 1.5rem 2rem;
	border-radius: 16px;
	margin: 1rem 0 2rem;
	/* box-shadow: 0 2px 10px rgba(30, 58, 95, .25);*/
}

.pjb-report-header__title {
	margin: 0 0 0.35rem;
	font-size: 1.6rem;
	color: #fff;
	line-height: 1.2;
}

.pjb-report-header__desc {
	margin: 0;
	color: rgba(255, 255, 255, .78);
	font-size: 0.95rem;
	color: #1e3a5f;
}

/* --- Section headings ------------------------------------- */

.pjb-likes-report-wrapper h2 {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 2rem 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 3px solid #1e3a5f;
	color: #1e3a5f;
	font-size: 0.95rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
}

.pjb-likes-report-wrapper h3 {
	margin: 1.5rem 0 0.6rem;
	padding-bottom: 0.35rem;
	border-bottom: 1px solid #e2e8f0;
	color: #1e3a5f;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: .07em;
	font-weight: 700;
}

/* --- Filter bar / Options bar ----------------------------- */

.pjb-toolbar-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.25rem;
	margin-bottom: 0.9rem;
	padding: 1rem 1.125rem;
	/*background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);*/
	background: #fff;
	/*border: 1px solid #d8e3ee;*/
	border-radius: 16px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.pjb-toolbar-card__label {
	flex: 0 0 auto;
	min-width: 150px;
	color: #163b67;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pjb-store-chip-list {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 0.625rem;
}

.pjb-store-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 0 16px;
	border: 1px solid #f2f7fc;
	border-radius: 999px;
	background: #f2f7fc;
	color: #163b67 !important;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	/*transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;*/
}

.pjb-store-chip:hover {
	color: #fff !important;
	border-color: #a8c8e6;
	background-color: #163b67;
	/*box-shadow: 0 8px 18px rgba(22, 59, 103, 0.08);*/
	/*transform: translateY(-1px);*/
}

.pjb-store-chip:focus {
	outline: 2px solid #7cc8ff;
	outline-offset: 2px;
}

.pjb-store-chip--active {
	border-color: #163b67;
	/*background: linear-gradient(135deg, #163b67 0%, #2f5788 100%);*/
	background: #163b67;
	color: #ffffff !important;
	/*box-shadow: 0 10px 22px rgba(22, 59, 103, 0.18);*/
}

.pjb-display-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.875rem;
	padding: 0.625rem 0.875rem;
	border: 1px solid #f2f7fc;
	border-radius: 999px;
	background: #f2f7fc;
	color: #163b67 !important;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.pjb-display-toggle:hover {
	border-color: #a8c8e6;
	/*box-shadow: 0 8px 18px rgba(22, 59, 103, 0.08);*/
	/*transform: translateY(-1px);*/
}

.pjb-display-toggle:focus {
	outline: 2px solid #f2f7fc;
	outline-offset: 2px;
}

.pjb-display-toggle__switch {
	position: relative;
	flex: 0 0 52px;
	width: 52px;
	height: 24px;
	border-radius: 999px;
	background: #c8d7e6;
	box-shadow: inset 0 0 0 1px rgba(22, 59, 103, 0.08);
	transition: background 0.18s ease;
}

.pjb-display-toggle__knob {
	position: absolute;
	top: 3px;
	left: 4px;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 3px 8px rgba(15, 23, 42, 0.18);
	transition: transform 0.18s ease;
}

.pjb-display-toggle.is-active {
	background: #eef6ff;
	border-color: #aac9e6;
}

.pjb-display-toggle.is-active .pjb-display-toggle__switch {
	background: linear-gradient(135deg, #163b67 0%, #2f5788 100%);
}

.pjb-display-toggle.is-active .pjb-display-toggle__knob {
	transform: translateX(22px);
}

.pjb-display-toggle__text {
	flex: 1;
	color: inherit;
}

@media (max-width: 782px) {
	.pjb-toolbar-card {
		padding: 0.95rem;
	}

	.pjb-toolbar-card__label {
		min-width: 100%;
	}

	.pjb-store-chip-list {
		width: 100%;
	}

	.pjb-display-toggle {
		width: 100%;
		justify-content: space-between;
	}
}

/* Export links */
.pjb-likes-report-wrapper .pjb-export-link {
	display: inline-block;
	margin-bottom: 0.75rem;
	padding: 0.3rem 0.75rem;
	background: #ffffff;
	border: 1px solid #f2f7fc;
	border-radius: 8px;
	color: #1e3a5f;
	font-size: 0.82rem;
	font-weight: 500;
	text-decoration: none;
	transition: background .15s, border-color .15s, color .15s;
}

.pjb-likes-report-wrapper .pjb-export-link:hover,
.pjb-likes-report-wrapper .pjb-export-link:focus {
	background: #163b67;
	border-color: #163b67;
	color: #ffffff;
}

/* Row count summary */
.pjb-row-summary {
	font-size: 0.82rem;
	color: #64748b;
	margin: 0 0 0.75rem;
}

.pjb-row-summary strong {
	color: #1e3a5f;
}

/* --- Pagination ------------------------------------------- */

.pjb-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin: 0.75rem 0 2rem;
	padding: 0.6rem 0.875rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 0.82rem;
	color: #64748b;
}

.pjb-pagination__summary {
	color: #64748b;
}

.pjb-pagination__controls {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.pjb-pagination__btn {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.65rem;
	background: #fff;
	border: 1px solid #1e3a5f;
	border-radius: 6px;
	color: #1e3a5f;
	font-size: 0.82rem;
	font-weight: 500;
	text-decoration: none;
	transition: background .15s, color .15s;
}

.pjb-pagination__btn:hover {
	background: #dbeafe;
	border-color: #2563eb;
	color: #1d4ed8;
}

.pjb-pagination__btn.is-disabled {
	opacity: 0.4;
	pointer-events: none;
	cursor: default;
}

.pjb-pagination__info {
	color: #334155;
	font-size: 0.82rem;
}

.pjb-pagination__info strong {
	color: #1e3a5f;
}

/* --- Data tables ------------------------------------------ */

.pjb-likes-report-table {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	overflow: hidden;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0 0 2rem;
	font-size: 0.875rem;
}

.pjb-likes-report-table thead th {
	background: #1e3a5f;
	color: #fff;
	font-weight: 700;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: .05em;
	border-bottom: 2px solid #162d4a;
	padding: 0.6rem 1rem;
	text-align: left;
	vertical-align: middle;
}

.pjb-likes-report-table thead th a {
	color: #fff;
	text-decoration: none;
	transition: opacity .15s;
}

.pjb-likes-report-table thead th a:hover {
	opacity: 0.85;
	text-decoration: underline;
}

.pjb-likes-report-table thead th a:focus {
	outline: 2px solid rgba(255, 255, 255, .6);
	outline-offset: 2px;
	border-radius: 2px;
}

.pjb-likes-report-table tbody td {
	padding: 0.55rem 1rem;
	vertical-align: top;
	font-size: 0.875rem;
	border-bottom: 1px solid #f0f4f8;
	color: #334155;
	text-align: left;
}

.pjb-likes-report-table tbody tr:last-child td {
	border-bottom: none;
}

.pjb-likes-report-table tbody tr:nth-child(odd) td {
	background: #fff;
}

.pjb-likes-report-table tbody tr:nth-child(even) td {
	background: #f8fafc;
}

.pjb-likes-report-table tbody tr:hover td {
	background: #eff6ff;
}

/* --- Empty state ------------------------------------------ */

.pjb-likes-report-empty {
	color: #94a3b8;
	font-style: normal;
	font-size: 0.82rem;
}

.pjb-likes-report-table tbody tr.is-empty td {
	opacity: 0.45;
}

.pjb-likes-report-table tbody tr.is-empty:hover td {
	background: inherit;
}

/* --- Gallery counter -------------------------------------- */

.pjb-liked-gallery__count {
	margin: -0.5rem 0 1rem;
	font-size: 0.82rem;
	color: #64748b;
}

.pjb-liked-gallery__count strong {
	color: #1e3a5f;
}

/* --- Liked gallery ---------------------------------------- */

.pjb-liked-gallery {
	display: grid;
	grid-template-columns: repeat(var(--pjb-gallery-columns, 3), 1fr);
	gap: 1.25rem;
	margin: 1.5rem 0;
}

.pjb-liked-gallery__item {
	display: flex;
	flex-direction: column;
	margin: 0;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .07);
	transition: box-shadow .2s ease, transform .2s ease;
}

.pjb-liked-gallery__item:hover {
	box-shadow: 0 8px 24px rgba(30, 58, 95, .12);
	transform: translateY(-2px);
}

.pjb-liked-gallery__item img {
	display: block;
	width: 100%;
	height: 220px !important;
	min-height: 220px;
	max-height: 220px;
	object-fit: cover;
	object-position: center;
	flex-shrink: 0;
}

.pjb-liked-gallery__item {
	cursor: pointer;
}

.pjb-liked-gallery__caption {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.5rem 0.75rem;
	border-top: 1px solid #f0f4f8;
	background: #f8fafc;
	font-family: Ubuntu, sans-serif;
	font-style: normal;
}

.pjb-liked-gallery__title {
	font-family: Ubuntu, sans-serif;
	font-style: normal;
	font-size: 0.875rem;
	font-weight: 600;
	color: #1e3a5f;
	line-height: 1.3;
}

.pjb-liked-gallery__author-row {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	align-self: flex-start;
}

.pjb-liked-gallery__author {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.25rem 0.75rem;
	background: #014878;
	color: #ffffff;
	border-radius: 8px;
	font-family: Ubuntu, sans-serif;
	font-style: normal;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1.4;
}

.pjb-liked-gallery__name-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	outline: none;
	color: #1a5a85;
	cursor: pointer;
	transition: color .15s;
	flex-shrink: 0;
	line-height: 1;
}

.pjb-liked-gallery__name-toggle:hover {
	background: none !important;
	color: #4D7EA0;
}

.pjb-liked-gallery__name-toggle:focus {
	outline: 2px solid #7cc8ff;
	outline-offset: 2px;
}

.pjb-liked-gallery__name-toggle svg {
	width: 14px;
	height: 14px;
	display: block;
}

/* Oeil ouvert par défaut, barré masqué */
.pjb-liked-gallery__name-toggle .pjb-icon-eye-closed {
	display: none;
}

/* Quand le nom est affiché : bascule les icônes */
.pjb-liked-gallery__name-toggle[aria-expanded="true"] .pjb-icon-eye-open {
	display: none;
}

.pjb-liked-gallery__name-toggle[aria-expanded="true"] .pjb-icon-eye-closed {
	display: block;
}

.pjb-liked-gallery__name {
	font-family: Ubuntu, sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 0.82rem;
	color: #334155;
	margin-top: 0.3rem;
}

.pjb-liked-gallery__heading {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 2rem 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 3px solid #1e3a5f;
	color: #1e3a5f;
	font-family: Ubuntu, sans-serif;
	font-style: normal;
	font-size: 0.95rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
}

.pjb-gallery-notice {
	color: #64748b;
}

/* --- Lightbox --------------------------------------------- */

.pjb-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(10, 20, 35, .88);
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	backdrop-filter: blur(4px);
	font-family: Ubuntu, sans-serif;
	font-style: normal;
}

.pjb-lightbox.is-open {
	display: flex;
}

.pjb-lightbox__inner {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.875rem;
}

.pjb-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: 80vh;
	border-radius: 6px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
	object-fit: contain;
}

.pjb-lightbox__nav {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.75rem;
}

.pjb-lightbox__prev,
.pjb-lightbox__next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 50%;
	color: #fff;
	font-size: 1.25rem;
	cursor: pointer;
	transition: background .15s;
	flex-shrink: 0;
}

.pjb-lightbox__prev:hover,
.pjb-lightbox__next:hover {
	background: rgba(255, 255, 255, .25);
}

.pjb-lightbox__prev:disabled,
.pjb-lightbox__next:disabled {
	opacity: 0.25;
	cursor: default;
}

.pjb-lightbox__counter {
	font-family: Ubuntu, sans-serif;
	font-style: normal;
	color: rgba(255, 255, 255, .7);
	font-size: 0.82rem;
	min-width: 4rem;
	text-align: center;
}

.pjb-lightbox__caption {
	font-family: Ubuntu, sans-serif;
	font-style: normal;
	color: rgba(255, 255, 255, .88);
	font-size: 0.9rem;
	text-align: center;
	line-height: 1.4;
}

.pjb-lightbox__close {
	position: absolute;
	top: -2.5rem;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	transition: background .15s;
}

.pjb-lightbox__close:hover {
	background: rgba(255, 255, 255, .25);
}

@media (max-width: 480px) {
	.pjb-lightbox {
		padding: 1rem;
	}

	.pjb-lightbox__close {
		top: -3rem;
	}
}

@media (max-width: 782px) {
	.pjb-liked-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.pjb-liked-gallery {
		grid-template-columns: 1fr;
	}
}

/* --- Items cell ------------------------------------------- */

.pjb-likes-report-items-cell {
	text-align: left;
	vertical-align: top;
}

.pjb-likes-report-items-text {
	display: block;
	white-space: normal;
	line-height: 1.5;
	color: #334155;
}

/* --- Galerie collective — badge nombre de likes ----------- */

.pjb-liked-gallery__like-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
	background: rgba(30, 58, 95, .1);
	color: #1a5a85;
	font-size: 0.75rem;
	font-weight: 600;
	font-family: Ubuntu, sans-serif;
	font-style: normal;
	line-height: 1.4;
	flex-shrink: 0;
}

.pjb-icon-heart {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	vertical-align: middle;
	color: #1a5a85;
}