.elementor-20 .elementor-element.elementor-element-53ee75c{--display:grid;--e-con-grid-template-columns:repeat(1, 1fr);--e-con-grid-template-rows:repeat(1, 1fr);--grid-auto-flow:row;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-20 .elementor-element.elementor-element-850c4e9{--display:flex;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-20 .elementor-element.elementor-element-850c4e9:not(.elementor-motion-effects-element-type-background), .elementor-20 .elementor-element.elementor-element-850c4e9 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FFFFFF;}.elementor-20 .elementor-element.elementor-element-248c502{padding:10px 10px 10px 10px;}body.elementor-page-20:not(.elementor-motion-effects-element-type-background), body.elementor-page-20 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#777777;}:root{--page-title-display:none;}@media(max-width:1024px){.elementor-20 .elementor-element.elementor-element-53ee75c{--grid-auto-flow:row;}}@media(max-width:767px){.elementor-20 .elementor-element.elementor-element-53ee75c{--e-con-grid-template-columns:repeat(1, 1fr);--e-con-grid-template-rows:repeat(1, 1fr);--grid-auto-flow:row;}}/* Start custom CSS for html, class: .elementor-element-19def76 */.nebula-stream {
        width: 100%;
        overflow: hidden;
        background-color: #f8f9fa;
        border-top: 1px solid #e9ecef;
        border-bottom: 1px solid #e9ecef;
        padding: 12px 0;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        box-sizing: border-box;
    }


    .cosmos-ticker {
        display: inline-block;
        white-space: nowrap;
        padding-left: 100%; 
        animation: aether-drift 25s linear infinite; 
    }

    .astral-asset {
        display: inline-flex;
        align-items: center;
        margin-right: 35px; /* ระยะห่างระหว่างหุ้นแต่ละตัว */
        font-size: 15px;
        font-weight: 500;
        color: #333333;
    }

    .asset-sign {
        margin-right: 6px;
        color: #111111;
    }
    
    .asset-name {
        margin-right: 6px;
        font-weight: bold;
        color: #4a5568;
    }

    .asset-value {
        font-weight: 500;
        margin-right: 6px;
    }

 
    .pulse-up {
        color: #1e7e34;
        font-weight: bold;
    }

 
    .pulse-down {
        color: #bd2130;
        font-weight: bold;
    }

    .badge-gain {
        background-color: #e6f4ea;
        color: #137333;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 13px;
        font-weight: 600;
        margin-left: 4px;
    }

    .cosmic-gate {
        display: inline-block;
        height: 20px;
        width: 1px;
        background-color: #cccccc;
        margin: 0 25px;
        vertical-align: middle;
    }

    @keyframes aether-drift {
        0% {
            transform: translate3d(0, 0, 0);
        }
        100% {
            transform: translate3d(-100%, 0, 0);
        }
    }

    .nebula-stream:hover .cosmos-ticker {
        animation-play-state: paused;
    }/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-97c6ba6 */.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-c8cf30c */.trending-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    max-width: 1200px;
    margin: 0 auto;
  }


  .trending-header {
    border-left: 4px solid #0077b6; 
    padding-left: 15px;
    margin-bottom: 25px;
  }

  .trending-title {
    font-size: 28px;
    font-weight: 700;
    color: #0c1a30;
    margin: 0 0 5px 0;
  }

  .trending-date {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
  }


  .trending-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }


  .index-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-left: 5px solid #dc3545; 
    border-radius: 6px;
    padding: 20px;
    flex: 1;
    min-width: 280px; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
  }


  .index-code {
    font-size: 20px;
    font-weight: 700;
    color: #0c1a30;
    margin: 0 0 4px 0;
  }


  .index-name {
    font-size: 15px;
    color: #6c757d;
    margin: 0 0 12px 0;
  }

  .index-value {
    font-size: 22px;
    font-weight: 700;
    color: #0c1a30;
    margin: 0 0 8px 0;
  }


  .index-change-row {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #dc3545;
    font-weight: 600;
    font-size: 15px;
  }

  .arrow-down {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #dc3545;
    display: inline-block;
  }

 
  @media (max-width: 600px) {
    .trending-container {
      padding: 15px;
    }
    .index-card {
      flex: 1 1 100%;
    }
  }/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-248c502 */.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 */