/**
 * Product History Styles
 * Styles for the transaction history feature
 */

/* Transaction History Table */
#productTransactionHistory .data-table {
    border-collapse: collapse;
    font-size: 13px;
}

#productTransactionHistory .data-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 12px 10px;
    border-bottom: 2px solid #dee2e6;
}

#productTransactionHistory .data-table td {
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
}

/* Clickable rows */
.clickable-row {
    transition: background-color 0.2s ease;
}

.clickable-row:hover {
    background-color: #f8f9fa !important;
}

.clickable-row.expanded {
    background-color: #e3f2fd !important;
}

/* Expand icon */
.expand-icon {
    display: inline-block;
    font-size: 10px;
    color: #6c757d;
    transition: transform 0.2s ease;
}

/* Details row */
.details-row {
    transition: all 0.3s ease;
}

.details-row.hidden {
    display: none;
}

.details-row td {
    padding: 0 !important;
}

/* Quantity change styling */
.qty-positive {
    color: #16a34a;
}

.qty-negative {
    color: #dc2626;
}

.qty-neutral {
    color: #6b7280;
}

/* Direction indicators */
.direction-in {
    color: #16a34a;
    font-weight: bold;
    margin-right: 4px;
}

.direction-out {
    color: #dc2626;
    font-weight: bold;
    margin-right: 4px;
}

.direction-none {
    color: #6b7280;
    font-weight: bold;
    margin-right: 4px;
}

/* Transaction type badges */
#productTransactionHistory .data-table td span[style*="background"] {
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    #productTransactionHistory {
        overflow-x: auto;
    }

    #productTransactionHistory .data-table {
        min-width: 1000px;
    }
}

/* Filter section */
#transactionTypeFilter {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
}

/* Empty state */
#productTransactionHistory [style*="text-align: center"] {
    padding: 30px 20px;
}
