﻿/* Set padding to keep content from hitting the edges */
/*.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}*/

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
/*.dl-horizontal dt {
    white-space: normal;
}*/

/* Set width on the form input elements since they're 100% wide by default */
/*input,
select,
textarea {
    max-width: 280px;
}*/

@font-face {
    font-family: 'inter-semibold';
    src: url('../../content/fonts/inter-semibold.ttf') format('truetype');
}

@font-face {
    font-family: 'inter-font';
    src: url('../../content/fonts/Inter-VariableFont_slnt,wght.ttf') format('truetype');
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'inter-semibold','inter-font', sans-serif;
    color: #E4E4E4;
    background-color: #E4E4E4;
}

.container-custom {
    height: calc(100% - 20px);
    margin: 5px;
}

.header {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: linear-gradient(to right, #28498C, #141D32);
    position: relative;
}

    .header img {
        height: 34px;
    }

    .header h1 {
        flex-grow: 1; /* Cho phép tiêu đề chiếm khoảng không gian còn lại */
        text-align: center; /* Căn giữa tiêu đề */
        font-size: 32px;
        font-weight: 300;
        color: #fff;
    }

.update-info {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center; /* Căn giữa theo chiều dọc */
    flex-direction: row; /* Sắp xếp các phần tử theo hàng */
}

    .update-info .time {
        font-size: 38px; /* Cỡ chữ lớn nhất */
        font-weight: bold;
        text-align: center; /* Căn giữa theo chiều ngang */
        margin-right: 20px; /* Khoảng cách giữa các cột */
    }

    .update-info .last-update-container {
        display: flex;
        flex-direction: column; /* Sắp xếp theo cột */
        align-items: flex-start; /* Căn phải các phần tử con */
    }

    .update-info .last-update {
        font-size: 13.5px; /* Cỡ chữ nhỏ nhất */
        font-style: italic;
    }

    .update-info .date {
        font-size: 19px; /* Cỡ chữ to hơn last-update nhưng nhỏ hơn time */
        font-weight: bold;
        /*letter-spacing:2px;*/
    }

.header-mobile {
    display: none;
}

.mobile-title {
    font-size: 22px;
    margin-bottom: 0;
    margin-top: 8px;
    color: #1D2C5A;
}

.logo-product {
    display: flex;
    align-items: flex-start; /* Keep logo and product image aligned to the top */
}

    .logo-product img.logo {
        max-width: 160px;
        height: auto;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo-product img.product {
        max-width: 240px;
        max-height: 240px; /* Cố định chiều cao cho hình ảnh */
        object-fit: contain; /* Đảm bảo ảnh không bị méo */
        width: 100%; /* Chiều rộng tự động điều chỉnh */
        height: auto;
        display: block;
        margin: 0 auto;
    }

/*#left-text {
            text-align: left;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-self: flex-end;*/ /* Center the left-text vertically */
/*}*/

.text {
    max-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .text h3 {
        font-size: 1.4em;
        margin: 0;
    }

    .text .time,
    .text .date {
        font-size: 1em;
        margin: 0; /* Reduce the margin to bring them closer */
    }

    .text .date {
        display: flex;
        flex-direction: column;
    }

        .text .date p {
            margin: 0; /* Reduce the margin to bring them closer */
        }

.logo-mobile {
    display: none;
}

.table-container {
    overflow-y: auto;
    padding: 0;
    margin: 4px 12px 16px 12px;
}

table {
    width: 100%;
    /*border-spacing: .5px 2px;*/ /* Tạo khoảng cách giữa các rows */
    border-collapse: separate;
    border-spacing: 0;
}

thead th {
    background-color: #25417a; /* Màu nền teal cho header */
    text-align: center;
    vertical-align: middle;
    border: none;
    height: 50px !important; /* Chiều cao của header */
    font-size: 20px; /* Đặt kích thước font chữ của header */
    font-weight: 300; /* Đặt độ đậm của font */
    position: relative; /* Để có thể căn chỉnh phần tử con tuyệt đối */
}

.has-border {
    border-left: 1px solid #fff;
}

thead th .sub-text {
    font-size: 14px; /* Kích thước font chữ cho dòng phụ */
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    color: #fff; /* Màu chữ */
}

thead th .title-text {
    margin: 0;
    font-size: 23px;
}

thead th .value-text {
    font-size: 14px;
    margin: 0;
}

tbody td {
    border: 1px solid #A7A7A7; /* Màu viền là màu xám */
    /*border-left: 4px solid #fff;*/ /* Viền trái của cột sản phẩm */
    /*border-right: 1px solid #A1A1A1;*/ /* Viền phải của các cột */
    height: 42px !important; /* Chiều cao của row */
    padding: 2px; /* Đặt padding cho cell */
    font-size: 21px; /* Đặt kích thước font chữ của nội dung */
    text-transform: uppercase;
    color: #1D2C5A;
}

/* tbody td:first-child {
                border-left: 4px solid #fff;
            }*/

.col-product {
    width: 40%; /* Chiều rộng của cột sản phẩm */
    padding-left: 8px; /* Padding trái cho nội dung */
    font-size: 18px;
}

.col-unit {
    width: 10%; /* Chiều rộng của cột sản phẩm */
    text-align: center; /* Padding trái cho nội dung */
}

.col-buy, .col-sell {
    width: 25%; /* Chiều rộng bằng nhau cho hai cột bên phải */
}

.col-buy-cell, .col-sell-cell {
    font-size: 1.5em; /* Tăng kích thước font chữ */
    text-align: center;
}

.col-unit-value {
    font-size: 1em; /* Tăng kích thước font chữ */
    text-align: center;
    text-transform: none;
    padding: 0 5px;
}

.table-th-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.branch_title {
    font-size: 18px;
    margin: 2px;
}

.footer-contain {
    background: linear-gradient(to right, #28498C, #141D32);
    color: white;
    padding: 15px 50px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    margin: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

.footer-section {
    flex-basis: 0; /* Cơ sở ban đầu là 0, sau đó sẽ điều chỉnh bằng flex-grow */
    flex-grow: 1; /* Cho phép các phần tử phát triển */
}

/* Chỉ định kích thước riêng cho các vùng */
.footer-contain > .footer-section:nth-child(1),
.footer-contain > .footer-section:nth-child(2) {
    flex-grow: 4; /* Chiếm 60% */
}

.footer-contain > .footer-section:nth-child(3) {
    flex-grow: 1; /* Chiếm 40% */
}

.footer-section h3 {
    font-size: 12px;
    margin-bottom: 10px;
}

.footer-section img {
    height: 26px;
    margin: 15px 0;
}

.footer-section p, .footer-section a {
    margin: 5px 0;
    color: white;
    text-decoration: none;
    font-size: 10px;
}

    .footer-section a:hover {
        text-decoration: underline;
    }

.footer-icons {
    display: flex;
    gap: 20px;
}

    .footer-icons a {
        color: white;
        font-size: 20px;
        text-decoration: none;
    }

        .footer-icons a img {
            width: 24px;
            height: 24px;
        }

.contact-details {
    margin-top: 10px;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 2px;
}

.footer-divider {
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.footer-bottom p {
    margin: 0;
    font-size: 10px;
}

.contact-row {
    display: flex;
    flex-direction: row; /* Sắp xếp các phần tử theo hàng ngang */
    align-items: flex-start;
    gap: 2px; /* Tạo khoảng cách giữa hai cột */
}

.contact-phone {
    display: flex;
    flex-direction: column; /* Sắp xếp số điện thoại theo cột */
    gap: 5px; /* Tạo khoảng cách giữa các số điện thoại */
    min-width: 90px; /* Đặt chiều rộng tối thiểu để đảm bảo không bị cắt */
}

    .contact-phone p {
        margin: 0; /* Đảm bảo không có khoảng cách thêm giữa các đoạn văn */
        white-space: nowrap; /* Ngăn không cho số điện thoại xuống dòng */
    }

.contact-address {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

    .contact-address p {
        margin: 0; /* Đảm bảo không có khoảng cách thêm giữa các đoạn văn */
        line-height: 1.5;
    }

.note-text {
    color: #1D2C5A;
    margin: 3px;
    font-style: italic;
    font-size: 14px;
}

.hidden-div {
    height: 60px;
    visibility: hidden;
}

@media (max-width: 768px) {
    header {
        height: 70px;
        padding: 4px 5px;
    }

    .header img {
        height: 28px;
    }

    header .header-title {
        display: none;
    }

    .update-info {
        display: none;
    }

    header .update-info .last-update {
        display: none;
    }

    header .update-info .last-time {
        display: none;
    }

    header .update-info p {
        display: none;
    }

    .header-mobile {
        display: block;
    }

    .container {
        padding: 0 40px;
    }

    .logo-product {
        display: none !important;
    }

    .logo-mobile {
        display: block;
        max-width: 120px;
        position: static;
        transform: none;
        margin-bottom: 10px;
    }

    .m-0 {
        display: none;
    }

    .logo-product img.product {
        display: none !important; /* Ẩn hình ảnh sản phẩm trên di động */
    }

    #left-text {
        align-items: center;
        margin-top: 5px;
        align-self: center;
    }

    .text {
        align-items: center;
    }

        .text h3 {
            font-size: 16px;
        }

        .text .time,
        .text .date {
            font-size: 12px;
        }

    .table-container {
        margin: 0px 5px 10px 5px;
    }

    thead th {
        height: 40px !important;
    }

    .col-product {
        font-size: 11px; /* Giảm kích thước font chữ */
        width: 45%;
        padding-left: 2px;
    }

    .col-buy-cell, .col-sell-cell {
        font-size: 14px; /* Giảm kích thước font chữ */
    }

    .col-unit-value {
        font-size: 10px;
    }

    .branch_title {
        font-size: 14px;
    }

    thead th .title-text {
        font-size: 12px;
    }

    thead th .value-text {
        font-size: 10px;
    }

    .footer-contain {
        padding: 5px 20px;
        margin: 0 3px 5px 3px;
    }

    .footer-section {
        margin: 3px;
    }

        .footer-section h3 {
            margin: 0;
        }

    .footer-bottom {
        padding-bottom: 20px;
    }

    .note-text {
        font-size: 10px;
    }

    .hidden-div {
        height: 10px;
    }
}


