/* ============================================
   STYLE CHO VnExpress (GỐC)
   ============================================ */

.gold-price-wrapper {
    background: #fff;
    margin: 20px 0;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vnexpress-gold-price .box-giavang-new {
    padding: 15px;
}

.vnexpress-gold-price .info-topic {
    background: #fff;
}

.vnexpress-gold-price .width_common {
    width: 100%;
}

.vnexpress-gold-price .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.vnexpress-gold-price .table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.vnexpress-gold-price .table thead th {
    background: #087cac;
    color: #fff;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #ddd;
    vertical-align: middle;
}

.vnexpress-gold-price .table thead th.text-left {
    text-align: left;
}

.vnexpress-gold-price .table thead th span {
    display: block;
}

.vnexpress-gold-price .table tbody td {
    padding: 12px 8px;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
}

.vnexpress-gold-price .table tbody td h2 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    text-align: left;
    color: #333;
}

.vnexpress-gold-price .table tbody tr:hover {
    background: #f8f9fa;
}

.vnexpress-gold-price .price {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 5px;
}

.vnexpress-gold-price .price.down {
    background: #fee;
    color: #e74c3c;
}

.vnexpress-gold-price .price.up {
    background: #dff0d8;
    color: #27ae60;
}

.gold-update-time {
    text-align: right;
    color: #999;
    font-size: 12px;
    font-style: italic;
    padding: 10px 15px;
    border-top: 1px solid #eee;
}

/* ============================================
   STYLE CHO 24H - DỰA TRÊN VnExpress
   ============================================ */

.gold-price-wrapper-24h {
    background: #fff;
    margin: 20px 0;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Bảng giá 24h - Style giống VnExpress */
.gold-price-24h-table .cate-24h-gold-pri-table {
    width: 100%;
}

.gold-price-24h-table .tabTit table {
    width: 100%;
    background: #087cac;
    color: #fff;
    border-collapse: collapse;
    margin-bottom: 0;
}

.gold-price-24h-table .tabTit td {
    padding: 12px 10px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #076a94;
}

.gold-price-24h-table .tabHead {
    width: 100%;
    background: #f5f5f5;
    border-collapse: collapse;
}

.gold-price-24h-table .tabHead td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #ddd;
    font-weight: 600;
    color: #666;
}

.gold-price-24h-table .tabBody {
    width: 100%;
}

.gold-price-24h-table .gia-vang-search-data-table {
    width: 100%;
    border-collapse: collapse;
}

.gold-price-24h-table .gia-vang-search-data-table tr {
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.gold-price-24h-table .gia-vang-search-data-table tr:hover {
    background: #f8f9fa;
}

.gold-price-24h-table .gia-vang-search-data-table td {
    padding: 12px 10px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #ddd;
}

.gold-price-24h-table .pdL10 {
    padding-left: 10px !important;
    text-align: left !important;
}

.gold-price-24h-table h2 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.gold-price-24h-table .fixW {
    display: inline-block;
    min-width: 60px;
}

.gold-price-24h-table .colorRed {
    color: #e74c3c;
    font-weight: 600;
    margin-left: 5px;
}

.gold-price-24h-table .colorGrey {
    color: #333;
}

.gold-price-24h-table .colorBlur {
    color: #999;
}

/* Icon tăng/giảm */
.gold-price-24h-table img {
    vertical-align: middle;
    margin: 0 3px;
    width: 12px;
    height: 12px;
}

/* ============================================
   BIỂU ĐỒ 24H
   ============================================ */

.gold-chart-24h-wrapper {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cate-24h-gold-pri-chart {
    width: 100%;
}

.cate-24h-gold-pri-chart__t {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #087cac;
}

.cate-24h-gold-pri-chart__t .title,
.cate-24h-gold-pri-chart__t h2 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.cate-24h-gold-pri-chart__t .name-gold {
    color: #087cac;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    font-size: 14px;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.gold-chart-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#div_bieu_do_gia_vang {
    width: 100%;
    min-height: 370px;
}

#div_bieu_do_gia_vang svg {
    max-width: 100%;
    height: auto;
}

/* ============================================
   SOURCE INFO FOOTER
   ============================================ */

.gold-source-info {
    text-align: right;
    color: #999;
    font-size: 12px;
    font-style: italic;
    padding: 10px 0;
    margin-top: 15px;
    border-top: 1px solid #eee;
}

.gold-source-info strong {
    color: #087cac;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .vnexpress-gold-price .table,
    .gold-price-24h-table table {
        font-size: 13px;
    }
    
    .vnexpress-gold-price .table thead th,
    .vnexpress-gold-price .table tbody td,
    .gold-price-24h-table td {
        padding: 8px 5px;
    }
    
    .vnexpress-gold-price .table tbody td h2,
    .gold-price-24h-table h2 {
        font-size: 13px;
    }
    
    .gold-chart-container {
        overflow-x: scroll;
    }
    
    #div_bieu_do_gia_vang {
        min-width: 600px;
    }
}
