.elementor-7 .elementor-element.elementor-element-3a3dc99{--display:flex;}.elementor-widget-image .widget-image-caption{color:var( --e-global-color-text );font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );}.elementor-7 .elementor-element.elementor-element-a94ecc4{--display:flex;--padding-top:0px;--padding-bottom:0px;--padding-left:65px;--padding-right:65px;}.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-7 .elementor-element.elementor-element-6f774a6 .elementor-heading-title{color:#FF0000;}:root{--page-title-display:none;}@media(min-width:768px){.elementor-7 .elementor-element.elementor-element-a94ecc4{--width:100%;}}/* Start custom CSS for image, class: .elementor-element-2c54c36 */.elementor-7 .elementor-element.elementor-element-2c54c36 img {
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-select: none;
    user-select: none;
}/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-cb97021 */.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;
}


.sgx-left-data {
    width: 300px; 
    padding-right: 20px;
}
.sgx-current-price {
    font-size: 2.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}
.sgx-change {
    color: #008000; 
    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;
}



.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;
}

#myChart { 
    height: 300px !important; 
    max-height: 300px; 
    width: 100%;
    border-left: 1px solid #eee; 
    border-bottom: 1px solid #eee; 
    padding-left: 10px; 
    padding-bottom: 10px;
}


.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; 
}
.sgx-bottom-data-row {
    text-align: right;
    font-size: 0.75em;
    color: #999;
    margin-top: 5px;
    padding-right: 10px;
}

@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-d378df1 */.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 */