/* Recent Sales Section Styles */
.recent-sales-section {
    margin-top: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.recent-sales-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
}

.recent-sales-section .section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recent-sales-section .section-header h3 i {
    color: #6b7280;
}

.recent-sales-list {
    max-height: 400px;
    overflow-y: auto;
}

.recent-sale-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f9fafb;
    transition: background-color 0.2s ease;
}

.recent-sale-item:hover {
    background-color: #f9fafb;
}

.recent-sale-item:last-child {
    border-bottom: none;
}

.sale-info {
    flex: 1;
}

.sale-product {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.sale-product strong {
    font-size: 0.95rem;
    color: #1f2937;
}

.sale-date {
    font-size: 0.8rem;
    color: #9ca3af;
}

.sale-details {
    display: flex;
    gap: 16px;
}

.sale-quantity, .sale-price {
    font-size: 0.85rem;
    color: #6b7280;
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 4px;
}

.sale-total {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.sale-total strong {
    font-size: 1rem;
    color: #1f2937;
}

.sale-profit {
    font-size: 0.8rem;
    font-weight: 500;
}

.profit-positive {
    color: #10b981;
}

.profit-negative {
    color: #ef4444;
}

.empty-sales {
    padding: 40px 24px;
    text-align: center;
    color: #9ca3af;
}

.empty-sales i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-sales p {
    margin: 0;
    font-size: 0.9rem;
}

/* Button Styles */
.btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #6b7280;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #4b5563;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.8rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .recent-sales-section .section-header {
        padding: 16px;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .recent-sales-section .section-header h3 {
        justify-content: center;
    }
    
    .recent-sale-item {
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .sale-details {
        gap: 8px;
    }
    
    .sale-total {
        align-items: flex-start;
        border-top: 1px solid #f3f4f6;
        padding-top: 12px;
    }
}

/* Scrollbar Styles */
.recent-sales-list::-webkit-scrollbar {
    width: 4px;
}

.recent-sales-list::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.recent-sales-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.recent-sales-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}