body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.search-container {
    background: white;
    width: 100%;
    max-width: 450px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background-color: #0056b3;
    padding: 30px;
    color: white;
    text-align: center;
}

.logo { max-width: 150px; margin-bottom: 10px; }

.search-form { padding: 30px; }

.input-group { margin-bottom: 20px; }

.input-group label { display: block; font-weight: bold; margin-bottom: 8px; color: #333; }

.required { color: red; }

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.captcha-row { display: flex; gap: 10px; align-items: center; }

.captcha-box {
    background: #eee;
    padding: 10px 15px;
    font-weight: bold;
    letter-spacing: 3px;
    border: 1px dashed #999;
}

.btn-search {
    width: 100%;
    padding: 14px;
    background-color: #ff8000;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

/* MODAL (POPUP) */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #fff;
    margin: 20px auto;
    padding: 10px;
    width: 90%;
    max-width: 900px;
    height: 90vh; /* Cao 90% màn hình */
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 5px;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
}

.modal-body { flex: 1; margin-top: 30px; }

/* KHUNG CHỨA PDF */
#invoiceContent { width: 100%; height: 100%; }

#invoiceContent iframe { width: 100%; height: 100%; border: none; }

.modal-footer {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #eee;
}

.btn-close {
    padding: 10px 25px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}