/*
 * IPOGMPHub — GMP HISTORY
 * Premium responsive component
 * Layout: 50% desktop / 100% mobile
 */

/* ---------- Card ---------- */

.ipogmphub-gmp-history {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: calc(50% - 8px);
	min-width: 0;
	margin: 28px 0;
	padding: 22px;
	background: #fff;
	border: 1px solid #dce7f3;
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(35, 75, 125, .055);
	color: var(--ipogmphub-text, #152238);
	overflow: hidden;
	vertical-align: top;
}

/* When History and Trend are adjacent */
.ipogmphub-gmp-history + .ipogmphub-gmp-chart {
	margin-left: 12px;
}

/* ---------- Heading ---------- */

.ipogmphub-gmp-history .ipogmphub-section-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 16px;
}

.ipogmphub-gmp-history .ipogmphub-eyebrow {
	display: block;
	margin: 0 0 4px;
	color: #1264d8;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.ipogmphub-gmp-history .ipogmphub-section-heading h2 {
	margin: 0;
	color: #10213d;
	font-size: 23px;
	font-weight: 850;
	line-height: 1.15;
	letter-spacing: -.025em;
}

.ipogmphub-history-count {
	flex: 0 0 auto;
	margin-top: 4px;
	color: #6b7d95;
	font-size: 11px;
	line-height: 1.3;
	white-space: nowrap;
}

/* ---------- Table ---------- */

.ipogmphub-history-table-wrap {
	width: 100%;
	min-width: 0;
	overflow-x: auto;
	border: 1px solid #e0e8f2;
	border-radius: 13px;
	-webkit-overflow-scrolling: touch;
}

.ipogmphub-history-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
}

.ipogmphub-history-table th,
.ipogmphub-history-table td {
	padding: 11px 13px;
	border: 0;
	border-bottom: 1px solid #edf1f6;
	font-size: 12px;
	line-height: 1.35;
	text-align: left;
}

.ipogmphub-history-table th {
	background: #f7faff;
	color: #62748d;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .035em;
	text-transform: uppercase;
}

.ipogmphub-history-table th:first-child {
	border-top-left-radius: 12px;
}

.ipogmphub-history-table th:last-child {
	border-top-right-radius: 12px;
}

.ipogmphub-history-table tbody tr:last-child td {
	border-bottom: 0;
}

.ipogmphub-history-table tbody tr:nth-child(even) td {
	background: #fbfdff;
}

.ipogmphub-history-table tbody tr:hover td {
	background: #f4f8fe;
}

.ipogmphub-history-table td:first-child {
	color: #52657e;
	font-weight: 650;
	white-space: nowrap;
}

.ipogmphub-history-gmp {
	color: #1264d8;
	font-size: 14px !important;
	font-weight: 850 !important;
	text-align: right !important;
	white-space: nowrap;
}

/* ---------- Empty state ---------- */

.ipogmphub-gmp-history .ipogmphub-empty,
.ipogmphub-gmp-history .ipogmphub-no-data {
	padding: 22px 12px;
	color: #71829a;
	font-size: 12px;
	text-align: center;
}

/* ---------- Tablet ---------- */

@media (max-width: 980px) and (min-width: 681px) {
	.ipogmphub-gmp-history {
		padding: 20px;
	}

	.ipogmphub-gmp-history .ipogmphub-section-heading h2 {
		font-size: 21px;
	}

	.ipogmphub-history-table th,
	.ipogmphub-history-table td {
		padding: 10px 10px;
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 680px) {
	.ipogmphub-gmp-history {
		width: 100%;
		min-height: 0;
		margin: 20px 0;
		padding: 17px 14px;
		border-radius: 15px;
	}

	.ipogmphub-gmp-history + .ipogmphub-gmp-chart {
		margin-left: 0;
	}

	.ipogmphub-gmp-history .ipogmphub-section-heading {
		margin-bottom: 14px;
	}

	.ipogmphub-gmp-history .ipogmphub-section-heading h2 {
		font-size: 21px;
	}

	.ipogmphub-history-table th,
	.ipogmphub-history-table td {
		padding: 10px 9px;
		font-size: 11px;
	}

	.ipogmphub-history-gmp {
		font-size: 13px !important;
	}
}

/* ---------- Small mobile ---------- */

@media (max-width: 430px) {
	.ipogmphub-gmp-history {
		padding: 15px 12px;
	}

	.ipogmphub-gmp-history .ipogmphub-section-heading h2 {
		font-size: 20px;
	}

	.ipogmphub-history-count {
		font-size: 10px;
	}
}
