/**
* Template Name: Hexamin portfolio
* Author: Claude AI
*/


.portfolio {
	padding: 10px 5px 5px 5px;
	max-width: 1600px;
	margin: 0 auto;
	background: white;
	border-radius: 12px;
	overflow: hidden;
}

.portfolio .header {
	padding: 5px;
	text-align: left;
}

.portfolio h1 {
	font-size: 1.2rem;
	margin-bottom: 5px;
}

.portfolio p {
	opacity: 0.9;
	font-size: 1.2rem;
}

.portfolio .loading {
	text-align: left;
	padding:20px;	
	padding: 5px;		
	color: #667eea;
}

.portfolio .error {
	padding:20px;
	text-align: left;
	color: #dc3545;
}

.portfolio .filters {
	padding: 20px 20px;
	background: #f8f9fa;
	border-bottom: 2px solid #e9ecef;
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: center;
}

.portfolio .filter-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.portfolio .filter-group label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #495057;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.portfolio .filter-group input,
.portfolio .filter-group select {
	padding: 8px 12px;
	border: 2px solid #dee2e6;
	border-radius: 6px;
	font-size: 0.95rem;
	transition: all 0.3s;
	min-width: 150px;
}

.portfolio .filter-group input:focus,
.portfolio .filter-group select:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.portfolio .reset-btn {
	padding: 8px 20px;
	background: Purple;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s;
	margin-top: auto;
}

.portfolio .reset-btn:hover {
	background: #4e519e;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.portfolio .stats-info {
	font-size: 0.9rem;
	color: #6c757d;
	display: flex;
	gap: 5px;	
	padding: 10px 10px;	
	margin-top: auto;	
}

.portfolio .stats-info strong {
	color: #495057;
}


.portfolio .table-wrapper {
	overflow-x: auto;
	padding: 30px 0px 0px 0px;
}

.portfolio table {
	width: 100%;
	border-collapse: collapse;
	background: white;
}

.portfolio thead {
	background: #4e519e; /* was  linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
	color: white;
	position: sticky;
	top: 0;
	z-index: 10;
}

.portfolio th {
	padding: 10px 12px;
	text-align: left;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
	transition: background 0.3s;
	position: relative;
	white-space: nowrap;
}

.portfolio th:hover {
	background: rgba(255, 255, 255, 0.1);
}

.portfolio th::after {
	content: '⇅';
	margin-left: 8px;
	opacity: 0.5;
	font-size: 0.9rem;
}

.portfolio th.sort-asc::after {
	content: '↑';
	opacity: 1;
}

.portfolio th.sort-desc::after {
	content: '↓';
	opacity: 1;
}

.portfolio tbody tr {
	border-bottom: 1px solid #e9ecef;
	transition: all 0.3s;
}

.portfolio tbody tr:hover {
	background: lavender;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.portfolio td {
	padding: 8px 10px;
	font-size: 0.9rem;
}

.portfolio .description-cell {
	max-width: 400px;
	line-height: 1.4;
}

.portfolio .customer-name {
	font-weight: 600;
	color: #495057;
}

.portfolio .badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
	text-align: center;
}

.portfolio .badge-yes {
	background: #d4edda;
	color: #155724;
}

.portfolio .badge-no {
	background: #e2e3e5;  /* was #f8d7da */ 
	color: #6c757d;  /* was #721c24 */
}		

.portfolio .badge-unknown {
	background: #e2e3e5;
	color: #6c757d;
}

.portfolio .year-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	background: #e7f1ff;
	color: #004085;
}


/* Mobile responsive */
@media (max-width: 768px) {
	.portfolio .header h1 {
		font-size: 1.5rem;
	}

	.portfolio .filters {
		flex-direction: column;
		align-items: stretch;
	}

	.portfolio .filter-group {
		width: 100%;
	}

	.portfolio .filter-group input,
	.portfolio .filter-group select {
		width: 100%;
	}

	.portfolio .table-wrapper {
		padding: 15px;
	}

	.portfolio th, td {
		padding: 10px 8px;
		font-size: 0.85rem;
	}

	.portfolio .badge {
		font-size: 0.75rem;
		padding: 3px 8px;
	}

	.portfolio .description-cell {
		max-width: 250px;
	}
}

@media (max-width: 480px) {
	.portfolio body {
		padding: 10px;
	}

	.portfolio .header {
		padding: 20px;
	}

	.portfolio th, td {
		padding: 8px 5px;
		font-size: 0.8rem;
	}
}
