.heatmap-container {
    width: 100%;
    max-width: 1200px;
    padding: 1rem;
    margin: 0 auto;
    position: relative; /* Added for popup positioning context */
}

.heatmap-table {
    width: 100%;
    border-collapse: collapse;
}

.heatmap-cell {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    text-align: center;
    position: relative; /* Added for popup positioning context */
}

.cell-content {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
    transition: opacity 0.2s;
}

.cell-content:hover {
    opacity: 0.8;
}

.header-cell {
    padding: 0.5rem;
    cursor: pointer;
    position: relative; /* Added for popup positioning context */
}

.header-cell:hover {
    background-color: #f9fafb;
}

/* Color classes remain the same */
.text-white { color: white; }
.bg-gray-100 { background-color: #f3f4f6; }
/* Blue gradient - increased contrast */
.bg-blue-300 { background-color: #93c5fd; } /* Light blue unchanged */
.bg-blue-400 { background-color: #608BD5; } /* Medium blue darkened */
.bg-blue-500 { background-color: #234698; } /* Dark blue darkened */
/* Green gradient - increased contrast */
.bg-green-200 { background-color: #9EDC71; } /* Light green unchanged */
.bg-green-300 { background-color: #6EBA64; } /* Light green unchanged */
.bg-green-400 { background-color: #3E9858; } /* Medium green darkened */
.bg-green-500 { background-color: #0E764B; } /* Dark green darkened */
.bg-purple-500 { background-color: #5f4690; }

/* Renamed and updated popup styles */
.inventory-detail-popup {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    min-width: 280px;
    max-width: 400px;
}

.inventory-detail-popup-content {
    padding: 1rem;
}

.inventory-detail-popup-header {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.inventory-unit-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.inventory-unit-card:last-child {
    margin-bottom: 0;
}

.inventory-unit-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.inventory-unit-id {
    font-weight: 500;
}

.inventory-unit-status {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: white;
    background-color: #3b82f6;
}

.inventory-unit-details {
    color: #4b5563;
    font-size: 0.875rem;
}

/* Overlay for popup backdrop */
.inventory-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999;
}

/* Container for the entire filter section */
.inv-filter-container {
    margin: 1.5rem 0;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Group containing all filter chips */
.inv-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* Individual filter chip styling */
.inv-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.25;
}

/* Hover state */
.inv-filter-chip:hover {
    background-color: #e5e7eb;
}

/* Selected state */
.inv-filter-chip.selected {
    background-color: #3b82f6;
    border-color: #2563eb;
    color: white;
}

/* Count badge */
.inv-filter-count {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Clear all button */
.inv-filter-clear {
    padding: 0.5rem 1rem;
    color: #6b7280;
    font-size: 0.875rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.inv-filter-clear:hover {
    color: #374151;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .inv-filter-group {
        gap: 0.5rem;
    }

    .inv-filter-chip {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
}