@charset "utf-8";

/* 게시판 목록 하단 검색 공통 */
#bo_list .bo_sch_wrap,
#bo_gall .bo_sch_wrap,
#bo_press_media .bo_sch_wrap {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    margin: 22px auto 0 !important;
    clear: both !important;
    z-index: auto !important;
}

#bo_list .bo_sch_bg,
#bo_gall .bo_sch_bg,
#bo_press_media .bo_sch_bg {
    display: none !important;
}

#bo_list .bo_sch,
#bo_gall .bo_sch,
#bo_press_media .bo_sch,
#bo_sch.cal_search,
#bo_sch:not(.cal_search) {
    display: block !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: min(100%, 720px) !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 auto 34px !important;
    padding: 14px !important;
    overflow: visible !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
    transform: none !important;
    text-align: left !important;
}

#bo_list .bo_sch h3,
#bo_gall .bo_sch h3,
#bo_press_media .bo_sch h3,
#bo_list .bo_sch legend,
#bo_gall .bo_sch legend,
#bo_press_media .bo_sch legend,
#bo_sch legend,
#bo_list .bo_sch .bo_sch_cls,
#bo_gall .bo_sch .bo_sch_cls,
#bo_press_media .bo_sch .bo_sch_cls {
    display: none !important;
}

#bo_list .bo_sch form,
#bo_gall .bo_sch form,
#bo_press_media .bo_sch form,
#bo_sch form {
    display: grid !important;
    grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 44px !important;
    gap: 8px !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

#bo_list .bo_sch .sch_bar,
#bo_gall .bo_sch .sch_bar,
#bo_press_media .bo_sch .sch_bar {
    display: grid !important;
    grid-column: 2 / 4 !important;
    grid-template-columns: minmax(0, 1fr) 44px !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

#bo_list .bo_sch select,
#bo_gall .bo_sch select,
#bo_press_media .bo_sch select,
#bo_sch select,
#bo_list .bo_sch .sch_input,
#bo_gall .bo_sch .sch_input,
#bo_press_media .bo_sch .sch_input,
#bo_sch .sch_input {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 12px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #111827 !important;
    font-size: 14px !important;
    line-height: 44px !important;
}

#bo_list .bo_sch .sch_btn,
#bo_gall .bo_sch .sch_btn,
#bo_press_media .bo_sch .sch_btn,
#bo_sch .sch_btn {
    position: static !important;
    float: none !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #111827 !important;
    color: #fff !important;
    font-size: 15px !important;
    cursor: pointer !important;
}

#bo_sch.cal_search form.kfaa-calendar-search-form {
    grid-template-columns: minmax(0, 140px) minmax(180px, 1fr) minmax(280px, .9fr) 44px !important;
}

#bo_sch.cal_search .cal_date_range {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: center !important;
}

#bo_sch.cal_search .cal_date_range label {
    color: #374151 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

#bo_sch.cal_search .cal_date_range span {
    color: #6b7280 !important;
    text-align: center !important;
}

#bo_sch.cal_search input[type="date"] {
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 10px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #111827 !important;
    font-size: 14px !important;
    line-height: 44px !important;
}

#bo_list_total {
    white-space: nowrap;
}

@media (max-width: 640px), (pointer: coarse) {
    #bo_list .bo_sch_wrap,
    #bo_gall .bo_sch_wrap,
    #bo_press_media .bo_sch_wrap {
        margin-top: 18px !important;
    }

    #bo_list_total,
    .press-total {
        float: none !important;
        clear: both !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        width: 100% !important;
        margin: 18px 0 10px !important;
        color: #4b5563 !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
        text-align: center !important;
    }

    #bo_list .bo_sch,
    #bo_gall .bo_sch,
    #bo_press_media .bo_sch,
    #bo_sch.cal_search,
    #bo_sch:not(.cal_search) {
        width: 100% !important;
        margin: 0 0 28px !important;
        padding: 14px !important;
    }

    #bo_list .bo_sch form,
    #bo_gall .bo_sch form,
    #bo_press_media .bo_sch form,
    #bo_sch form {
        grid-template-columns: minmax(0, 112px) minmax(0, 1fr) 42px !important;
    }

    #bo_list .bo_sch .sch_bar,
    #bo_gall .bo_sch .sch_bar,
    #bo_press_media .bo_sch .sch_bar {
        grid-template-columns: minmax(0, 1fr) 42px !important;
    }

    #bo_list .bo_sch select,
    #bo_gall .bo_sch select,
    #bo_press_media .bo_sch select,
    #bo_sch select,
    #bo_list .bo_sch .sch_input,
    #bo_gall .bo_sch .sch_input,
    #bo_press_media .bo_sch .sch_input,
    #bo_sch .sch_input,
    #bo_list .bo_sch .sch_btn,
    #bo_gall .bo_sch .sch_btn,
    #bo_press_media .bo_sch .sch_btn,
    #bo_sch .sch_btn {
        height: 42px !important;
        line-height: 42px !important;
    }

    #bo_list .bo_sch .sch_btn,
    #bo_gall .bo_sch .sch_btn,
    #bo_press_media .bo_sch .sch_btn,
    #bo_sch .sch_btn {
        width: 42px !important;
    }

    #bo_sch.cal_search form.kfaa-calendar-search-form {
        grid-template-columns: minmax(0, 112px) minmax(0, 1fr) 42px !important;
    }

    #bo_sch.cal_search .cal_date_range {
        grid-column: 1 / -1 !important;
        grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) !important;
    }

    #bo_sch.cal_search input[type="date"] {
        height: 42px !important;
        line-height: 42px !important;
    }
}

@media (max-width: 420px) {
    #bo_list .bo_sch form,
    #bo_gall .bo_sch form,
    #bo_press_media .bo_sch form,
    #bo_sch form {
        grid-template-columns: minmax(0, 1fr) 42px !important;
    }

    #bo_list .bo_sch select,
    #bo_gall .bo_sch select,
    #bo_press_media .bo_sch select,
    #bo_sch select {
        grid-column: 1 / -1 !important;
    }

    #bo_list .bo_sch .sch_bar,
    #bo_gall .bo_sch .sch_bar,
    #bo_press_media .bo_sch .sch_bar {
        grid-column: 1 / -1 !important;
    }

    #bo_sch.cal_search .cal_date_range {
        grid-template-columns: 1fr auto 1fr !important;
    }

    #bo_sch.cal_search .cal_date_range label {
        grid-column: 1 / -1 !important;
    }
}
