﻿/* ===== SweetAlert2 風格（查詢表格樣式） ===== */
.swal2-popup.pq-dialog {
    padding: 24px 28px;
    border-radius: 16px;
}

.swal2-title.pq-title {
    font-size: 24px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 14px;
}

/* 包住後端回來的表格，統一風格 */
.pq-html {
    max-width: 720px;
    margin: 0 auto;
}

    .pq-html table {
        width: 100%;
        border-collapse: collapse;
        border: 0;
        box-shadow: 0 10px 24px rgba(15,23,42,.08);
        border-radius: 12px;
        overflow: hidden;
    }

    /* 查詢結果表格 */
    .pq-html .tabA td {
        padding: 10px 14px;
        font-size: 15px;
    }

        /* 左欄（欄名） */
        .pq-html .tabA td:first-child {
            background: #f1f5f9;
            color: #334155;
            font-weight: 600;
            text-align: right;
            width: 32%;
        }

        /* 右欄（值） */
        .pq-html .tabA td:last-child {
            background: #ffffff;
            color: #0f172a;
            text-align: left;
        }

    /* 避免舊 table inline width 影響 */
    .pq-html table[width] {
        width: 100%;
    }

/* RWD 微調 */
@media (max-width: 560px) {
    .swal2-popup.pq-dialog {
        width: 95%;
    }

    .pq-html .tabA td:first-child {
        width: 40%;
    }
}



/* 門牌未輸入凸顯（改成 Bootstrap form-control 版） */
#address_no.addr-no-missing {
    background-color: #fff2f2 !important;
    border: 2px solid #ff6b6b !important;
    font-weight: 700 !important;
    box-shadow: 0 0 0 4px rgba(255,107,107,.18) !important;
    border-radius: 8px !important;
}

    #address_no.addr-no-missing:focus {
        outline: none !important;
        box-shadow: 0 0 0 5px rgba(255,107,107,.22) !important;
    }

/* 讓 Select2 外觀貼近 Bootstrap 的 form-select */
#addrDropdown + .select2-container .select2-selection--single {
    height: calc(1.5em + .75rem + 2px);
    border: 1px solid #ced4da;
    border-radius: .375rem;
    display: flex;
    align-items: center;
}

#addrDropdown + .select2-container .select2-selection__rendered {
    padding-left: .75rem;
    padding-right: 2.25rem;
    line-height: 1.5;
    color: #555;
}

#addrDropdown + .select2-container .select2-selection__arrow {
    height: 100%;
    right: .5rem;
}

#addrDropdown + .select2-container--focus .select2-selection--single {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}