/**
 * Copyright © 2014-2026 Presta-Mod.pl Rafał Zontek
 *
 * NOTICE OF LICENSE
 *
 * Niniejszy plik stanowi część płatnego oprogramowania oferowanego przez Presta-Mod.pl.
 * Kopiowanie, rozpowszechnianie, udostępnianie osobom trzecim oraz wykorzystywanie
 * całości lub części kodu bez uprzedniej pisemnej zgody autora jest zabronione.
 *
 * Moduł można nabyć wyłącznie za pośrednictwem strony internetowej:
 * https://presta-mod.pl
 *
 * Wszelkie modyfikacje kodu, wykonane bez zgody autora, mogą skutkować utratą
 * wsparcia technicznego, gwarancji oraz prawa do aktualizacji.
 *
 * DISCLAIMER
 *
 * Oprogramowanie dostarczane jest zgodnie z warunkami indywidualnej licencji.
 * Licencja standardowa uprawnia do korzystania z modułu wyłącznie w obrębie
 * jednej domeny, chyba że ustalono inaczej w formie pisemnej.
 *
 * @author    Presta-Mod.pl Rafał Zontek <biuro@presta-mod.pl>
 * @copyright © 2014-2026 Presta-Mod.pl Rafał Zontek
 * @license   Licencja komercyjna na jedną domenę
 *
 * @see      https://presta-mod.pl
 */
.pm-table-modal-open {
	overflow: hidden;
}

.pm-table-content-hidden {
	display: none !important;
}

.pm-show-table {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 12px 0;
	padding: 11px 14px;
	max-width: 100%;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	background: #fff;
	color: #232323;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.pm-table-link {
	gap: 8px;
	margin: 10px 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #006ce4;
}

.pm-table-link:hover,
.pm-table-link:focus {
	border-color: transparent;
	background: transparent;
	color: #004fa8;
}

.pm-table-link .pm-table-cta-icon {
	flex-basis: 26px;
	width: 26px;
	height: 26px;
	border: 0;
	background: transparent;
}

.pm-table-link .pm-table-cta-ruler {
	width: 20px;
	height: 14px;
}

.pm-table-accordion {
	margin: 16px 0;
	max-width: 100%;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	background: #fff;
}

.pm-table-accordion {
	overflow: hidden;
}

.pm-table-accordion summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	cursor: pointer;
	list-style: none;
	background: #fff;
}

.pm-table-accordion summary::-webkit-details-marker {
	display: none;
}

.pm-table-accordion summary::after {
	content: "+";
	margin-left: auto;
	color: #6c757d;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
}

.pm-table-accordion[open] summary::after {
	content: "-";
}

.pm-table-accordion .pm-table-content {
	padding: 20px;
}

.pm-show-table:hover,
.pm-show-table:focus {
	border-color: #adb5bd;
	color: #006ce4;
	background: #f8f9fa;
	text-decoration: none;
}

.pm-table-cta-icon {
	position: relative;
	display: inline-flex;
	flex: 0 0 32px;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: #6c757d;
}

.pm-table-cta-icon img {
	display: block;
	max-width: 24px;
	max-height: 24px;
}

.pm-table-cta-ruler {
	position: relative;
	display: block;
	width: 22px;
	height: 16px;
	border: 2px solid currentColor;
	border-radius: 2px;
}

.pm-table-cta-ruler::before,
.pm-table-cta-ruler::after {
	content: "";
	position: absolute;
	top: 0;
	width: 2px;
	height: 7px;
	background: currentColor;
}

.pm-table-cta-ruler::before {
	left: 7px;
}

.pm-table-cta-ruler::after {
	left: 16px;
}

.pm-table-cta-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	text-align: left;
}

.pm-table-cta-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
}

.pm-table-cta-text {
	color: #6c757d;
	font-size: 13px;
	line-height: 1.3;
}

.pm-table-content img {
	max-width: 100%;
}

.pm-table-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.pm-table-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.pm-table-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(920px, 100%);
	max-height: 90vh;
	overflow: auto;
	background: #fff;
	color: #232323;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	padding: 0;
}

.pm-table-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	color: #6c757d;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.pm-table-modal-close:hover,
.pm-table-modal-close:focus {
	background: #f8f9fa;
	color: #232323;
}

.pm-table-modal-body {
	padding: 24px;
}

.pm-table-modal-title {
	margin: -24px -24px 20px;
	padding: 16px 56px 14px 24px;
	border-bottom: 1px solid #dee2e6;
	background: #fff;
	color: #232323;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
}

.pm-table-content {
	overflow-x: auto;
}

.pm-table-modal-body table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	color: #232323;
}

.pm-table-modal-body table th,
.pm-table-modal-body table td {
	padding: 10px 12px;
	border: 1px solid #dee2e6;
	text-align: left;
	vertical-align: middle;
}

.pm-table-modal-body table th {
	background: #f8f9fa;
	color: #232323;
	font-weight: 600;
}

.pm-table-modal-body table tr:nth-child(even) td {
	background: #f8f9fa;
}

@media (max-width: 767px) {
	.pm-show-table {
		display: flex;
		width: 100%;
	}

	.pm-table-modal {
		padding: 12px;
	}

	.pm-table-modal-dialog {
		width: 100%;
	}

	.pm-table-modal-body {
		padding: 20px 16px 16px;
	}

	.pm-table-modal-title {
		margin: -20px -16px 18px;
		padding: 18px 56px 16px 16px;
		font-size: 19px;
	}
}
