/* Fixed column widths for pulse33 tables - optimized for no horizontal scroll */

/* Street Table Column Widths - Total: 1380px (fits in 1400px viewport) */
#street-table {
    table-layout: fixed;
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
}

#street-table th:nth-child(1),
#street-table td:nth-child(1) { /* Select checkbox */
    width: 35px;
    text-align: center;
}

#street-table th:nth-child(2),
#street-table td:nth-child(2) { /* Trade ID */
    width: 70px; /* Reduced from 75px */
}

#street-table th:nth-child(3),
#street-table td:nth-child(3) { /* Order ID */
    width: 75px; /* Reduced from 80px */
}

#street-table th:nth-child(4),
#street-table td:nth-child(4) { /* Client short name */
    width: 60px; /* Increased to ensure "Client" header fits */
}

#street-table th:nth-child(5),
#street-table td:nth-child(5) { /* Security */
    width: 75px; /* Increased to ensure "Security" header fits */
}

#street-table th:nth-child(6),
#street-table td:nth-child(6) { /* Side */
    width: 45px;
}

#street-table th:nth-child(7),
#street-table td:nth-child(7) { /* Quantity */
    width: 80px; /* Increased to ensure "Quantity" header fits */
    text-align: left;
}

#street-table th:nth-child(8),
#street-table td:nth-child(8) { /* Price with flag */
    width: 95px; /* Reduced from 105px */
    text-align: left;
}

#street-table th:nth-child(9),
#street-table td:nth-child(9) { /* Value (CAD) */
    width: 95px; /* Reduced from 105px */
    text-align: left;
}

#street-table th:nth-child(10),
#street-table td:nth-child(10) { /* Counterparty */
    width: 115px; /* Reduced from 125px */
}

#street-table th:nth-child(11),
#street-table td:nth-child(11) { /* Desk */
    width: 55px; /* Reduced from 65px */
}

#street-table th:nth-child(12),
#street-table td:nth-child(12) { /* Trader */
    width: 80px; /* Reduced from 90px */
}

#street-table th:nth-child(13),
#street-table td:nth-child(13) { /* CSA */
    width: 40px; /* Increased to ensure "CSA" header fits */
    text-align: center;
}

#street-table th:nth-child(14),
#street-table td:nth-child(14) { /* Allocation Trigger */
    width: 140px; /* Reduced from 150px */
}

#street-table th:nth-child(15),
#street-table td:nth-child(15) { /* Progress */
    width: 95px; /* Reduced from 100px */
}

#street-table th:nth-child(16),
#street-table td:nth-child(16) { /* Status */
    width: 95px; /* Reduced from 100px */
}

#street-table th:nth-child(17),
#street-table td:nth-child(17) { /* Time */
    width: 105px; /* Increased to ensure time values don't get cut off */
}

/* Allocation Table Column Widths */
#allocation-table {
    table-layout: fixed;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#allocation-table th:nth-child(1),
#allocation-table td:nth-child(1) { /* Alloc ID */
    width: 80px;
}

#allocation-table th:nth-child(2),
#allocation-table td:nth-child(2) { /* Order IDs */
    width: 130px; /* Reduced from 140px */
}

#allocation-table th:nth-child(3),
#allocation-table td:nth-child(3) { /* Client */
    width: 135px; /* Increased from 125px for more space */
}

#allocation-table th:nth-child(4),
#allocation-table td:nth-child(4) { /* Security */
    width: 80px;
}

#allocation-table th:nth-child(5),
#allocation-table td:nth-child(5) { /* Side */
    width: 50px; /* Increased to ensure "Side" header fits */
}

#allocation-table th:nth-child(6),
#allocation-table td:nth-child(6) { /* Quantity */
    width: 80px; /* Increased to ensure "Quantity" header fits */
    text-align: left;
}

#allocation-table th:nth-child(7),
#allocation-table td:nth-child(7) { /* VWAP (CAD) */
    width: 105px; /* Increased to ensure "VWAP (CAD)" header fits */
    text-align: left;
}

#allocation-table th:nth-child(8),
#allocation-table td:nth-child(8) { /* Total Value */
    width: 110px;
    text-align: left;
}

#allocation-table th:nth-child(9),
#allocation-table td:nth-child(9) { /* Commission */
    width: 105px;
    text-align: left;
}

#allocation-table th:nth-child(10),
#allocation-table td:nth-child(10) { /* CSA Amount */
    width: 95px; /* Reduced from 105px but ensures text won't be cut off */
    text-align: left;
}

#allocation-table th:nth-child(11),
#allocation-table td:nth-child(11) { /* Trigger */
    width: 120px; /* Increased from 110px for more space */
}

#allocation-table th:nth-child(12),
#allocation-table td:nth-child(12) { /* Status */
    width: 130px;
    padding-right: 15px;
}

/* Common table styles */
#street-table th,
#street-table td,
#allocation-table th,
#allocation-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 4px 6px;
}

/* Special styles for specific columns */
#street-table .trade-id,
#street-table .order-id,
#allocation-table .allocation-id {
    font-family: "SF Mono", Monaco, Consolas, monospace;
    font-size: 12px;
}

/* Numeric columns with tabular numbers - removed since left-aligned */

/* Progress bar container */
#street-table .progress-container {
    width: 100%;
    max-width: 95px;
    display: inline-flex;
    align-items: center;
}

/* Badge elements shouldn't overflow */
.desk-badge,
.trigger-badge,
.status-badge {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
