/* ============================================
   Home Analytics Cards Styles
   ============================================ */

/* Base Analytics Card */
.analytics-card {
	background: linear-gradient(135deg, #116329 0%, #4ac26b 100%);
	border: 1px solid #116329;
	border-radius: 5px;
	padding: 15px;
	display: flex;
	align-items: center;
	gap: 5px;
}

/* Job Status Cards - Border Colors */
.analytics-card.status {
	border-left-color: #2196F3;
}

/* Analytics Icon */
.analytics-icon {
	font-size: 32px;
	color: gray;
	min-width: 40px;
}

/* Job Status Icons - Colors */
.status-RECEIVED .analytics-icon {
	color: #2196F3;
}

.status-WIP .analytics-icon {
	color: #FF9800;
}

.status-READY .analytics-icon {
	color: #4CAF50;
}

.status-WAITING .analytics-icon {
	color: #FFC107;
}

.status-ONHOLD .analytics-icon {
	color: #F44336;
}

/* Analytics Content */
.analytics-content {
	flex: 1;
}

.analytics-label {
	color: white;
	font-size: 14px;
	font-weight: 100;
	text-transform: uppercase;
	margin-bottom: 5px;
}

.analytics-value {
	color: white;
	font-size: 18px;
	font-weight: bold;
}

/* Order Cards - Border Colors */
.orders-pending {
	border-left-color: #FFC107;
}

.orders-received {
	border-left-color: #4CAF50;
}

.orders-backORDERED {
	border-left-color: #F44336;
}

.orders-total {
	border-left-color: #2196F3;
}

/* Order Icons - Colors */
.orders-pending .analytics-icon {
	color: #FFC107;
}

.orders-received .analytics-icon {
	color: #4CAF50;
}

.orders-backORDERED .analytics-icon {
	color: #F44336;
}

.orders-total .analytics-icon {
	color: #2196F3;
}

/* Order Total Value - Smaller Font */
.orders-total .analytics-value {
	font-size: 20px;
}

/* ============================================
   Vertical Grouped Bar Chart Styles
   ============================================ */

.vertical-bar-chart {
	margin-top: 20px;
}

.chart-section-title {
	color: #2c3e50;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.chart-section-title i {
	color: #116329;
}

.chart-container {
	display: flex;
	gap: 15px;
	padding: 20px 10px;
	background: white;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.chart-y-axis {
	display: flex;
	align-items: center;
	padding-right: 10px;
	border-right: 2px solid #dee2e6;
}

.y-axis-label {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: 13px;
	font-weight: 600;
	color: #6c757d;
	letter-spacing: 1px;
}

.chart-bars {
	display: flex;
	flex: 1;
	gap: 20px;
	justify-content: space-around;
	align-items: flex-end;
	padding: 0 10px;
	min-height: 250px;
}

.bar-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	flex: 1;
	max-width: 100px;
}

.bars-wrapper-single {
	display: flex;
	align-items: flex-end;
	height: 200px;
	width: 100%;
	justify-content: center;
}

.bar-vertical {
	width: 50px;
	min-height: 5px;
	border-radius: 6px 6px 0 0;
	position: relative;
	transition: height 0.8s ease-in-out;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 0px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.bar-value {
	font-size: 18px;
	font-weight: bold;
	color: white;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 1);
}

.bar-group-label {
	font-size: 11px;
	font-weight: 600;
	color: #495057;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 5px 8px;
	background: #f8f9fa;
	border-radius: 4px;
	width: 100%;
}

/* Status-specific colors for count bars */
.bar-count.status-QUOTE {
	background: linear-gradient(180deg, #64B5F6 0%, #2196F3 100%);
}

.bar-count.status-NEW {
	background: linear-gradient(180deg, #116329 0%, #4ac26b 100%);
}

.bar-count.status-WIP {
	background: linear-gradient(180deg, #FFB74D 0%, #FF9800 100%);
}

.bar-count.status-READY {
	background: linear-gradient(180deg, #81C784 0%, #4CAF50 100%);
}

.bar-count.status-WAITING {
	background: linear-gradient(180deg, #FFA726 0%, #FFE082 100%);
}

.bar-count.status-ONHOLD {
	background: linear-gradient(180deg, #EF5350 0%, #E53935 100%);
}

.bar-count.status-COMPLETED {
	background: linear-gradient(180deg, #673AB7 0%, #9575CD 100%);
}

/* Status-specific colors for wait time bars */
.bar-wait.status-QUOTE {
	background: linear-gradient(180deg, #64B5F6 0%, #2196F3 100%);
}

.bar-wait.status-NEW {
	background: linear-gradient(180deg, #116329 0%, #4ac26b 100%);
}

.bar-wait.status-WIP {
	background: linear-gradient(180deg, #FFB74D 0%, #FF9800 100%);
}

.bar-wait.status-READY {
	background: linear-gradient(180deg, #81C784 0%, #4CAF50 100%);
}

.bar-wait.status-WAITING {
	background: linear-gradient(180deg, #FFA726 0%, #FFE082 100%);
}

.bar-wait.status-ONHOLD {
	background: linear-gradient(180deg, #E57373 0%, #F44336 100%);
}

.bar-wait.status-COMPLETED {
	background: linear-gradient(180deg, #673AB7 0%, #9575CD 100%);
}

/* Hover effects */
.bar-vertical:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	transform: translateY(-2px);
	transition: all 0.3s ease;
}

/* Responsive design */
@media (max-width: 768px) {
	.chart-bars {
		gap: 10px;
		min-height: 200px;
	}

	.bars-wrapper-single {
		height: 150px;
	}

	.bar-vertical {
		width: 35px;
	}

	.bar-group-label {
		font-size: 10px;
		padding: 4px 6px;
	}

	.bar-value {
		font-size: 10px;
	}

	.chart-section-title {
		font-size: 14px;
	}
}

.kpi-card .kpi-label {
	letter-spacing: 0.06em;
}

.kpi-card .kpi-value {
	line-height: 1.2;
}

/* Optional: keep a consistent scrollable area for the table */
.table-scroll-container {
	/* max-height: 60vh; */
	overflow-y: auto;
	scrollbar-gutter: stable;
	background-color: #f4f4f4;
}

.table-scroll-container2 {
	max-height: 60vh;
	overflow-y: auto;
	scrollbar-gutter: stable;
	background-color: #f4f4f4;
}


.table-scroll-container::-webkit-scrollbar {
	width: 8px;
}

.table-scroll-container::-webkit-scrollbar-track {
	background: #f0f0f0;
}

.table-scroll-container::-webkit-scrollbar-thumb {
	background: #bbb;
	border-radius: 4px;
}

.table-scroll-container::-webkit-scrollbar-thumb:hover {
	background: #999;
}

/* Optional selected-row styling if you use it elsewhere */
#jobsTable tbody tr.selected {
	background-color: #e3f2fd;
}