.elementor-91 .elementor-element.elementor-element-5c8bbbfe{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-91 .elementor-element.elementor-element-296cee7c{--display:flex;}.elementor-91 .elementor-element.elementor-element-296cee7c:not(.elementor-motion-effects-element-type-background), .elementor-91 .elementor-element.elementor-element-296cee7c > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FFFFFF;}.elementor-91 .elementor-element.elementor-element-273a3839{--display:flex;}.elementor-widget-heading .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-primary );}.elementor-91 .elementor-element.elementor-element-5052721a .elementor-heading-title{font-family:"Roboto", Sans-serif;font-size:25px;font-weight:600;color:#3A3A3A;}.elementor-widget-text-editor{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-91 .elementor-element.elementor-element-2f6f0075{color:#3A3A3A;}.elementor-91 .elementor-element.elementor-element-2526e46b{--display:flex;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-91 .elementor-element.elementor-element-4e9e030b{--display:flex;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-91 .elementor-element.elementor-element-546638c6{--display:flex;}.elementor-widget-divider{--divider-color:var( --e-global-color-secondary );}.elementor-widget-divider .elementor-divider__text{color:var( --e-global-color-secondary );font-family:var( --e-global-typography-secondary-font-family ), Sans-serif;font-weight:var( --e-global-typography-secondary-font-weight );}.elementor-widget-divider.elementor-view-stacked .elementor-icon{background-color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-framed .elementor-icon, .elementor-widget-divider.elementor-view-default .elementor-icon{color:var( --e-global-color-secondary );border-color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-framed .elementor-icon, .elementor-widget-divider.elementor-view-default .elementor-icon svg{fill:var( --e-global-color-secondary );}.elementor-91 .elementor-element.elementor-element-490c03b6{--divider-border-style:multiple;--divider-color:#B6B6B6;--divider-pattern-height:20px;}.elementor-91 .elementor-element.elementor-element-490c03b6 .elementor-divider-separator{width:100%;margin:0 auto;margin-right:0;}.elementor-91 .elementor-element.elementor-element-490c03b6 .elementor-divider{text-align:right;padding-block-start:15px;padding-block-end:15px;}.elementor-91 .elementor-element.elementor-element-490c03b6 .elementor-divider__text{color:#0048A8;font-family:"Roboto Slab", Sans-serif;font-weight:600;}body.elementor-page-91:not(.elementor-motion-effects-element-type-background), body.elementor-page-91 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#838383;}:root{--page-title-display:none;}@media(min-width:768px){.elementor-91 .elementor-element.elementor-element-546638c6{--width:45%;}}/* Start custom CSS for html, class: .elementor-element-7d4ba6e2 *//* --- CSS: SGX VIP Look and Feel --- */

/* จัดรูปแบบโดยรวมของส่วนนี้ */
.sgx-main-content {
    font-family: Arial, sans-serif;
    padding: 0 20px 20px 20px;
    background-color: white;
}
.sgx-section-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
}
.sgx-price-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

/* === ส่วนข้อมูลด้านซ้าย (Info Panel) === */
.sgx-left-data {
    width: 300px; 
    padding-right: 20px;
}
.sgx-current-price {
    font-size: 2.2em;
    font-weight: bold;
    color: #333; /* สีจะถูกเปลี่ยนโดย JS */
    margin-bottom: 5px;
}
.sgx-change {
    color: #008000; /* สีจะถูกเปลี่ยนโดย JS */
    font-weight: bold;
    margin-bottom: 20px;
}

/* ตารางสถิติ */
.sgx-data-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.9em;
}
.sgx-data-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.sgx-label {
    color: #666;
}
.sgx-value {
    font-weight: 500;
}


/* === ส่วนกราฟด้านขวา (Chart Section) === */
.sgx-chart-area {
    flex-grow: 1;
    min-width: 0; 
}
.sgx-chart-controls {
    display: flex;
    justify-content: flex-end; 
    gap: 1px;
    margin-bottom: 10px;
}
.sgx-chart-controls button {
    background-color: white;
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: bold;
    color: #666;
    transition: all 0.2s;
    border-radius: 0; 
}
.sgx-chart-controls button.day-active {
    border-left: 1px solid #008000; 
    border-top: 1px solid #008000;
    border-bottom: 2px solid #008000;
    color: #333;
    font-weight: bold;
}

/* พื้นที่ Canvas */
#myChart { /* ใช้ ID เดิมจากโค้ดของคุณ */
    height: 300px !important; 
    max-height: 300px; 
    width: 100%;
    border-left: 1px solid #eee; 
    border-bottom: 1px solid #eee; 
    padding-left: 10px; 
    padding-bottom: 10px;
}

/* === ตารางข้อมูลด้านล่างกราฟ (Custom Table) === */
.sgx-bottom-table-wrapper {
    margin-top: 15px;
    width: 100%;
}
.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    border: 1px solid #ccc;
}
.custom-table th, .custom-table td {
    border: none; /* ลบเส้นขอบภายใน */
    border-right: 1px solid #ccc; /* ใช้เส้นขอบขวาแทน */
    padding: 8px 0;
    background-color: #f7f7f7;
    font-size: 0.85em;
    font-weight: bold;
}
.custom-table td:last-child, .custom-table th:last-child {
    border-right: none;
}
.custom-table thead {
    display: none; /* ซ่อน Header ของตารางล่างตามภาพ SGX */
}
.sgx-bottom-data-row {
    text-align: right;
    font-size: 0.75em;
    color: #999;
    margin-top: 5px;
    padding-right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sgx-price-section {
        flex-direction: column; /* เรียงเป็นแนวตั้งบนมือถือ */
        gap: 10px;
    }
    .sgx-left-data {
        width: 100%;
        padding-right: 0;
    }
}/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-103c66ef */.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 */