/* /////////////////////////////////////////////////////// */
/*  HISTORY HEADER /////////////////////////////////////// */
/* /////////////////////////////////////////////////////// */

.history-header{
    width: 100%;
    display: flex;
    flex-direction: row;
    vertical-align: middle;
}

.history-header .history-title{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    margin-right: 15px;
    overflow: hidden;
}

.history-header .history-data{
    width: auto;
    flex-shrink: 0;
    display: flex;
    align-items: end;
    justify-content: start;
    flex-direction: column;
}

.history-header .history-data .history-rate{
    color: var(--color-p-dark);
    line-height: 140%;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
}

.history-header .history-data .history-change{
    line-height: 110%;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: end;
}
.history-header .history-data .history-change .code{
    height: 100;
    font-size: 75%;
    line-height: 125%;
    padding-left: 0.2rem;
    padding-right: 0.6rem;
}

.history-header .history-data .history-date{
    color: var(--color-p-light);
    white-space: nowrap;
    overflow: hidden;
    font-size: 90%;
}

@media (max-width:767.98px) {
    .history-header{
        flex-direction: column;
    }

    .history-header .history-title{
        margin-right: 0;
        width: 100%;
    }
    
    .history-header .history-data{
        width: 100%;
        align-items: start;
        margin-top: 15px;
    }

    /*----------------------------*/

    .history-header .history-data-change{
        display: inline;
        align-items: end;
        margin-top: 12px;
    }

    .history-header .history-data-change .history-rate{
        display: inline;
        padding-right: .4rem;
    }

    .history-header .history-data-change .history-change{
        display: inline;
    }
    .history-header .history-data-change .history-change .code{
        height: 100;
        font-size: 75%;
        line-height: 125%;
        padding-left: 0.2rem;
        padding-right: 0.6rem;
    }
    
}

/* /////////////////////////////////////////////////////// */
/*  HISTORY TABLE //////////////////////////////////////// */
/* /////////////////////////////////////////////////////// */

.history-table{
    font-size: 95%;
    white-space: nowrap;
    --bs-table-hover-bg: 0 0 0 0;
}

.history-table tbody tr:hover{
    background-color: var(--color-back-hover);
    color: var(--color-p-dark);
}

.history-table th,
.history-table td{
    padding-right: 0;
    padding-left: 15px;
    text-align: right;
    line-height: 120%;
}
.history-table th.date,
.history-table td.date{
    text-align: left;
    padding-left: 0;
    padding-right: 0;
}

.history-table .date-short,
.history-table .title-short{
    display: none;
}

.history-table .title-currency{
    font-family: 'Kanit', arial, sans-serif !important;
    letter-spacing: 0.75px;
    display: block;
    font-size: 75%;
}
.history-table .title-currency::before{
    padding-right: 1px;
    content: "(";
}
.history-table .title-currency::after{
    padding-left: 1px;
    content: ")";
}

.history-table .cell-symbol{
    padding-right: 1px;
    font-size: 75%;
}
.history-table .cell-sign{
    margin-right: -1px;
}

.history-table .cell-rate{
    font-family: 'Kanit', arial, sans-serif !important;
    letter-spacing: 0.5px;
}

.history-table .skeleton{
    width: 80px;
    height: 18.24px;
    float: right;
}
.history-table td.date .skeleton{
    width: 210px;
    float: left;
}

@media (max-width:767.98px) {

    .history-table{
        font-size: 85%;
    }

    .history-table th,
    .history-table td{
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .history-table .date-large,
    .history-table .title-large{
        display: none;
    }
    .history-table .date-short,
    .history-table .title-short{
        display: inline;
    }

    .history-table .skeleton{
        width: 55px;
        height: 15.35px;
    }
    .history-table td.date .skeleton{
        width: 80px;
    }
}