/* Piyasa bileşenleri: yan kutu tablosu, finans butonu, kayan şerit, finans sayfası */

/* Piyasa tablosu */
.hbFncBox {
    background: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .2);
    border-radius: 4px;
    overflow: hidden;
}

    .hbFncBox table.hbTableContent {
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
        text-align: right;
    }

    .hbFncBox thead tr {
        background: #f0f1f5;
    }

    .hbFncBox thead th {
        padding: 10px 5px;
        font-size: 13px;
        font-weight: 700;
        color: #4a72d7;
        line-height: 140%;
        text-align: right;
        white-space: nowrap;
    }

        .hbFncBox thead th.sol {
            text-align: left;
            padding-left: 10px;
        }

        .hbFncBox thead th:last-child {
            padding-right: 10px;
        }

    .hbFncBox tbody tr {
        border-bottom: 1px solid #dfe9f2;
    }

        .hbFncBox tbody tr:last-child {
            border-bottom: 0;
        }

    .hbFncBox tbody td {
        vertical-align: middle;
        padding: 11px 4px 9px;
        font-size: 12px;
        color: #757575;
        line-height: 130%;
        text-align: right;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .hbFncBox tbody td.sol {
            text-align: left;
            padding-left: 10px;
            border-right: 1px solid #dfe9f2;
            font-weight: 700;
            color: #333;
        }

        .hbFncBox tbody td:last-child {
            padding-right: 10px;
        }

        .hbFncBox tbody td img {
            display: inline-block;
            vertical-align: middle;
        }

a.financebtn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 46px;
    margin-top: 16px;
    padding: 0 10px;
    border-radius: 4px;
    background: #4a72d7;
    box-shadow: 0 4px 4px rgba(0, 0, 0, .15);
    color: #fff;
    text-decoration: none;
}

    a.financebtn:hover {
        background: #3d63c4;
    }

    a.financebtn .btnTitle {
        flex-grow: 1;
        text-align: center;
        font-size: 14px;
        font-weight: 700;
        margin-right: 24px;
    }

/* Finans sayfası */
.hbFinansPage {
    margin: 24px auto 40px;
}

    .hbFinansPage *,
    .hbFinansPage *::before,
    .hbFinansPage *::after {
        box-sizing: border-box;
    }

    .hbFinansPage a {
        text-decoration: none;
    }

    .hbFinansPage .hbGeneralTitles {
        margin-bottom: 24px;
    }

        .hbFinansPage .hbGeneralTitles h1.title {
            font-size: 36px;
            font-weight: 700;
            color: #000;
            line-height: 120%;
            margin: 0 0 8px;
            padding: 0;
            display: block;
        }

        .hbFinansPage .hbGeneralTitles h2.description {
            font-size: 18px;
            font-weight: 400;
            color: #4a4a4a;
            line-height: 140%;
            margin: 0;
            display: block;
        }

    .hbFinansPage .hbRow.hbMainSlider {
        width: 100%;
        margin: 0 0 36px;
    }

    .hbFinansPage .new3slider-container {
        border-radius: 4px;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .2);
    }

    .hbFinansPage .new3slide img {
        border-radius: 4px 4px 0 0;
    }

    .hbFinansPage .new3bullets,
    .hbFinansPage .new3btn-container {
        max-width: none;
    }

    .hbFinansPage .finansTablolar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        margin-bottom: 40px;
    }

    .hbFinansPage .finansTablo {
        display: flex;
        flex-direction: column;
        background: #fff;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .2);
        border-radius: 4px;
        padding: 16px 16px 12px;
    }

        .hbFinansPage .finansTablo h2 {
            font-size: 20px;
            font-weight: 700;
            color: #333;
            margin: 0 0 12px;
            padding: 0;
        }

        .hbFinansPage .finansTablo .hbFncBox {
            box-shadow: none;
            border-radius: 0;
            flex: 1 1 auto;
        }

        .hbFinansPage .finansTablo thead tr {
            border-radius: 4px;
        }

        .hbFinansPage .finansTablo tbody td {
            padding: 14px 4px 13px;
        }

        .hbFinansPage .finansTablo tbody td.sol {
            white-space: normal;
            line-height: 120%;
        }

        .hbFinansPage .finansTablo tr.ftMore {
            display: none;
        }

        .hbFinansPage .finansTablo.expanded tr.ftMore {
            display: table-row;
        }

        /* Açılan liste sayfayı uzatmaz, kutu içinde kayar; başlık satırı üstte sabit kalır */
        .hbFinansPage .finansTablo.expanded .hbFncBox {
            max-height: 560px;
            overflow-y: auto;
        }

        .hbFinansPage .finansTablo.expanded thead th {
            position: sticky;
            top: 0;
            z-index: 1;
            background: #f0f1f5;
        }

        .hbFinansPage .finansTablo .ftFooter {
            text-align: right;
            padding: 14px 6px 0;
        }

            .hbFinansPage .finansTablo .ftFooter a {
                font-size: 13px;
                font-weight: 700;
                color: #333;
                cursor: pointer;
            }

                .hbFinansPage .finansTablo .ftFooter a:hover {
                    color: #4a72d7;
                }

/* Sayfa altı kayan piyasa şeridi */
.piyasaSeridi {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34px;
    display: flex;
    z-index: 999;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, .15);
}

    .piyasaSeridi a {
        text-decoration: none;
    }

    .piyasaSeridi .psSabit {
        flex: 0 0 320px;
        display: flex;
        align-items: center;
        gap: 14px;
        height: 34px;
        padding: 0 12px;
        background: #fff;
    }

    .piyasaSeridi .psKur {
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }

    .piyasaSeridi .psAd {
        font-size: 14px;
        font-weight: 500;
        color: #595959;
    }

    .piyasaSeridi .psDeger {
        font-size: 14px;
        font-weight: 600;
        padding-left: 14px;
        background: no-repeat left center / 12px;
    }

        .piyasaSeridi .psDeger.up {
            color: #41b87f;
            background-image: url(/static/images/piyasa-up.svg);
        }

        .piyasaSeridi .psDeger.down {
            color: #fe0000;
            background-image: url(/static/images/piyasa-down.svg);
        }

        .piyasaSeridi .psDeger.center {
            color: #ffbf00;
            background-image: url(/static/images/piyasa-center.svg);
        }

    .piyasaSeridi .psKayan {
        flex: 1 1 auto;
        min-width: 0;
        height: 34px;
        overflow: hidden;
        background: #4c73d7;
    }

    .piyasaSeridi .psTrack {
        display: flex;
        width: max-content;
        height: 34px;
        animation: psKay 240s linear infinite;
        will-change: transform;
        backface-visibility: hidden;
    }

    .piyasaSeridi .psKayan:hover .psTrack {
        animation-play-state: paused;
    }

    .piyasaSeridi .psOge {
        flex: 0 0 144px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        height: 34px;
        padding: 0 10px;
        border-right: 1px solid #fff;
        color: #fff;
        font-size: 12px;
        white-space: nowrap;
        -webkit-font-smoothing: antialiased;
    }

        .piyasaSeridi .psOge img {
            flex: 0 0 auto;
            margin-right: 2px;
        }

        .piyasaSeridi .psOge .psSembol {
            flex: 1 1 auto;
        }

@keyframes psKay {
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media only screen and (max-width: 990px) {
    .hbFinansPage .finansTablolar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 767px) {
    .piyasaSeridi {
        display: none;
    }

    .hbFinansPage {
        margin: 12px auto 24px;
    }

        .hbFinansPage .hbGeneralTitles h1.title {
            font-size: 24px;
        }

        .hbFinansPage .hbGeneralTitles h2.description {
            font-size: 15px;
        }

        .hbFinansPage .hbRow.hbMainSlider {
            margin-bottom: 24px;
        }

        .hbFinansPage .finansTablolar {
            grid-template-columns: 1fr;
            gap: 16px;
        }
}
