.fpw-container *{
    font-family: YekanBakh;
}

.fpw-container {
    width: 100%;
    margin: 0;
    padding-top: 20px;
}

.fpw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.fpw-search-section {
    flex: 1;
    max-width: 400px;
}

.fpw-search-bar {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.fpw-search-icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    border: 2px solid #3E74FE;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.fpw-search-icon::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 2px;
    background-color: #3E74FE;
    bottom: -4px;
    right: -2px;
    transform: rotate(45deg);
}

.fpw-search-input {
    background: none;
    border: none;
    font-size: 14px;
    color: #495057;
    width: 100%;
    outline: none;

    border: unset!important;
    border-radius: unset!important;;
    padding: unset!important;;
}

.fpw-search-input::placeholder {
    color: #1C1C1C;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0;

}

.fpw-tabs {
    display: flex;
    gap: 8px;
}

.fpw-tab {
    padding: 8px 0;
    background: none;
    border: none;
    font-size: 14px;
    color: #152242;
    cursor: pointer;
    position: relative;
    font-weight: 500;
}

.fpw-tab.fpw-active {
    background-color: #E9EBF1;
    font-weight: 600;
}

.fpw-table-container {
    background-color: #ffffff;
}

.fpw-table {
    width: 100%;
    border-collapse: collapse;
    margin-block-end: 24px;
}

.fpw-table-header {
    border-bottom: 1px solid #e9ecef;
}

.fpw-table-header th {
    padding: 16px 20px!important;
    text-align: right;
    color: #152242;
    white-space: nowrap;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0;
    cursor: pointer;
    user-select: none;
}

.fpw-table-header th:first-child {
    cursor: unset;
    user-select: none;
}

.fpw-table-row {
    border-bottom: 1px solid #EBEBEB;
    transition: background-color 0.15s ease;
}

.fpw-table-row:hover {
    background-color: #f8f9fa;
}

.fpw-table-row:last-child {
    border-bottom: none;
}

.fpw-table-cell {
    padding: 16px 20px!important;
    vertical-align: middle;

    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0;
}

.fpw-table-cell * , .fpw-table-cell{
    font-family: 'YekanBakhFaNum', 'YekanBakh';
}

.fpw-symbol-cell {
    font-weight: 700;
    color: #212529;
    min-width: 120px;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    vertical-align: bottom;
}

.fpw-symbol-cell > a{
    font-weight: 700!important;
    color: #152242!important;
}

.fpw-price {
    font-weight: 600;
    color: #212529;
    font-size: 14px;
    margin-right: 17px;
}

.fpw-change-positive {
    color: #119462;
    font-weight: 500;
}

.fpw-change-negative {
    color: #ef4444;
    font-weight: 500;
}

.fpw-change-neutral {
    color: #6b7280;
    font-weight: 500;
}

.fpw-percentage-text {
    font-size: 12px;
    direction: ltr;
}

.fpw-sentiment {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}

.fpw-sentiment-icon {
    width: 20px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fpw-chart-bars {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.fpw-chart-bar {
    width: 3px;
    background-color: #ef4444;
    border-radius: 1px;
}

.fpw-chart-bar:nth-child(1) { height: 8px; }
.fpw-chart-bar:nth-child(2) { height: 12px; }
.fpw-chart-bar:nth-child(3) { height: 16px; }
.fpw-chart-bar:nth-child(4) { height: 10px; }

.fpw-chart-bars.fpw-bullish .fpw-chart-bar {
    background-color: #22c55e;
}

.fpw-sentiment-text {
    font-size: 13px;
    font-weight: 600;
}

.fpw-bearish-text {
    color: #ef4444;
}

.fpw-bullish-text {
    color: #22c55e;
}

.fpw-number-cell {
    color: #4C5E8C;
    font-weight: 500;
}

.fpw-table thead{
    position: sticky !important;
    top: 75px !important;
    background-color: #fff !important;
    z-index: 1 !important;
}

.fpw-table thead tr:first-child th{
    border: unset!important;
}

.fpw-table thead tr th,.fpw-table tbody tr td{
    text-align: center;
    direction: ltr;
}

.fpw-tab{
    border: 1px solid #E9EBF1;
    padding: 10px;
    border-radius: 12px;
}

.fpw-tabs button:hover{
    color: #1C1C1C;
    background-color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.fpw-tabs button:focus {
    text-decoration: none;
    color: inherit;
    background-color: #E9EBF1;
    transition: unset;
}

.fpw-table tbody tr td:nth-last-child(2) {
    align-items: center;
}

.fpw-table tbody tr td:last-child {
    padding-right: 0;
}

.fpw-arrow-cell {
    width: 40px;
}

.fpw-arrow-cell a {
    text-decoration: none !important;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
}

.fpw-table tbody tr:hover > td{
    background-color: inherit;
}

.fpw-svg-instance {
    display: inline-block;
    vertical-align: middle;
}

.fpw-table thead tr{
    border-top: 1px solid #EBEBEB;
}

.fpw-container table tbody > tr:nth-child(2n+1) > td,.fpw-container table tbody > tr:nth-child(2n+1) > th{
    background-color: unset;
}
.fpw-container table td,.fpw-container  table th{
    border: unset;
}

.fpw-container table{
    border: unset!important;
}

.fpw-table tbody{
    text-align: center;
}

.fpw-chart-bars image{
    min-width: 20px;
}

.fpw-table tbody tr td:first-child,.fpw-table thead tr th:first-child{
    text-align: right!important;
}

@media (min-width: 769px) {
    .fpw-symbol-title{
        letter-spacing: 0;
        max-width: 125px;
    }

    .fpw-price,
    .fpw-price-details {
        display: inline-block;
        vertical-align: middle;
    }

    .fpw-table tbody tr td:nth-last-child(2) {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .fpw-table thead,.fpw-table tbody td:nth-child(2),
    .fpw-table tbody td:nth-child(3), .fpw-table tbody td:nth-child(4),
    .fpw-table tbody td:nth-child(5), .fpw-table tbody td:nth-child(6),
    .fpw-table tbody td:nth-child(7), .fpw-table tbody td:nth-child(9){
        display: none;
    }

    .fpw-table tbody td{
        width: 100%;
    }

    .fpw-table tbody td:first-child{
        text-align: right!important;
    }

    .fpw-tab{
        font-weight: 600;
        font-size: 14px;
        text-align: right;
        color: #757575;
        border: unset;
        background-color: unset;
        border-radius: unset;
    }

    .fpw-percentage-text{
        font-size: 10px;
    }

    .fpw-search-input::placeholder {
        text-align: right;
    }

    .fpw-tabs button:focus{
        background-color: unset;
    }

    .fpw-tabs{
        border-bottom: solid 1px #E9EBF1;
        padding-bottom: 0;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .fpw-tabs::-webkit-scrollbar{
        display: none;
    }

    .fpw-tab:hover{
        box-shadow: unset!important;
        background-color: unset!important;
    }

    .fpw-tab.fpw-active{
        background-color: unset;
    }

    .fpw-active{
        font-weight: 600;
        font-size: 14px;
        text-align: right;
        color: #1C1C1C;
        border-bottom: 3px solid #3E74FE;

    }

    .fpw-price-details > .fpw-sentiment{
        display: flex!important;
    }

    .fpw-price-details{
        display: inline-flex;
        justify-content: left;
        vertical-align: middle;
        align-content: center;
        align-items: center;
        gap: 5px;
        width: 100%;
        margin-top: 4px;
    }

    .fpw-search-section{
        max-width: 100%;
    }

    .fpw-price{
        margin-right: 0;
        text-align: left;
    }

    .fpw-sentiment{
        margin-left: 0;
    }

    .fpw-percentage-text{
        text-wrap: nowrap;
    }

    .fpw-sentiment-icon{
        width: unset;
    }

    .fpw-symbol-title{
        display: block!important;
        font-weight: 400!important;
        font-size: 10px!important;
        text-align: right;
        color: #152242!important;
        margin-top: 8px;
        text-wrap: nowrap;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 110px;
        margin-left: auto;
    }

    .fpw-symbol-link{
        font-size: 14px;
        text-align: right;
    }

    .fpw-table tbody tr td:nth-last-child(2){
        display: block;
    }

    .fpw-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .fpw-table-container {
        overflow-x: auto;
    }

    .fpw-table-cell {
        padding: 12px 15px;
        font-size: 13px;
    }

    .fpw-chart-bars {
        justify-content: flex-start;
    }

    .fpw-percentage-text{
        margin-left: 15px;
    }
}

.fpw-r1-svg{
    content: url("data:image/svg+xml;utf8,<svg width='10' height='11' viewBox='0 0 10 11' fill='none' xmlns='http://www.w3.org/2000/svg'><rect y='5' width='2' height='6' rx='1' fill='%23D50000'/><rect x='4' y='2' width='2' height='9' rx='1' fill='%23CBD0DD'/><rect x='8' width='2' height='11' rx='1' fill='%23CBD0DD'/></svg>");
}
.fpw-r2-svg{
    content: url('data:image/svg+xml;utf8,<svg width="10" height="12" viewBox="0 0 10 12" fill="none" xmlns="http://www.w3.org/2000/svg"><rect y="5.5" width="2" height="6" rx="1" fill="%23D50000"/><rect x="4" y="2.5" width="2" height="9" rx="1" fill="%23D50000"/><rect x="8" y="0.5" width="2" height="11" rx="1" fill="%23CBD0DD"/></svg>');
}

.fpw-r3-svg{
    content: url('data:image/svg+xml;utf8,<svg width="10" height="11" viewBox="0 0 10 11" fill="none" xmlns="http://www.w3.org/2000/svg"><rect y="5" width="2" height="6" rx="1" fill="%23D50000"/><rect x="4" y="2" width="2" height="9" rx="1" fill="%23D50000"/><rect x="8" width="2" height="11" rx="1" fill="%23D50000"/></svg>');
}

.fpw-g1-svg{
    content: url('data:image/svg+xml;utf8,<svg width="10" height="11" viewBox="0 0 10 11" fill="none" xmlns="http://www.w3.org/2000/svg"><rect y="5" width="2" height="6" rx="1" fill="%2300B67A"/><rect x="4" y="2" width="2" height="9" rx="1" fill="%23CBD0DD"/><rect x="8" width="2" height="11" rx="1" fill="%23CBD0DD"/></svg>');
}

.fpw-g2-svg{
    content: url('data:image/svg+xml;utf8,<svg width="10" height="11" viewBox="0 0 10 11" fill="none" xmlns="http://www.w3.org/2000/svg"><rect y="5" width="2" height="6" rx="1" fill="%2300B67A"/><rect x="4" y="2" width="2" height="9" rx="1" fill="%2300B67A"/><rect x="8" width="2" height="11" rx="1" fill="%23CBD0DD"/></svg>');
}

.fpw-g3-svg{
    content: url('data:image/svg+xml;utf8,<svg width="10" height="11" viewBox="0 0 10 11" fill="none" xmlns="http://www.w3.org/2000/svg"><rect y="5" width="2" height="6" rx="1" fill="%2300B67A"/><rect x="4" y="2" width="2" height="9" rx="1" fill="%2300B67A"/><rect x="8" width="2" height="11" rx="1" fill="%2300B67A"/></svg>');
}

.fpw-symbol-link{
    text-decoration: none!important;
    color: #152242;
}

.fpw-symbol-title{
    letter-spacing: 0;
    text-align: right;
    max-width: 125px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 8px;
}

.fpw-symbol-link a:hover{
    color: inherit;
}

.fpw-pagination{
    display: inline-flex;
    width: 100%;
    justify-content: center;
    gap: 10px;
    user-select: none;
}

.fpw-pagination > .page-numbers{
    border: 1px solid #ECF1FF;
    border-radius: 4px;
    color: #253B73;
    width: 25px;
    height: 25px;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    align-content: center;
    font-family: 'YekanBakhFaNum';
}

.fpw-pagination > .current{
    background-color: #253B73;
    color: #FFFFFF;
    border: unset;
}

.fpw-table-header th.sorted-asc::before {
    content: '▲ ';
    font-size: 0.7em;
    margin-left: 5px;
}

.fpw-table-header th.sorted-desc::before {
    content: '▼ ';
    font-size: 0.7em;
    margin-left: 5px;
}