.elementor-7 .elementor-element.elementor-element-e51b204{--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-7 .elementor-element.elementor-element-d5fbd99{--display:flex;}.elementor-7 .elementor-element.elementor-element-d5fbd99:not(.elementor-motion-effects-element-type-background), .elementor-7 .elementor-element.elementor-element-d5fbd99 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FFFFFF;}.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 );}body.elementor-page-7:not(.elementor-motion-effects-element-type-background), body.elementor-page-7 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-image:url("https://nasvipp3212.com/wp-content/uploads/2026/06/bg7.png");background-position:center center;}:root{--page-title-display:none;}@media(max-width:1024px){.elementor-7 .elementor-element.elementor-element-e51b204{--grid-auto-flow:row;}}@media(max-width:767px){.elementor-7 .elementor-element.elementor-element-e51b204{--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-291741e */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-07cdea0 */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 */