
/*
|--------------------------------------------------------------------------
| PAGE
|--------------------------------------------------------------------------
*/

html,
body {
    overflow: hidden !important;
}

.ck-advanced-section,
.ck-advanced-section .container-fluid,
.ck-advanced-section .card,
.ck-advanced-section .card-body {
    padding: 0 !important;
    margin: 0 !important;
}

.ck-advanced-section .container-fluid {
    max-width: none !important;
}

.ck-advanced-section .card {
    border: 0 !important;
    border-radius: 0 !important;
    background: #0f0f10 !important;
}

.ck-advanced-page,
.ck-advanced-page .lb-page {
    width: 100%;
    height: 100%;
    padding: 0 !important;
    margin: 0 !important;
}


/*
|--------------------------------------------------------------------------
| MAIN APP
|--------------------------------------------------------------------------
*/

.ck-advanced-page .lb-wrap {
    position: fixed;

    top: var(--ck-header-bottom, 72px);
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: auto !important;
    min-height: 0 !important;

    display: flex;

    padding: 0 !important;
    margin: 0 !important;

    overflow: hidden;

    background: #0f0f10;

    z-index: 10;
}


/*
|--------------------------------------------------------------------------
| SIDEBAR
|--------------------------------------------------------------------------
*/

.ck-advanced-page .lb-left {
    width: 265px;
    min-width: 265px;

    height: 100%;

    display: flex;
    flex-direction: column;

    flex-shrink: 0;

    overflow: hidden;

    background: #101012;

    border-right: 1px solid #252529;
}


/*
|--------------------------------------------------------------------------
| SIDEBAR HEADER
|--------------------------------------------------------------------------
*/

.ck-advanced-page .lb-left-head {
    flex-shrink: 0;

    padding: 9px 7px 7px;

    background: #101012;

    border-bottom: 1px solid #222226;
}

.ck-advanced-page .lb-left-title {
    margin: 0 0 7px 1px;

    color: #f4f4f5;

    font-size: 13px;
    font-weight: 700;

    line-height: 16px;
}

.ck-advanced-page #lbSearch {
    width: 100%;
    height: 34px;

    padding: 0 10px;

    border: 1px solid #2d2d32;
    border-radius: 7px;

    outline: none;

    background: #151518;
    color: #f5f5f7;

    font-size: 11px;

    box-shadow: none;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.ck-advanced-page #lbSearch::placeholder {
    color: #6f7078;
}

.ck-advanced-page #lbSearch:hover {
    background: #18181c;
    border-color: #36363c;
}

.ck-advanced-page #lbSearch:focus {
    background: #18181c;

    border-color: #3b82f6;

    box-shadow:
        0 0 0 2px rgba(59, 130, 246, 0.10);
}


/*
|--------------------------------------------------------------------------
| MARKET LIST
|--------------------------------------------------------------------------
*/

.ck-advanced-page .lb-list {
    flex: 1;

    min-height: 0;
    height: auto !important;

    padding: 4px;

    overflow-x: hidden;
    overflow-y: auto;

    background: #101012;

    scrollbar-width: thin;
    scrollbar-color: #34343a transparent;
}


/*
|--------------------------------------------------------------------------
| MARKET ROW
|--------------------------------------------------------------------------
*/

.ck-market-row {
    width: 100%;

    box-sizing: border-box;

    padding: 6px 5px !important;

    margin: 0 0 2px 0;

    border: 1px solid transparent !important;
    border-radius: 7px;

    background: transparent;

    cursor: pointer;

    transition:
        background 0.12s ease,
        border-color 0.12s ease,
        transform 0.12s ease;
}

.ck-market-row:hover {
    background: #17171b !important;
}

.ck-market-row:active {
    transform: scale(0.995);
}

.ck-market-row.is-active {
    background: #1a1e27 !important;

    border-color: #3b82f6 !important;

    box-shadow:
        inset 2px 0 0 #3b82f6;
}


/*
|--------------------------------------------------------------------------
| MARKET ROW INNER
|--------------------------------------------------------------------------
*/

.ck-market-row-inner {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 5px;
}


/*
|--------------------------------------------------------------------------
| COIN ICON
|--------------------------------------------------------------------------
*/

.ck-market-row-icon {
    width: 29px;
    height: 29px;

    min-width: 29px;

    flex: 0 0 29px;

    border-radius: 50%;

    object-fit: cover;

    background: #1c1c20;

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04);
}


/*
|--------------------------------------------------------------------------
| MAIN COIN INFO
|--------------------------------------------------------------------------
*/

.ck-market-row-main {
    width: 120px;
    min-width: 120px;
    max-width: 120px;

    flex: 0 0 120px;

    overflow: hidden;
}

.ck-market-row-top {
    width: 100%;

    display: flex;
    align-items: baseline;

    gap: 3px;

    white-space: nowrap;

    overflow: hidden;
}

.ck-market-symbol {
    flex-shrink: 0;

    color: #f5f5f7;

    font-size: 12px;
    font-weight: 700;

    line-height: 14px;

    letter-spacing: 0.01em;
}

.ck-market-name {
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #85858e;

    font-size: 9px;
    font-weight: 400;

    line-height: 12px;
}

.ck-market-row-bottom {
    margin-top: 2px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #71727b;

    font-size: 9px;
    font-weight: 400;

    line-height: 11px;
}


/*
|--------------------------------------------------------------------------
| PRICE COLUMN
|--------------------------------------------------------------------------
*/

.ck-market-row-right {
    width: 66px;
    min-width: 66px;

    flex: 0 0 66px;

    margin-left: 1px;

    text-align: right;
}

.ck-market-price {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #f5f5f7;

    font-size: 11px;
    font-weight: 700;

    line-height: 14px;
}

.ck-market-change {
    display: block;

    margin-top: 2px;

    font-size: 9px;
    font-weight: 500;

    line-height: 11px;
}

.ck-market-change.is-up {
    color: #22c55e;
}

.ck-market-change.is-down {
    color: #ef5350;
}


/*
|--------------------------------------------------------------------------
| SCROLLBAR
|--------------------------------------------------------------------------
*/

.ck-advanced-page .lb-list::-webkit-scrollbar {
    width: 5px;
}

.ck-advanced-page .lb-list::-webkit-scrollbar-track {
    background: transparent;
}

.ck-advanced-page .lb-list::-webkit-scrollbar-thumb {
    background: #34343a;

    border-radius: 20px;
}

.ck-advanced-page .lb-list::-webkit-scrollbar-thumb:hover {
    background: #46464d;
}


/*
|--------------------------------------------------------------------------
| CHART PANE
|--------------------------------------------------------------------------
*/

.ck-advanced-page .lb-chart-pane {
    position: relative;

    flex: 1;

    min-width: 0;
    height: 100%;

    padding: 0 !important;
    margin: 0 !important;

    overflow: hidden;

    background: #0f0f10;
}

#tv_chart_container {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    padding: 0;
    margin: 0;

    background: #0f0f10;
}


/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {

    .ck-advanced-page .lb-left {
        width: 250px;
        min-width: 250px;
    }

    .ck-market-row-main {
        width: 108px;
        min-width: 108px;
        max-width: 108px;

        flex-basis: 108px;
    }

    .ck-market-row-right {
        width: 64px;
        min-width: 64px;

        flex-basis: 64px;
    }

}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .ck-advanced-page .lb-left {
        width: 205px;
        min-width: 205px;
    }

    .ck-advanced-page .lb-left-head {
        padding: 8px 6px 7px;
    }

    .ck-advanced-page .lb-list {
        padding: 3px;
    }

    .ck-market-row {
        padding: 6px 4px !important;

        margin-bottom: 1px;

        border-radius: 6px;
    }

    .ck-market-row-inner {
        gap: 5px;
    }

    .ck-market-row-icon {
        width: 27px;
        height: 27px;

        min-width: 27px;

        flex-basis: 27px;
    }

    .ck-market-row-main {
        width: auto;
        min-width: 0;
        max-width: none;

        flex: 1;
    }

    .ck-market-symbol {
        font-size: 11px;
    }

    .ck-market-name {
        font-size: 8px;
    }

    .ck-market-row-bottom {
        font-size: 8px;
    }

    .ck-market-row-right {
        display: none;
    }

}


/*
|--------------------------------------------------------------------------
| VERY SMALL MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 520px) {

    .ck-advanced-page .lb-left {
        width: 155px;
        min-width: 155px;
    }

    .ck-market-name {
        display: none;
    }

    .ck-market-row-icon {
        width: 25px;
        height: 25px;

        min-width: 25px;

        flex-basis: 25px;
    }

}
