* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #333333;
    overflow-x: hidden;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

.date-range {
    background: #f5f5f5;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #666666;
    margin-right: 1rem;
}

.heatmap-section {
    background: transparent;
    padding: 2rem 0;
    position: relative;
    overflow: visible;
}

.heatmap-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333333;
    display: block;
    font-weight: 600;
}

.heatmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 1rem;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legend-label {
    font-size: 0.85rem;
    color: #666666;
}

.legend-gradient {
    width: 150px;
    height: 20px;
    background: linear-gradient(to right, 
        #f1f8ff 0%,
        #dbeeff 12.5%,
        #bde0fe 25%,
        #93c5fd 37.5%,
        #60a5fa 50%,
        #3b82f6 62.5%,
        #6366f1 75%,
        #8b5cf6 87.5%,
        #a855f7 100%);
    border-radius: 10px;
}

.heatmap-wrapper {
    position: relative;
    margin-top: 4rem;
    padding-bottom: 60px;
}

.heatmap-container {
    display: grid;
    gap: 3px;
    margin-left: 70px;
    margin-right: 20px;
    position: relative;
}

.heatmap-cell {
    height: 100%;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.heatmap-cell:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}


.department-labels {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dept-label {
    height: 40px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-size: 0.9rem;
    color: #666666;
    cursor: pointer;
    transition: color 0.2s ease;
    font-weight: 500;
}

.dept-label:hover {
    color: #333333;
}

.tool-labels {
    position: absolute;
    bottom: -10px;
    left: 70px;
    right: 20px;
    display: flex;
    gap: 3px;
    height: 48px;
    align-items: flex-end;
}

.tool-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tool-label img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tool-label img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.approved-check {
    position: absolute;
    top: -8px;
    right: calc(50% - 30px);
    background: #10b981;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
    border: 2px solid #ffffff;
}

.tooltip {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.tooltip.active {
    opacity: 1;
}

.tooltip-content {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tooltip-header {
    font-size: 0.9rem;
    color: #333333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tooltip-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
}

.tooltip-detail {
    font-size: 0.85rem;
    color: #666666;
}

@media (max-width: 1200px) {
    .metrics-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    
    .metrics-bar {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .heatmap-container {
        margin-left: 70px;
    }
    
    .department-labels {
        width: 90px;
    }
    
    .dept-label {
        font-size: 0.8rem;
    }
    
    .heatmap-header {
        flex-direction: column;
        align-items: flex-start;
    }
}