/**
 * Inventory Status Styles
 * File: posh-advocate-dashboard/assets/css/inventory-status.css
 */

.posh-inventory-status {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.posh-inventory-header {
	margin-bottom: 24px;
}

.posh-inventory-header h2 {
	margin: 0 0 8px 0;
	font-size: 28px;
	font-weight: 600;
	color: #1a1a1a;
}

.posh-inventory-subtitle {
	margin: 0;
	font-size: 14px;
	color: #666;
}

.posh-inventory-table-wrapper {
	overflow-x: auto;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.posh-inventory-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.posh-inventory-table thead {
	background: #f8f9fa;
	border-bottom: 2px solid #e9ecef;
}

.posh-inventory-table th {
	padding: 12px 16px;
	text-align: left;
	font-weight: 600;
	color: #495057;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.posh-inventory-table th.posh-sortable {
	position: relative;
	transition: background-color 0.2s;
}

.posh-inventory-table th.posh-sortable:hover {
	background-color: #e9ecef;
}

.posh-inventory-table th.posh-sortable .sort-indicator {
	margin-left: 4px;
	font-size: 12px;
	color: #6c757d;
	font-weight: normal;
}

.posh-inventory-table tbody tr {
	border-bottom: 1px solid #e9ecef;
	transition: background-color 0.2s;
}

.posh-inventory-table tbody tr:hover {
	background: #f8f9fa;
}

.posh-inventory-table tbody tr.urgent {
	background: #fff5f5;
	border-left: 4px solid #dc3545;
}

.posh-inventory-table tbody tr.urgent:hover {
	background: #ffe5e5;
}

.posh-inventory-table tbody tr.warning {
	background: #fffbf0;
	border-left: 4px solid #ffc107;
}

.posh-inventory-table tbody tr.warning:hover {
	background: #fff8e1;
}

.posh-inventory-table td {
	padding: 16px;
	vertical-align: top;
}

.posh-inventory-table .product-image {
	text-align: center;
	padding: 8px;
}

.posh-inventory-table .product-image img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid #ddd;
	display: block;
	margin: 0 auto;
}

.posh-inventory-table .product-name {
	font-weight: 500;
	color: #1a1a1a;
}

.posh-inventory-table .zero-stock-item {
	opacity: 0.6;
}

.posh-inventory-table .product-name a {
	color: #0ABAB5;
	text-decoration: none;
	font-weight: 500;
}

.posh-inventory-table .product-name a:hover {
	text-decoration: underline;
}

.posh-inventory-table .product-sku {
	display: block;
	font-size: 12px;
	color: #6c757d;
	margin-top: 4px;
	font-weight: normal;
}

.posh-inventory-table .stock-quantity {
	font-weight: 600;
	color: #495057;
	font-family: 'Courier New', monospace;
}

.posh-inventory-table .sales-rate {
	color: #495057;
	font-family: 'Courier New', monospace;
}

.posh-inventory-table .projected-date {
	font-weight: 500;
}

.posh-inventory-table .projected-date strong {
	color: #1a1a1a;
	display: block;
	margin-bottom: 4px;
}

.posh-inventory-table .projected-date .date-text {
	font-size: 12px;
	color: #6c757d;
	font-weight: normal;
}

.posh-inventory-table .status {
	text-align: center;
}

.status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.status-badge.temporary {
	background: #e3f2fd;
	color: #1976d2;
}

.status-badge.permanent {
	background: #ffebee;
	color: #c62828;
}

/* Admin page specific styles */
.posh-inventory-admin-controls {
	margin: 20px 0;
}

.posh-inventory-admin-section {
	margin-top: 30px;
}

.wp-list-table .posh-inventory-table td {
	padding: 10px;
}

.wp-list-table .posh-inventory-table th {
	padding: 10px;
}

/* Responsive styles */
@media (max-width: 768px) {
	.posh-inventory-status {
		padding: 16px;
	}

	.posh-inventory-header h2 {
		font-size: 24px;
	}

	.posh-inventory-table {
		font-size: 13px;
	}

	.posh-inventory-table th,
	.posh-inventory-table td {
		padding: 10px 8px;
	}

	.posh-inventory-table th {
		font-size: 11px;
	}

	.posh-inventory-table .product-sku {
		font-size: 11px;
	}

	.posh-inventory-table .projected-date .date-text {
		font-size: 11px;
	}
}

