/* Frontend CSS for Dominus */

/* Purchase Order Archive/Single Views */
.purchase-order-archive {
	margin: 20px 0;
}

.purchase-order-card {
	background: white;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 20px;
}

.purchase-order-card h3 {
	margin-top: 0;
}

.purchase-order-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
	margin-top: 15px;
}

.purchase-order-meta-item {
	padding: 10px;
	background: #f9f9f9;
	border-left: 3px solid #007bff;
}

.purchase-order-meta-label {
	display: block;
	font-size: 12px;
	color: #666;
	margin-bottom: 5px;
	text-transform: uppercase;
}

.purchase-order-meta-value {
	display: block;
	font-size: 16px;
	font-weight: bold;
	color: #333;
}

/* Status Badge */
.po-status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 3px;
	font-size: 12px;
	text-transform: uppercase;
	font-weight: 600;
	color: white;
}

.po-status-draft {
	background-color: #6c757d;
}

.po-status-funded {
	background-color: #007bff;
}

.po-status-delivered {
	background-color: #ffc107;
	color: #333;
}

.po-status-invoiced {
	background-color: #17a2b8;
}

.po-status-paid {
	background-color: #28a745;
}

.po-status-closed {
	background-color: #343a40;
}

/* Profit Display */
.po-profit-positive {
	color: #28a745;
}

.po-profit-negative {
	color: #dc3545;
}

/* Dashicon Vertical Alignment in Buttons */
.button .dashicons,
button .dashicons,
.wp-core-ui .button .dashicons {
	vertical-align: middle;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
	.purchase-order-meta {
		grid-template-columns: 1fr;
	}
}
