.banigo-history-page .banigo-history-profile {
	display: grid;
	gap: 16px;
}

.banigo-history-page .banigo-history-profile-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 16px;
	row-gap: 16px;
}

.banigo-history-page .banigo-history-profile-field {
	display: grid;
	min-width: 0;
	grid-template-rows: auto 46px auto;
	align-content: start;
	gap: 7px;
}

.banigo-history-page .banigo-history-profile-row .banigo-history-profile-field {
	grid-template-rows: minmax(1.5em, auto) 46px auto;
}

.banigo-history-page .banigo-history-profile-field > label {
	display: block;
	align-self: end;
	color: var(--color-text);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

.banigo-history-page .banigo-history-profile-control {
	display: flex;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 46px;
	align-items: center;
	border: 1px solid var(--color-border);
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.banigo-history-page .banigo-history-profile-control:focus-within {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(21, 106, 56, .12);
}

.banigo-history-page .banigo-history-profile-control input,
.banigo-history-page .banigo-history-profile-control select {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 100%;
	min-height: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--color-text);
	font: inherit;
	font-size: 14px;
	outline: 0;
}

.banigo-history-page .banigo-history-profile-control select {
	padding-right: 38px;
}

.banigo-history-page .banigo-history-profile-field > small {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 10px;
	font-weight: 400;
	line-height: 1.45;
}

@media (max-width: 640px) {
	.banigo-history-page .banigo-history-profile-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.banigo-history-page .banigo-history-profile-row .banigo-history-profile-field {
		grid-template-rows: auto 46px auto;
	}

	.banigo-history-page .banigo-history-profile-field > label {
		align-self: auto;
	}
}

.banigo-history-page .banigo-history-policy-table table {
	min-width: 820px;
	table-layout: fixed;
}

.banigo-history-page .banigo-history-policy-table col.is-provider { width: 23%; }
.banigo-history-page .banigo-history-policy-table col.is-check { width: 18%; }
.banigo-history-page .banigo-history-policy-table col.is-history { width: 20%; }
.banigo-history-page .banigo-history-policy-table col.is-arrears { width: 19%; }
.banigo-history-page .banigo-history-policy-table col.is-conditions { width: 20%; }

.banigo-history-page .banigo-history-policy-table .banigo-table-status {
	display: inline-flex;
	width: fit-content;
	max-width: 100%;
	min-height: 34px;
	box-sizing: border-box;
	align-items: center;
	gap: 6px;
	justify-content: center;
	padding: 7px 10px;
	border-radius: 9px;
	font-size: 11px;
	font-weight: 750;
	line-height: 1.35;
	text-align: center;
}

.banigo-history-page .banigo-history-policy-table .banigo-table-status.is-success {
	background: #eaf6ee;
	color: var(--color-primary-dark);
}

.banigo-history-page .banigo-history-policy-table .banigo-table-status.is-warning {
	background: #faf3ef;
	color: #95583f;
}

.banigo-history-page .banigo-history-policy-table .banigo-table-status.is-danger {
	background: #fbeeed;
	color: #873d37;
}

.banigo-history-page .banigo-history-policy-table .banigo-table-status.is-neutral {
	background: #eef3f8;
	color: #40576b;
}

.banigo-history-page .banigo-history-conditions ul {
	display: grid;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.banigo-history-page .banigo-history-conditions li {
	color: var(--color-text);
	font-size: 11px;
	line-height: 1.45;
}

.banigo-history-page .banigo-history-empty {
	color: var(--color-text-muted);
}

@media (max-width: 640px) {
	.banigo-history-page .banigo-history-policy-table table {
		min-width: 780px;
	}
}
