﻿/* Áp dụng font chữ toàn cục */
body {
    font-family: 'Roboto', sans-serif; /* Body Text dùng Roboto */
    padding-top: 60px; /* Phải bằng hoặc lớn hơn chiều cao của menu */
}

/* Áp dụng font chữ cho tiêu đề */
h1, h2, h3, h4, h5, h6, .big-title, .panel-heading h4 {
    font-family: 'Inter', sans-serif; /* Tiêu đề dùng Inter */
    font-weight: 700; /* Dùng weight 700 cho tiêu đề */
}
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


/* Màu của tab khi chưa được chọn */
/*.nav-tabs .nav-link {
    color: #4927F5;*/ /* Màu chữ mặc định */
    /*background-color: #f8f9fa;*/ /* Màu nền xám mặc định */
/*}
    .nav-tabs .nav-link.disabled {
        color: #8A8991;*/ /* Màu chữ mặc định */
        /*background-color: #f8f9fa;*/ /* Màu nền xám mặc định */
    /*}
    .nav-tabs .nav-link.active {
        color: #FFFFFF;*/ /* Chữ màu trắng */
        /*background-color: #1C69A8;*/ /* ĐỔI MÀU XANH Ở ĐÂY */
        /*border-color: #1C69A8;
    }
.nav-tabs .nav-link {
    color: #4927F5;*/ /* Màu chữ mặc định */
    /*background-color: #f8f9fa;*/ /* Màu nền xám mặc định */
/*}*/

.nav-tabs .nav-link {
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    font-family: "Be Vietnam Pro", sans-serif;
} 
    .nav-tabs .nav-link.disabled {
        color: #8A8991; /* Màu chữ mặc định */
        background-color: #f8f9fa; /* Màu nền xám mặc định */
    }
    .nav-tabs .nav-link.active {
        color: #FFFFFF; /* Chữ màu trắng */
        background-image: linear-gradient(to right, #4CB8C4 0%, #3CD3AD 51%, #4CB8C4 100%);
    }
        .nav-tabs .nav-link.active:hover {
            background-position: right center; /* change the direction of the change here */
            color: #fff;
            text-decoration: none;
        }
html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.label-title {
    font-weight: bold;  
}

.responsive-img {
    width: 24px; /* kích thước mặc định */
    max-width: 100%;
    height: auto;
}


@media (max-width: 480px) {
    .responsive-img {
        width: 24px;
    }
    /* Thêm thẻ HTML 'h4' vào selector để tăng độ ưu tiên */
    h4.big-title {
        font-size: 1.4rem !important; /* Nên dùng rem và thêm !important để kiểm tra */
    }
}

    /* Màn hình điện thoại */
    @media (max-width: 576px) {
        .responsive-img {
            width: 24px;
        }

        .big-title {
            font-size: 4vw;
        }
    }

    /* Màn hình tablet */
    @media (min-width: 577px) and (max-width: 992px) {
        .responsive-img {
            width: 28px;
        }

        .big-title {
            font-size: 4vw;
        }
    }

    /* Màn hình desktop */
    @media (min-width: 993px) {
        .responsive-img {
            width: 32px;
        }

        .ag-theme-balham .bigexpense-warning {
            background-color: sandybrown !important;
        }

        .ag-theme-balham .bigexpense-breach {
            background-color: lightcoral !important;
        }

        .ag-theme-balham .bigexpense-ok {
            background-color: mediumseagreen !important;
        }

        .dx-datagrid .dx-data-row > td.bullet {
            padding-top: 0;
            padding-bottom: 0;
        }

        .navbar-nav .dropdown-menu {
            display: none;
            position: absolute;
            background-color: white;
            box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        }

        .navbar-nav .dropdown:hover .dropdown-menu {
            display: block;
        }
    }

    .pagination {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

        .pagination .page-item {
            margin: 0 5px;
        }

            .pagination .page-item.active .page-link {
                background-color: #007bff;
                color: #fff;
            }

        .pagination .page-link {
            color: #007bff;
            text-decoration: none;
            padding: 5px 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
        }

    @media (max-width: 767px) {
        .navbar-nav .btn {
            width: 100%;
            margin-top: 8px;
        }
    }

    body {
        font: 400 15px Lato, sans-serif;
        line-height: 1.8;
        color: #818181;
    }

    .big-title {
        color: #0776BE;
        text-align: center;
        font-size: 1.7vw;
        font-weight: 700;
        text-transform: uppercase;
    }

    .big-title-des {
        color: #0776BE;
        text-align: center;
        font-size: 1.25vw;
        font-weight: 500;
    }

    .tr_header {
        background-color: #0066ff;
    }

    .td_ {
        text-align: center;
    }

    .tenthau_ {
        color: #0066ff;
        font-size: 16px;
        float: left;
        font-weight: bold;
        font-family: Montserrat, sans-serif;
        text-align: left;
    }

    .hannop_ {
        color: #4c566a;
        font-size: 14px;
        float: left;
        text-align: left;
    }

    .bg-cblue {
        background-color: rgba(135, 205, 232, 0.25) !important;
    }

    .recruitment-list-item {
        display: block;
        padding-bottom: 10px;
        padding-top: 20px;

        @media (min-width: 768px) {
            display: flex;
        }

        .list-left {
      @media (min-width: 768px) {
        flex: 0 0 calc(100% - 168px);
        padding-right: 30pxs;
      }
    }
    .list-right {
      margin-top: 30px;
      @media (min-width: 768px) {
        flex: 0 0 168px;
        margin-top: 0;
      }
      .apply-now-btn {
        display: flex;
        height: 52px;
        align-items: center;
        justify-content: center;
        border: solid 2px #00319a;
        border-radius: 1000px;
        color: #00319a;
        font-size: 18px;
        @media (min-width: 768px) {
          max-width: 168px;
        }
        &:hover {
          background-color: #00319a;
          color: #fff;
        }
      }
    }
    .list-title {
      .field-field-display-title {
        a {
          font-size: 16px;
          line-height: 24px;
          color: #00319a;
          font-weight: 500;
          margin-bottom: 5px;
        }
      }
    }
    .recruitment-detail-list {
      .item {
        flex: 0 0 100%;
        justify-content: flex-start;
      }
    }
  }
    .recruitment-list-item {
    display: block;
    padding-bottom: 10px;
    padding-top: 20px;
    @media (min-width: 768px) {
      display: flex;
    }
    .list-left {
      @media (min-width: 768px) {
        flex: 0 0 calc(100% - 168px);
        padding-right: 30pxs;
      }
    }
    .list-right {
      margin-top: 30px;
      @media (min-width: 768px) {
        flex: 0 0 168px;
        margin-top: 0;
      }
      .apply-now-btn {
        display: flex;
        height: 52px;
        align-items: center;
        justify-content: center;
        border: solid 2px #00319a;
        border-radius: 1000px;
        color: #00319a;
        font-size: 18px;
        @media (min-width: 768px) {
          max-width: 168px;
        }
        &:hover {
          background-color: #00319a;
          color: #fff;
        }
      }
    }
    .list-title {
      .field-field-display-title {
        a {
          font-size: 24px;
          line-height: 28px;
          color: #00319a;
          font-weight: 500;
          margin-bottom: 5px;
        }
      }
    }
    .recruitment-detail-list {
      .item {
        flex: 0 0 100%;
        justify-content: flex-start;
      }
    }
  }

    .recruitment-list-item {
        margin-top: 20px;
        border-bottom: 1px solid #9f9f9f;
    }

    .views-row:last-child {
        .recruitment-list-item

    {
        margin-bottom: 5px;
    }

    }

/* ---------------------------------- */
/* 1. Tạo bố cục (Layout) và Căn giữa */
/* ---------------------------------- */
.login-container {
    /* Đảm bảo form căn giữa theo chiều dọc và ngang trên toàn màn hình */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Chiều cao tối thiểu, cần thiết để căn giữa theo chiều dọc */
    min-height: 80vh;
    /* Dùng font đẹp hơn nếu có */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Màu nền nhẹ (tùy chọn) */
    background-color: #f8f9fa;
}

/* ---------------------------------- */
/* 2. Tạo Thẻ Card Đăng nhập */
/* ---------------------------------- */
.login-card {
    /* Độ rộng tối đa của form trên màn hình lớn */
    max-width: 550px;
    width: 90%; /* Đảm bảo responsive trên màn hình nhỏ */
    /* Thiết kế thẻ */
    padding: 40px;
    border-radius: 12px;
    background-color: #ffffff;
    /* Hiệu ứng đổ bóng 3D nhẹ nhàng (tạo cảm giác nổi) */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    /* Hiệu ứng chuyển động khi hover (tùy chọn) */
    transition: transform 0.3s ease-in-out;
}

    .login-card:hover {
        transform: translateY(-5px); /* Nâng thẻ lên một chút khi di chuột */
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); /* Tăng độ bóng */
    }

    /* ---------------------------------- */
    /* 3. Tùy chỉnh các thành phần */
    /* ---------------------------------- */
    .login-card h2 {
        color: #007bff; /* Màu sắc chính */
        font-weight: 600;
        font-size: 2rem;
    }

.form-label {
    font-weight: 500;
    color: #495057;
    font-size: 1.1rem;
}

/* Tùy chỉnh input để có góc bo tròn đẹp hơn */
.form-control {
    border-radius: 12px;
    padding: 8px;
}

/* Tùy chỉnh button để nổi bật hơn */

 

.btn-primary {
    background-image: linear-gradient(to right, #000046 0%, #1CB5E0 51%, #000046 100%)
}

.btn-primary {
    margin: 10px;
    padding: 10px 25px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 300% auto;
    color: white;
    box-shadow: 0 0 20px #eee;
    border-radius: 10px;
    display: block;
}

    .btn-primary:hover {
        background-position: right center; /* change the direction of the change here */
        color: #fff;
        text-decoration: none;
    }

/* ================================================= */
/* === CẤU HÌNH CHUNG CHO DANH SÁCH THẦU LỊCH SỬ === */
/* ================================================= */

/* Tiêu đề chính */
h1.big-title {
    color: #337ab7; /* Màu xanh chủ đạo */
    padding-bottom: 0;
    margin-bottom: 5px;
    font-weight: 700;
    text-align: center;
}

/* Tiêu đề phụ/mô tả */
.big-title-des {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
    font-size: 16px;
}

/* ------------------------------------------- */
/* CẤU HÌNH PANEL (Mỗi Gói Thầu) */
/* ------------------------------------------- */

/* Panel tổng thể */
.panel-default {
    border-color: #e9ecef; /* Viền nhẹ nhàng */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Shadow tinh tế */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

    .panel-default:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    }

/* Tiêu đề Panel (Header) */
.panel-heading {
    /* Đã loại bỏ inline style cũ */
    background-color: #337ab7 !important;
    color: white !important;
    height: 100px;
    text-align: left;
    border-radius: 4px 4px 0 0 !important;
    padding: 15px;
}

    .panel-heading h4 {
        color: white !important;
        font-weight: 700;
        margin-top: 5px;
        font-size: 18px;
        line-height: 1.3;
    }

/* Nội dung Panel (Body) */
.panel-body {
    /* Đã loại bỏ inline style cũ */
    height: 250px;
    text-align: left;
    font-size: 14px;
    line-height: 1.8;
    padding: 20px;
    overflow: hidden;
}

    .panel-body p strong {
        color: #333;
        font-weight: 600;
        margin-right: 5px;
    }

    /* Trạng thái */
    .panel-body p.status-text {
        color: #f4511e; /* Màu cam nổi bật cho trạng thái */
        font-weight: bold;
        margin-top: 10px;
    }

    /* Liên kết tải file */
    .panel-body a.download-link {
        color: #0776BE;
        text-decoration: underline;
    }

        .panel-body a.download-link:hover {
            color: #055a96;
        }

/* Panel Footer (Nơi chứa nút bấm) */
.panel-footer {
    padding: 15px;
    background-color: #f8f9fa; /* Nền nhẹ để phân biệt */
    border-top: 1px solid #e9ecef;
}


/* ------------------------------------------- */
/* ĐỒNG BỘ HÓA NÚT CHUNG */
/* ------------------------------------------- */

/* Lớp chung cho cả hai nút */
.btn-action {
    /* Đã loại bỏ inline style cũ */
    border: none;
    border-radius: 106px;
    padding: 10px 15px;
    min-width: 160px;
    font-size: 14px;
    font-weight: 600;
    margin: 5px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Nút Cập nhật Hồ Sơ (Primary/Xanh) */
.btn-update {
    background-color: #0776BE;
    color: white;
}

    .btn-update:hover {
        background-color: #055a96;
        color: white;
    }

/* Nút Hủy Hồ Sơ (Warning/Cam) */
.btn-cancel {
    background-color: #f4511e;
    color: white;
}

    .btn-cancel:hover {
        background-color: #d13c0f;
        color: white;
    }

/* Cấu hình phân trang đồng bộ */
.pagination-container {
    text-align: center;
    margin-top: 20px;
}

.pagination > li > a, .pagination > li > span {
    border-radius: 50%;
    margin: 0 4px;
    min-width: 34px;
    text-align: center;
}

.pagination > li.active > a, .pagination > li.active > span {
    background-color: #337ab7;
    border-color: #337ab7;
}

/* Loại bỏ các CSS cũ không dùng nữa nếu có trong file site.css */
.bg-2 {
    display: none;
}

.btn-secondary-cancel {
    display: none;
}

@keyframes slide {
    0% {
        opacity: 0;
        transform: translateY(70%);
    }

    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}

@-webkit-keyframes slide {
    0% {
        opacity: 0;
        -webkit-transform: translateY(70%);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0%);
    }
}

@media screen and (max-width: 768px) {
    .col-sm-4 {
        text-align: center;
        margin: 25px 0;
    }

    .btn-lg {
        width: 100%;
        margin-bottom: 35px;
    }
}

@media screen and (max-width: 480px) {
    .logo {
        font-size: 150px;
    }
}

/* Sửa selector thành 'body' để áp dụng cho toàn bộ trang */

.btn-add {
    background-image: linear-gradient(to right, #4CB8C4 0%, #3CD3AD 51%, #4CB8C4 100%)
}

.btn-add {
    margin: 2px;
    padding: 5px 15px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white; 
    border-radius: 10px;
    display: block;
}

    .btn-add:hover {
        background-position: right center; /* change the direction of the change here */
        color: #fff;
        text-decoration: none;
    }



.btn-xacnhan {
    background-image: linear-gradient(to right, #00c6ff 0%, #0072ff 51%, #00c6ff 100%)
}

.btn-xacnhan {
    margin: 5px;
    padding: 8px 15px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 20px #eee;
    border-radius: 10px;
    display: block;
}

    .btn-xacnhan:hover {
        background-position: right center; /* change the direction of the change here */
        color: #fff;
        text-decoration: none;
    }

.btn-noborder {
    background-image: linear-gradient(to right, #FFFFFF 0%, #FFFFFF 50%, #ECE9E6 100%)
}

.btn-noborder {  
    text-align: center; 
    transition: 0.5s;
    background-size: 200% auto;
    color: black;  
    font-size:90%;
}

    .btn-noborder:hover {
        background-position: right center; /* change the direction of the change here */
        color: #fff;
        text-decoration: none;
    }
          

.line-header {
    background-image: linear-gradient(to right, #43cea2 0%, #185a9d 51%, #43cea2 100%)
}

.line-header {
    margin: 10px;
    padding: 5px 20px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white; 
    border-radius: 20px;
    display: block;
}

    .line-header:hover {
        background-position: right center; /* change the direction of the change here */
        color: #fff;
        text-decoration: none;
    }

@media (max-width: 767.98px) {
    .navbar-nav {
        gap: 4px;
    }

        .navbar-nav .nav-link {
            padding: 8px 10px;
            font-size: 0.98rem;
        }

            .navbar-nav .nav-link[aria-current] {
                background-color: var(--nav-active-bg);
            }
}
@media (min-width: 768px) {
    .navbar-nav .nav-link:not(:last-child) {
        border-right: 1px solid var(--nav-sep);
        margin-right: 8px;
        padding-right: 18px;
    }
}
/*.pagination 
{
    display: flex;
    justify-content: center;
    () =>

    {
        const searchInput = document.getElementById("searchTitle").value.toLowerCase();
        const tableRows = document.querySelectorAll("tbody tr");
        tableRows .forEach(row => {
                    const titleCell = row.querySelector("td:nth-child(6)"); // Lấy cột tiêu đề
                    if (titleCell && titleCell.textContent.toLowerCase().includes(searchInput)) {
                        row.style.display = ""; // Hiển thị dòng
                    } else {
                        row.style.display = "none"; // Ẩn dòng
                    }
                });

    }

    .pagination .page-link {
        color: #007bff;
        text-decoration: none;
        padding: 5px 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
    }


}
*/

