/* Trip Review for WP Travel Engine - Admin Styles */

/* Reviews List Table - Checkbox Column - Ultra Specific */
table.wp-list-table .check-column,
table.wp-list-table th.check-column,
table.wp-list-table td.check-column,
table.wp-list-table .column-cb,
table.wp-list-table th.column-cb,
table.wp-list-table td.column-cb,
.wp-list-table .check-column,
.wp-list-table th.check-column,
.wp-list-table td.check-column,
.wp-list-table .column-cb,
.wp-list-table th.column-cb,
.wp-list-table td.column-cb {
	width: 2.2em !important;
	max-width: 2.2em !important;
	min-width: 2.2em !important;
	padding: 3px !important;
	text-align: center;
	box-sizing: border-box;
	flex: none !important;
}

.wp-list-table .check-column input[type="checkbox"],
.wp-list-table th.check-column input[type="checkbox"],
.wp-list-table td.check-column input[type="checkbox"],
.wp-list-table .column-cb input[type="checkbox"],
.wp-list-table th.column-cb input[type="checkbox"],
.wp-list-table td.column-cb input[type="checkbox"] {
	margin: 0 !important;
	display: block;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* More specific targeting for WordPress admin tables */
.wp-list-table.widefat .check-column,
.wp-list-table.widefat th.check-column,
.wp-list-table.widefat td.check-column,
.wp-list-table.widefat .column-cb,
.wp-list-table.widefat th.column-cb,
.wp-list-table.widefat td.column-cb {
	width: 2.2em !important;
	max-width: 2.2em !important;
	min-width: 2.2em !important;
	padding: 3px !important;
	text-align: center;
	box-sizing: border-box;
}

/* Target the specific table used for reviews */
.wp-list-table.widefat.fixed.striped .check-column,
.wp-list-table.widefat.fixed.striped .column-cb {
	width: 2.2em !important;
	max-width: 2.2em !important;
	min-width: 2.2em !important;
	padding: 3px !important;
}

/* Additional specificity for reviews table */
table.wp-list-table.reviews .check-column,
table.wp-list-table.reviews th.check-column,
table.wp-list-table.reviews td.check-column,
table.wp-list-table.reviews .column-cb,
table.wp-list-table.reviews th.column-cb,
table.wp-list-table.reviews td.column-cb {
	width: 2.2em !important;
	max-width: 2.2em !important;
	min-width: 2.2em !important;
	padding: 3px !important;
	text-align: center;
	box-sizing: border-box;
}

/* Force checkbox column width for all WordPress admin tables */
.wp-list-table th.check-column,
.wp-list-table td.check-column,
.wp-list-table th.column-cb,
.wp-list-table td.column-cb {
	width: 2.2em !important;
	max-width: 2.2em !important;
	min-width: 2.2em !important;
	padding: 3px !important;
	text-align: center;
	box-sizing: border-box;
}

/* Ensure checkbox inputs are properly sized */
.wp-list-table th.check-column input[type="checkbox"],
.wp-list-table td.check-column input[type="checkbox"],
.wp-list-table th.column-cb input[type="checkbox"],
.wp-list-table td.column-cb input[type="checkbox"] {
	margin: 0 !important;
	display: block;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Ultra-specific targeting for reviews table */
table.wp-list-table.widefat.fixed.striped.reviews .check-column,
table.wp-list-table.widefat.fixed.striped.reviews th.check-column,
table.wp-list-table.widefat.fixed.striped.reviews td.check-column,
table.wp-list-table.widefat.fixed.striped.reviews .column-cb,
table.wp-list-table.widefat.fixed.striped.reviews th.column-cb,
table.wp-list-table.widefat.fixed.striped.reviews td.column-cb {
	width: 2.2em !important;
	max-width: 2.2em !important;
	min-width: 2.2em !important;
	padding: 3px !important;
	text-align: center;
	box-sizing: border-box;
	flex: none !important;
}

/* Target the specific table class from the HTML */
table.wp-list-table.widefat.fixed.striped.table-view-list.reviews .check-column,
table.wp-list-table.widefat.fixed.striped.table-view-list.reviews th.check-column,
table.wp-list-table.widefat.fixed.striped.table-view-list.reviews td.check-column,
table.wp-list-table.widefat.fixed.striped.table-view-list.reviews .column-cb,
table.wp-list-table.widefat.fixed.striped.table-view-list.reviews th.column-cb,
table.wp-list-table.widefat.fixed.striped.table-view-list.reviews td.column-cb {
	width: 2.2em !important;
	max-width: 2.2em !important;
	min-width: 2.2em !important;
	padding: 3px !important;
	text-align: center;
	box-sizing: border-box;
	flex: none !important;
}

/* Nuclear option - target by ID if it exists */
#cb.check-column,
#cb.column-cb,
th#cb.check-column,
th#cb.column-cb,
td#cb.check-column,
td#cb.column-cb {
	width: 2.2em !important;
	max-width: 2.2em !important;
	min-width: 2.2em !important;
	padding: 3px !important;
	text-align: center;
	box-sizing: border-box;
	flex: none !important;
}

/* Target our custom table class */
.trpre-reviews-table .check-column,
.trpre-reviews-table th.check-column,
.trpre-reviews-table td.check-column,
.trpre-reviews-table .column-cb,
.trpre-reviews-table th.column-cb,
.trpre-reviews-table td.column-cb {
	width: 2.2em !important;
	max-width: 2.2em !important;
	min-width: 2.2em !important;
	padding: 3px !important;
	text-align: center;
	box-sizing: border-box;
	flex: none !important;
}

/* Most specific targeting possible */
table.trpre-reviews-table.wp-list-table.widefat.fixed.striped .check-column,
table.trpre-reviews-table.wp-list-table.widefat.fixed.striped th.check-column,
table.trpre-reviews-table.wp-list-table.widefat.fixed.striped td.check-column,
table.trpre-reviews-table.wp-list-table.widefat.fixed.striped .column-cb,
table.trpre-reviews-table.wp-list-table.widefat.fixed.striped th.column-cb,
table.trpre-reviews-table.wp-list-table.widefat.fixed.striped td.column-cb {
	width: 2.2em !important;
	max-width: 2.2em !important;
	min-width: 2.2em !important;
	padding: 3px !important;
	text-align: center;
	box-sizing: border-box;
	flex: none !important;
}

/* Nuclear option - override any WordPress styles */
body.wp-admin table.wp-list-table th.check-column,
body.wp-admin table.wp-list-table td.check-column,
body.wp-admin table.wp-list-table th.column-cb,
body.wp-admin table.wp-list-table td.column-cb,
body.wp-admin .wp-list-table th.check-column,
body.wp-admin .wp-list-table td.check-column,
body.wp-admin .wp-list-table th.column-cb,
body.wp-admin .wp-list-table td.column-cb {
	width: 2.2em !important;
	max-width: 2.2em !important;
	min-width: 2.2em !important;
	padding: 3px !important;
	text-align: center;
	box-sizing: border-box;
	flex: none !important;
}

/* Target by attribute selector */
th[class*="check-column"],
td[class*="check-column"],
th[class*="column-cb"],
td[class*="column-cb"] {
	width: 2.2em !important;
	max-width: 2.2em !important;
	min-width: 2.2em !important;
	padding: 3px !important;
	text-align: center;
	box-sizing: border-box;
	flex: none !important;
}

/* Override table layout for checkbox column */
table.wp-list-table {
	table-layout: auto !important;
}

table.wp-list-table th.check-column,
table.wp-list-table td.check-column,
table.wp-list-table th.column-cb,
table.wp-list-table td.column-cb {
	table-layout: auto !important;
	width: 2.2em !important;
	max-width: 2.2em !important;
	min-width: 2.2em !important;
	padding: 3px !important;
	text-align: center;
	box-sizing: border-box;
	flex: none !important;
}
.wp-list-table .column-title {
	width: 20%;
}

.wp-list-table .column-trip {
	width: 18%;
}

.wp-list-table .column-rating {
	width: 8%;
}

.wp-list-table .column-reviewer {
	width: 18%;
}

.wp-list-table .column-helpful_votes {
	width: 8%;
}

.wp-list-table .column-reports {
	width: 8%;
}

.wp-list-table .column-status {
	width: 10%;
}

.wp-list-table .column-date {
	width: 15%;
}

/* Star Rating in Admin */
.trpre-star-rating {
	display: inline-flex;
	gap: 2px;
	margin-bottom: 5px;
}

.trpre-star-rating .star {
	font-size: 14px;
	line-height: 1;
}

.trpre-star-rating .star-full {
	color: #ffd700;
}

.trpre-star-rating .star-empty {
	color: #ddd;
}

.trpre-rating-number {
	font-size: 12px;
	color: #666;
}

/* Status Badges */
.trpre-status {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.trpre-status-publish {
	background: #d4edda;
	color: #155724;
}

.trpre-status-pending {
	background: #fff3cd;
	color: #856404;
}

.trpre-status-draft {
	background: #f8d7da;
	color: #721c24;
}

.trpre-status-private {
	background: #e2e3e5;
	color: #383d41;
}

/* Review Badges */
.trpre-badge {
	display: inline-block;
	padding: 2px 6px;
	border-radius: 8px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	margin: 2px 0;
}

.trpre-badge-pinned {
	background: #ffd700;
	color: #333;
}

.trpre-badge-featured {
	background: #007cba;
	color: #fff;
}

/* Verified Badge */
.trpre-verified-badge {
	color: #28a745;
	font-weight: bold;
}

/* Admin Meta Boxes */
.trpre-meta-box {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	margin: 20px 0;
}

.trpre-meta-box-header {
	background: #f1f1f1;
	border-bottom: 1px solid #ccd0d4;
	padding: 12px 20px;
	font-weight: 600;
}

.trpre-meta-box-content {
	padding: 20px;
}

.trpre-meta-box .form-table th {
	width: 200px;
	padding: 15px 10px 15px 0;
}

.trpre-meta-box .form-table td {
	padding: 15px 10px;
}

/* Review Details Meta Box */
.trpre-review-details .form-table input[type="text"],
.trpre-review-details .form-table input[type="email"],
.trpre-review-details .form-table select,
.trpre-review-details .form-table textarea {
	width: 100%;
	max-width: 400px;
}

.trpre-review-details .form-table input[type="number"] {
	width: 80px;
}

.trpre-review-details .form-table input[readonly] {
	background: #f9f9f9;
	color: #666;
}

/* Rating Meta Box */
.trpre-rating-meta-box select {
	width: 100%;
	max-width: 200px;
}

/* Status Meta Box */
.trpre-status-meta-box select {
	width: 100%;
	max-width: 200px;
}

/* Admin Response Meta Box */
.trpre-admin-response-meta-box textarea {
	width: 100%;
	min-height: 100px;
}

/* Settings Page */
.trpre-settings-page {
	max-width: 800px;
}

.trpre-settings-section {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	margin: 20px 0;
	padding: 20px;
}

.trpre-settings-section h3 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.trpre-settings-field {
	margin-bottom: 20px;
}

.trpre-settings-field label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
}

.trpre-settings-field input[type="text"],
.trpre-settings-field input[type="email"],
.trpre-settings-field input[type="number"],
.trpre-settings-field select,
.trpre-settings-field textarea {
	width: 100%;
	max-width: 400px;
}

.trpre-settings-field .description {
	font-style: italic;
	color: #666;
	margin-top: 5px;
}

.trpre-settings-field input[type="checkbox"] {
	margin-right: 8px;
}

/* Notices */
.trpre-notice {
	background: #fff;
	border-left: 4px solid #007cba;
	box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
	margin: 5px 15px 2px;
	padding: 1px 12px;
}

.trpre-notice.notice-success {
	border-left-color: #46b450;
}

.trpre-notice.notice-error {
	border-left-color: #dc3232;
}

.trpre-notice.notice-warning {
	border-left-color: #ffb900;
}

/* Print Styles */
@media print {
	.trpre-meta-box {
		break-inside: avoid;
	}
}
