.elementor-8 .elementor-element.elementor-element-b5aa551{--display:flex;}:root{--page-title-display:none;}/* Start custom CSS for html, class: .elementor-element-0754bf5 */.finance-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", Dotum, sans-serif;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    background-color: #fff;
}

.finance-dashboard a {
    text-decoration: none;
    color: #333;
}

.finance-dashboard a:hover {
    text-decoration: underline;
}


.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #333;
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.section-header .sub-title {
    font-size: 14px;
    color: #666;
    margin-left: 8px;
}

.time-stamp {
    font-size: 11px;
    color: #999;
}

.stock-table, .gainer-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.stock-table td, .gainer-table td {
    padding: 6px 4px;
    border-bottom: none; 
    white-space: nowrap;
}

.stock-table td.rank, .gainer-table td.rank {
    width: 20px;
    font-weight: bold;
    color: #555;
}

.stock-table td.name, .gainer-table td.name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stock-table td.price, .gainer-table td.price {
    text-align: right;
}

.stock-table td.change, .gainer-table td.percent-up {
    text-align: right;
    width: 70px;
}

.stock-table td.volume {
    text-align: right;
    color: #666;
    font-size: 12px;
    width: 100px;
}

.up-trend .change, .up-trend .price, .percent-up {
    color: #ed1c24;
}

.down-trend .change, .down-trend .price {
    color: #0054ff;
}

.top-volume-section {
    display: flex;
    gap: 24px;
    margin-bottom: 30px;
}

.volume-col {
    flex: 1;
}

.main-split-layout {
    display: flex;
    gap: 30px;
}

.left-content-area {
    flex: 7;
}

.sidebar-area {
    flex: 3;
}

.featured-news-banner {
    display: flex;
    background-color: #1a1d24;
    color: #fff;
    margin-bottom: 25px;
    overflow: hidden;
}

.featured-image {
    flex: 4;
    min-height: 180px;
    background-color: #2a303c;
    position: relative;
}

.image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #888;
    font-size: 14px;
}

.featured-text {
    flex: 6;
    padding: 20px;
}

.featured-text h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: bold;
}

.featured-text p {
    margin: 0;
    font-size: 12px;
    color: #aaa;
    line-height: 1.6;
}

.sub-sections-grid {
    display: flex;
    gap: 20px;
}

.sub-section-box {
    flex: 1;
}

.section-title-bar {
    border-bottom: 1px solid #ccc;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.section-title-bar h3 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #000;
}

.tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tab-buttons {
    display: flex;
    gap: 4px;
}

.tab {
    font-size: 11px;
    padding: 2px 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    background-color: #fff;
}

.tab.active {
    background-color: #f5f5f5;
    font-weight: bold;
    border-color: #bbb;
}


.news-list-simple {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list-simple li {
    padding: 6px 0;
    border-bottom: none; /* ลบเส้นคั่นข่าวออก */
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.more-link-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.time-stamp-inline {
    font-size: 11px;
    color: #999;
}

.more-link {
    font-size: 11px;
    color: #666;
}

.most-viewed-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.most-viewed-list li {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: none; 
    font-size: 13px;
    line-height: 1.4;
}

.most-viewed-list .num {
    font-weight: bold;
    color: #ff6600;
    width: 20px;
    flex-shrink: 0;
}


@media (max-width: 768px) {
    .top-volume-section, .main-split-layout, .featured-news-banner, .sub-sections-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .featured-image {
        height: 150px;
    }
}/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-75bb283 */.dax-main-content {
    font-family: 'Roboto', Arial, sans-serif;
    padding: 20px;
    background-color: white;
   desktop view */
    margin: 0 auto;
    border: 1px solid #e0e0e0;
}

/* Header Section (Title, Price, Change) */
.dax-header-row {
    margin-bottom: 5px;
}
.dax-section-title {
    font-size: 1.2em;
    font-weight: 500;
    color: #000;
    margin-bottom: 5px;
}
.dax-price-info {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.dax-current-price-section {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.dax-current-price {
    font-size: 2.5em;
    font-weight: bold;
    color: #28a745; /* Default to Green for DAX style */
    line-height: 1;
}
.dax-change-data {
    font-size: 1.1em;
    font-weight: 500;
    color: #28a745; /* Default to Green for DAX style */
    line-height: 1;
}
.dax-data-status {
    font-size: 0.8em;
    color: #6a6a6a;
    margin-top: 5px;
}

/* Chart Controls */
.dax-chart-controls {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
}
.dax-chart-controls button {
    background-color: white;
    border: 1px solid #ccc;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 0.8em;
    color: #333;
    border-radius: 0;
    font-weight: normal;
    transition: all 0.1s;
}
.dax-chart-controls button.time-active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    font-weight: bold;
}
/* Ensure the chart container takes available space */
.dax-chart-area {
    min-height: 250px;
    position: relative;
    border-left: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding-left: 5px;
    margin-bottom: 15px;
}
#myChart { 
    height: 300px !important; 
    max-height: 300px; 
    width: 100%;
}


/* Bottom Info Table (Volume, Open, Range) */
.dax-info-table-bottom {
    display: flex;
    flex-direction: column;
    font-size: 0.9em;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-left: none;
    border-right: none;
}
.dax-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.dax-info-row:last-child {
    border-bottom: none;
}
.dax-info-label, .dax-info-label-right {
    color: #6a6a6a;
    padding-left: 10px;
}
.dax-info-value {
    font-weight: 500;
    text-align: left;
}
.dax-info-label-right {
    text-align: right;
}
.dax-info-value-right {
    font-weight: 500;
    text-align: right;
    padding-right: 10px;
}


/* Custom Bottom Table (closed, top, bottom) */
.dax-custom-table-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr; /* 5 columns */
    font-size: 1em;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}
.dax-custom-cell {
    padding: 10px 0;
    text-align: center;
}
.dax-custom-label {
    background-color: #333;
    border-right: 1px solid #111;
}
.dax-custom-value {
    background-color: #222;
    border-right: 1px solid #111;
}
.dax-custom-value:last-child {
    border-right: none;
}

/* Final bottom date row */
.dax-bottom-data-row {
    text-align: right;
    font-size: 0.7em;
    color: #999;
    padding-right: 0;
}


/* Responsive adjustments */
@media (max-width: 600px) {
    .dax-info-row {
        /* Stack the Volume/Open sections on mobile */
        grid-template-columns: 1fr 1fr; 
        gap: 10px;
    }
    .dax-info-label-right, .dax-info-value-right {
        text-align: left;
        padding-right: 0;
        padding-left: 10px; /* Align with left labels */
    }
}/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-6a85186 */.sgx-history-title {
        font-size: 1.5em;
        color: #333; 
        text-align: left;
        margin-top: 20px;
        margin-bottom: 15px;
        font-family: 'Arial', sans-serif;
        font-weight: bold;
        padding-left: 5px;
    }

    .sgx-history-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 16px;
        text-align: center;
        table-layout: fixed;
        border: 1px solid #ddd;
        font-family: Arial, sans-serif;
    }

    .sgx-history-table th, .sgx-history-table td {
        border: 1px solid #ddd;
        padding: 8px 5px;
        color: #333; 
        height: 40px; 
    }

    .sgx-history-table th {
        background-color: #f0f0f0;  
        color: #333; 
        font-size: 0.9em;
        font-weight: bold;
    }

   
    @media (max-width: 768px) {
        .sgx-history-table th, .sgx-history-table td {
            font-size: 14px;
            padding: 5px;
        }
        .sgx-history-title {
            font-size: 1.3em;
        }
    }
    @media (max-width: 480px) {
        .sgx-history-table th, .sgx-history-table td {
            font-size: 12px;
            padding: 4px;
        }
    }/* End custom CSS */