.pn-table-wrapper {
	display: flex;
	max-height: 600px;
	overflow: auto;
}

.pn-table-wrapper:has(.pn-table-small) {
	max-height: 400px;
}

.pn-table-wrapper:has(.pn-table-center) {
	margin: auto 0;
}

.pn-table-wrapper::-webkit-scrollbar {
	width: 4px;
}

.pn-table {
	flex: 1;
}

.pn-table .pn-table-th,
.pn-table .pn-table-th button {
	padding: var(--padding-md) var(--padding-sm);
	color: var(--text-dark-primary);
	font-size: var(--body-6-font-size);
	font-weight: 550;
	line-height: var(--body-6-line-height);
	letter-spacing: var(--body-6-letter-spacing);
	white-space: nowrap;
}

.pn-table .pn-table-th:has(button) {
	padding: 0;
}

.pn-table .pn-table-th button {
	justify-content: start;
	width: stretch;
}

.pn-table thead {
	position: sticky;
	top: 0;
}

.pn-table thead .pn-table-tr::after {
	content: '';
    height: 1px;
    display: block;
    background: var(--border-light-secundary);
    position: absolute;
    left: 0;
    width: 100%;
    bottom: 0;
}

.pn-table thead .pn-table-tr {
	background: var(--surface-light-secundary);
}

.pn-table td {
	padding: 0 var(--padding-sm);
	height: 56px;
	border-bottom: 1px solid var(--border-light-primary);
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-line-clamp: 1;
	line-clamp: 1;
	-webkit-box-orient: vertical;
	white-space: nowrap;
	max-width: 250px;
}

.pn-table td,
.pn-table td * {
	color: var(--text-dark-primary);
	font-size: var(--body-6-font-size);
	font-weight: 550;
	line-height: var(--body-6-line-height);
	letter-spacing: var(--body-6-letter-spacing);
}

.pn-table-center td,
.pn-table-center th {
	text-align: center;
}

.pn-table-center td:first-child,
.pn-table-center th:first-child {
	text-align: start;
}

.pn-table-center td:last-child,
.pn-table-center th:last-child {
	text-align: end;
}

.pn-table tr:last-child td {
	border-bottom: none;
}

.pn-table-flat td {
	height: 36px;
	border: none;
}

.pn-table td.is-active-sort-col {
	background: var(--surface-light-neutral-bg-secundary);
}

.pn-table .sort-indicator {
	display: flex;
	margin-left: auto;
}

.pn-table .sort-indicator::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	background-color: var(--text-dark-primary);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20d%3D%22M224%2C128a8%2C8%2C0%2C0%2C1-8%2C8H40a8%2C8%2C0%2C0%2C1%2C0-16H216A8%2C8%2C0%2C0%2C1%2C224%2C128Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20d%3D%22M224%2C128a8%2C8%2C0%2C0%2C1-8%2C8H40a8%2C8%2C0%2C0%2C1%2C0-16H216A8%2C8%2C0%2C0%2C1%2C224%2C128Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E");
	mask-size: contain;
	mask-repeat: no-repeat;
}

.pn-table .is-sort-active .sort-indicator::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z'%3E%3C/path%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z'%3E%3C/path%3E%3C/svg%3E");
}

.pn-table .is-sort-active.is-sort-asc .sort-indicator::before {
	transform: rotate(180deg);
}

.pn-table tfoot {
	background: var(--surface-light-primary);
	position: sticky;
	bottom: 0;
}

.pn-table tfoot::after {
	content: '';
    height: 1px;
    display: block;
    background: var(--border-light-secundary);
    position: absolute;
    left: 0;
    width: 100%;
    top: 0;
}

.pn-table-footer-content {
	padding: 0 var(--padding-sm);
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: var(--text-dark-primary);
	font-size: var(--caption-1-font-size);
	font-weight: 650;
	line-height: var(--caption-1-line-height);
	letter-spacing: var(--caption-1-letter-spacing);
	border-top: 1px solid var(--border-light-primary);
	padding-top: 12px;
}