@import url('https://fonts.googleapis.com/css?family=Muli|Roboto');

/* ============================================
   DỰ TOÁN CHI PHÍ - FLATSOME COMPATIBLE
   ============================================ */

/* Base Styles */
.dutoanchiphi.page-fee {
    font-family: "Muli", sans-serif;
    color: #333;
    background-color: #fff;
    padding: 20px;
    max-width: 1200px;
    margin: 10px auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.dutoanchiphi .page-fee img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Header & Title */
.dutoanchiphi .page-fee .tt {
    text-align: center;
    padding: 10px 0 30px;
}

.dutoanchiphi .page-fee h2 {
    color: #C80F2E;
    text-align: center;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
}

.dutoanchiphi .is-divider-0108 {
    height: 3px;
    background-color: #C80F2E;
    width: 80px;
    margin: 10px auto;
    border-radius: 2px;
}

/* Select Boxes */
.dutoanchiphi .page-fee select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}

.dutoanchiphi .page-fee select:focus {
    outline: none;
    border-color: #C80F2E;
    box-shadow: 0 0 0 3px rgba(200, 15, 46, 0.1);
}

/* Buttons */
.dutoanchiphi .page-fee .btn_tinh_toan {
    border: 0;
    display: inline-block;
    font-size: 16px;
    line-height: 22px;
    background: linear-gradient(135deg, #C80F2E 0%, #E11428 100%);
    color: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    width: 100%;
    max-width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 15px rgba(200, 15, 46, 0.3);
    cursor: pointer;
    margin-top: 15px;
}

.dutoanchiphi .page-fee .btn_tinh_toan:hover {
    background: linear-gradient(135deg, #990000 0%, #C80F2E 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 15, 46, 0.4);
}

.dutoanchiphi .page-fee .btn_tinh_toan:active {
    transform: translateY(0);
}

.dutoanchiphi .page-fee .btn_tinh_toan span {
    padding-right: 10px;
    position: relative;
}

.dutoanchiphi .page-fee .btn_tinh_toan i {
    color: #fff;
    font-size: 18px;
    margin-left: 8px;
}

/* Submit Button Container */
.dutoanchiphi .page-fee .sbm {
    text-align: center;
    margin-top: 20px;
}

/* Info Boxes - Thông tin xe */
.dutoanchiphi .page-fee .row_0108_100 {
    background: linear-gradient(135deg, #C80F2E 0%, #E11428 100%);
    padding: 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: #fff;
    margin-bottom: 0;
}

.dutoanchiphi .page-fee .row_0108_101 {
    background-color: #F8F8F8;
    padding: 15px;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.dutoanchiphi .page-fee .row_0108_102 {
    background: linear-gradient(135deg, #4D4D4D 0%, #333 100%);
    padding: 15px;
    color: #fff;
    text-align: right;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.dutoanchiphi .page-fee .row_0108_100_1 {
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 24px;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.dutoanchiphi .page-fee .row_0108_101_1 {
    font-size: 14px;
    font-weight: bold;
    line-height: 24px;
    color: #C80F2E;
    margin-bottom: 8px;
}

.dutoanchiphi .page-fee .row_0108_101_2 {
    font-size: 14px;
    line-height: 22px;
    color: #666;
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
}

.dutoanchiphi .page-fee .row_0108_101_3 {
    font-size: 14px;
    line-height: 22px;
    color: #C80F2E;
    text-align: right;
    font-weight: 600;
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
}

.dutoanchiphi .page-fee .row_0108_101_spacing {
    background-color: #ddd;
    height: 1px;
    width: 100%;
    max-width: 90%;
    margin: 15px auto;
}

/* Tables */
.dutoanchiphi .page-fee table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

.dutoanchiphi .page-fee table.result tr {
    height: auto;
}

.dutoanchiphi .page-fee .result td {
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 10px;
    line-height: 1.5;
}

.dutoanchiphi .page-fee .result th {
    border: 0;
    padding: 20px 15px;
    font-size: 20px;
    text-align: center;
    color: #C80F2E;
    font-weight: bold;
    background: #f9f9f9;
}

.dutoanchiphi .page-fee .result tr {
    font-size: 15px;
}

.dutoanchiphi .page-fee .result tr:nth-child(even) {
    background-color: #fafafa;
}

.dutoanchiphi .page-fee .result tr:last-child {
    border-bottom: none;
}

.dutoanchiphi .page-fee .js_tc {
    color: #C80F2E;
    font-size: 1.0em;
    font-weight: bold;
}

.dutoanchiphi .page-fee .cart-subtotal-tc {
    border-top: 2px solid #ccc;
}

.dutoanchiphi .page-fee #js_ten_xe, 
.dutoanchiphi .page-fee #js_noi_dang_ky_truoc_ba, 
.dutoanchiphi .page-fee #le_phi_truoc_ba_name {
    font-weight: bold;
    color: #333;
}

.dutoanchiphi .page-fee .product-total {
    font-weight: 600;
    color: #C80F2E;
}

.dutoanchiphi .page-fee .product-name {
    color: #333;
}

/* Result Table */
.dutoanchiphi .page-fee .result {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 25px;
}

/* PDF Export Buttons */
.dutoanchiphi .page-fee .btn-default {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 5px;
    text-decoration: none;
}

.dutoanchiphi .page-fee .btn-default:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Loading Animation */
.dutoanchiphi .page-fee .waiting_get_data {
    margin: 20px auto !important;
    width: 80px !important;
    height: 80px !important;
}

.dutoanchiphi .page-fee .waiting_get_data img {
    width: 100%;
    height: 100%;
}

/* Error Message */
.dutoanchiphi .page-fee #msg_err {
    margin-top: 15px;
    padding: 12px;
    background-color: #fee;
    border-left: 4px solid #C80F2E;
    border-radius: 4px;
    font-size: 14px;
}

/* ============================================
   RESPONSIVE - TABLET (768px and below)
   ============================================ */
@media only screen and (max-width: 768px) {
    .dutoanchiphi .page-fee {
        padding: 15px;
        margin: 10px 5px;
    }
    
    .dutoanchiphi .page-fee h2 {
        font-size: 20px;
    }
    
    .dutoanchiphi .page-fee .tt {
        padding: 15px 0 20px;
    }
    
    .dutoanchiphi .is-divider-0108 {
        width: 60px;
    }
    
    /* Stack columns */
    .dutoanchiphi .page-fee .row {
        flex-direction: column;
    }
    
    .dutoanchiphi .page-fee .col-md-4,
    .dutoanchiphi .page-fee .col-md-6,
    .dutoanchiphi .page-fee .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 10px 0;
        width: 100%;
        display: block;
        margin-bottom: 15px;
    }
    
    .dutoanchiphi .col-md-3.col-sm-12 {
        margin-left: 0;
    }
    
    /* Image styling mobile */
    .dutoanchiphi .page-fee img {
        margin-bottom: 20px;
        max-width: 100%;
        height: auto;
    }
    
    /* Select boxes mobile */
    .dutoanchiphi .page-fee select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 15px;
        margin-bottom: 12px;
        width: 100%;
        margin-left: 0;
    }
    
    /* Button mobile */
    .dutoanchiphi .page-fee .btn_tinh_toan {
        width: 100%;
        max-width: 100%;
        font-size: 16px;
        padding: 16px 20px;
        margin: 15px 0;
    }
    
    /* Info boxes mobile */
    .dutoanchiphi .page-fee .row_0108_100,
    .dutoanchiphi .page-fee .row_0108_101,
    .dutoanchiphi .page-fee .row_0108_102 {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .dutoanchiphi .page-fee .row_0108_100 {
        border-radius: 8px 8px 0 0;
    }
    
    .dutoanchiphi .page-fee .row_0108_102 {
        border-radius: 0 0 8px 8px;
        font-size: 18px;
        padding: 15px;
    }
    
    .dutoanchiphi .page-fee .row_0108_101_2,
    .dutoanchiphi .page-fee .row_0108_101_3 {
        flex-direction: column;
        text-align: left;
        display: block;
    }
    
    .dutoanchiphi .page-fee .row_0108_101_3 {
        font-size: 15px;
        margin-top: 5px;
        text-align: left;
    }
    
    /* Result table mobile */
    .dutoanchiphi .page-fee .result {
        margin-top: 20px;
    }
    
    .dutoanchiphi .page-fee .result th {
        font-size: 18px;
        padding: 15px 10px;
    }
    
    .dutoanchiphi .page-fee .result tr {
        font-size: 14px;
    }
    
    .dutoanchiphi .page-fee .result td {
        padding: 12px 8px;
    }
    
    .dutoanchiphi .page-fee .result .product-name {
        font-size: 14px;
    }
    
    .dutoanchiphi .page-fee .result .product-total {
        font-size: 15px;
    }
    
    /* Cart subtotal mobile */
    .dutoanchiphi .page-fee .cart-subtotal-tc td {
        padding: 15px 8px !important;
        font-size: 15px !important;
    }
    
    /* PDF buttons mobile */
    .dutoanchiphi .page-fee .btn-default {
        display: block;
        width: 100%;
        margin: 10px 0;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .dutoanchiphi .page-fee #js_link_san_pham {
        text-align: center;
        margin-top: 20px;
    }
    
    /* Ensure elements display as columns */
    .dutoanchiphi .lazy-load-active, 
    .dutoanchiphi .col-md-4.col-sm-12 {
        width: 100%;
        max-width: 100%;
        display: block;
        margin-bottom: 15px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (576px and below)
   ============================================ */
@media only screen and (max-width: 576px) {
    .dutoanchiphi .page-fee {
        padding: 12px;
        margin: 5px 0;
    }
    
    .dutoanchiphi .page-fee h2 {
        font-size: 18px;
    }
    
    .dutoanchiphi .is-divider-0108 {
        width: 50px;
        height: 2px;
    }
    
    .dutoanchiphi .page-fee select {
        font-size: 15px;
        padding: 12px 15px;
    }
    
    .dutoanchiphi .page-fee .btn_tinh_toan {
        font-size: 15px;
        padding: 14px 15px;
    }
    
    .dutoanchiphi .page-fee .row_0108_100_1 {
        font-size: 14px;
    }
    
    .dutoanchiphi .page-fee .row_0108_101_1 {
        font-size: 13px;
    }
    
    .dutoanchiphi .page-fee .row_0108_101_2,
    .dutoanchiphi .page-fee .row_0108_101_3 {
        font-size: 13px;
    }
    
    .dutoanchiphi .page-fee .row_0108_102 {
        font-size: 16px;
    }
    
    .dutoanchiphi .page-fee .result th {
        font-size: 16px;
        padding: 12px 8px;
    }
    
    .dutoanchiphi .page-fee .result tr {
        font-size: 13px;
    }
    
    .dutoanchiphi .page-fee .result td {
        padding: 10px 6px;
    }
    
    .dutoanchiphi .page-fee .result .product-name {
        font-size: 13px;
        width: 60% !important;
    }
    
    .dutoanchiphi .page-fee .result .product-total {
        font-size: 14px;
        width: 40% !important;
    }
    
    .dutoanchiphi .page-fee .cart-subtotal-tc td {
        font-size: 14px !important;
    }
}

/* ============================================
   RESPONSIVE - EXTRA SMALL (480px and below)
   ============================================ */
@media only screen and (max-width: 480px) {
    .dutoanchiphi .page-fee h2 {
        font-size: 16px;
    }
    
    .dutoanchiphi .page-fee .btn_tinh_toan {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .dutoanchiphi .page-fee .result tr {
        font-size: 12px;
    }
    
    .dutoanchiphi .page-fee .result td {
        padding: 8px 5px;
    }
    
    .dutoanchiphi .page-fee .result .product-name {
        font-size: 12px;
    }
    
    .dutoanchiphi .page-fee .result .product-total {
        font-size: 13px;
    }
    
    .dutoanchiphi .page-fee .row_0108_102 {
        font-size: 15px;
    }
}

/* ============================================
   ACCESSIBILITY & SMOOTH TRANSITIONS
   ============================================ */
.dutoanchiphi .page-fee * {
    transition: all 0.2s ease;
}

.dutoanchiphi .page-fee select:focus,
.dutoanchiphi .page-fee button:focus {
    outline: 2px solid #C80F2E;
    outline-offset: 2px;
}
/* DỰ TOÁN CHI PHÍ */
/* Phong cách chung cho toàn trang */
.dutoanchiphi .page-fee {
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #fff;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.dutoanchiphi .col-md-3.col-sm-12 {
  margin-left: 50px;
}
/* Tiêu đề */
.dutoanchiphi .page-fee h2 {
    color: #333;
    text-align: center;
    font-size: 24px;
    margin-bottom: 10px;
}

/* Divider - thanh ngang dưới tiêu đề */
.dutoanchiphi .is-divider-0108 {
    height: 4px;
    background-color: #C80F2E;
    width: 100px;
    margin: 10px auto;
}

/* Định dạng cho các thành phần select */
.dutoanchiphi.page-fee select {
    width: 90%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 10px;
	 margin-left: 40px;
    background-color: white;
    color: #333;
}

/* Định dạng nút tính chi phí */
.dutoanchiphi .page-fee .btn_tinh_toan {
    background-color: #C80F2E;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.dutoanchiphi .page-fee .btn_tinh_toan:hover {
    background-color: #A50C26;
}

/* Bố cục hàng và cột */
.dutoanchiphi .page-fee .row {
    display: flex;
    flex-wrap: wrap;
}

.dutoanchiphi.page-fee .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.dutoanchiphi.page-fee .col-md-12 {
    flex: 0 0 100%;
    max-width: 92%;
}

/* Phần thông tin chi tiết ở cột bên phải */
#data_tinh_toan_gia_xe {
    padding: 5px;
}
.dutoanchiphi .page-fee .row_0108_100, .dutoanchiphi .page-fee .row_0108_101, .dutoanchiphi .page-fee .row_0108_102 {
    border: 1px solid #C80F2E;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #F8F8F8;
}

.dutoanchiphi .page-fee .row_0108_100_1, .dutoanchiphi .page-fee .row_0108_101_1 {
    font-weight: bold;
    color: #C80F2E;
	
}

.dutoanchiphi .page-fee .row_0108_101_2, .dutoanchiphi .page-fee .row_0108_101_3 {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.dutoanchiphi .page-fee .row_0108_101_spacing {
    height: 10px;
    width: 100%;
}

/* CSS chung cho tất cả thiết bị */
.dutoanchiphi .page-fee {
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 10px;
}

.dutoanchiphi .page-fee h2 {
    text-align: center;
    font-size: 20px; /* Nhỏ hơn cho mobile */
}

.dutoanchiphi .page-fee .btn_tinh_toan {
    font-size: 14px; /* Nhỏ hơn cho mobile */
    padding: 10px 15px;
}

/* Điều chỉnh cho màn hình nhỏ hơn 768px */
@media (max-width: 768px) {
    .dutoanchiphi .page-fee .row {
        flex-direction: column;
    }

    .dutoanchiphi .page-fee .col-md-4, .dutoanchiphi .page-fee .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 10px;
    }

    .dutoanchiphi .page-fee select {
        padding: 8px;
    }

    .dutoanchiphi .page-fee .row_0108_101_2, .dutoanchiphi .page-fee .row_0108_101_3 {
        flex-direction: column;
        text-align: left;
    }

    .dutoanchiphi .page-fee .row_0108_101_2, .dutoanchiphi .page-fee .row_0108_101_3, .dutoanchiphi .page-fee .row_0108_101_spacing {
        margin-bottom: 5px;
    }

    .dutoanchiphi .page-fee .is-divider-0108 {
        width: 60px; /* Nhỏ hơn cho mobile */
    }

    /* Các điều chỉnh khác để phù hợp với màn hình nhỏ */
    .dutoanchiphi .page-fee .btn_tinh_toan {
        width: 100%;
    }

    /* Đảm bảo ba phần tử hiển thị theo dạng cột */
    .lazy-load-active, 
    .col-md-4.col-sm-12,
    .col-md-4.col-sm-12 {
        width: 100%;
        max-width: 100%;
        display: block;
        margin-bottom: 10px; /* Thêm khoảng cách giữa các phần tử */
    }
}



/* Điều chỉnh thêm cho màn hình rất nhỏ, ví dụ như các điện thoại cũ */
@media (max-width: 480px) {
    .dutoanchiphi .page-fee h2 {
        font-size: 18px;
    }

    .dutoanchiphi .page-fee .btn_tinh_toan {
        padding: 8px 10px;
        font-size: 12px;
    }
}
