﻿#main {
    max-width: 700px;
    margin: 40px auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.mtitle3 {
    font-size: 18px;
    color: #800000;
    text-align: center;
    font-weight: bold;
    margin-bottom: 30px;
}

.tra-cuu-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.input-field {
    width: 100%;
    padding: 8px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn {
    background-color: #28a745;
    color: white;
    padding: 10px 25px;
    font-size: 15px;
    border: none;
    border-radius: 4px;
    /*cursor: pointer;*/
}

.btn:hover {
    background-color: #218838;
}

.btn:focus {
    outline: none;
    box-shadow: none;
    transform: none;
    background-color: #28a745; /* giữ nguyên màu khi focus */
}

/* Ghi đè style chỉ cho nút có class .btn-timkiem */
#btnTimKiem,
.btn-timkiem {
    padding: 10px 25px !important;
    border-radius: 4px;
    font-size: 15px;
    background-color: #28a745;
    color: #fff;
    border: none;
    cursor: pointer;
}

    #btnTimKiem:focus,
    .btn-timkiem:focus {
        outline: none;
        box-shadow: none;
        padding: 10px 25px !important; /* Giữ nguyên kích thước khi focus */
    }




.required {
    color: red;
}

.error-message {
    color: red;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.result-message {
    color: red;
    font-weight: bold;
    margin-top: 10px;
    display: block; /* đảm bảo hiển thị */
}


.data-grid {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-grid th, .data-grid td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.data-grid th {
    background-color: #f2f2f2;
    color: #333;
}

.mluuy {
    width: 670px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    margin-top: 0px;
}
.grid-container {
    overflow-x: auto;
    width: 100%;
    margin-top: 20px;
}

.data-grid {
    width: auto;
    min-width: 1000px;
    white-space: nowrap;
    table-layout: auto;
    border-collapse: collapse;
    font-size: 16px; /* 📌 Font to hơn */
    font-family: "Segoe UI", Tahoma, sans-serif;
    background-color: #fff;
}

    .data-grid th {
        background-color: #e8e8e8;
        color: #333;
        font-weight: 600;
        padding: 15px 20px; /* 📌 Thêm padding cho rõ */
        text-align: center;
        border: 1px solid #ccc;
        font-size: 17px;
    }

    .data-grid td {
        padding: 12px 20px; /* 📌 Cell rộng thoáng hơn */
        text-align: center;
        border: 1px solid #ddd;
        color: #111;
    }

    .data-grid tr:nth-child(even) {
        background-color: #f9f9f9; /* 📌 Xen kẽ màu dòng */
    }

    .data-grid tr:hover {
        background-color: #f1f1f1;
    }
