body {
    padding-top: 56px;
}

.stock-title {
    transition: color 0.4s ease;
}
.stock-title.ajax-active {
    color: var(--bs-primary);
}

.red {
    color: #df3023;
}

.blue {
    color: #285dd6;
}

.us_up {
    color: #df3023;
}

.us_down {
    color: #285dd6;
}

.total_diff {
    text-align: right;
    float: right;
}

h1 {
    margin: 0;
    text-align: right;
    font-size: 3rem;
    font-weight: bold;
}

table {
    width: 100%;
    table-layout: fixed;
}

td {
    font-size: 14px;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

td.cell_total {
    width: 21%;
    font-size: 13px;
    text-align: right;
}

td.cell_updown {
    width: 35%;
    font-size: 13px;
    text-align: right;
}

td.cell_count {
    width: 10%;
    font-size: 13px;
    text-align: right;
}

td.cell_chart {
    width: 10px;
}

td.cell_name {
    width: auto;
}

.c_line {
    padding: 0;
    border: 0;
    margin: auto;
    width: 2px;
    height: 1px;
    border-left: 2px;
    border-right: 2px;
}

.c_line2 {
    padding: 0;
    border: 0;
    margin: auto;
    width: 8px;
    height: 1px;
}

.c_blue {
    background-color: #285dd6;
}

.c_red {
    background-color: #df3023;
}

.c_us_up {
    background-color: #df3023;
}

.c_us_down {
    background-color: #285dd6;
}

.c_black {
    background-color: gray;
}

@keyframes flash-up-anim {
    0% { background-color: #FADBD8; }
    100% { background-color: #ffffff; }
}

@keyframes flash-down-anim {
    0% { background-color: #D6EAF8; }
    100% { background-color: #ffffff; }
}

.flash-up {
    animation: flash-up-anim 1s ease-out;
}

.flash-down {
    animation: flash-down-anim 1s ease-out;
}

.hide {
    display: none;
}

.std_dev {
    color: gray;
    font-size: 13px;
    white-space: nowrap;
}

.cursor-pointer {
    cursor: pointer;
}

.sort-arrow {
    display: inline-block;
    width: 1em;
    text-align: center;
    font-size: 0.8em;
    margin-left: 2px;
}

.header-table td {
    position: relative;
    color: inherit;
    font-weight: bold !important;
    text-align: center !important;

}

.header-table td.cell_count,
.header-table td.cell_updown,
.header-table td.cell_total {
    text-align: right !important;
}

.header-table .sort-arrow {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    margin-left: 0;
}

#stock_list h2,
#stock_list table td {
    font-size: 14px;
    font-weight: normal;
}

#stock_list .cell_total,
#stock_list .cell_updown,
#stock_list .cell_count {
    font-size: 13px !important;
}

#stock_list h2 {
    margin: 0;
}

#stock_list {
    list-style: none;
    padding: 0;
    margin-left: calc(var(--bs-gutter-x) * -0.5);
    margin-right: calc(var(--bs-gutter-x) * -0.5);
}

#stock_list li {
    padding: 12px 8px;
    border-bottom: 1px solid #dee2e6;
    background-color: #fff;
}

#stock_list li:last-child {
    border-bottom: 1px solid #dee2e6;
}

#stock_list .stock-list-header {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
}
