.bhwt-history {
	border-top: 1px solid var(--bhwt-border);
	padding-top: 28px;
}

.bhwt-history__head,
.bhwt-history__controls,
.bhwt-history__dashboard-controls {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
}

.bhwt-history__title {
	align-items: center;
	display: flex;
	gap: 8px;
	margin-bottom: 0;
}

.bhwt-history__title .dashicons {
	color: var(--bhwt-brand);
}

.bhwt-history__note {
	color: var(--bhwt-muted);
	font-size: 12px;
	line-height: 1.55;
	margin: 9px 0 16px;
}

.bhwt-history__controls,
.bhwt-history__dashboard-controls {
	align-items: flex-end;
}

.bhwt-history__controls {
	justify-content: flex-start;
	margin-bottom: 16px;
}

.bhwt-history__select-label {
	color: var(--bhwt-text);
	display: flex;
	flex-direction: column;
	font-size: 12px;
	font-weight: 700;
	gap: 5px;
}

.bhwt-history__select {
	appearance: none;
	background: #fff;
	border: 1px solid #b9c5d4;
	border-radius: 8px;
	color: var(--bhwt-text);
	font: inherit;
	font-size: 13px;
	min-height: 40px;
	padding: 7px 34px 7px 11px;
}

.bhwt-history__select--wide {
	max-width: 100%;
	min-width: min(440px, 80vw);
}

.bhwt-history__clear {
	align-items: center;
	background: #fff;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	color: #b42318;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	min-height: 40px;
	padding: 8px 12px;
}

.bhwt-history__clear:hover,
.bhwt-history__clear:focus-visible {
	background: #fff0ee;
	border-color: #f3b8b2;
}

.bhwt-history__chart-wrap {
	background: #fbfdff;
	border: 1px solid var(--bhwt-border);
	border-radius: 12px;
	margin-bottom: 16px;
	overflow: hidden;
	padding: 10px;
}

.bhwt-history__chart {
	display: block;
	height: auto;
	max-height: 310px;
	width: 100%;
}

.bhwt-history__grid-line {
	stroke: #dbe3ec;
	stroke-width: 1;
}

.bhwt-history__axis-label {
	fill: #667085;
	font-family: inherit;
	font-size: 11px;
}

.bhwt-history__line {
	fill: none;
	stroke: var(--bhwt-brand);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 4;
}

.bhwt-history__point {
	fill: #fff;
	stroke: var(--bhwt-brand);
	stroke-width: 3;
}

.bhwt-history__point:focus {
	outline: none;
	stroke: #172033;
	stroke-width: 5;
}

.bhwt-history__table-wrap {
	overflow: hidden;
}

.bhwt-history__table {
	min-width: 0;
	table-layout: fixed;
	width: 100%;
}

.bhwt-history__dashboard-controls {
	justify-content: flex-start;
	margin-bottom: 20px;
}

.bhwt-history__dashboard-cards {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	margin-bottom: 25px;
}

.bhwt-history__dashboard-card {
	background: #f8fafc;
	border: 1px solid var(--bhwt-border);
	border-radius: 11px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 15px;
}

.bhwt-history__dashboard-card strong {
	font-size: 13px;
}

.bhwt-history__dashboard-card span {
	color: var(--bhwt-brand);
	font-size: 24px;
	font-weight: 800;
}

.bhwt-history__dashboard-card--empty {
	background: #fbfcfe;
	border-style: dashed;
}

.bhwt-history__dashboard-card--empty span,
.bhwt-history__dashboard-card--empty small {
	color: var(--bhwt-muted);
}

.bhwt-history__dashboard-card small {
	color: var(--bhwt-muted);
	font-size: 11px;
}

.bhwt-history-dashboard__content {
	padding: clamp(22px, 4vw, 38px);
}

@media (max-width: 720px) {
	.bhwt-history__controls,
	.bhwt-history__dashboard-controls {
		align-items: stretch;
		flex-direction: column;
	}

	.bhwt-history__select,
	.bhwt-history__select--wide,
	.bhwt-history__clear {
		min-width: 0;
		width: 100%;
	}

	.bhwt-history__table-wrap {
		border: 0;
		overflow: visible;
	}

	.bhwt-history__table,
	.bhwt-history__table tbody,
	.bhwt-history__table tr,
	.bhwt-history__table td {
		display: block;
		min-width: 0;
		width: 100%;
	}

	.bhwt-history__table thead {
		display: none;
	}

	.bhwt-history__table tr {
		border: 1px solid var(--bhwt-border);
		border-radius: 10px;
		margin-bottom: 10px;
		overflow: hidden;
	}

	.bhwt-history__table td {
		border-bottom: 1px solid var(--bhwt-border);
		padding-left: 46%;
		position: relative;
	}

	.bhwt-history__table td::before {
		color: #475467;
		content: attr(data-label);
		font-size: 11px;
		font-weight: 750;
		left: 12px;
		position: absolute;
		top: 13px;
		width: 40%;
	}
}
