/* =========================================================================
   1. 캘린더 전체 컨테이너 (폭 확장 및 불투명 흰색 배경 고정)
   ========================================================================= */
#calendar_wrap {
    max-width: 1320px;
    margin: 24px auto;
    background-color: #ffffff !important;
    opacity: 1 !important;
    padding: 28px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
    position: relative;
}

/* 운영 시간 안내 배너 */
.biz_notice {
    margin-bottom: 20px;
    padding: 14px 18px;
    background-color: #f1f5f9 !important;
    border-left: 4px solid #0f172a;
    border-radius: 6px;
    font-size: 14px;
    color: #0f172a;
    line-height: 1.6;
}

/* =========================================================================
   2. FullCalendar 예약 칸 넓히기 & 네이비(Navy) 테마
   ========================================================================= */
.fc {
    touch-action: manipulation;
    background-color: #ffffff;
}

    .fc .fc-toolbar.fc-header-toolbar {
        margin-bottom: 20px !important;
    }

    .fc .fc-toolbar-title {
        font-size: 1.35rem !important;
        font-weight: 700;
        color: #0f172a;
    }

    /* 상단 월/일/주 보기 전환 탭 숨김 */
    .fc .fc-dayGridMonth-button,
    .fc .fc-timeGridDay-button,
    .fc .fc-timeGridWeek-button {
        display: none !important;
    }

    /* 툴바 버튼 (네이비 테마) */
    .fc .fc-button-primary {
        background-color: #0f172a !important;
        border-color: #0f172a !important;
        border-radius: 6px !important;
        padding: 7px 14px !important;
        font-weight: 600 !important;
        transition: all 0.2s;
    }

        .fc .fc-button-primary:hover,
        .fc .fc-button-primary:not(:disabled).fc-button-active {
            background-color: #1e3a8a !important;
            border-color: #1e3a8a !important;
            box-shadow: 0 3px 8px rgba(15, 23, 42, 0.25);
        }

        .fc .fc-button-primary:disabled {
            background-color: #94a3b8 !important;
            border-color: #94a3b8 !important;
        }

    /* 요일 헤더 */
    .fc .fc-col-header-cell {
        background-color: #f1f5f9 !important;
        padding: 11px 0 !important;
        font-weight: 700;
        color: #0f172a;
        font-size: 14px;
    }

    /* 주간/일간 뷰 시간 슬롯(예약 칸) 세로 높이 확장 */
    .fc .fc-timegrid-slot {
        height: 48px !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .fc .fc-timegrid-slot-label {
        font-size: 13px;
        font-weight: 600;
        color: #475569;
        padding-right: 10px !important;
    }

    /* 월간 뷰 날짜 칸 최소 높이 확장 */
    .fc .fc-daygrid-day-frame {
        min-height: 115px !important;
        padding: 4px !important;
    }

    /* 마우스 올렸을 때 칸 하이라이트 */
    .fc .fc-timegrid-col:hover,
    .fc .fc-daygrid-day:hover {
        background-color: rgba(15, 23, 42, 0.04);
        cursor: pointer;
    }

    /* 드래그 선택 영역 스타일 */
    .fc .fc-highlight {
        background: rgba(15, 23, 42, 0.16) !important;
        border: 2px dashed #0f172a;
    }

    /* 오늘 날짜 배경 강조 */
    .fc .fc-day-today {
        background-color: #f8fafc !important;
    }

    /* =========================================================================
   3. 예약 불가능 시간대 확실한 명암 처리
   ========================================================================= */
    .fc .fc-non-business {
        background: repeating-linear-gradient( -45deg, #cbd5e1, #cbd5e1 8px, #b8c4d4 8px, #b8c4d4 16px ) !important;
        opacity: 0.92 !important;
        box-shadow: inset 0 0 8px rgba(15, 23, 42, 0.16);
        cursor: not-allowed !important;
    }

    /* 지난 날짜(과거) 흐림 및 음영 처리 */
    .fc .fc-day-past:not(.fc-day-today) {
        background-color: #f1f5f9 !important;
    }

    .fc .fc-day-past .fc-daygrid-day-number {
        color: #94a3b8;
    }

/* 예약된 이벤트 카드(칸) 스타일 (네이비 테마) */
.fc-event {
    background-color: #0f172a !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    z-index: 5;
}

    .fc-event:hover {
        background-color: #1e3a8a !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
    }

.fc-event-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.4;
}

/* FullCalendar 기본 시간 텍스트 숨김 (title의 시작시간+결제수단만 깔끔하게 출력) */
.fc-event-time {
    display: none !important;
}

/* =========================================================================
   4. 팝업 배경 어두워짐 방지 및 레이어 팝업 스타일
   ========================================================================= */
.b-modal {
    background-color: rgba(15, 23, 42, 0.35) !important;
    opacity: 1 !important;
    z-index: 9998 !important;
}

#res_popup {
    display: none;
    background-color: #ffffff !important;
    opacity: 1 !important;
    padding: 28px;
    border-radius: 14px;
    width: 420px;
    max-width: 92vw;
    border: 1px solid #cbd5e1;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.35);
    box-sizing: border-box;
    z-index: 10000 !important;
}

    #res_popup h3 {
        margin-top: 0;
        margin-bottom: 20px;
        border-bottom: 2px solid #0f172a;
        padding-bottom: 12px;
        font-size: 19px;
        color: #0f172a;
    }

.res_field {
    margin-bottom: 18px;
}

    .res_field label.field_title {
        display: block;
        font-weight: 700;
        margin-bottom: 7px;
        font-size: 13px;
        color: #0f172a;
    }

.res_period_text {
    background-color: #f1f5f9 !important;
    color: #0f172a;
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    word-break: keep-all;
}

.res_field input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .res_field input[type="text"]:focus {
        outline: none;
        border-color: #0f172a;
        box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.15);
    }

/* 결제 수단 라디오 버튼 그룹 */
.payment_group {
    display: flex;
    gap: 8px;
}

    .payment_group label {
        flex: 1;
        text-align: center;
        padding: 12px 4px;
        border: 1px solid #cbd5e1;
        border-radius: 6px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 700;
        color: #475569;
        background-color: #f8fafc !important;
        transition: all 0.2s;
        user-select: none;
    }

        .payment_group label:hover {
            border-color: #0f172a;
            color: #0f172a;
            background-color: #f1f5f9 !important;
        }

    .payment_group input[type="radio"] {
        display: none;
    }

    .payment_group label:has(input[type="radio"]:checked),
    .payment_group label.active {
        border-color: #0f172a;
        background-color: #0f172a !important;
        color: #ffffff !important;
        box-shadow: 0 3px 8px rgba(15, 23, 42, 0.25);
    }

/* 하단 버튼 그룹 */
.res_btns {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
}

    .res_btns button {
        padding: 12px 20px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 700;
        font-size: 14px;
        transition: background-color 0.2s, transform 0.15s;
    }

.btn_save {
    background-color: #0f172a !important;
    color: #ffffff !important;
}

    .btn_save:hover {
        background-color: #1e3a8a !important;
        transform: translateY(-1px);
    }

.btn_close {
    background-color: #64748b !important;
    color: #ffffff !important;
}

    .btn_close:hover {
        background-color: #475569 !important;
    }

/* =========================================================================
   5. [관리자 전용] 시간 조절 패널 (투명화 방지 + 불투명 단색 고정)
   ========================================================================= */
#admin_time_panel {
    max-width: 1320px;
    margin: 20px auto 12px;
    background-color: #ffffff !important;
    opacity: 1 !important;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.admin_panel_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background-color: #0f172a !important;
    color: #ffffff !important;
    font-size: 14px;
    gap: 10px;
}

    .admin_panel_header strong {
        color: #ffffff !important;
    }

.admin_header_btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn_toggle_panel {
    background-color: #1e293b !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

    .btn_toggle_panel:hover {
        background-color: #334155 !important;
    }

#admin_panel_body {
    padding: 24px;
    background-color: #f8fafc !important;
    opacity: 1 !important;
}

.admin_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.admin_item label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a !important;
    margin-bottom: 6px;
}

.admin_item input,
.admin_item select {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-size: 14px;
    box-sizing: border-box;
}

    .admin_item input:focus,
    .admin_item select:focus {
        outline: none;
        border-color: #0f172a;
        box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.15);
    }

.admin_days_row {
    margin-bottom: 18px;
    padding-top: 14px;
    border-top: 1px dashed #cbd5e1;
}

    .admin_days_row .row_title {
        display: block;
        font-size: 13px;
        font-weight: 700;
        color: #0f172a !important;
        margin-bottom: 10px;
    }

.day_checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .day_checkboxes label {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background-color: #ffffff !important;
        padding: 8px 14px;
        border: 1px solid #cbd5e1;
        border-radius: 6px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 600;
        color: #0f172a !important;
        transition: all 0.15s;
    }

        .day_checkboxes label:hover {
            border-color: #0f172a;
            background-color: #e2e8f0 !important;
        }

.admin_panel_footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #cbd5e1;
}

.status_preview {
    font-size: 13px;
    color: #334155 !important;
}

.btn_admin_save {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn_admin_save:hover {
        background-color: #1e3a8a !important;
    }

/* =========================================================================
   6. [관리자 전용] 예약 목록 확인 패널
   ========================================================================= */
#admin_list_panel {
    max-width: 1320px;
    margin: 0 auto 16px;
    background-color: #ffffff !important;
    opacity: 1 !important;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
}

.admin_list_toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background-color: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0;
}

.admin_filter_tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter_tab {
    background-color: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

    .filter_tab:hover {
        border-color: #0f172a;
        color: #0f172a !important;
    }

    .filter_tab.active {
        background-color: #0f172a !important;
        border-color: #0f172a;
        color: #ffffff !important;
    }

.admin_search_box input {
    width: 240px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    background-color: #ffffff !important;
    color: #0f172a !important;
    box-sizing: border-box;
}

    .admin_search_box input:focus {
        outline: none;
        border-color: #0f172a;
    }

.admin_table_wrap {
    width: 100%;
    overflow-x: auto;
    max-height: 360px;
    overflow-y: auto;
}

.admin_res_table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    text-align: center;
    font-size: 13.5px;
    background-color: #ffffff !important;
}

    .admin_res_table thead th {
        position: sticky;
        top: 0;
        background-color: #f1f5f9 !important;
        color: #0f172a !important;
        font-weight: 700;
        padding: 12px 10px;
        border-bottom: 2px solid #cbd5e1;
        z-index: 2;
    }

    .admin_res_table tbody td {
        padding: 12px 10px;
        border-bottom: 1px solid #e2e8f0;
        color: #334155;
        vertical-align: middle;
    }

    .admin_res_table tbody tr:hover {
        background-color: #f8fafc !important;
    }

.td_bold {
    font-weight: 700;
    color: #0f172a !important;
}

.td_time {
    font-weight: 700;
    color: #1e3a8a !important;
}

.td_muted {
    font-size: 12px;
    color: #64748b !important;
}

.td_empty {
    padding: 36px 10px !important;
    color: #64748b !important;
    font-size: 14px;
}

.tel_link {
    color: #0f172a;
    text-decoration: underline;
    font-weight: 600;
}

/* 상태 및 결제 배지 */
.badge_status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 700;
}

.badge_today {
    background-color: #0f172a;
    color: #ffffff;
}

.badge_upcoming {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge_past {
    background-color: #e2e8f0;
    color: #475569;
}

.badge_pay {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
}

/* 목록 내 취소 버튼 */
.btn_row_del {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    border: none;
    padding: 5px 11px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

    .btn_row_del:hover {
        background-color: #dc2626 !important;
    }

/* =========================================================================
   7. 모바일 반응형 연동 최적화 (768px 이하)
   ========================================================================= */
@media (max-width: 768px) {
    #calendar_wrap,
    #admin_time_panel {
        padding: 14px;
        margin: 10px 8px;
        border-radius: 10px;
    }

    #admin_list_panel {
        margin: 0 8px 12px;
        border-radius: 10px;
    }

    .admin_panel_header {
        padding: 12px 14px;
        font-size: 13px;
    }

    #admin_panel_body {
        padding: 14px;
    }

    .admin_list_toolbar {
        padding: 12px 14px;
    }

    .admin_search_box,
    .admin_search_box input {
        width: 100%;
    }

    .biz_notice {
        padding: 11px 13px;
        font-size: 12.5px;
    }

    .fc .fc-toolbar.fc-header-toolbar {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 14px !important;
    }

    .fc .fc-toolbar-title {
        font-size: 1.15rem !important;
    }

    .fc .fc-button-primary {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    .fc .fc-col-header-cell {
        font-size: 12px;
        padding: 8px 0 !important;
    }

    .fc .fc-timegrid-slot {
        height: 44px !important;
    }

    .fc .fc-timegrid-slot-label {
        font-size: 11px;
        padding-right: 4px !important;
    }

    .fc .fc-daygrid-day-frame {
        min-height: 75px !important;
    }

    .fc-event {
        font-size: 11px !important;
        padding: 2px 4px !important;
    }

    #res_popup {
        padding: 20px 18px;
        width: 94vw;
    }

        #res_popup h3 {
            font-size: 17px;
            margin-bottom: 15px;
        }

    .res_btns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

        .res_btns button {
            width: 100%;
            padding: 12px 0;
        }

    .btn_admin_save {
        width: 100%;
        padding: 12px;
    }
}
/* 관리자 예약 가능일 / 불가능일 지정 입력 컨트롤 */
#cfg_allowed_date_picker,
#cfg_allowed_dates,
#cfg_holiday_picker,
#cfg_holidays {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 9px 11px;
    font-size: 13.5px;
    box-sizing: border-box;
}

    #cfg_allowed_date_picker:focus,
    #cfg_allowed_dates:focus,
    #cfg_holiday_picker:focus,
    #cfg_holidays:focus {
        outline: none;
        border-color: #0f172a;
        box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.15);
    }
/* board.php에서 기본 제공하는 상단 타이틀 및 불필요한 게시판 요소 숨기기 */
.board_hlead,
.bo_fx,
.btn_bo_user,
#bo_sch {
    display: none !important;
}

/* 게시판 내용 감싸는 기본 패딩 초기화 (캘린더가 꽉 차게) */
#bo_v, #bo_list {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}