.elementor-11 .elementor-element.elementor-element-099cc2f{--display:grid;--e-con-grid-template-columns:repeat(1, 1fr);--e-con-grid-template-rows:repeat(1, 1fr);--grid-auto-flow:row;}.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 );}:root{--page-title-display:none;}@media(max-width:1024px){.elementor-11 .elementor-element.elementor-element-099cc2f{--grid-auto-flow:row;}}@media(max-width:767px){.elementor-11 .elementor-element.elementor-element-099cc2f{--e-con-grid-template-columns:repeat(1, 1fr);--e-con-grid-template-rows:repeat(2, 1fr);--grid-auto-flow:row;}}/* Start custom CSS for html, class: .elementor-element-cec0785 */body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;

}

.stock-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
   
   
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    gap: 30px;
}

/* ฝั่งข้อมูลซ้าย */
.stock-info-container {
    flex: 0 0 280px;
    background-color: white;
    display: flex;
    flex-direction: column;
}

h1#last-price {
    color: #22ac38; /* สีเขียวตามภาพต้นฉบับ */
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 5px 0;
    letter-spacing: -0.5px;
}

.chart-label {
    color: #22ac38;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.stock-table {
    width: 100%;
    border-collapse: collapse;
}

.stock-table td {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

.stock-table tr td:first-child {
    color: #666;
    text-align: left;
}

.stock-table tr td:last-child {
    font-weight: 600;
    text-align: right;
    color: #111;
}

/* ฝั่งกราฟขวา */
.stock-chart {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chart-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#current-date {
    font-size: 13px;
    color: #888;
}

/* เมนูแท็บขวาบนของกราฟตามรูปภาพ */
.time-tabs {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.time-tabs .tab {
    padding: 5px 12px;
    font-size: 12px;
    color: #555;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    cursor: pointer;
}

.time-tabs .tab:last-child {
    border-right: none;
}

.time-tabs .tab.active {
    background: #fff;
    font-weight: bold;
    color: #000;
    box-shadow: inset 0 0 2px rgba(0,0,0,0.1);
}

.canvas-container {
    position: relative;
    height: 320px; /* คุมความสูงสัดส่วนกราฟ */
    width: 100%;
    margin-bottom: 25px;
}

/* ตารางล่างกราฟ ปรับให้คลีนแบบมินิมอลตามภาพ */
.lottery-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background-color: #fff;
}

.lottery-table th {
    background-color: #f7f9fa;
    color: #666;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    border: 1px solid #eaeeef;
    padding: 10px;
}

.lottery-table td {
    border: 1px solid #eaeeef;
    padding: 12px;
    font-size: 14px;
    color: #333;
    text-align: center;
}

@media (max-width: 768px) {
    .stock-container {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }
    .stock-info-container {
        flex: 1 1 auto;
        width: 100%;
    }
    .canvas-container {
        height: 240px;
    }
}/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-0f0f3b4 */.sector-header { font-weight: bold; font-size: 1.5em; border-bottom: 3px solid #b32e2e; padding-bottom: 10px; margin-bottom: 30px; display: inline-block; }
.sector-content { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }


.donut-chart {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        #396f70 0% 10.4%, #6f9e9e 10.4% 20.1%, #d48a4d 20.1% 24.7%, 
        #3d70d4 24.7% 27.8%, #c98246 27.8% 39.1%, #a84242 39.1% 47.4%, 
        #541629 47.4% 55.7%, #a32c7d 55.7% 94.3%, #d6a15e 94.3% 96.1%, 
        #d6be5e 96.1% 97.9%, #a38933 97.9% 100%
    );
}


.donut-chart::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    background: #fff;
    border-radius: 50%;
}

.chart-center { position: relative; text-align: center; z-index: 1; }
.percentage { display: block; font-size: 2em; font-weight: 800; color: #000; }
.label { font-size: 1.1em; color: #333; }

.sector-table { width: 100%; border-collapse: collapse; flex: 1; min-width: 300px; }
.sector-table th { text-align: left; padding: 12px; border-bottom: 2px solid #333; font-weight: bold; }
.sector-table td { padding: 10px; border-bottom: 1px solid #eee; }
.dot { height: 12px; width: 12px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.highlight { background-color: #f5f5f5; font-weight: bold; }

@media screen and (max-width: 768px) {
    .sector-content { flex-direction: column; text-align: center; }
    .donut-chart { margin-bottom: 20px; }
}/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-f8fe52a */h5 {
            font-size: 2em;
            color: #ffff;
            text-align: center;
            margin-top: 20px;
            font-family: 'Arial', sans-serif;
            font-weight: bold;
            
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            font-size: 16px;
            text-align: center;
            table-layout: fixed;
            
        }

        table, th, td {
            border: 1px solid #ddd;
            padding: 3px;
            background-color: #ffff;
        }

        th {
            background-color: #f6f6f6;
            font-size: 1.1em;
            
        }

        @media (max-width: 768px) {
            table, th, td {
                font-size: 14px;
                padding: 3px;
            }

            h2 {
                font-size: 1.5em;
            }
        }

        @media (max-width: 480px) {
            table, th, td {
                font-size: 12px;
                padding: 5px;
            }
          
            h2 {
                font-size: 1.2em;
            }
        }/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-4373e53 */.distribution-container {
    display: flex;
    gap: 40px;
    padding: 20px;
    font-family: sans-serif;
    align-items: flex-start;
}

.content-left { flex: 1; }
.content-right { 
    flex: 1; 
    background-color: #c92626; 
    color: white; 
    padding: 30px; 
    border-radius: 8px;
}

.title { font-size: 36px; font-weight: bold; margin-bottom: 5px; }
.subtitle { font-size: 20px; color: #333; margin-top: 10px; }
.date { font-style: italic; color: #666; margin-bottom: 20px; }

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.label { font-size: 14px; margin: 0; color: #555; }
.value { font-size: 22px; font-weight: bold; margin: 5px 0; }

.trend-down { color: #b76313; }
.trend-up { color: #2e7d32; }

.box-title { margin-top: 0; color: white; }
.box-text, .box-note { font-size: 14px; line-height: 1.5; }
.box-link { 
    color: white; 
    text-decoration: underline; 
    font-weight: bold; 
    display: block; 
    margin-top: 15px; 
}

/* Responsive */
@media (max-width: 768px) {
    .distribution-container { flex-direction: column; }
}/* End custom CSS */