
/* =========================================================
   TradingTwist Broker Manager - Broker Comparison Table
   ========================================================= */

/* Table wrapper */
.ttbm-table-container,
.ttbm-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;

    border: 1px solid #e8ebf0;
    border-radius: 12px;

    background: #fff;

    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f7f8fa;
}

/* Scrollbar */
.ttbm-table-container::-webkit-scrollbar,
.ttbm-table-wrapper::-webkit-scrollbar {
    height: 7px;
}

.ttbm-table-container::-webkit-scrollbar-track,
.ttbm-table-wrapper::-webkit-scrollbar-track {
    background: #f7f8fa;
}

.ttbm-table-container::-webkit-scrollbar-thumb,
.ttbm-table-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
}

.ttbm-table-container::-webkit-scrollbar-thumb:hover,
.ttbm-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* =========================================================
   Table
   ========================================================= */

.ttbm-table,
.ttbm-broker-table {
    width: 100%;
    min-width: 900px;

    margin: 0;
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;

    background: #fff;

    font-size: 14px;
    line-height: 1.5;
}

/* Remove theme styling */
.ttbm-table caption,
.ttbm-broker-table caption {
    padding: 0;
}

.ttbm-table th,
.ttbm-table td,
.ttbm-broker-table th,
.ttbm-broker-table td {
    border-left: 0;
    border-right: 0;
}

/* =========================================================
   Table Header
   ========================================================= */

.ttbm-table thead,
.ttbm-broker-table thead {
    background: #f7f8fa;
}

.ttbm-table th,
.ttbm-broker-table th {
    padding: 16px 14px;

    text-align: left;
    vertical-align: middle;

    color: #687386;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;

    text-transform: uppercase;
    letter-spacing: 0.4px;

    border-bottom: 1px solid #e8ebf0;

    white-space: nowrap;
}

/* =========================================================
   Table Cells
   ========================================================= */

.ttbm-table td,
.ttbm-broker-table td {
    padding: 17px 14px;

    vertical-align: middle;
    text-align: left;

    color: #263248;

    border-bottom: 1px solid #edf0f3;
}

/* Last row */
.ttbm-table tbody tr:last-child td,
.ttbm-broker-table tbody tr:last-child td {
    border-bottom: 0;
}

/* Hover */
.ttbm-table tbody tr,
.ttbm-broker-table tbody tr {
    transition: background-color 0.2s ease;
}

.ttbm-table tbody tr:hover,
.ttbm-broker-table tbody tr:hover {
    background: #fbfcfd;
}

/* =========================================================
   Column Widths
   ========================================================= */

/* Broker */
.ttbm-table td:first-child,
.ttbm-broker-table td:first-child {
    min-width: 200px;
}

/* Rating */
.ttbm-table td:nth-child(2),
.ttbm-broker-table td:nth-child(2) {
    min-width: 115px;
}

/* Deposit */
.ttbm-table td:nth-child(3),
.ttbm-broker-table td:nth-child(3) {
    min-width: 125px;
}

/* Platforms and Markets */
.ttbm-table td:nth-child(4),
.ttbm-table td:nth-child(5),
.ttbm-broker-table td:nth-child(4),
.ttbm-broker-table td:nth-child(5) {
    min-width: 130px;
}

/* Action button */
.ttbm-table td:last-child,
.ttbm-broker-table td:last-child {
    min-width: 130px;
}

/* =========================================================
   Broker Cell
   ========================================================= */

.ttbm-table .ttbm-broker-cell,
.ttbm-broker-table .ttbm-broker-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ttbm-table .ttbm-broker-info,
.ttbm-broker-table .ttbm-broker-info {
    min-width: 0;
}

.ttbm-table .ttbm-broker-info strong,
.ttbm-broker-table .ttbm-broker-info strong {
    display: block;
    font-size: 14px;
    line-height: 1.5;
}

/* =========================================================
   Rating Cell
   ========================================================= */

.ttbm-table .ttbm-rating,
.ttbm-broker-table .ttbm-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

/* =========================================================
   Deposit
   ========================================================= */

.ttbm-table td,
.ttbm-broker-table td {
    word-break: normal;
    overflow-wrap: anywhere;
}

/* =========================================================
   Action Button
   ========================================================= */

.ttbm-table .ttbm-button,
.ttbm-broker-table .ttbm-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

    .ttbm-table-container,
    .ttbm-table-wrapper {
        border-radius: 9px;
    }

    .ttbm-table,
    .ttbm-broker-table {
        min-width: 780px;
        font-size: 13px;
    }

    .ttbm-table th,
    .ttbm-broker-table th {
        padding: 13px 11px;
        font-size: 11px;
    }

    .ttbm-table td,
    .ttbm-broker-table td {
        padding: 13px 11px;
    }

    .ttbm-table td:first-child,
    .ttbm-broker-table td:first-child {
        min-width: 180px;
    }

    .ttbm-table td:last-child,
    .ttbm-broker-table td:last-child {
        min-width: 120px;
    }

    .ttbm-table .ttbm-broker-cell,
    .ttbm-broker-table .ttbm-broker-cell {
        gap: 9px;
    }
}

/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 480px) {

    .ttbm-table,
    .ttbm-broker-table {
        min-width: 740px;
    }

    .ttbm-table th,
    .ttbm-broker-table th {
        padding: 12px 10px;
    }

    .ttbm-table td,
    .ttbm-broker-table td {
        padding: 12px 10px;
    }
}
