/* ============================================
   통화 로그 관리 (call_log.css)
   ============================================ */

/* ---- 검색 필터 영역 ---- */
.cl_filter_wrap {
    background: #fff;
    border: 1px solid #E9ECF0;
    border-radius: 5px;
    padding: 12px 16px;
    margin-bottom: 10px;
    clear: both;
}

.cl_filter_row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cl_filter_row+.cl_filter_row {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #F0F1F3;
}

.cl_filter_item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cl_filter_item label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    min-width: 55px;
}

.cl_filter_item select,
.cl_filter_item .cl_select {
    height: 32px;
    padding: 0 8px;
    border: 1px solid #E9ECF0;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    background: #fff url(/image/web/select_arrow.svg) no-repeat 95% 55%/18px auto;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 28px;
    min-width: 90px;
}

.cl_filter_item input[type="text"] {
    height: 32px;
    padding: 0 10px;
    border: 1px solid #E9ECF0;
    border-radius: 4px;
    font-size: 13px;
    width: 140px;
}

.cl_filter_item input[type="text"]::placeholder {
    color: #B5BDC4;
}

/* 날짜 필터 */
.cl_date_item input[type="date"] {
    height: 32px;
    padding: 0 8px;
    border: 1px solid #E9ECF0;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
}

.cl_date_sep {
    color: #888;
    font-size: 13px;
    margin: 0 2px;
}

/* 날짜 단축 버튼 */
.cl_quick_btns {
    display: flex;
    gap: 4px;
}

.cl_quick_btns button {
    height: 30px;
    padding: 0 10px;
    border: 1px solid #D5D8DC;
    border-radius: 4px;
    background: #FAFBFC;
    color: #555;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.cl_quick_btns button:hover {
    background: #3985EA;
    color: #fff;
    border-color: #3985EA;
}

/* 조회 버튼 */
.cl_search_btn {
    height: 32px;
    padding: 0 20px;
    background: #3985EA;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    margin-left: auto;
}

.cl_search_btn:hover {
    background: #2D6CC0;
}

/* ---- 통계 요약 바 ---- */
.cl_stats_bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F7F9FC;
    border: 1px solid #E9ECF0;
    border-radius: 5px;
    padding: 10px 16px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #555;
    flex-wrap: wrap;
}

.cl_stats_bar strong {
    color: #3985EA;
    font-weight: 700;
}

.cl_stats_sep {
    color: #D5D8DC;
}

.cl_stats_detail {
    font-size: 12px;
    color: #888;
}

.cl_stats_detail strong {
    color: #333;
    font-weight: 600;
}

/* ---- ag-Grid 영역 ---- */
.cl_grid_box {
    width: 100%;
    height: calc(100% - 230px);
    min-height: 300px;
    background: #fff;
    border: solid 1px #E9ECF0;
    border-radius: 5px;
    overflow: hidden;
}

/* ---- 메모 팝업 ---- */
.cl_memo_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cl_memo_popup {
    background: #fff;
    border-radius: 8px;
    width: 480px;
    max-width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.cl_memo_header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #E9ECF0;
}

.cl_memo_header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.cl_memo_record {
    font-size: 12px;
    color: #888;
}

.cl_memo_close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.cl_memo_close:hover {
    color: #333;
}

.cl_memo_body {
    padding: 16px 20px;
}

.cl_memo_body textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E9ECF0;
    border-radius: 5px;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
    box-sizing: border-box;
}

.cl_memo_body textarea:focus {
    border-color: #3985EA;
    outline: none;
    box-shadow: 0 0 0 2px rgba(57, 133, 234, 0.12);
}

.cl_memo_footer {
    display: flex;
    gap: 8px;
    padding: 12px 20px 16px;
    justify-content: flex-end;
}

.cl_memo_save_btn {
    height: 34px;
    padding: 0 20px;
    border: none;
    border-radius: 5px;
    background: #3985EA;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.cl_memo_save_btn:hover {
    background: #2D6CC0;
}

.cl_memo_cancel_btn {
    height: 34px;
    padding: 0 16px;
    border: 1px solid #E9ECF0;
    border-radius: 5px;
    background: #fff;
    color: #666;
    font-size: 13px;
    cursor: pointer;
}

.cl_memo_cancel_btn:hover {
    background: #F7F8FA;
}

/* ---- 그리드 내 버튼/뱃지 ---- */
.cl_play_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #3985EA;
    border-radius: 50%;
    background: #fff;
    color: #3985EA;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
}

.cl_play_btn:hover {
    background: #3985EA;
    color: #fff;
}

.cl_incall_badge {
    display: inline-block;
    padding: 1px 6px;
    margin: 1px 2px;
    background: #EEF3FB;
    color: #3366AA;
    border-radius: 3px;
    font-size: 11px;
    white-space: nowrap;
}

/* ---- 반응형 ---- */
@media screen and (max-width: 1500px) {
    .cl_filter_row {
        gap: 8px;
    }

    .cl_filter_item label {
        min-width: 45px;
        font-size: 12px;
    }

    .cl_filter_item select,
    .cl_filter_item .cl_select {
        min-width: 80px;
        font-size: 12px;
    }

    .cl_filter_item input[type="text"] {
        width: 120px;
        font-size: 12px;
    }

    .cl_quick_btns button {
        padding: 0 7px;
        font-size: 11px;
    }
}