.grid-boxChart1-1 {
    background: #ffffff;
    box-shadow:  2px 2px 10px #d9d9d9,
                -2px -2px 10px #ffffff;
    border-radius: 30px;
    border: 10px solid #f1ecec;
    padding: 5px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    height: 400px;
}
.card-boxxchart {
    width: 100%;
    box-shadow: 2px 2px 5px #e9e7e7,
                -2px -2px 5px #f8f6f6;
    border-radius: 10px;
    height: 95px;
}
.topic-cd {
    width: 100%;
    background: #f7cd6294;
    box-shadow:  2px 2px 5px #d9d9d9,
                -2px -2px 5px #ffffff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 5px;
    display: flex;
    justify-content: center;
}
.topic-cd p {
   font-weight: 900;
   font-size: 14px;
}
.icon-cd {
    display: flex;
    justify-content: space-between;
    margin: 5px 50px 5px 50px;
}
.icon-cd img {
    width: 30px;
    display: block;
    margin: 0 auto;
}
.icon-cd p {
    font-weight: bold;
    font-size: 16px;
    margin-top: 3px;
}
.chart-boxx1-1{
    border-radius: 20px;
    padding: 2px;
}
/* trend */
.chart-tr1-1 {
    grid-area: chart-tr1-1;
}
.chart-tr1-1{
    background: #ffffff;
    box-shadow:  2px 2px 10px #d9d9d9,
                -2px -2px 10px #ffffff;
    border-radius: 30px;
    border: 10px solid #f1ecec;
    padding: 20px;
    height: 400px;
} 
/* compare */
.chart-cp2-1,.chart-cp2-5 {
    background-color: #ffffff;
    border-radius: 30px;
    border: 10px solid #f1ecec;
    box-shadow: 2px 2px 10px #d9d9d9,
                -2px -2px 10px #ffffff;
    padding: 5px;
    height: 400px;
}
.chart-cp3-4 {
    background-color: #ffffff;
    border-radius: 30px;
    border: 10px solid #f1ecec;
    box-shadow: 2px 2px 10px #d9d9d9,
                -2px -2px 10px #ffffff;
    padding: 5px;
}
.title-card1box {
    margin: 0 auto 10px;
    width: 80%;
    padding: 2px;
    background: #ffffff;
    box-shadow:  5px 5px 10px #dedee2,
                -5px -5px 10px #e9e6e6;
    border-radius: 5px;
    
}
.title-card1box p {
    font-weight: 500;
    display: flex;
    justify-content: center;
    font-size: 13px;
    padding: 5px;
    
}
.title-card1box .text-ti,.title-card1box .text-ti-2,.title-card1box .text-ti-3,.title-card1box .text-ti-4,.title-card1box .text-ti-5,.title-card1box .text-ti-6 {
    width: 100%;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    padding: 2px;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
}
.title-card1box .text-ti {
    background: #4493c9;
}
.title-card1box .text-ti-2 {
    background: #739db5;
}
.title-card1box .text-ti-3 {
    background: #4bc0c0;
}
.title-card1box .text-ti-4 {
    background: #444b8e;
}
.title-card1box .text-ti-5 {
    background: #f6948e;
}
.title-card1box .text-ti-6 {
    background: #A84A7F;
}
.buttom-medianCD4-1 {
    background-image: linear-gradient(45deg, #7bb6dd, #4493c9);
}
.buttom-medianCD4-1, .buttom-medianCD4-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    margin: 10px;
    border-radius: 20px;
    text-align: center;
    color: #ffffff;
    padding: 12px;
    font-size: 1rem;
    font-weight: 500;
}

.titel-medianCD4 {
    background: #4bc0c0;
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
}

.titel-medianCD4 p {
    padding: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}
.Crop-medianCD4 {
    padding: 10px;
}
.Crop-medianCD4 p {
    padding: 0 10px 4px;
    font-weight: 700;
}
.buttom-medianCD4-1-x,.buttom-medianCD4-2-x {
    margin: 0 auto;
    border-radius: 50px;
    text-align: right;
    color: #565656;
    padding: 14px;
    font-weight: 500;
}
.buttom-medianCD4-1-x{
    background-image: linear-gradient(45deg, #7bb6dd, #4493c9);
}
.buttom-medianCD4-2-x{
    background-image: linear-gradient(45deg, #efdba7, #ffce56);
}
.modern-header {
    background: linear-gradient(135deg, #a0a0a0 0%, #838080 60%, #494848 100%);
    border-radius: 16px 16px 0 0;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* ทำ effect แสง soft overlay */
.modern-header::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 70%);
    transform: rotate(25deg);
}

/* เปลี่ยนสีตัวหนังสือ */
.modern-header .card-label {
    color: #FFFFFF !important;
    font-size: 1.1rem;
}

.modern-header .subtitle {
    color: #CCFBF1;
}
.btn.btn-modern {
    color: #FFFFFF;
    border-color: #4a88a1;
    background-color: #4a88a1;
    border-radius: 24px;
}