.elementor-32 .elementor-element.elementor-element-5d74413{--display:flex;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-32 .elementor-element.elementor-element-a26e882{--display:flex;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-32 .elementor-element.elementor-element-a26e882:not(.elementor-motion-effects-element-type-background), .elementor-32 .elementor-element.elementor-element-a26e882 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FFFFFF;}.elementor-32 .elementor-element.elementor-element-b870695{--display:flex;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-32 .elementor-element.elementor-element-3cd1c46{--spacer-size:100px;}.elementor-widget-image-box .elementor-image-box-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-widget-image-box:has(:hover) .elementor-image-box-title,
					 .elementor-widget-image-box:has(:focus) .elementor-image-box-title{color:var( --e-global-color-primary );}.elementor-widget-image-box .elementor-image-box-description{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-32 .elementor-element.elementor-element-46de3c1{padding:25px 25px 25px 25px;}.elementor-32 .elementor-element.elementor-element-46de3c1 .elementor-image-box-wrapper{text-align:start;}.elementor-32 .elementor-element.elementor-element-46de3c1.elementor-position-right .elementor-image-box-img{margin-left:43px;}.elementor-32 .elementor-element.elementor-element-46de3c1.elementor-position-left .elementor-image-box-img{margin-right:43px;}.elementor-32 .elementor-element.elementor-element-46de3c1.elementor-position-top .elementor-image-box-img{margin-bottom:43px;}.elementor-32 .elementor-element.elementor-element-46de3c1 .elementor-image-box-title{margin-bottom:30px;font-family:"Roboto", Sans-serif;font-weight:600;color:#00070A;}.elementor-32 .elementor-element.elementor-element-46de3c1 .elementor-image-box-wrapper .elementor-image-box-img{width:86%;}.elementor-32 .elementor-element.elementor-element-46de3c1 .elementor-image-box-img img{border-radius:0px;opacity:1;transition-duration:0.3s;}.elementor-32 .elementor-element.elementor-element-46de3c1:has(:hover) .elementor-image-box-title,
					 .elementor-32 .elementor-element.elementor-element-46de3c1:has(:focus) .elementor-image-box-title{color:#000000;}.elementor-32 .elementor-element.elementor-element-46de3c1 .elementor-image-box-description{color:#4B4B4B;}body.elementor-page-32:not(.elementor-motion-effects-element-type-background), body.elementor-page-32 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#E8EEFC;}:root{--page-title-display:none;}@media(max-width:767px){.elementor-32 .elementor-element.elementor-element-46de3c1 .elementor-image-box-img{margin-bottom:43px;}}/* Start custom CSS for html, class: .elementor-element-d9fa303 */.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-a6e516c */.sgx-history-title {
        font-size: 1.4rem;
        color: #1a1a1a; 
        text-align: left;
        margin: 24px 0 16px 0;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        font-weight: 600;
        letter-spacing: -0.3px;
        position: relative;
        padding-left: 12px;
    }
    
    .sgx-history-title::before {
        content: '';
        position: absolute;
        left: 0;
        top: 4px;
        bottom: 4px;
        width: 4px;
        background-color: #002b66; 
        border-radius: 2px;
    }

   
    .sgx-history-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        font-size: 15px;
        text-align: center;
        table-layout: fixed;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        overflow: hidden;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        background-color: #ffffff; 
    }

   
    .sgx-history-table th, .sgx-history-table td {
        border-bottom: 1px solid #e5e7eb;
        border-right: 1px solid #f3f4f6;
        padding: 12px 10px;
        box-sizing: border-box;
        height: 44px;
    }
    
    .sgx-history-table th:last-child, .sgx-history-table td:last-child {
        border-right: none;
    }

    
    .sgx-history-table th {
        background-color: #f8fafc;  
        color: #1e293b; 
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 2px solid #cbd5e1;
    }

    
    .sgx-history-table tbody td {
        background-color: #ffffff; 
        color: #002b66;
        font-weight: 600; 
    }

   
    .sgx-history-table tbody tr:hover td {
        background-color: #fdfefe; 
    }
    
    .sgx-history-table tbody tr:last-child td {
        border-bottom: none;
    }

   
    .loading-text, .no-data-text {
        color: #64748b !important;
        font-style: italic;
        font-weight: normal !important;
    }

    .error-text {
        color: #ef4444 !important;
        font-weight: 500 !important;
    }


    @media (max-width: 768px) {
        .sgx-history-table th, .sgx-history-table td {
            font-size: 13px;
            padding: 10px 6px;
        }
        .sgx-history-title {
            font-size: 1.25rem;
        }
    }
    @media (max-width: 480px) {
        .sgx-history-table th, .sgx-history-table td {
            font-size: 12px;
            padding: 8px 4px;
            height: 38px;
        }
        .sgx-history-title {
            font-size: 1.15rem;
        }
    }/* End custom CSS */