.tpw-flexipolicy-profile-section {
	margin-bottom: 1.5rem;
}

.tpw-flexipolicy-gate {
	margin: 1.5rem 0;
	padding: 1.25rem;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tpw-flexipolicy-gate--login-required {
	border-color: #b9d3ea;
	background: #f5f9fd;
}

.tpw-flexipolicy-gate--out-of-scope {
	border-color: #dcdcde;
	background: #f6f7f7;
}

.tpw-flexipolicy-gate--acceptance-required {
	border-color: #f3c57a;
	background: #fff7ea;
}

.tpw-flexipolicy-gate--policy-missing,
.tpw-flexipolicy-gate--policy-unavailable {
	border-color: #d63638;
	background: #fcf0f1;
}

.tpw-flexipolicy-gate__title {
	margin: 0 0 0.55rem;
	color: #1d2327;
	font-size: 1.1rem;
	line-height: 1.3;
}

.tpw-flexipolicy-gate__message {
	margin: 0;
	color: #2c3338;
	line-height: 1.6;
}

.tpw-flexipolicy-gate__actions {
	margin: 1rem 0 0;
}

.tpw-flexipolicy-profile-section .tpw-flexipolicy-profile-table-wrap {
	overflow-x: auto;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
}

.tpw-flexipolicy-profile-section .tpw-flexipolicy-profile-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
	line-height: 1.45;
	background: #fff;
}

.tpw-flexipolicy-profile-section .tpw-flexipolicy-profile-table thead th {
	padding: 0.85rem 1rem;
	border-bottom: 1px solid #dcdcde;
	background: #f6f7f7;
	color: #1d2327;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: left;
	white-space: nowrap;
}

.tpw-flexipolicy-profile-section .tpw-flexipolicy-profile-table tbody td {
	padding: 0.95rem 1rem;
	border-bottom: 1px solid #f0f0f1;
	vertical-align: middle;
	color: #1d2327;
	background: #fff;
}

.tpw-flexipolicy-profile-section .tpw-flexipolicy-profile-table tbody tr:last-child td {
	border-bottom: 0;
}

.tpw-flexipolicy-profile-section .tpw-flexipolicy-profile-table tbody tr:hover td {
	background: #fcfcfd;
}

.tpw-flexipolicy-profile-section .tpw-flexipolicy-profile-table .tpw-flexipolicy-policy-cell {
	min-width: 14rem;
	font-weight: 600;
}

.tpw-flexipolicy-profile-section .tpw-flexipolicy-profile-table .tpw-flexipolicy-version-cell {
	min-width: 13rem;
}

.tpw-flexipolicy-profile-section .tpw-flexipolicy-version-label {
	display: block;
	font-weight: 600;
	color: #1d2327;
}

.tpw-flexipolicy-profile-section .tpw-flexipolicy-version-title {
	display: block;
	margin-top: 0.15rem;
	color: #6c7781;
	font-size: 0.88rem;
}

.tpw-flexipolicy-profile-section .tpw-flexipolicy-type-cell,
.tpw-flexipolicy-profile-section .tpw-flexipolicy-accepted-cell {
	white-space: nowrap;
}

.tpw-flexipolicy-profile-section .tpw-flexipolicy-status-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 7.25rem;
	padding: 0.25rem 0.6rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.tpw-flexipolicy-profile-section .tpw-flexipolicy-status-badge.is-accepted {
	border-color: #9fd5b3;
	background: #edf9f1;
	color: #0f6b33;
}

.tpw-flexipolicy-profile-section .tpw-flexipolicy-status-badge.is-pending {
	border-color: #f3c57a;
	background: #fff7ea;
	color: #8a4b00;
}

.tpw-flexipolicy-profile-section .tpw-flexipolicy-action-cell {
	text-align: right;
	white-space: nowrap;
	width: 1%;
}

.tpw-flexipolicy-profile-section .tpw-flexipolicy-action-cell .tpw-btn {
	min-width: 8.75rem;
	justify-content: center;
}

.tpw-flexipolicy-profile-section .tpw-flexipolicy-empty-state {
	padding: 1.5rem 1rem;
	text-align: center;
	color: #50575e;
	font-style: italic;
}

@media (max-width: 782px) {
	.tpw-flexipolicy-profile-section .tpw-flexipolicy-profile-table thead {
		display: none;
	}

	.tpw-flexipolicy-profile-section .tpw-flexipolicy-profile-table,
	.tpw-flexipolicy-profile-section .tpw-flexipolicy-profile-table tbody,
	.tpw-flexipolicy-profile-section .tpw-flexipolicy-profile-table tr,
	.tpw-flexipolicy-profile-section .tpw-flexipolicy-profile-table td {
		display: block;
		width: 100%;
	}

	.tpw-flexipolicy-profile-section .tpw-flexipolicy-profile-table tbody tr {
		padding: 0.35rem 0;
		border-bottom: 1px solid #dcdcde;
	}

	.tpw-flexipolicy-profile-section .tpw-flexipolicy-profile-table tbody tr:last-child {
		border-bottom: 0;
	}

	.tpw-flexipolicy-profile-section .tpw-flexipolicy-profile-table tbody td {
		padding: 0.5rem 1rem;
		border: 0;
	}

	.tpw-flexipolicy-profile-section .tpw-flexipolicy-profile-table tbody td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 0.18rem;
		color: #6c7781;
		font-size: 0.76rem;
		font-weight: 700;
		letter-spacing: 0.03em;
		text-transform: uppercase;
	}

	.tpw-flexipolicy-profile-section .tpw-flexipolicy-action-cell {
		text-align: left;
	}

	.tpw-flexipolicy-profile-section .tpw-flexipolicy-action-cell .tpw-btn {
		width: 100%;
	}

	.tpw-flexipolicy-profile-section .tpw-flexipolicy-empty-state {
		text-align: left;
	}
}