.invoice-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* [hidden] và .invoice-modal-backdrop có cùng độ ưu tiên (0,1,0) — nếu không khai báo riêng,
   display:flex ở trên đè mất display:none mặc định của [hidden], modal hiện sẵn ngay khi load trang. */
.invoice-modal-backdrop[hidden] {
    display: none;
}

.invoice-modal {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    width: min(420px, 92vw);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.invoice-modal h3 {
    margin: 0 0 8px;
}

.invoice-modal-desc {
    color: #757682;
    font-size: 13px;
    margin: 0 0 16px;
}

.invoice-modal-field {
    display: block;
    margin-bottom: 12px;
}

.invoice-modal-field span {
    display: block;
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
}

.invoice-modal-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d9d9e3;
    border-radius: 10px;
    font-size: 14px;
}

.invoice-modal-error {
    color: #d22d3d;
    font-size: 13px;
    margin: -4px 0 12px;
}

.invoice-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.invoice-modal-skip,
.invoice-modal-confirm {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.invoice-modal-skip {
    background: #f0f0f3;
    color: #333;
}

.invoice-modal-confirm {
    background: var(--primary, #002066);
    color: #fff;
}
