.mdg-gquest-log {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.mdg-gquest-log__empty {
	margin: 1rem 0;
}

.mdg-gquest-log__table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
	table-layout: auto;
}

.mdg-gquest-log__table th,
.mdg-gquest-log__table td {
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	text-align: left;
	vertical-align: top;
}

.mdg-gquest-log__table thead th {
	font-weight: 700;
	border-bottom-width: 2px;
	white-space: nowrap;
}

.mdg-gquest-log__table .mdg-gquest-log__rock,
.mdg-gquest-log__table th.mdg-gquest-log__rock {
	white-space: nowrap;
	width: 6.5rem;
	min-width: 6.5rem;
}

.mdg-gquest-log__table .mdg-gquest-log__location {
	word-break: break-word;
	overflow-wrap: anywhere;
}

/* Stack rows as readable cards on small screens */
@media (max-width: 640px) {
	.mdg-gquest-log {
		overflow-x: visible;
	}

	.mdg-gquest-log__table {
		margin: 0.5rem 0 1.5rem;
	}

	.mdg-gquest-log__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.mdg-gquest-log__table tbody {
		display: block;
	}

	.mdg-gquest-log__table tr {
		display: block;
		margin: 0 0 1rem;
		padding: 0.85rem 1rem;
		border: 1px solid rgba(0, 0, 0, 0.12);
		border-radius: 0.25rem;
		background: #fff;
	}

	.mdg-gquest-log__table td {
		display: grid;
		grid-template-columns: 6.5rem minmax(0, 1fr);
		gap: 0.35rem 0.75rem;
		width: 100%;
		padding: 0.35rem 0;
		border-bottom: 0;
	}

	.mdg-gquest-log__table td + td {
		border-top: 1px solid rgba(0, 0, 0, 0.08);
		margin-top: 0.35rem;
		padding-top: 0.55rem;
	}

	.mdg-gquest-log__table .mdg-gquest-log__rock {
		width: auto;
		min-width: 0;
		white-space: normal;
	}

	.mdg-gquest-log__table td::before {
		content: attr(data-label);
		font-weight: 700;
		line-height: 1.35;
	}
}
