/* Phú Quý Price Sync — Chart styles */

.pq-ps-bieu-do-wrap {
    max-width: 100%;
}

.pq-ps-chart-canvas {
    width: 100% !important;
}

/* --- Tab chuyển đổi biểu đồ (pq_bieu_do_tabs) --- */

.pq-ps-chart-tabs-wrap {
    max-width: 100%;
}

.pq-ps-tab-buttons {
    display: inline-flex;
    margin-bottom: 16px;
    border: 1px solid #1A2745;
    border-radius: 4px;
    overflow: hidden;
}

.pq-ps-tab-btn {
    padding: 2px 20px;
    background: #fff;
    color: #1A2745;
    border: none;
    border-right: 1px solid #1A2745;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.15s ease, color 0.15s ease;
        margin-bottom: 0;
            margin-right: 0;
}

.pq-ps-tab-btn:last-child {
    border-right: none;
}

.pq-ps-tab-btn:hover {
    background: #f0f2f7;
}

.pq-ps-tab-btn.is-active {
    background: #1A2745;
    color: #fff;
}

/* --- Bộ chọn khung thời gian (1D/7D/1M/3M/1Y) --- */

.pq-ps-time-options {
    display: inline-flex;
    margin-bottom: 16px;
    margin-left: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    vertical-align: top;
}

.pq-ps-time-option {
    margin: 0;
    cursor: pointer;
}

.pq-ps-time-option input {
    /* Ẩn radio gốc nhưng vẫn giữ để hỗ trợ bàn phím/trình đọc màn hình */
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.pq-ps-time-option span {
    display: inline-block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1A2745;
    border-right: 1px solid #ccc;
    transition: background 0.15s ease, color 0.15s ease;
}

.pq-ps-time-option:last-child span {
    border-right: none;
}

.pq-ps-time-option:hover span {
    background: #f0f2f7;
}

.pq-ps-time-option input:checked + span {
    background: #1A2745;
    color: #fff;
}

.pq-ps-time-option input:focus-visible + span {
    outline: 2px solid #1A2745;
    outline-offset: -2px;
}

.pq-ps-chart-tabs-canvas {
    width: 100% !important;
}
.pq-ps-chart-tabs-canvas-wrap {
    /* Chiều cao cố định — bắt buộc phải có vì JS đã tắt maintainAspectRatio */
    height: 420px;
}

.pq-ps-chart-tabs-canvas {
    width: 100% !important;
    height: 100% !important;
}
/* --- Dòng % thay đổi (icon tam giác + số % + nhãn khung thời gian) --- */

.pq-ps-change-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.pq-ps-change-icon {
    display: inline-flex;
    align-items: center;
}

.pq-ps-change-value {
    font-weight: 700;
    font-size: 20px;
}

.pq-ps-change-period {
    color: #1a2745;
    font-size: 14px;
}

/* --- Form chọn khoảng ngày tùy chỉnh --- */

.pq-ps-date-range-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.pq-ps-date-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #1a2745;
}

.pq-ps-date-label input[type="date"] {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.pq-ps-date-submit {
    padding: 7px 18px;
    background: #1A2745;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.pq-ps-date-submit:hover {
    background: #2a3a63;
}
.pq-ps-current-price {
    display: flex;
    gap: 40px;
    margin-bottom: 16px;
}

.pq-ps-price-col {
    display: flex;
    flex-direction: column;
}

.pq-ps-price-label {
    color: #4f4f4f;
    font-size: 14px;
}

.pq-ps-price-buy {
    color: #C42028;
    font-weight: 700;
    font-size: 32px;
}

.pq-ps-price-sell {
    color: #028166;
    font-weight: 700;
    font-size: 32px;
}
.pq-ps-tab-cd{
    display: flex;
    justify-content: space-between;
}
