﻿.price-main p {
    text-align: justify;
    font-size: 18px;
}

.price-main h2, .price-main h3 {
    font-size: 30px;
    font-weight: bold;
    padding-left: 45px;
    position: relative;
}

    .price-main h2:before {
        content: '';
        position: absolute;
        background: url(/assets/images/icon-one.png) no-repeat center center / 100% auto;
        width: 40px;
        height: 40px;
        left: 0;
        top: 0;
    }

    .price-main h3:before {
        content: '';
        position: absolute;
        background: url(/assets/images/icon-waring.png) no-repeat center center / 100% auto;
        width: 40px;
        height: 40px;
        left: 0;
        top: 5px;
    }

.table1 {
    float: right;
    margin-left: 50px !important;
}

.table2 {
    float: left;
    margin-right: 50px !important;
    max-width: 580px !important;
}

.text2 {
    width: calc(100% - 630px);
    margin-left: auto;
}

.price-table {
    border-collapse: collapse; /* Gộp các đường viền của ô lại */
    width: 100%;
    max-width: 700px;
    background-color: #fff;
    border-radius: 50px 50px 0 50px; /* Bo tròn góc tổng thể */
    overflow: hidden; /* Đảm bảo nội dung không tràn ra ngoài góc bo tròn */
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid #ddd;
    text-align: center;
}

    /* Header cells (th) */
    .price-table th {
        background-color: #222 !important;
        color: #fff;
        padding: 15px 10px;
        text-align: center !important;
        font-weight: 700;
        white-space: nowrap; /* Ngăn không cho chữ xuống dòng nếu quá dài */
    }

        /* Logo cell in header */
        .price-table th.logo-cell {
            width: 20%; /* Điều chỉnh độ rộng của cột logo */
            padding: 10px;
            background-color: #fff !important;
            text-align: center;
            border: none;
        }

            .price-table th.logo-cell img {
                /*max-width: 100px;
                height: auto;
                filter: brightness(0) invert(1);*/
            }

    /* Data cells (td) */
    .price-table td {
        padding: 12px 10px;
        color: #333;
    }

    .price-table p {
        text-align: center !important;
    }
    /* Remove right border for the last column's data cells */
    .price-table td:last-child {
        border-right: none;
    }

    /* Remove bottom border for the last row's data cells */
    .price-table tr:last-child td {
        border-bottom: none;
    }

    /* Styling for the left "LOẠI CÔNG TRÌNH" column */
    .price-table td.project-type-header {
        background-color: #222;
        color: #fff;
        font-weight: 700;
        text-align: center;
        vertical-align: middle;
        position: relative;
        padding: 0; /* Remove padding to allow full height for inner div */
        width: 20%; /* Same width as logo column */
    }

        .price-table td.project-type-header > div {
            transform: rotate(-90deg);
            white-space: nowrap;
            position: absolute; /* Cần position absolute để xoay đúng */
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) rotate(-90deg);
            width: 100%; /* Đảm bảo div chiếm toàn bộ chiều rộng để translate hoạt động */
            font-size: 24px;
        }

			.table1 td.project-type-header > div {
				top: auto;
				bottom: 15%;
				letter-spacing: 6px;
			}

			.table2 td.project-type-header > div {
				top: auto;
				bottom: 24%;
				font-size: 22px;
				letter-spacing: 0px;
			}
/* Styling for "NHÀ PHỐ" and "BIỆT THỰ" labels */
.price-table td.type-label {
    background-color: #F0F0F0; /* Nền xám nhẹ cho label */
    font-weight: 700;
    color: #333;
    vertical-align: middle;
    /* border-right: 1px solid #ccc; */ /* Border phân cách với dữ liệu */
}

    /* Span multiple rows for "NHÀ PHỐ" and "BIỆT THỰ" */
    .price-table td.type-label[rowspan="3"] {
        /* No specific styles here, rowspan handles the merging */
    }

/* Specific styling for header of "DIỆN TÍCH" and "ĐƠN GIÁ" */
.price-table th:nth-child(2) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.price-table th:nth-child(3) {
    border-right: none;
}
/* No border for last header */

/* Alternating row backgrounds (optional) */
.price-table tr:nth-child(even) td {
    background-color: #F0F0F0;
}

.price-table tr:nth-child(odd) td {
    background-color: #ffffff;
}
/* Override alternating background for type labels */
.price-table tr td.type-label {
    background-color: #F0F0F0;
}

.price-table tr:nth-child(1) td.type-label {
    background-color: #F0F0F0; /* Đảm bảo màu nền của label không bị ảnh hưởng bởi row-even/odd */
    /* border-bottom: 1px solid #ccc; */ /* Thêm border dưới cho label đầu tiên */
}

.price-table tr:nth-child(4) td.type-label {
    background-color: #F0F0F0;
    border-bottom: 1px solid #ccc; /* Thêm border dưới cho label thứ hai */
}

.project-type-header {
    background-color: #000 !important;
}

/* Responsive adjustments (basic) */
@media (max-width: 600px) {
    .price-table {
        font-size: 0.9em;
    }

    .price-table th, .price-table td {
        padding: 10px 8px;
    }

    .price-table th.logo-cell img {
        max-width: 80px;
    }

    .price-table td.project-type-header {
        width: 15%; /* Giảm bớt độ rộng */
        font-size: 0.8em;
    }

    .price-table td.project-type-header > div {
        transform: translate(-50%, -50%) rotate(-90deg) scale(0.9); /* Thu nhỏ chữ xoay */
    }
	.text2 {
		width: 100%;
	}
	.table1, .table2 {
		float: none;
		margin: 0 0 30px !important;
	}
}
