﻿/* =========================================================
   TRANG BẢNG GIÁ BẠC
   Áp dụng cho SilverTiviPrice.cshtml và _SilverPricePartial.cshtml
   ========================================================= */

.silver-price-page,
.silver-price-page *,
.silver-price-page *::before,
.silver-price-page *::after {
    box-sizing: border-box;
}

.silver-price-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


    /* =========================================================
   BANNER
   ========================================================= */

    .silver-price-page .header {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 80px;
        margin: 0;
        padding: 0 20px;
        background: linear-gradient(90deg, #294f8f 0%, #14213d 100%);
    }

        .silver-price-page .header > a {
            display: flex;
            align-items: center;
            flex: 0 0 auto;
            min-width: 0;
        }

        .silver-price-page .header img {
            display: block;
            width: auto;
            height: 60px;
            max-width: 100%;
        }

    .silver-price-page .header-title-container {
        position: absolute;
        top: 50%;
        left: 50%;
        width: auto;
        text-align: center;
        transform: translate(-50%, -50%);
    }

        .silver-price-page .header-title-container h1 {
            margin: 0;
            padding: 0;
            color: #fff;
            font-size: 26px;
            font-weight: 700;
            line-height: 1.2;
            white-space: nowrap;
        }

    .silver-price-page .update-info {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 auto;
        margin-left: auto;
        color: #fff;
    }

        .silver-price-page .update-info .time {
            margin-right: 15px;
            color: #fff;
            font-size: 38px;
            font-weight: 700;
            line-height: 1;
        }

    .silver-price-page .last-update-container {
        color: #fff;
        text-align: left;
    }

    .silver-price-page .last-update {
        color: #fff;
        font-size: 14px;
        font-style: italic;
        font-weight: 600;
        line-height: 1.15;
    }

    .silver-price-page .update-info .date {
        margin-top: 2px;
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.15;
    }

    .silver-price-page .update-info-mobile {
        display: none;
    }


/* =========================================================
   NỘI DUNG
   ========================================================= */

.silver-price-content {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.silver-price-table-container {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 10px 0 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
}


/* =========================================================
   BẢNG GIÁ
   ========================================================= */

.silver-price-table {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-spacing: 0;
    border-collapse: collapse;
    table-layout: fixed;
    background: #e4e4e4;
}

    .silver-price-table col:nth-child(1) {
        width: 40%;
    }

    .silver-price-table col:nth-child(2) {
        width: 10%;
    }

    .silver-price-table col:nth-child(3),
    .silver-price-table col:nth-child(4) {
        width: 25%;
    }

    .silver-price-table th,
    .silver-price-table td {
        height: 48px;
        padding: 7px 10px;
        vertical-align: middle;
        border: 1px solid #aaa;
    }

    .silver-price-table thead th {
        height: 52px;
        padding: 7px 8px;
        color: #fff;
        background: #294d86;
        font-size: 23px;
        font-weight: 700;
        line-height: 1.15;
        text-align: center;
    }

.silver-price-group-row th {
    height: 31px;
    padding: 3px 8px;
    color: #10285b;
    background: #e4e4e4;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.silver-product-name {
    color: #10285b;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: normal;
}

.silver-unit {
    color: #10285b;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.silver-unit-prefix,
.silver-unit-suffix {
    display: inline;
    white-space: nowrap;
}

.silver-unit-single-line {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
}

.silver-price {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

.silver-buy-price {
    color: #8b171a;
}

.silver-sell-price {
    color: #25544b;
}


/* =========================================================
   GHI CHÚ DƯỚI BẢNG
   ========================================================= */

.silver-price-notes {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 4px 9px 17px;
    color: #10285b;
    background: #e4e4e4;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 400 !important;
    font-synthesis: none;
}

    .silver-price-notes p {
        margin: 0 0 3px;
        padding: 0;
        color: inherit;
        font-family: Arial, Helvetica, sans-serif !important;
        font-size: 14px;
        font-style: italic;
        font-weight: 400 !important;
        font-synthesis: none;
        line-height: 1.25;
    }

        .silver-price-notes p *,
        .silver-price-notes strong,
        .silver-price-notes b {
            font-family: Arial, Helvetica, sans-serif !important;
            font-weight: 400 !important;
        }

        .silver-price-notes p:last-child {
            margin-bottom: 0;
        }


/* =========================================================
   GIÁ BẠC THẾ GIỚI
   ========================================================= */

.world-silver-price {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 25px 15px 21px;
    color: #fff;
    background: linear-gradient( 90deg, #294f8f 0%, #14213d 100% );
    border-bottom: 20px solid rgba(255, 255, 255, 0.85);
    text-align: center;
}

.world-silver-price-main {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.world-silver-price-value,
.world-silver-price-symbol {
    white-space: nowrap;
}

.world-silver-price-note {
    margin-top: 5px;
    color: #f1f1f1;
    font-size: 16px;
    font-style: italic;
    line-height: 1.3;
}


/* =========================================================
   TABLET / MÀN HÌNH NHỎ
   ========================================================= */

@media (max-width: 1200px) {
    .silver-price-page .header {
        flex-wrap: nowrap;
        min-height: 74px;
        padding: 8px 12px;
    }

        .silver-price-page .header img {
            height: 48px;
        }

    .silver-price-page .header-title-container h1 {
        font-size: 22px;
    }

    .silver-price-page .update-info {
        display: none;
    }

    .silver-price-page .update-info-mobile {
        display: block;
        margin-top: 4px;
        color: #fff;
        font-size: 12px;
        line-height: 1.2;
    }

    .silver-price-table thead th {
        font-size: 19px;
    }

    .silver-product-name,
    .silver-unit {
        font-size: 15px;
    }

    .silver-price {
        font-size: 24px;
    }

    .world-silver-price-main {
        font-size: 20px;
    }

    .world-silver-price-note {
        font-size: 14px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
    .silver-price-page .header {
        display: grid;
        grid-template-columns: minmax(0, 42%) minmax(0, 58%);
        align-items: center;
        min-height: 74px;
        padding: 7px 8px;
    }

        .silver-price-page .header > a {
            min-width: 0;
        }

        .silver-price-page .header img {
            width: 100%;
            height: auto;
            max-width: 210px;
        }

    .silver-price-page .header-title-container {
        position: static;
        width: 100%;
        min-width: 0;
        padding-left: 7px;
        transform: none;
    }

        .silver-price-page .header-title-container h1 {
            font-size: 16px;
            line-height: 1.15;
            white-space: normal;
        }

    .silver-price-page .update-info-mobile {
        display: block;
        margin-top: 4px;
        font-size: 11px;
        line-height: 1.2;
    }

    .silver-price-table col:nth-child(1) {
        width: 39%;
    }

    .silver-price-table col:nth-child(2) {
        width: 19%;
    }

    .silver-price-table col:nth-child(3),
    .silver-price-table col:nth-child(4) {
        width: 21%;
    }

    .silver-price-table th,
    .silver-price-table td {
        height: 42px;
        padding: 5px 4px;
    }

    .silver-price-table thead th {
        height: 44px;
        padding-right: 3px;
        padding-left: 3px;
        font-size: 13px;
        line-height: 1.1;
    }

    .silver-price-group-row th {
        height: 28px;
        padding: 3px 4px;
        font-size: 13px;
    }

    .silver-product-name {
        font-size: 12px;
        line-height: 1.15;
    }

    .silver-unit {
        padding-right: 2px !important;
        padding-left: 2px !important;
        font-size: 11px;
        line-height: 1.05;
        text-align: center;
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: normal;
    }

    .silver-unit-two-lines .silver-unit-prefix,
    .silver-unit-two-lines .silver-unit-suffix {
        display: block;
        width: 100%;
        white-space: nowrap;
    }

    .silver-unit-single-line {
        display: inline-block;
        max-width: 100%;
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: keep-all;
    }

    .silver-price {
        padding-right: 2px !important;
        padding-left: 2px !important;
        font-size: 13px;
    }

    .silver-price-notes {
        padding: 4px 7px 13px;
    }

        .silver-price-notes p {
            font-size: 11px;
        }

    .world-silver-price {
        padding: 15px 9px;
    }

    .world-silver-price-main {
        font-size: 12px;
        line-height: 1.4;
    }

    .world-silver-price-note {
        margin-top: 6px;
        font-size: 10px;
        line-height: 1.4;
    }
}


/* =========================================================
   MOBILE RẤT NHỎ
   ========================================================= */

@media (max-width: 420px) {
    .silver-price-page .header {
        grid-template-columns: minmax(0, 43%) minmax(0, 57%);
    }

    .silver-price-table th,
    .silver-price-table td {
        padding-right: 3px;
        padding-left: 3px;
    }

    .silver-product-name {
        font-size: 11px;
    }

    .silver-unit {
        padding-right: 1px !important;
        padding-left: 1px !important;
        font-size: 10px;
        line-height: 1.05;
        letter-spacing: 0;
    }

    .silver-price {
        padding-right: 1px !important;
        padding-left: 1px !important;
        font-size: 12px;
        letter-spacing: -0.1px;
    }

    .world-silver-price-main {
        font-size: 12px;
    }

    .world-silver-price-note {
        font-size: 10px;
    }
}
