/* Table Components */
.table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    margin-top: 15px;
    box-shadow: var(--shadow-sm);
    -webkit-overflow-scrolling: touch;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.modern-table th {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-weight: 700;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.modern-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color-light);
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    vertical-align: middle;
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

.modern-table tbody tr:hover {
    background-color: var(--bg-primary);
}

/* Specific styling for financial fields */
.modern-table th.align-right,
.modern-table td.align-right {
    text-align: right;
}

.modern-table th.align-left,
.modern-table td.align-left {
    text-align: left;
}

/* Profit and Loss Labels */
.profit-pos {
    color: var(--success);
    font-weight: 700;
}

.profit-neg {
    color: var(--error);
    font-weight: 700;
}
