.sfrbrs-table tbody tr {
	display: table-row !important;
}

.sfrbrs-table tbody th,
.sfrbrs-table tbody td {
	display: table-cell !important;
	padding: 8px 12px;
	vertical-align: top;
}

.sfrbrs-table .toggle-row {
	display: none;
}

.sfrbrs-analytics-wrap {
	max-width: 1100px;
}

.sfrbrs-analytics-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin: 20px 0 30px;
}

.sfrbrs-analytics-card {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
	padding: 24px;
	border: 1px solid rgba(15, 23, 42, 0.05);
}

.sfrbrs-analytics-card h3 {
	margin: 0 0 12px;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #475569;
}

.sfrbrs-analytics-value {
	margin: 0;
	font-size: 34px;
	font-weight: 700;
	color: #0f172a;
}

.sfrbrs-analytics-meta {
	margin: 8px 0 0;
	font-size: 14px;
	color: #64748b;
}

.sfrbrs-analytics-charts,
.sfrbrs-analytics-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 24px;
	margin-bottom: 32px;
}

.sfrbrs-analytics-panel {
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
	padding: 24px;
	border: 1px solid rgba(15, 23, 42, 0.05);
}

.sfrbrs-analytics-panel h2 {
	margin-top: 0;
	font-size: 18px;
	color: #0f172a;
}

.sfrbrs-analytics-bar-chart {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	padding: 12px;
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0) 100%);
	height: 240px;
}

.sfrbrs-analytics-bar-chart--secondary {
	background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0) 100%);
}

.sfrbrs-analytics-bar-chart--compact {
	height: 220px;
	overflow-x: auto;
}

.sfrbrs-analytics-bar {
	flex: 1 1 0;
	max-width: 70px;
	position: relative;
	text-align: center;
}

.sfrbrs-analytics-bar::before {
	content: '';
	display: block;
	width: 100%;
	height: var(--sfrbrs-bar-height, 5%);
	min-height: 5px;
	border-radius: 999px 999px 0 0;
	background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.sfrbrs-analytics-bar-chart--secondary .sfrbrs-analytics-bar::before {
	background: linear-gradient(180deg, #10b981 0%, #059669 100%);
	box-shadow: 0 8px 18px rgba(16, 185, 129, 0.25);
}

.sfrbrs-analytics-bar__value {
	position: absolute;
	top: -28px;
	left: 50%;
	transform: translateX(-50%);
	font-weight: 600;
	font-size: 13px;
	color: #0f172a;
}

.sfrbrs-analytics-bar__label {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	color: #64748b;
}

.sfrbrs-analytics-table {
	width: 100%;
	border-collapse: collapse;
}

.sfrbrs-analytics-table th,
.sfrbrs-analytics-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.sfrbrs-analytics-table th {
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #475569;
}

.sfrbrs-analytics-subtext {
	font-size: 13px;
	color: #64748b;
}

.sfrbrs-analytics-notes {
	margin: 0;
	padding-left: 1.2em;
	color: #475569;
	line-height: 1.7;
}

.sfrbrs-analytics-notes li {
	margin-bottom: 6px;
}

.sfrbrs-ocr-panel {
	margin: 30px 0;
	padding: 24px;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
	border: 1px solid rgba(15, 23, 42, 0.05);
}

.sfrbrs-dashboard-wrap {
	max-width: 1100px;
}

.sfrbrs-dashboard-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin: 24px 0;
}

.sfrbrs-dashboard-metric {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
	padding: 24px;
	border: 1px solid rgba(15, 23, 42, 0.05);
}

.sfrbrs-dashboard-metric h3 {
	margin: 0 0 10px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 13px;
	color: #475569;
}

.sfrbrs-dashboard-metric__value {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	color: #0f172a;
}

.sfrbrs-dashboard-metric__meta {
	margin: 6px 0 0;
	color: #64748b;
	font-size: 13px;
}

.sfrbrs-dashboard-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0 28px;
}

.sfrbrs-dashboard-panels {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 24px;
}

.sfrbrs-dashboard-panel {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
	padding: 24px;
	border: 1px solid rgba(15, 23, 42, 0.05);
}

.sfrbrs-dashboard-panel h2 {
	margin-top: 0;
	font-size: 18px;
	color: #0f172a;
}

.sfrbrs-dashboard-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}

.sfrbrs-dashboard-table th,
.sfrbrs-dashboard-table td {
	padding: 12px;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	text-align: left;
}

.sfrbrs-dashboard-table__meta {
	font-size: 12px;
	color: #64748b;
}

.sfrbrs-dashboard-links {
	list-style: disc;
	margin: 0 0 16px 18px;
	padding: 0;
	color: #475569;
}

.sfrbrs-dashboard-links li {
	margin-bottom: 6px;
}

.sfrbrs-dashboard-links a {
	color: #1d4ed8;
	text-decoration: none;
}

.sfrbrs-dashboard-links a:hover,
.sfrbrs-dashboard-links a:focus {
	text-decoration: underline;
}

.sfrbrs-dashboard-note {
	padding: 14px;
	border-radius: 10px;
	background: rgba(59, 130, 246, 0.08);
	color: #1e3a8a;
	font-size: 13px;
}

.sfrbrs-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 24px;
	margin-top: 24px;
}

.sfrbrs-category-panel {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
	padding: 24px;
	border: 1px solid rgba(15, 23, 42, 0.05);
}

.sfrbrs-category-panel h2 {
	margin-top: 0;
}

.sfrbrs-category-row {
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	padding: 16px 0;
}

.sfrbrs-category-row:last-of-type {
	border-bottom: none;
}

.sfrbrs-category-row__fields {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.sfrbrs-category-row__fields label span,
.sfrbrs-category-row__description span {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
	margin-bottom: 4px;
}

.sfrbrs-category-row__fields input, 
.sfrbrs-category-row__description textarea {
	width: 100%;
	max-width: 240px;
}

.sfrbrs-category-row__description {
	display: block;
	margin-top: 12px;
}

.sfrbrs-category-row__actions {
	margin-top: 12px;
	display: flex;
	gap: 10px;
	align-items: center;
}

.sfrbrs-category-selector {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
}

.sfrbrs-category-selector__item {
	display: flex;
	gap: 6px;
	align-items: center;
	font-size: 13px;
}

.sfrbrs-quick-edit-wrapper {
	background: #f8fafc;
	padding: 16px 24px;
}

.sfrbrs-review-row.sfrbrs-quick-edit-highlight {
	background-color: #ecfdf5;
	transition: background-color 0.8s ease;
}

.sfrbrs-ocr-panel h2 {
	margin-top: 0;
	margin-bottom: 8px;
}

.sfrbrs-ocr-tips {
	margin: 16px 0 20px;
	padding-left: 20px;
	color: #475569;
	line-height: 1.6;
}

.sfrbrs-ocr-tips li {
	margin-bottom: 6px;
}

.sfrbrs-ocr-reminder {
	margin: 0 0 18px;
	color: #0f172a;
	background: rgba(250, 204, 21, 0.15);
	border-left: 4px solid #f59e0b;
	padding: 10px 14px;
	border-radius: 6px;
}

.sfrbrs-ocr-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 16px;
}

.sfrbrs-ocr-status {
	margin-left: auto;
	font-weight: 500;
	color: #475569;
}

.sfrbrs-ocr-status--success {
	color: #047857;
}

.sfrbrs-ocr-status--error {
	color: #b91c1c;
}

.sfrbrs-ocr-status--loading {
	color: #2563eb;
}

.sfrbrs-ocr-filename {
	font-style: italic;
	color: #334155;
}

.sfrbrs-ocr-preview {
	min-height: 180px;
	border: 1px dashed rgba(37, 99, 235, 0.3);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	margin-bottom: 18px;
	background: rgba(59, 130, 246, 0.04);
}

.sfrbrs-ocr-preview img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

.sfrbrs-ocr-results {
	background: rgba(15, 23, 42, 0.02);
	border-radius: 10px;
	padding: 16px;
}

.sfrbrs-ocr-meta {
	display: flex;
	gap: 18px;
	margin-bottom: 12px;
	font-size: 13px;
	color: #475569;
}

.sfrbrs-ocr-meta-engine {
	font-style: italic;
	color: #1d4ed8;
}

.sfrbrs-ocr-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 12px;
}

.sfrbrs-ocr-toolbar .button.button-primary.is-busy {
	position: relative;
	pointer-events: none;
}

.sfrbrs-ocr-toolbar .button.button-primary.is-busy::after {
	content: '';
	position: absolute;
	right: 10px;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border: 2px solid rgba(255, 255, 255, 0.7);
	border-top-color: transparent;
	border-radius: 50%;
	animation: sfrbrs-spin 0.7s linear infinite;
}

@keyframes sfrbrs-spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
