/**
 * Admin styles for Audit Export plugin.
 */

/* Header styling */
.audit-export-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
	padding: 20px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.audit-export-header .description {
	margin: 0 0 10px 0;
	font-size: 14px;
	line-height: 1.5;
}

.audit-export-actions {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

/* Overview styling */
.audit-export-overview {
	display: grid;
	gap: 20px;
}

.audit-group {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	overflow: hidden;
}

.audit-group-title {
	margin: 0;
	padding: 15px 20px;
	background: #f6f7f7;
	border-bottom: 1px solid #c3c4c7;
	font-size: 16px;
	font-weight: 600;
}

.audit-group-title a {
	text-decoration: none;
	color: #1d2327;
}

.audit-group-title a:hover {
	color: #135e96;
}

.audit-count {
	color: #646970;
	font-weight: 400;
	font-size: 14px;
}

.audit-list {
	padding: 0;
}

.audit-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 20px;
	border-bottom: 1px solid #f0f0f1;
}

.audit-item:last-child {
	border-bottom: none;
}

.audit-info {
	flex-grow: 1;
	margin-right: 20px;
}

.audit-title {
	margin: 0 0 8px 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.audit-title a {
	text-decoration: none;
	color: #1d2327;
}

.audit-title a:hover {
	color: #135e96;
}

.audit-description {
	margin: 0 0 10px 0;
	color: #646970;
	font-size: 13px;
	line-height: 1.4;
}

.audit-meta {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	font-size: 12px;
	color: #646970;
}

.audit-data-type {
	background: #f0f6fc;
	color: #0073aa;
	padding: 2px 6px;
	border-radius: 3px;
	text-transform: capitalize;
	font-weight: 500;
}

.audit-never-run {
	color: #d63638;
	font-style: italic;
}

.audit-actions {
	display: flex;
	gap: 8px;
	flex-direction: column;
	flex-shrink: 0;
}

.audit-actions .button {
	white-space: nowrap;
	min-width: 100px;
	text-align: center;
}

/* Report page styling */
.audit-report-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
	padding: 20px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.audit-report-meta .description {
	margin: 0 0 10px 0;
	font-size: 14px;
	line-height: 1.5;
}

.audit-meta-info {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	font-size: 12px;
	color: #646970;
}

.audit-meta-info span {
	background: #f6f7f7;
	padding: 4px 8px;
	border-radius: 3px;
}

.audit-report-actions {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.audit-report-summary {
	background: #fff;
	padding: 20px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	margin-bottom: 20px;
}

.audit-report-summary h3 {
	margin: 0 0 10px 0;
	font-size: 16px;
}

.audit-report-data {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	overflow: hidden;
}

.audit-report-data table {
	margin: 0;
	border: none;
}

.audit-report-data th,
.audit-report-data td {
	text-align: left;
	vertical-align: top;
	word-wrap: break-word;
}

.audit-report-data .no-items {
	text-align: center;
	color: #646970;
	font-style: italic;
	padding: 40px 20px;
}

/* Settings page styling */
.nav-tab-wrapper {
	margin-bottom: 20px;
}

.tab-content {
	background: #fff;
	padding: 20px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.audit-export-info {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #f0f0f1;
}

.audit-export-info h3 {
	margin: 0 0 15px 0;
	font-size: 16px;
}

.audit-export-info .form-table {
	margin-bottom: 0;
}

/* Tools page styling */
.audit-export-tools {
	display: grid;
	gap: 30px;
}

.tool-section {
	background: #fff;
	padding: 20px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.tool-section h2 {
	margin: 0 0 20px 0;
	font-size: 16px;
	border-bottom: 1px solid #f0f0f1;
	padding-bottom: 10px;
}

.tool-section .form-table {
	margin-bottom: 0;
}

.tool-section .form-table th {
	width: 200px;
	padding-left: 0;
}

/* Status indicators */
.status-indicator {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.status-enabled {
	color: #46b450;
}

.status-disabled {
	color: #dc3232;
}

.status-warning {
	color: #f56e28;
}

/* Loading states */
.processing {
	opacity: 0.6;
	pointer-events: none;
}

.button.processing {
	background: #f6f7f7 !important;
	border-color: #dcdcde !important;
	color: #646970 !important;
	box-shadow: none !important;
}

/* Responsive adjustments */
@media (max-width: 782px) {
	.audit-export-header,
	.audit-report-header {
		flex-direction: column;
		gap: 15px;
	}
	
	.audit-item {
		flex-direction: column;
		gap: 15px;
	}
	
	.audit-actions {
		flex-direction: row;
		align-self: stretch;
	}
	
	.audit-actions .button {
		flex: 1;
		min-width: auto;
	}
	
	.audit-meta,
	.audit-meta-info {
		flex-direction: column;
		gap: 8px;
	}
}

/* Print styles */
@media print {
	.audit-export-header,
	.audit-report-header,
	.audit-actions,
	.audit-report-actions {
		display: none;
	}
	
	.audit-export-overview,
	.audit-report-data {
		border: none;
		box-shadow: none;
	}
}