/**
 * Copyright 2025 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.bigframes-widget {
	display: flex;
	flex-direction: column;
}

.bigframes-widget .table-container {
	max-height: 620px;
	overflow: auto;
}

.bigframes-widget .footer {
	align-items: center;
	display: flex;
	font-size: 0.8rem;
	justify-content: space-between;
	padding: 8px;
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bigframes-widget .footer > * {
	flex: 1;
}

.bigframes-widget .pagination {
	align-items: center;
	display: flex;
	flex-direction: row;
	gap: 4px;
	justify-content: center;
	padding: 4px;
}

.bigframes-widget .page-indicator {
	margin: 0 8px;
}

.bigframes-widget .row-count {
	margin: 0 8px;
}

.bigframes-widget .page-size {
	align-items: center;
	display: flex;
	flex-direction: row;
	gap: 4px;
	justify-content: end;
}

.bigframes-widget .page-size label {
	margin-right: 8px;
}

.bigframes-widget table {
	border-collapse: collapse;
	text-align: left;
}

.bigframes-widget th {
	background-color: var(--colab-primary-surface-color, var(--jp-layout-color0));
	position: sticky;
	top: 0;
	z-index: 1;
}

.bigframes-widget th .sort-indicator {
	padding-left: 4px;
	visibility: hidden;
}

.bigframes-widget th:hover .sort-indicator {
	visibility: visible;
}

.bigframes-widget button {
	cursor: pointer;
	display: inline-block;
	text-align: center;
	text-decoration: none;
	user-select: none;
	vertical-align: middle;
}

.bigframes-widget button:disabled {
	opacity: 0.65;
	pointer-events: none;
}

.bigframes-widget .error-message {
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	padding: 8px;
	margin-bottom: 8px;
	border: 1px solid red;
	border-radius: 4px;
	background-color: #ffebee;
}
