/* 예약조회 팝업 — 리스트용으로 크게 */
.guest-find-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2500;
}

.guest-find-popup {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    width: 860px;        /* 넓게 */
    max-width: 95vw;
    max-height: 85vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.guest-find-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid #033054;
}

.guest-find-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-family: psb;
    color: #033054;
}

.guest-find-popup-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
}

.guest-find-popup-close:hover {
    color: #333;
}

/* =====================================================
   예약내역 표 — 가독성
   ⚠ 셀렉터는 이 팝업 안(#guestFindContent)으로만 한정한다.
      예전엔 table {} 이 전역이라 사이트 공통 table-layout:fixed 와
      white-space:nowrap 이 겹쳐 옆칸 글자 위로 넘쳐 겹쳐 보였다.
      예약 상세(#spopup05_body)는 artclView.css 소관 — 여기서 건드리지 말 것.
   ===================================================== */
.guest-find-popup #guestFindContent h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: #033054;
}

.guest-find-popup .tableWrap {
    overflow-x: auto;               /* 좁아져도 겹치지 않고 가로 스크롤 */
    -webkit-overflow-scrolling: touch;
}

.guest-find-popup #guestFindContent table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.5;
    word-break: keep-all;
}

.guest-find-popup #guestFindContent th,
.guest-find-popup #guestFindContent td {
    padding: 10px 12px;
    border: 1px solid #e3e6ea;
    vertical-align: middle;
    text-align: center;
    /* 모든 칸 줄바꿈 허용 + 넘침 차단 → 겹침 원천 차단 */
    white-space: normal;
    overflow: hidden;
    overflow-wrap: break-word;
}

.guest-find-popup #guestFindContent th {
    background: #f5f6f8;
    color: #333;
    font-weight: 600;
}

.guest-find-popup #guestFindContent tbody tr:nth-child(even) td {
    background: #fafbfc;
}

.guest-find-popup #guestFindContent tbody tr:hover td {
    background: #eef4fa;
}

/* 날짜 칸 — 날짜/시간 두 덩어리, 폭 부족하면 덩어리째 줄바꿈 */
.guest-find-popup #guestFindContent td.col-date {
    color: #444;
    font-variant-numeric: tabular-nums;
}
.guest-find-popup #guestFindContent td.col-date .d {
    display: inline-block;
    white-space: nowrap;
}
.guest-find-popup #guestFindContent td.col-date .t {
    display: inline-block;
    white-space: nowrap;
    color: #666;
}

/* 장소 칸 — 잘라내지 말고 줄바꿈 */
.guest-find-popup #guestFindContent td.col-place {
    color: #333;
}

/* 제목 칸 — 왼쪽 정렬 */
.guest-find-popup #guestFindContent td.col-sj {
    text-align: left;
}
.guest-find-popup #guestFindContent td.col-sj a {
    color: #1a4f8a;
    text-decoration: none;
}
.guest-find-popup #guestFindContent td.col-sj a:hover,
.guest-find-popup #guestFindContent td.col-sj a:focus {
    text-decoration: underline;
}

.guest-find-popup #guestFindContent td.col-empty {
    padding: 28px 12px;
    color: #888;
}

/* 승인여부 배지 */
.guest-find-popup .rsvt-badge {
    display: inline-block;
    min-width: 54px;
    padding: 3px 9px;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.6;
    white-space: nowrap;
}
.guest-find-popup .rsvt-badge-y { background: #e6f4ea; color: #1e7e34; }   /* 승인 */
.guest-find-popup .rsvt-badge-n { background: #fff4e5; color: #a15c00; }   /* 미승인 */
.guest-find-popup .rsvt-badge-c { background: #f1f2f4; color: #777; }      /* 취소 */
.guest-find-popup .rsvt-badge-r { background: #fdecea; color: #c0392b; }   /* 거절 */

@media screen and (max-width: 768px) {
    .guest-find-popup {
        padding: 16px;
        width: 98vw;
    }
    .guest-find-popup #guestFindContent th,
    .guest-find-popup #guestFindContent td {
        padding: 8px 6px;
        font-size: 12px;
    }
    .guest-find-popup #guestFindContent td.col-date .d,
    .guest-find-popup #guestFindContent td.col-date .t {
        display: block;
    }
}
