.scm-sheet-native {
	--scm-sheet-border: #d8e1ea;
	--scm-sheet-bg: #fff;
	--scm-sheet-muted: #5f6f83;
	--scm-sheet-head: #f3f7fb;
	--scm-sheet-accent: #005c78;
	--scm-sheet-accent-dark: #00455c;
	--scm-sheet-action: #f2b705;
	--scm-sheet-action-dark: #d49f00;
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	color: inherit;
	container-type: inline-size;
	overflow-x: hidden;
}

.scm-sheet-native *,
.scm-sheet-native *:before,
.scm-sheet-native *:after {
	box-sizing: border-box;
}

.scm-sheet-toolbar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 14px;
}

.scm-sheet-search {
	flex: 1 1 280px;
	margin: 0;
	max-width: 460px;
}

.scm-sheet-search label {
	display: grid;
	gap: 6px;
}

.scm-sheet-search span {
	color: var(--scm-sheet-muted);
	font-size: 13px;
	font-weight: 700;
}

.scm-sheet-search input {
	width: 100%;
	max-width: 100%;
	border: 1px solid var(--scm-sheet-border);
	border-radius: 8px;
	background: #fff;
	color: inherit;
	font: inherit;
	padding: 10px 12px;
}

.scm-sheet-search input:focus {
	border-color: var(--scm-sheet-accent);
	box-shadow: 0 0 0 3px rgba(0, 92, 120, .14);
	outline: 0;
}

.scm-sheet-actions {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.scm-sheet-button,
.scm-sheet-page-button {
	appearance: none;
	border: 1px solid var(--scm-sheet-accent);
	border-radius: 8px;
	background: var(--scm-sheet-accent);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	min-height: 40px;
	padding: 9px 13px;
	white-space: nowrap;
}

.scm-sheet-button[data-scm-sheet-action="csv"] {
	border-color: var(--scm-sheet-action-dark);
	background: var(--scm-sheet-action);
	color: #16202a;
}

.scm-sheet-button:hover,
.scm-sheet-page-button:hover {
	background: var(--scm-sheet-accent-dark);
	border-color: var(--scm-sheet-accent-dark);
	color: #fff;
}

.scm-sheet-button[data-scm-sheet-action="csv"]:hover {
	background: var(--scm-sheet-action-dark);
	border-color: var(--scm-sheet-action-dark);
	color: #16202a;
}

.scm-sheet-table-wrap {
	width: 100%;
	overflow-x: auto;
	border: 1px solid var(--scm-sheet-border);
	border-radius: 8px;
	background: var(--scm-sheet-bg);
}

.scm-sheet-table {
	width: 100%;
	min-width: 680px;
	border-collapse: collapse;
	margin: 0;
	table-layout: auto;
}

.scm-sheet-table th,
.scm-sheet-table td {
	border-bottom: 1px solid var(--scm-sheet-border);
	padding: 12px 14px;
	text-align: left;
	vertical-align: top;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.scm-sheet-table th {
	background: var(--scm-sheet-head);
	color: #123047;
	font-weight: 800;
}

.scm-sheet-table tr:last-child td {
	border-bottom: 0;
}

.scm-sheet-table a,
.scm-sheet-card a {
	color: var(--scm-sheet-accent);
	font-weight: 700;
	text-decoration: none;
}

.scm-sheet-table a:hover,
.scm-sheet-card a:hover {
	text-decoration: underline;
}

.scm-sheet-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 14px;
}

.scm-sheet-card {
	border: 1px solid var(--scm-sheet-border);
	border-radius: 8px;
	background: var(--scm-sheet-bg);
	padding: 14px;
}

.scm-sheet-card-field {
	display: grid;
	gap: 3px;
	padding: 9px 0;
	border-bottom: 1px solid var(--scm-sheet-border);
}

.scm-sheet-card-field:first-child {
	padding-top: 0;
}

.scm-sheet-card-field:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.scm-sheet-card-label {
	color: var(--scm-sheet-muted);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.scm-sheet-card-value {
	font-weight: 500;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.scm-sheet-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 14px 0 0;
}

.scm-sheet-page-info {
	color: var(--scm-sheet-muted);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
}

.scm-sheet-page-button[disabled] {
	cursor: not-allowed;
	opacity: .45;
}

.scm-sheet-empty,
.scm-sheet-error {
	border: 1px solid var(--scm-sheet-border);
	border-radius: 8px;
	background: #fff;
	padding: 12px 14px;
}

.scm-sheet-error {
	border-color: #f3c2c2;
	background: #fff5f5;
	color: #8a1f1f;
}

.scm-sheet-native [hidden] {
	display: none !important;
}

@media (max-width: 782px) {
	.scm-sheet-toolbar,
	.scm-sheet-pagination {
		align-items: stretch;
		flex-direction: column;
	}

	.scm-sheet-search {
		max-width: none;
	}

	.scm-sheet-actions {
		justify-content: stretch;
	}

	.scm-sheet-button,
	.scm-sheet-page-button {
		width: 100%;
	}

	.scm-sheet-table-wrap {
		border: 0;
		background: transparent;
		overflow: visible;
	}

	.scm-sheet-table,
	.scm-sheet-table thead,
	.scm-sheet-table tbody,
	.scm-sheet-table tr,
	.scm-sheet-table th,
	.scm-sheet-table td {
		display: block !important;
		min-width: 0 !important;
		width: 100% !important;
	}

	.scm-sheet-table thead {
		display: none !important;
	}

	.scm-sheet-table tr {
		border: 1px solid var(--scm-sheet-border);
		border-radius: 8px;
		background: var(--scm-sheet-bg);
		margin: 0 0 12px;
		overflow: hidden;
		box-shadow: 0 1px 0 rgba(20, 32, 42, .03);
	}

	.scm-sheet-table td {
		border-bottom: 1px solid var(--scm-sheet-border);
		display: block !important;
		min-width: 0 !important;
		padding: 11px 12px;
		white-space: normal;
	}

	.scm-sheet-table td:last-child {
		border-bottom: 0;
	}

	.scm-sheet-table td:before {
		content: attr(data-label);
		display: block;
		color: var(--scm-sheet-muted);
		font-size: 12px;
		font-weight: 800;
		line-height: 1.35;
		margin: 0 0 4px;
		text-transform: uppercase;
		overflow-wrap: anywhere;
	}

	.scm-sheet-cards {
		grid-template-columns: 1fr;
	}
}

@container (max-width: 720px) {
	.scm-sheet-toolbar,
	.scm-sheet-pagination {
		align-items: stretch;
		flex-direction: column;
	}

	.scm-sheet-search {
		max-width: none;
	}

	.scm-sheet-actions {
		justify-content: stretch;
	}

	.scm-sheet-button,
	.scm-sheet-page-button {
		width: 100%;
		white-space: normal;
	}

	.scm-sheet-table-wrap {
		border: 0;
		background: transparent;
		overflow: visible;
	}

	.scm-sheet-table,
	.scm-sheet-table thead,
	.scm-sheet-table tbody,
	.scm-sheet-table tr,
	.scm-sheet-table th,
	.scm-sheet-table td {
		display: block !important;
		min-width: 0 !important;
		width: 100% !important;
	}

	.scm-sheet-table thead {
		display: none !important;
	}

	.scm-sheet-table tr {
		border: 1px solid var(--scm-sheet-border);
		border-radius: 8px;
		background: var(--scm-sheet-bg);
		margin: 0 0 12px;
		overflow: hidden;
		box-shadow: 0 1px 0 rgba(20, 32, 42, .03);
	}

	.scm-sheet-table td {
		border-bottom: 1px solid var(--scm-sheet-border);
		display: block !important;
		min-width: 0 !important;
		padding: 11px 12px;
		white-space: normal;
	}

	.scm-sheet-table td:last-child {
		border-bottom: 0;
	}

	.scm-sheet-table td:before {
		content: attr(data-label);
		display: block;
		color: var(--scm-sheet-muted);
		font-size: 12px;
		font-weight: 800;
		line-height: 1.35;
		margin: 0 0 4px;
		text-transform: uppercase;
		overflow-wrap: anywhere;
	}

	.scm-sheet-cards {
		grid-template-columns: 1fr;
	}
}

@media print {
	.scm-sheet-toolbar,
	.scm-sheet-pagination {
		display: none !important;
	}
}
