.sccrr-wrap {
	font-family: inherit;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 20px;
	background: #fff;
}
.sccrr-title {
	font-size: 1.15em;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e5e7eb;
	color: #374151;
}
.sccrr-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}
.sccrr-perpage {
	padding: 6px 10px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background: #fff;
}
.sccrr-search-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #374151;
}
.sccrr-search {
	padding: 7px 10px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	min-width: 220px;
}
.sccrr-table-holder { overflow-x: auto; }
.sccrr-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95em;
}
.sccrr-table th,
.sccrr-table td {
	border: 1px solid #e5e7eb;
	padding: 12px 14px;
	text-align: left;
	vertical-align: middle;
	color: #374151;
}
.sccrr-table thead th {
	font-weight: 700;
	background: #fff;
	white-space: nowrap;
	user-select: none;
}
.sccrr-sortable { cursor: pointer; }
.sccrr-arrows { color: #9ca3af; font-size: 0.8em; }
.sccrr-sortable.sorted-asc .sccrr-arrows { color: #16a34a; }
.sccrr-sortable.sorted-desc .sccrr-arrows { color: #dc2626; }
.sccrr-table tbody tr:hover { background: #f9fafb; }
.sccrr-area { font-size: 0.93em; }
.sccrr-loading { text-align: center; color: #6b7280; padding: 24px !important; }
.sccrr-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px;
}
.sccrr-info { color: #6b7280; font-size: 0.9em; }
.sccrr-pagination { display: flex; gap: 4px; align-items: center; }
.sccrr-page-btn {
	border: 1px solid #d1d5db;
	background: #fff;
	color: #374151;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9em;
}
.sccrr-page-btn:hover:not(:disabled):not(.is-current) { background: #f3f4f6; }
.sccrr-page-btn.is-current {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
	cursor: default;
}
.sccrr-page-btn:disabled { opacity: 0.4; cursor: default; }
.sccrr-dots { color: #9ca3af; padding: 0 4px; }
/* ============ MÓVIL: tarjetas apiladas ============ */
@media (max-width: 768px) {
	.sccrr-wrap { padding: 14px; }
	.sccrr-controls, .sccrr-footer { flex-direction: column; align-items: stretch; }
	.sccrr-search { width: 100%; min-width: 0; box-sizing: border-box; }
	.sccrr-search-label { flex-direction: column; align-items: stretch; }
	.sccrr-info { text-align: center; }
	.sccrr-pagination { justify-content: center; flex-wrap: wrap; }
	.sccrr-page-btn { padding: 8px 14px; min-width: 40px; } /* táctil */

	/* Ocultar encabezados de tabla; el sort se pierde en móvil pero la búsqueda cubre el caso */
	.sccrr-table thead { display: none; }
	.sccrr-table, .sccrr-table tbody, .sccrr-table tr, .sccrr-table td { display: block; width: 100%; box-sizing: border-box; }
	.sccrr-table tr {
		border: 1px solid #e5e7eb;
		border-radius: 8px;
		margin-bottom: 12px;
		padding: 4px 0;
		background: #fff;
		box-shadow: 0 1px 2px rgba(0,0,0,0.04);
	}
	.sccrr-table td {
		border: none;
		border-bottom: 1px solid #f3f4f6;
		padding: 8px 14px;
		display: flex;
		gap: 10px;
	}
	.sccrr-table td:last-child { border-bottom: none; }
	.sccrr-table td::before {
		content: attr(data-label);
		font-weight: 700;
		color: #6b7280;
		flex: 0 0 110px;
		font-size: 0.85em;
	}
	.sccrr-table td.sccrr-area { flex-direction: column; gap: 4px; }
	.sccrr-table td.sccrr-area::before { flex: none; }
	.sccrr-loading { display: block; text-align: center; }
	.sccrr-loading::before { display: none !important; }
}
