/* Стили таблицы */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
}

.spread-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    background: white;
}

.spread-table thead {
    background-color: #f8f9fa;
}

.spread-table th {
    padding: 0.5rem 0.6rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #8a8a9a;
    border-bottom: 1px solid #e9ecef;
    white-space: nowrap;
}

.spread-table td {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
}

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

.spread-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Favourite star */
.td-fav {
    width: 30px;
    text-align: center;
}

.table-favourite {
    cursor: pointer;
    opacity: 0.4;
    font-size: 0.9rem;
}

.table-favourite:hover {
    opacity: 0.8;
}

/* Coin name */
.spread-table .coin-link {
    color: inherit;
    text-decoration: none;
}

.spread-table .coin-link:hover {
    text-decoration: underline;
}

/* Exchange badges */
.exchange-badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-1 {
    background-color: #e0f2fe;
    color: #0369a1;
}

.badge-2 {
    background-color: #fef3c7;
    color: #92400e;
}

/* Price cells */
.price-cell {
    font-weight: 500;
    white-space: nowrap;
}

/* Ask/Bid stacked */
.askbid-cell {
    white-space: nowrap;
}

.askbid-cell .ask,
.askbid-cell .bid {
    display: block;
    font-size: 0.72rem;
    font-family: 'Roboto Mono', monospace;
    line-height: 1.3;
}

.askbid-cell .ask {
    color: #16a34a;
}

.askbid-cell .bid {
    color: #dc2626;
}

/* Volume cell */
.vol-cell span {
    display: block;
    font-size: 0.75rem;
    line-height: 1.3;
}

/* Contract cell */
.contract-cell {
    white-space: nowrap;
}

.contract-addr {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    color: #7f8c8d;
    margin-right: 0.3rem;
    cursor: pointer;
}

.contract-addr:hover {
    text-decoration: underline;
}

.chain-badge {
    display: inline-block;
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 0.1rem 0.35rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 500;
}

/* Spread column */
.spread-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.spread-pct {
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

.spread-pct-reverse {
    font-size: 0.72rem;
    white-space: nowrap;
    opacity: 0.7;
}

.spread-pct.positive,
.spread-pct-reverse.positive {
    color: #16a34a;
}

.spread-pct.negative,
.spread-pct-reverse.negative {
    color: #dc2626;
}

/* Legacy classes used by cards */
.positive {
    color: #16a34a;
    font-weight: 600;
}

.negative {
    color: #dc2626;
    font-weight: 600;
}

.percentage-badge {
    padding: 0.15rem 0.4rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.percentage-badge.positive {
    background-color: #dcfce7;
}

.percentage-badge.negative {
    background-color: #fee2e2;
}

.exchanges {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.exchange {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

.first-exchange {
    background-color: #e0f2fe;
    color: #0369a1;
}

.second-exchange {
    background-color: #fef3c7;
    color: #92400e;
}

.coin-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coin-symbol {
    font-size: 0.75rem;
    color: #7f8c8d;
}

.time-info {
    font-size: 0.8rem;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    white-space: nowrap;
}

.date-info {
    font-size: 0.7rem;
    color: #7f8c8d;
}

.volume-info {
    font-size: 0.8rem;
}

.volume-values {
    display: flex;
    flex-direction: column;
}
