/* static/css/styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
/** Skeleton loading **/
.placeholder {
    position: relative;
    overflow: hidden;
    background: #ceddff !important;
    border-radius: 8px;
}
.placeholder:after{
    content: "";
    position: absolute;
    height: 100%;
    width: 100px;
    left: -100px;
    top: 0;
    background: linear-gradient(to right, transparent, #ffffff70, transparent);
    animation: reflect 800ms ease-out infinite;
}
@keyframes reflect {
to {
    left: calc(100% + 100px);
}
}
.flex-start {
    display: flex;
    -webkit-box-pack: start;
    justify-content: flex-start;
    -webkit-box-align: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}
.flex-between {
    display: flex;
    -webkit-box-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    align-items: center;
}
.grabbing {
    cursor: grabbing;
}
.rounded-full {
    width: 10px;
    min-width: 10px;
    height: 10px;
    border-radius: 10px;
    margin-right: 8px;
}
.cursor-pointer {
    cursor: pointer;
}
body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'segoe ui', Roboto, Helvetica, Arial, sans-serif;
    width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}
::-webkit-scrollbar {
    width: 6px;
    height: 4px;
    background-color: transparent;
}
::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: #ceddff;
}
header {
    background-color: #ceddff;
    color: #fff;
    padding: 0rem 0.2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 60px;
    z-index: 10000000;
    display: flex;
    align-items: center;
}
header .logo {
    display: flex;
    align-items: center;
    height: 100%;
    border-right: 3px solid #f8f9fa;
    border-radius: 10px;
    transform: skew(16deg);
}
header .logo img {
    width: 150px;
    margin-right: 20px;
    margin-left: 8px;
    transform: skew(-16deg);
}
header nav {
    height: 100%;
}
header nav ul {
    height: 100%;
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}
header nav ul li {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-right: 3px solid #f8f9fa;
    border-radius: 10px;
    transform: skew(16deg);
}
header nav ul li a {
    color: #12365b;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    margin-top: 3px;
    transform: skew(-16deg);
}
header nav ul li a:hover,  header nav ul li a.active, .mobile-menu a:hover, .mobile-menu a.active, .dropdown-menu li:hover .dropdown-item {
    color: #c32022;
}
.header-menu .dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    z-index: 1000;
    height: auto;
    padding: 2px 0px 0px 0px;
    border: 0;
}
.header-menu .dropdown-menu.show {
    display: block;
    padding-top: 0px;
    transform: translate3d(0px, 62px, 0px) !important;
}
.header-menu .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 2px;
}
.header-menu .dropdown-toggle::after {
    display: none;
}
.dropdown-menu li {
    transform: skew(0deg);
    border: 3px solid #ceddff;
    padding: 6px;
    margin-bottom: 2px;
    border-radius: 6px;
}
.dropdown-menu li a, .dropdown-menu.active li a {
    background-color: transparent !important;
    color: #12365b;
    font-weight: 600;
    margin-top: 0;
    padding: 0 10px;
    transition: all ease-in-out 0.3s;
}
.main-menu li a .new-item, .main-menu li a .beta-item {
    font-size: 10px;
    padding: 2px;
    border-radius: 6px;
}
.main-menu li a .new-item {
    background-color: #f63d5c;
}
.main-menu li a .beta-item {
    background-color: #ceddff;
}
.beta-item span, .new-item span {
    position: relative;
    display: inline-block;
    animation: new-beta 1s infinite;
}
.main-menu li a .new-item span, .main-menu li a .beta-item span {
    padding: 0px;
}
.main-menu li a .beta-item span {
    color: #712cf8;
}
.main-menu li a.active {
    color: #c32022;
}
.main-menu li a span {
    color: #fff;
    padding: 5px;
    border-radius: 50%;
}
.main-menu li a span.industries {
    background-color: #c32022;
}
.main-menu li a span.filter-stocks {
    background-color: #f5a504;
}
.main-menu li a span.statistical-data {
    background-color: #712cf9;
}
.main-menu li a span.market-analysis {
    background-color: #25a549;
}
.main-menu li a span.transaction-data {
    background-color: #96ac06;
}
.main-menu li a span.rs-stock {
    background-color: #eceb13;
}
.main-menu li a span.funds {
    background-color: #d35400;
}
.main-menu li a span.macro {
    background-color: #eeb50b;
}
.main-menu li a span.self-trade {
    background-color: #c77904;
}
.main-menu li a span.foreign-trade {
    background-color: #dba504;
}
.header-tab .box-title .beta-item, .header-tab .box-title .new-item {
    font-size: 14px;
    margin-bottom: 20px;
    border-radius: 6px;
    text-transform: capitalize;
    gap: 2px;
}
.header-tab .box-title .beta-item {
    background-color: #ceddff;
    color: #a61bfa;
}
.header-tab .box-title .new-item {
    background-color: #f63d5c;
    color: #ffffff;
}
.search-mobile {
    display: none;
}
.header-search {
    background-color: rgb(240 241 245 / 60%);
    width: 330px;
    padding: 6px 17px;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: start;
    justify-content: flex-start;
    gap: 8px;
    border-radius: 24px;
    cursor: pointer;
    user-select: none;
    position: absolute;
    top: 20%;
    right: 20px;
}
.header-search .search .icon-search, .search-form .search-icon {
    display: flex;
    width: 16px;
    height: 16px;
}
.header-search .text {
    color: #5e7690;
    overflow: hidden;
    white-space: nowrap;
    animation: 3.5s linear 0s infinite alternate none running text-run;
}
.search-box {
    background-color: rgb(206 221 255 / 80%);
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100%;
    z-index: 10000001;
    transition: all 0.3s ease-in-out;
    opacity: 1;
    visibility: visible;
}
.search-box.hide {
    opacity: 0;
    visibility: hidden;
}
.search-box .search-form {
    margin: 0px auto;
    width: 100%;
    height: 60px;
    padding: 0px 44px;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    justify-content: center;
    background-color: #ceddff;
}
.search-form .search-bar {
    display: flex;
    outline: none;
    background-image: none;
    background-position: initial;
    background-size: initial;
    background-repeat: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    height: 32px;
    font-size: 0.875rem;
    line-height: 0.875rem;
    font-weight: 400;
    border-radius: 24px;
    color: #5e7690;
    padding: 0px 16px;
    width: 760px;
    margin: 0px auto;
    background-color: rgb(240 241 245 / 60%);
}
.search-form .search-bar .search-bar-prefix {
    margin-right: 8px;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
}
.search-form .search-bar .search-input {
    font-size: 16px;
    color: #5e7690;
    outline: none;
    background: none;
    border: none;
    width: 100%;
}
.search-form .search-bar .search-bar-suffix {
    cursor: pointer;
    margin-left: 8px;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
}
.search-box .search-result {
    position: relative;
    width: 760px;
    margin: 0px auto 10px;
    z-index: 9;
    max-height: 696px;
    padding: 16px;
    background-color: rgb(240 241 245 / 86%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
}
.search-box .search-result::-webkit-scrollbar {
    width: 3px;
}
.search-result .search-symbol {
    position: relative;
    border-radius: 8px;
}
.search-result .search-symbol:hover {
    background-color: #ceddff;
}
.search-symbol .search-link {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    cursor: pointer;
    text-decoration: none;
}
.search-symbol .search-link .search-symbol-info {
    display: flex;
    -webkit-box-pack: start;
    justify-content: flex-start;
    -webkit-box-align: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0px 10px;
}
.search-symbol .search-link .search-symbol-logo {
    background-color: rgb(255, 255, 255);
    min-width: 24px;
    height: 24px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
}
.search-symbol .search-link .search-symbol-logo img {
    object-fit: contain;
    position: absolute;
    width: 100%;
    height: 100%;
}
.search-symbol .search-link .search-symbol-ticker {
    color: #666666;
    font-weight: 500;
    width: 88px;
    margin: 0;
}
.search-symbol .search-link .search-symbol-ticker em {
    font-weight: 500;
    font-style: normal;
    color: #ec8000;
}
.search-symbol .search-link span {
    font-size: 15px;
    font-weight: 500;
    color: #5e7690;
}
@keyframes text-run {
    0% {
        width: 0%;
    }
    50% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}
@keyframes new-beta {
    0%, 40%, 100% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(-2px);
    }
}
/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
}
.mobile-menu {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background-color: #f8f8f8;
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000001;
}
.mobile-menu ul {
    list-style: none;
    padding: 0px;
    margin: 0px;
}
.mobile-menu li {
    padding: 0px 10px;
}
.mobile-menu li:first-child{
    background-color: #ffffff;
}
.mobile-menu li:first-child a {
    border: none;
}
.mobile-menu a {
    padding: 15px;
    color: #12365b;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid #eff2f5;
}
.mobile-menu a:hover {
    color: #C32022;
}
.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}
.mobile-menu img.logo {
    width: 150px;
}
.mobile-menu .close-btn svg {
    color: #808a9d;
    width: 24px;
    height: 24px;
    transition: 0.36s;
}
.mobile-menu .dropdown-menu, .mobile-menu .dropdown-menu li {
    position: static !important;
    transform: none !important;
    width: 100%;
    background-color: transparent;
    border: none;
}
.mobile-menu .dropdown-menu li a {
    text-align: left;
    padding: 15px 20px;
    border-bottom: 1px solid #eff2f5;
}
/* Main */
main {
    padding-top: 60px;
}
/* main .left-menu {
    background-color: #ceddff;
    width: 50px;
    height: 100vh;
    position: fixed;
    z-index: 1000;
    left: 0;
} */
main > .container-fluid {
    width: 100%;
    position: relative;
    padding: 0px;
}
main .main {
    background-color: #f8f9fa;
}
main .white {
    background-color: #ffffff00;
    z-index: 12;
}
.breadcrumbs ul {
    font-size: 14px;
}
.breadcrumbs ul li {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.breadcrumbs a.breadcrumbs-link {
    color: #666;
    text-decoration: none;
    transition: all ease-in-out 0.3s;
}
.breadcrumbs a.breadcrumbs-link:hover {
    color: #f5a504;
    text-decoration: dashed;
}
.breadcrumbs .breadcrumbs-link.active {
    color: #001f3f;
}
.home .topstock {
    background-color: #ffffff;
    border: 1px solid #12365b73;
    border-radius: 10px;
    padding-bottom: 7px;
    height: 100%;
}
.home .bigtitle {
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    align-items: center;
    text-align: center;
    color: #C32022;
    height: 48px;
    box-shadow: inset 0px -2px 0px #001f3f, inset 0px -1px 0px rgb(0 0 0 / 5%);
    margin-bottom: 0;
    padding-top: 10px;
    padding-left: 15px;
    box-sizing: border-box;
}
.box-indexs {
    margin: 0px 0px 20px 0px;
    border-radius: 10px;
}
.box-indexs .info-indexs {
    background-color: #ecf2ff;
    border-radius: 10px;
    padding-bottom: 1px;
}
.price_indexs {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 12px;
    height: 40px;
    box-sizing: border-box;
}
.price_indexs > div {
    width: 33.33%;
    line-height: 20px;
    text-align: center;
}
.price_indexs .index_name {
    color: #001f3f;
    user-select: none;
    cursor: pointer;
}
.box-indexs [class^="thongke_wrapper"] {
    margin: 0px 15px 12px 15px;
}
.box-indexs [class^="thongke_content"] {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}
.box-indexs [class^="thongke_content"] .item {
    width: 33.33%;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 5px;
}
.box-indexs .thongke_value, .box-indexs .thongke_title {
    height: 16px;
    font-size: 14px;
    line-height: 18px;
}
.box-indexs .thongke_title {
    color: #686868;
}
.box-indexs .thongke_unit {
    font-size: 13px;
    font-style: italic;
}
.box-indexs .thongke_value {
    font-size: 15px;
    font-weight: 600;
}
.box-indexs [class^="thongke_stocks"] {
    background-color: #c7c2c2;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    height: 17px;
    border-radius: 4px;
}
.box-indexs .info-thongke {
    width: 98%;
    display: flex;
    margin: auto;
}
.box-indexs [class^="thongke_stocks"] .stock {
    width: 20%;
    font-weight: 400;
    font-size: 11px;
    line-height: 16px;
    color: #FFFFFF;
    text-align: center;
}
.stock.floorbg {
    background-color: #1f9ffc;
}
.stock.downbg {
    background-color: #c32022;
}
.stock.nochangebg {
    background-color: #ffce51;
}
.stock.upbg {
    background-color: #43b13e;
}
.stock.ceilbg {
    background-color: #6743cd;
}
.home .topstock-index {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    height: 40px;
    background: #FFFFFF;
    box-shadow: inset 0px -2px 0px #001f3f, inset 0px -1px 0px rgba(0, 0, 0, 0.05);
}
.home .topstock-content {
    position: relative;
    overflow: auto;
}
.topstock-index div {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 17px;
}
#top10-index div {
    width: 33.33%;
}
#topforeign-index div, #topself-index div {
    width: 50%;
}
.topstock-index div.active {
    background-color: #001f3f !important;
    color: #fff !important;
}
.home .topstock-name {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: #F4F4F4;
}
.topstock-name div {
    width: 33%;
    display: inline;
    text-align: center;
    padding: 5px 0px;
    font-size: 14px;
    cursor: pointer;
}
.topstock-name div.active {
    border-bottom: 2px solid #001f3f;
}
.topstock-content table {
    margin-bottom: 0;
}
.topstock-content table tr td {
    border: none;
    align-content: center;
    text-align: center;
}
.topstock-content table th {
    font-size: 13px;
    align-content: center;
    text-align: center;
}
.topstock-content-stt{
    width:9.64%;
    padding: 12px;
    font-weight: 400;
    font-size: 11px;
    text-align: center;
    line-height: 16px;
    color: #8E8E8E !important;
}
.topstock-content-symbol{
    width:22.73%;
    padding: 5px;
    color: #001f3f;
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    text-align: left;
}
.topstock-content-symbol a {
    text-decoration: none;
    color: #001f3f;
}
.topstock-content-value{
    width:23%;
    font-weight: 600;
    font-size: 15px;
    line-height: 16px;
    color: #222222 !important;
    text-align: left;
}
.topstock-content-price{
    width:12.05%;
    text-align: left;
}
.topstock-content-change{
    width: 30%;
    padding: 0;
    text-align: left;
}
.topstock-content-change, .topstock-content-price{
    font-weight: 500;
    font-size: 15px;
    line-height: 16px;
    
}
.topstock-content-date {
    font-size: 15px;
    line-height: 16px;
}
.color-gradient-heading {
    background-image: linear-gradient(75deg, #d500f9, #2962ff 68.9%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 8px;
}
.transaction-history h1, .box-content .header-tab h1, .box-catalogue h1, #stock-screener h1 {
    display: inline-block;
    font-weight: 600;
    font-size: 22px;
    line-height: 160%;
    color: #c32022;
    text-transform: uppercase;
}
.transaction-history .header-tab {
    border-radius: 0px 0px 8px 8px;
    width: 100%;
}
.transaction-history .header-tab ul {
    display: flex;
    margin: 10px 0px 0px 0px;
    padding-bottom: 1px;
}
.transaction-history .header-tab li a {
    border: none;
    background-color: #ffffff;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #333333;
    margin-right: 8px;
    border-radius: 12px 12px 0px 0px;
    padding: 8px 16px;
    user-select: none;
    cursor: pointer;
}
.transaction-history .header-tab li a.active {
    background-color: #ceddff;
    color: #001f3f;
}
.home .market-table {
    position: relative;
    background-color: #ffffff;
    margin: 10px 0;
    border-radius: 10px;
}
.home .market-table .bigtitle {
    text-align: left;
    box-shadow: none;
}
.market-table .box-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-flow: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
}
.market-table .box-title .exchange-name {
    margin-left: 10px;
}
.market-table .box-title .exchange-name span {
    font-size: 15px;
    font-weight: 600;
    background-color: #eaeff9;
    height: 36px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0px 10px;
    margin-right: 6px;
    border-radius: 6px;
    transition: all 0.6s ease;
    cursor: pointer;
}
.market-table .box-title .exchange-name span.active {
    background-color: #f0f6ff;
    color: #3861fb;
}
.market-table table {
    text-align: center;
    margin-bottom: 0px;
}
.market-table table thead {
    position: sticky;
    top: 60px;
}
.market-table table thead tr td {
    background-color: #eaeff9;
    font-weight: 600;
    padding-bottom: 5px;
    padding-top: 5px;
}
.market-table table thead tr td span, .topstock table thead tr th span {
    font-size: 13px;
    font-weight: 400;
}
.market-table table tr td {
    align-content: center;
    padding-top: 15px;
    padding-bottom: 15px;
}
.market-table table td.market-symbol a{
    color: #001f3f;
    font-weight: 600;
    text-decoration: none;
}
.market-table table td.market-symbol img {
    width: 30px;
    height: 30px;
    margin-right: 6px;
    border-radius: 50%;
    padding: 3px;
    background-color: #efefef;
    object-fit: contain;
}
.market-table table td.market-price span {
    padding: 6px 10px;
}
.market-table .ty-ajax-loading-box {
    top: 45vh;
}
#historyTabContent .search-btn {
    display: flex;
    align-items: end;
    justify-content: start;
}
#historyTabContent .table-history-transaction {
    position: relative;
    width: 100%;
    border-radius: 12px;
    margin-top: 20px;
}
#historyTabContent .table-history-transactio .owner-contents-table {
    width: 100%;
    border-collapse: collapse;
}
#historyTabContent .table-history-transaction thead {
    display: block;
    border-bottom: 3px solid #001f3f;
}
#historyTabContent .table-history-transaction thead tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.table-history-transaction thead tr td {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    align-content: center;
    color: #001f3f;
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
}
.foreign-transaction-table .table-history-transaction thead tr td {
    min-width: 130px;
    width: 100vw;
}
.self-transaction-table .table-history-transaction thead tr td, .holder-transaction-table .table-history-transaction thead tr td {
    min-width: 135px;
    width: 100vw;
}
#historyTabContent .render-table-owner {
    display: block;
    height: auto;
    max-height: 385px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
#historyTabContent .render-table-owner tr.oddOwner {
    background: #F8F8F8;
}
#historyTabContent .table-history-transaction tbody tr, #historyTabContent .table-history-transaction tbody tr td {
    border: none;
    width: 100vw;
}
.render-table-owner tr td {
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 16px;
    letter-spacing: 0.2px;
    padding: 8px 4px;
    box-sizing: border-box;
    text-align: center;
    vertical-align: middle;
}
.owner-contents-table tr td.owner_time, .owner-contents-table tr td.owner_null {
    position: sticky;
    left: 0;
}
#foreign-transaction, #self-transaction, #holder-transaction {
    background-color: #ffffff;
    padding: 10px;
    margin-top: 20px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
}
#foreign-transaction-table tr td {
    min-width: 123px;
}
#self-transaction-table tr td, #holder-transaction-table tr td {
    min-width: 135px;
}
#holder-transaction-table tr td p {
    margin-bottom: 10px;
}
#holder-transaction-table tr td p:last-child {
    margin-bottom: 0px;
}
.table-history-transaction #foreign-transaction-table tr td.owner_change, .foreign-transaction-table .table-history-transaction thead tr td.owner_change {
    min-width: 120px;
}
.table-history-transaction #foreign-transaction-table tr td.owner_percent, .foreign-transaction-table .table-history-transaction thead tr td.owner_percent {
    min-width: 80px;
}
.table-history-transaction #foreign-transaction-table tr td.owner_null, .foreign-transaction-table .table-history-transaction thead tr td.owner_null {
    width: 100vw;
}
#historyTabContent .render-table-owner::-webkit-scrollbar {
    width: 5px;
}
#historyTabContent .render-table-owner::-webkit-scrollbar-thumb {
    background: #8e8e8e;
    border-radius: 6px;
}
#historyTabContent .render-table-owner::-webkit-scrollbar-track {
    background: transparent;
}
.negative, td.negative, .positive, td.positive, .zero, td.zero, .ceiling, td.ceiling, .floor, td.floor {
    font-weight: 600 !important;
    transition: color 1s ease;
}
.negative, td.negative {
    color: #fd1414;
}
.positive, td.positive {
    color: #25a549;
}
.zero, td.zero {
    color: #f0a614;
}
.ceiling, td.ceiling {
    color: #6743cd;
}
.ceiling svg path, td.ceiling svg path {
    fill: #6743cd;
}
.floor, td.floor {
    color: #1e9ffc;
}
.floor svg path, td.floor svg path {
    fill: #1e9ffc;
}
@keyframes colorRise {
    0%   { color: #41d93a; }
    50%  { color: #41d93a; }
    100% { color: inherit; }
}
@keyframes colorFall {
    0%   { color: #ea3943; }
    50%  { color: #ea3943; }
    100% { color: inherit; }
}
.rise {
    animation: colorRise 2.6s ease;
}
.fall {
    animation: colorFall 2.6s ease;
}
#historyTabContent .chart {
    background: #ffffff;
    position: relative;
    height: 500px;
    overflow: hidden;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
}
#historyTabContent .box-chart {
    position: relative;
}
#historyTabContent .box-chart .save-chart {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}
#historyTabContent .box-chart .btn-chart {
    top: 20px;
    right: 50px;
}
.box-chart .btn-chart {
    background-color: #efefef;
    position: absolute;
    padding: 3px;
    border-radius: 10px;
    z-index: 100;
}
.box-chart .btn-chart button {
    border: none;
    color: #616e85;
    font-size: 14px;
    border-radius: 6px;
}
.box-chart .btn-chart button.active {
    background-color: #ffffff;
}
.wrapper-information-owner-right_table {
    border-collapse: collapse;
    box-sizing: border-box;
    padding: 0px;
}
.pagination-container {
    display: flex;
    justify-content: center;
}
.pagination-container ul li {
    width: auto;
    height: 32px;
    display: flex;
    justify-content: center;
    justify-items: center;
    align-items: center;
    margin-right: 10px;
    cursor: pointer;
    user-select: none;
    text-align: center;
}
.pagination-container ul li a, .pagination-container ul li span {
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    color: #001f3f;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 0;
}
.pagination-container .pagination.pagination-controls {
    margin-top: 15px;
}
main .main .pagination-container {
    background-color: #f8f9fa;
}
.ty-ajax-loading-box {
    position: absolute;
    top: 50%;
    right: 50%;
    left: 50%;
    z-index: 100001;
    overflow: visible;
    margin-top: -26px;
    margin-left: -26px;
    padding: 0px;
    min-height: 52px;
    width: 52px;
    background: url("../images/loading.47ec8bffe2d5.svg") no-repeat center -25px transparent;
    opacity: 0.9;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}
footer {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTUwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgaWQ9ImdyYWRpZW50QmFja2dyb3VuZCIgY3g9IjUwJSIgY3k9IjUwJSIgcj0iNTAlIiBmeD0iNTAlIiBmeT0iNTAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdHlsZT0ic3RvcC1jb2xvcjogcmdiKDI1NCwgMjQ0LCAyMzEpOyBzdG9wLW9wYWNpdHk6IDEiLz48c3RvcCBvZmZzZXQ9IjUwJSIgc3R5bGU9InN0b3AtY29sb3I6IHJnYigyMzIsIDIxMCwgMTgwKTsgc3RvcC1vcGFjaXR5OiAxIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdHlsZT0ic3RvcC1jb2xvcjogcmdiKDE5NiwgMTUxLCAxMTgpOyBzdG9wLW9wYWNpdHk6IDEiLz48L3JhZGlhbEdyYWRpZW50PjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyYWRpZW50QmFja2dyb3VuZCkiLz48cGF0aCBmaWxsPSJ3aGl0ZSIgZD0iTTAsMzAgQzIwLDQwIDMwLDIwIDUwLDMwIEM3MCw0MCA4MCwyMCAxMDAsMzAgTDEwMCwwIEwwLDAgWiIvPjwvc3ZnPg==');
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: -70px;
}
footer.bg-gray {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTUwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgaWQ9ImdyYWRpZW50QmFja2dyb3VuZCIgY3g9IjUwJSIgY3k9IjUwJSIgcj0iNTAlIiBmeD0iNTAlIiBmeT0iNTAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdHlsZT0ic3RvcC1jb2xvcjogcmdiKDI1NCwgMjQ0LCAyMzEpOyBzdG9wLW9wYWNpdHk6IDEiLz48c3RvcCBvZmZzZXQ9IjUwJSIgc3R5bGU9InN0b3AtY29sb3I6IHJnYigyMzIsIDIxMCwgMTgwKTsgc3RvcC1vcGFjaXR5OiAxIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdHlsZT0ic3RvcC1jb2xvcjogcmdiKDE5NiwgMTUxLCAxMTgpOyBzdG9wLW9wYWNpdHk6IDEiLz48L3JhZGlhbEdyYWRpZW50PjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyYWRpZW50QmFja2dyb3VuZCkiLz48cGF0aCBmaWxsPSIjZjhmOWZhIiBkPSJNMCwzMCBDMjAsNDAgMzAsMjAgNTAsMzAgQzcwLDQwIDgwLDIwIDEwMCwzMCBMMTAwLDAgTDAsMCBaIi8+PC9zdmc+');
    margin-top: 0px;
}
footer .container {
    position: relative;
    z-index: 11;
    padding-top: 120px;
    padding-bottom: 15px;
}
footer .page-link h6 {
    font-size: 17px;
    font-weight: 700;
}
footer .page-link a {
    color: #001f3f;
    display: block;
    line-height: 200%;
    text-decoration: none;
    transition: all ease-in-out 0.3s;
}
footer .page-link a:hover {
    color: #f5a504;
}
footer p {
    margin-bottom: 0;
}
footer p.slogan {
    color: #001f3fc8;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}
footer p.slogan span {
    color: #c78603;
    font-size: 26px;
    font-weight: 700;
}
footer canvas.bgcanvas {
    width: 120vw;
    height: 100%;
    position: absolute;
    top: 68px;
    left: 0;
    z-index: 10;
}
.error-404 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 90px);
}
.error-img img {
    width: 500px;
}
.error-content h1 {
    font-size: 32px;
    margin: 20px 0;
}
.error-content p {
    font-size: 18px;
}
.error-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}
.error-button a {
    color: #001f3f;
    background-color: #f4a503;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
}
.caption p {
    font-size: 14px;
}
.box-chart-tdv {
    position: fixed;
    z-index: 99999999;
    width: 100%;
    height: 100%;
    background: rgba(10, 30, 66, 0.4);
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    transition: visibility 0.3s ease-in-out, opacity 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    top: 0px;
    left: 0px;
    visibility: hidden;
    opacity: 0;
}
.box-chart-tdv.show {
    visibility: visible;
    opacity: 1;
}
.box-chart-tdv > div {
    height: calc(-80px + 100vh);
    width: calc(-80px + 100vw);
    max-height: 90vh;
    display: flex;
    align-self: center;
    flex-direction: column;
    transition: height 0.3s ease-in-out;
    max-width: 100vw;
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
}
.box-chart-tdv .box-title {
    background: #ffffff;
    text-align: start;
    font-weight: 600;
    font-size: 24px;
    color: #001f3f;
    line-height: inherit;
    position: relative;
    flex-shrink: 0;
    padding: 15px 24px 0px 24px;
    z-index: 1010;
}
.box-chart-tdv .box-title .close-btn {
    height: 24px;
    width: 24px;
    color: rgb(166, 176, 195);
    font-size: 12px;
    cursor: pointer;
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 1;
}
.box-chart-tdv .tvd-chart {
    flex: 1 1 0%;
    padding: 16px 24px;
    overflow-y: scroll;
    scrollbar-width: none;
    overscroll-behavior-y: contain;
}
#tradingview-chart {
    position: relative;
    box-sizing: content-box;
    margin: 0px auto !important;
    padding: 0px !important;
    border: 1px solid #e8e8e8;
    width: 100%;
    height: 100%;
}
.chart-container .caption p {
    font-size: 14px;
    font-style: italic;
}
.chart-container .save-chart {
    position: absolute;
    right: 15px;
    top: 12px;
    z-index: 10;
    cursor: pointer;
}
.chart-container .btn-chart {
    background-color: #efefef;
    position: absolute;
    top: 12px;
    padding: 3px;
    border-radius: 10px;
    z-index: 100;
}
.chart-container .btn-chart button {
    border: none;
    color: #616e85;
    font-size: 14px;
    border-radius: 6px;
}
.chart-container .btn-chart button.active {
    background-color: #ffffff;
}
@media (max-width: 1080px) {
    .search-mobile{
        display: flex;
        position: absolute;
        right: 30px;
    }
    .search-mobile .search-icon {
        width: 22px;
        height: 22px;
    }
    .header-search {
        display: none;
    }
    .foreign-transaction-table .table-history-transaction thead tr td, #foreign-transaction-table tr td, #self-transaction-table tr td, .self-transaction-table .table-history-transaction thead tr td, #holder-transaction-table tr td, .holder-transaction-table .table-history-transaction thead tr td {
        min-width: 100px;
    }
    .box-chart-tdv > div {
        width: calc(-20px + 100vw);
    }
}
@media (max-width: 992px) {
    header nav ul li {
        padding-left: 15px;
        padding-right: 15px;
    }
    .search-form .search-bar, .search-box .search-result {
        width: 90%;
    }
    .search-box .search-form {
        padding: 0px;
    }
    .search-box .search-form form {
        width: 100%;
    }
    #historyTabContent .table-history-transaction .box-table {
        overflow-y: hidden;
        margin-bottom: 15px;
    }
    #historyTabContent .render-table-owner {
        max-height: none;
        overflow-x: unset;
        overflow-y: unset;
    }
    #foreign-transaction .row > div, #self-transaction .row > div, #holder-transaction .row > div {
        margin-bottom: 10px;
    }
    .box-indexs {
        background-color: #ecf2ff;
    }
    .box-indexs > div {
        padding-right: 0px;
        padding-left: 0px;
    }
    .ty-ajax-loading-box {
        position: sticky;
    }
    .table-history-transaction .ty-ajax-loading-box {
        position: fixed;
    }
    .error-img img {
        width: 50%;
    }
}
@media (max-width: 768px) {
    header {
        justify-content: space-between;
    }
    header nav {
        display: none;
    }
    .search-mobile{
        right: 60px;
    }
    .search-symbol .search-link .search-symbol-ticker {
        width: auto;
    }
    .search-box .search-result {
        max-height: 86vh;
    }
    .menu-toggle {
        display: block;
    }
    .breadcrumbs ul li {
        max-width: 150px;
    }
    .market-table table tr td, .topstock-content-change, .topstock-content-price, .topstock-content-value, .funds-table table tr td {
        font-size: 14px;
    }
    .market-table table tr td.market-symbol {
        min-width: 86px;
    }
    main .main {
        padding: 20px 15px;
    }
    .home .bigtitle {
        font-size: 19px;
    }
    .error-content h1 {
        font-size: 30px;
    }
    #historyTabContent .box-chart .save-chart {
        top: 10px;
        right: 15px;
    }
    #historyTabContent .box-chart .btn-chart {
        top: 10px;
        right: 45px;
    }
    .box-chart-tdv > div {
        height: 100vh;
        max-height: 96vh;
    }
    .box-chart-tdv .box-title {
        font-size: 18px;
        padding: 8px 16px 0px 16px;
    }
    .box-chart-tdv .tvd-chart {
        padding: 8px 16px;
    }
    .box-chart-tdv .box-title .close-btn {
        right: 8px;
        top: 8px;
    }
    footer {
        margin-top: -52px;
    }
    footer .logo-footer {
        width: 168px;
    }
    footer canvas.bgcanvas {
        top: 20px;
    }
}
@media (max-width: 576px) {
    .search-symbol .search-link {
        padding: 8px 0px;
    }
    .search-link .search-symbol-name .name {
        white-space: nowrap;
        overflow: hidden;
        max-width: 230px;
        text-overflow: ellipsis;
    }
    .search-symbol .search-link span {
        font-size: 14px;
    }
    .search-form .search-bar .search-input {
        font-size: 15px;
    }
    .search-result .search-list {
        padding-right: 10px;
    }
    .market-table table td.market-cap {
        display: none;
    }
    .market-table table tr td {
        padding-left: 5px;
        padding-right: 5px;
    }
    .market-table table thead tr td {
        padding-bottom: 10px;
        padding-top: 10px;
    }
    .market-table table thead tr td span, .topstock table thead tr th span {
        font-size: 12px;
    }
    main .main {
        padding: 15px 10px;
    }
    .error-content h1 {
        font-size: 26px;
    }
    .list-funds select {
        max-width: none !important;
        width: 100%;
    }
}
@media (max-width: 480px) {
    header {
        height: 50px;
    }
    header .logo img {
        width: 128px;
    }
    main {
        padding-top: 50px;
    }
    .header-tab .box-title .new-item, .header-tab .box-title .beta-item {
        font-size: 12px;
        gap: 1px;
    }
    .market-table table thead {
        top: 50px;
    }
    .topstock-content-change, .topstock-content-price, .topstock-content-value {
        font-size: 13px;
    }
    .topstock-content-symbol, .table-history-transaction thead tr td, .render-table-owner tr td, .pagination-container ul li a, .pagination-container ul li span {
        font-size: 14px;
    }
    .transaction-history h1, .box-content .header-tab h1, .box-catalogue h1, #stock-screener h1 {
        font-size: 20px;
        line-height: 32px;
    }
    .transaction-history .header-tab li a {
        font-size: 17px;
        padding: 5px 8px;
    }
    .home .bigtitle {
        font-size: 17px;
    }
    .pagination-container ul li {
        margin-right: 7px;
    }
    .pagination-container ul li .page-link {
        padding: 3px 8px;
    }
    .topstock-index div, #historyTabContent form, #historyTabContent form .form-control, #historyTabContent form .form-select, #historyTabContent form button.btn-primary {
        font-size: 15px;
    }
    footer {
        font-size: 15px;
    }
    .caption p {
        font-size: 13px;
    }
}
@media (max-width: 440px) {
    .search-form .search-bar, .search-box .search-result {
        width: 96%;
    }
    .search-box .search-result {
        padding: 10px;
    }
    .search-link .search-symbol-name .name {
        max-width: 180px;
    }
    .market-table table td.market-value {
        display: none;
    }
    .market-table table tr td {
        padding-left: 3px;
        padding-right: 3px;
    }
    .transaction-history .header-tab li a {
        font-size: 16px;
        padding: 5px;
        margin-right: 5px;
    }
    .error-content h1 {
        font-size: 22px;
    }
    .error-content p {
        font-size: 16px;
    }
    .price_indexs {
        padding-left: 5px;
        padding-right: 5px;
    }
    .box-indexs [class^="thongke_wrapper"], .box-indexs [class^="thongke_stocks"] {
        margin-left: 5px;
        margin-right: 5px;
    }
    .price_indexs > div {
        font-size: 15px;
        width: 30%;
    }
    .price_indexs .index_change {
        width: 40%;
    }
    .box-indexs .thongke_value {
        font-size: 14px;
    }
}
@media (max-width: 360px) {
    .search-link .search-symbol-name .name {
        max-width: 140px;
    }
    .breadcrumbs ul li {
        max-width: 120px;
    }
    .home .market-table .box-table {
        overflow: auto;
    }
    .market-table table thead {
        top: 0;
    }
}