/* Invoice Review Portal Styles */

/* Fix: Sidekick CSS overrides Font Awesome with FL-Icons via [class*=fa-]:before selector.
   This restores Font Awesome 6 for our icons with higher specificity. */
.fa-solid[class*="fa-"]::before,
.fa-regular[class*="fa-"]::before,
.fa-brands[class*="fa-"]::before,
i.fa-solid::before,
i.fa-regular::before {
	font-family: "Font Awesome 6 Free" !important;
}
.fa-solid[class*="fa-"]::before,
i.fa-solid::before {
	font-weight: 900 !important;
}

/* General */
body {
	font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Queue page */
.invoice-queue-page .nav-tabs .nav-link {
	font-size: 14px;
	padding: 8px 16px;
}

.invoice-queue-page .nav-tabs .nav-link .badge {
	font-size: 11px;
}

.invoice-queue-page .table th {
	font-size: 13px;
	white-space: nowrap;
}

.invoice-queue-page .table td {
	font-size: 13px;
	vertical-align: middle;
}

.invoice-queue-page .sortable:hover {
	background-color: rgba(102, 51, 153, 0.1);
}

.manifests-page .sortable:hover {
	background-color: rgba(102, 51, 153, 0.1);
}

/* Review page */
.invoice-review-page .card {
	border-radius: 2px;
}

.invoice-review-page .form-group {
	margin-bottom: 8px;
}

.invoice-review-page .form-control-sm {
	font-size: 13px;
}

/* Confidence indicators */
.confidence-low {
	border-left: 3px solid #dc3545 !important;
	background-color: rgba(220, 53, 69, 0.05) !important;
}

.confidence-medium {
	border-left: 3px solid #ffc107 !important;
	background-color: rgba(255, 193, 7, 0.05) !important;
}

.confidence-high {
	border-left: 3px solid #28a745 !important;
	background-color: rgba(40, 167, 69, 0.05) !important;
}

/* Changed field indicator */
.field-changed {
	background-color: #fff3cd !important;
	border-color: #ffc107 !important;
}

/* Confidence legend */
.confidence-legend {
	font-size: 12px;
	padding: 6px 10px;
	background: #f8f9fa;
	border-radius: 3px;
}

.legend-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-right: 3px;
	vertical-align: middle;
}

.legend-dot.legend-high {
	background: #28a745;
}

.legend-dot.legend-medium {
	background: #ffc107;
}

.legend-dot.legend-low {
	background: #dc3545;
}

.confidence-field {
	position: relative;
}

.confidence-field-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 4px;
}

.confidence-field-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

.confidence-review-check {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	color: #28a745;
}

.confidence-review-check i {
	margin-right: 4px;
}

.confidence-badge {
	display: inline-flex;
	align-items: center;
	padding: 0 6px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.confidence-badge.confidence-high {
	background: rgba(40, 167, 69, 0.12);
	color: #1e7e34;
}

.confidence-badge.confidence-medium {
	background: rgba(255, 193, 7, 0.2);
	color: #a67c00;
}

.confidence-badge.confidence-low {
	background: rgba(220, 53, 69, 0.18);
	color: #a71d2a;
}

.confidence-field .btn-link {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #6c63ff;
}

.confidence-accept-btn {
	color: #6c757d;
	font-size: 16px;
}

.confidence-accept-btn:hover {
	color: #28a745;
}

.confidence-field .btn-link:disabled {
	opacity: 0.6;
	cursor: default;
}

.line-confidence-field .confidence-field-controls {
	justify-content: space-between;
	margin-bottom: 4px;
}

/* Badge styles for status */
.badge-warning {
	color: #856404;
}

/* Table improvements */
.table .badge {
	font-size: 11px;
}

/* Org selector */
.org-selector select {
	border-radius: 3px;
	font-size: 13px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
	.invoice-review-page .col-lg-5,
	.invoice-review-page .col-lg-7 {
		margin-bottom: 15px;
	}

	.invoice-review-page .card {
		height: auto !important;
		max-height: none !important;
	}
}

/* Print styles */
@media print {
	.navbar, .breadcrumb, .btn, .card-footer, .nav-tabs {
		display: none !important;
	}

	.card {
		border: none !important;
		height: auto !important;
		max-height: none !important;
	}
}
