/* GSheet Viewer 1.1.0 — plain table styling, no framework, no webfonts. */

.gsheet {
	margin: 0 0 1.5em;
	padding: 0;
}

.gsheet-controls {
	margin: 0 0 0.75em;
}

.gsheet-search-input {
	width: 100%;
	max-width: 320px;
	padding: 0.45em 0.6em;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 0.95em;
	line-height: 1.3;
}

.gsheet-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.gsheet-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92em;
	line-height: 1.4;
}

.gsheet-table caption {
	caption-side: top;
	padding: 0 0 0.5em;
	color: #666;
	font-size: 0.9em;
	text-align: left;
}

.gsheet-table th,
.gsheet-table td {
	padding: 0.45em 0.7em;
	border: 1px solid #e2e2e2;
	text-align: left;
	vertical-align: top;
	white-space: nowrap;
}

.gsheet-table thead th {
	background: #f4f4f4;
	border-bottom: 2px solid #d8d8d8;
	font-weight: 600;
	white-space: nowrap;
}

.gsheet-table thead th.is-sortable {
	cursor: pointer;
	user-select: none;
}

.gsheet-table thead th.is-sortable:hover {
	background: #ececec;
}

.gsheet-table thead th[aria-sort="ascending"]::after {
	content: " \25B2";
	font-size: 0.75em;
}

.gsheet-table thead th[aria-sort="descending"]::after {
	content: " \25BC";
	font-size: 0.75em;
}

.gsheet-table tbody tr:nth-child(even) {
	background: #fafafa;
}

/* Paging and filtering hide rows via the hidden attribute; table display
   values would otherwise override it. */
.gsheet-table tbody tr[hidden] {
	display: none !important;
}

.gsheet-table tbody tr:hover {
	background: #f2f6f8;
}

.gsheet-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 0.75em;
}

.gsheet-pager .gsheet-page {
	min-width: 2.2em;
	padding: 0.3em 0.55em;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	color: inherit;
	cursor: pointer;
	font-size: 0.9em;
	line-height: 1.2;
}

.gsheet-pager .gsheet-page:hover {
	background: #f0f0f0;
}

.gsheet-pager .gsheet-page.is-current {
	border-color: #c9a227;
	background: #f7d04a;
	font-weight: 600;
}

@media (max-width: 640px) {
	.gsheet-table {
		font-size: 0.85em;
	}

	.gsheet-table th,
	.gsheet-table td {
		padding: 0.35em 0.5em;
	}
}
