.elementor-7 .elementor-element.elementor-element-29dc314{--display:flex;}.elementor-7 .elementor-element.elementor-element-88afa9e{--display:flex;--padding-top:13px;--padding-bottom:13px;--padding-left:13px;--padding-right:13px;}.elementor-7 .elementor-element.elementor-element-88afa9e:not(.elementor-motion-effects-element-type-background), .elementor-7 .elementor-element.elementor-element-88afa9e > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FFFFFF;}.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-87a321d .elementor-heading-title{color:#4E4E4E;}.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 );}:root{--page-title-display:none;}/* Start custom CSS for html, class: .elementor-element-0fbcbd3 */* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'Helvetica Neue', Arial;
}

body {
    background-color: #f4f6f9;
    color: #333;
    padding: 20px;
}

.container {
    display: grid;
    grid-template-columns: 240px 1fr 320px;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

a {
    color: #007da4;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}
.btn-red { background-color: #990000; color: white; }
.btn-gray { background-color: #e0e0e0; color: #333; border: 1px solid #ccc; }
.btn-green { background-color: #5cb85c; color: white; }

.left-sidebar {
    background-color: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    padding: 10px 0;
}
.sidebar-nav ul {
    list-style: none;
}
.sidebar-nav li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #f0f2f5;
}
.sidebar-nav li a:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}
.sidebar-nav li.active > a {
    background-color: #007da4;
    color: white;
    font-weight: bold;
}
.sidebar-nav .sub-menu {
    background-color: #222;
}
.sidebar-nav .sub-menu li a {
    color: #ccc;
    padding-left: 25px;
    border-bottom: 1px solid #333;
}
.sidebar-nav .sub-menu li.active a {
    background-color: #333;
    color: #fff;
}

.latest-chat-widget {
    padding: 15px;
    margin-top: 20px;
    border-top: 2px solid #990000;
}
.latest-chat-widget h3 {
    font-size: 15px;
    color: #990000;
    margin-bottom: 10px;
}
.chat-item {
    font-size: 13px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}
.chat-item .ticker {
    font-weight: bold;
    color: #333;
}

.main-content {
    background-color: transparent;
}
.page-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #222;
}

.top-ad-banner {
    background-color: #fdf2f2;
    border: 1px solid #f5c6cb;
    padding: 15px;
    text-align: center;
    font-size: 13px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.left-buttons {
    display: flex;
    gap: 5px;
}

.promo-banner {
    background: linear-gradient(135deg, #0f2b46 0%, #1a456e 100%);
    color: white;
    padding: 30px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.promo-text h2 {
    font-size: 22px;
    margin-bottom: 15px;
}
.btn-register {
    display: inline-block;
    background-color: #5cb85c;
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
}
.btn-register:hover {
    background-color: #4cae4c;
    text-decoration: none;
}
.mock-device {
    font-size: 48px;
    opacity: 0.8;
}

.pagination {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    align-items: center;
    font-size: 14px;
}
.pagination a {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    border-radius: 3px;
}
.pagination a.active {
    background-color: #990000;
    color: white;
    border-color: #990000;
}
.pagination a:hover:not(.active) {
    background-color: #f0f0f0;
}

.forum-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    overflow: hidden;
}
.forum-table th, .forum-table td {
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
}
.forum-table th {
    background-color: #f8f9fa;
    color: #666;
    border-bottom: 2px solid #e1e4e8;
    font-weight: 600;
}
.forum-table tbody tr {
    border-bottom: 1px solid #f0f2f5;
}
.forum-table tbody tr:hover {
    background-color: #fdfdfd;
}
.author-name {
    font-weight: bold;
    color: #333;
}
.table-ticker {
    background-color: #e8f4f8;
    color: #007da4;
    padding: 3px 6px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 12px;
}

.widget-box {
    background-color: white;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}
.widget-tabs {
    display: flex;
    background-color: #f1f3f5;
    border-bottom: 1px solid #e1e4e8;
}
.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}
.tab.active {
    background-color: white;
    color: #007da4;
    border-top: 3px solid #007da4;
}

.widget-list-table {
    width: 100%;
    border-collapse: collapse;
}
.widget-list-table th, .widget-list-table td {
    padding: 10px 15px;
    font-size: 13px;
}
.widget-list-table th {
    background-color: #fafbfc;
    color: #888;
    border-bottom: 1px solid #e1e4e8;
}
.widget-list-table td {
    border-bottom: 1px solid #f6f8fa;
}
.text-right { text-align: right; }

.broker-widget {
    background-color: white;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}
.broker-logo-box {
    background-color: #d9534f;
    color: white;
    font-weight: bold;
    font-size: 24px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    margin: 0 auto 15px auto;
    border-radius: 4px;
}
.broker-widget h3 {
    font-size: 16px;
    margin-bottom: 15px;
}
.broker-widget ul {
    text-align: left;
    list-style: none;
    margin-bottom: 20px;
}
.broker-widget ul li {
    font-size: 13px;
    margin-bottom: 8px;
    color: #555;
}
.btn-broker-action {
    display: block;
    background-color: #ff8c00;
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
}

@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
    }
    .left-sidebar, .right-sidebar {
        order: 2;
    }
    .main-content {
        order: 1;
    }
}/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-43f73ab */.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;
    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-7d404e5 */.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 */