@charset "utf-8";
/* [page: agents] 방문·전화권유판매원 신원확인 시스템
   - 단일 마크업 / PC: 표, 모바일(<=767px): 카드 */

.fps_wrap {
    /* 사이트 기본 팔레트 : 레드 #EE3A23 (--MZ-Main) / 다크 #2c3139 (히어로·표 헤더) */
    --ink: #1c1f26;
    --brand: #EE3A23;       /* 기본색 (--MZ-Main) */
    --brand-hover: #d62f1a;
    --brand-on: #fff;       /* 기본색 위에 얹는 글자색 */
    --brand-ink: #b52616;   /* 배지 글자 : 흰 배경 대비 확보용 어두운 변형 */
    --brand-light: #ff6a52; /* 다크 히어로 위 강조색 */
    --dark: #2c3139;        /* 히어로·표 헤더 */
    --soft: #f6f7f9;
    --line: #e9ebef;
    --muted: #8b929f;
    --text: #3a3f4a;

    /* .container-inner 가 이미 padding-top:150px 로 fixed 헤더를 비켜준다 */
    width: 100%;
    background: var(--soft);
    color: var(--text);
}
.fps_wrap * { box-sizing: border-box; }

/* ===== 히어로 ===== */
.fps_header {
    position: relative;
    overflow: hidden;
    padding: 54px 20px 50px;
    background: linear-gradient(135deg, #2c3139 0%, #1a1d23 100%);
    color: #fff;
    text-align: center;
}
.fps_header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: 8%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 106, 82, .18), transparent 62%);
    pointer-events: none;
}
.fps_header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-light), transparent);
}
.fps_header_inner { position: relative; }
.fps_eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #cfd3da;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
}
.fps_eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(255, 106, 82, .22);
}
.fps_title {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.34;
    letter-spacing: -.02em;
    color: #fff;
}
.fps_title strong { color: var(--brand-light); font-weight: 800; }
.fps_subtitle { margin: 14px 0 0; font-size: 15px; color: #aeb4bf; line-height: 1.5; }

/* ===== 본문 ===== */
.fps_body { max-width: 1200px; margin: 0 auto; padding: 34px 20px 70px; }

/* ===== 금융사 필터 ===== */
.fps_tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.fps_tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: #4b5160;
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}
.fps_tab:hover { border-color: #d5d8de; color: var(--ink); }
.fps_tab.on {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--brand-on);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(238, 58, 35, .30);
}

/* ===== 결과 요약 ===== */
.fps_resultbar {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 28px 2px 14px;
    font-size: 14px;
    color: var(--muted);
}
.fps_resultbar strong { font-size: 18px; font-weight: 800; color: var(--ink); }

/* ===== 목록 (PC : 표) ===== */
.fps_list {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(20, 24, 33, .05);
}

.fps_thead,
.fps_row {
    display: grid;
    grid-template-columns: 1.3fr 1.1fr 1.3fr 1.3fr .9fr .9fr;
    align-items: center;
    column-gap: 12px;
    padding: 0 28px;
}
.fps_thead { height: 58px; background: var(--dark); }
/* .fps_c_name 등 셀 색상 규칙과 같은 특정도라 뒤에서 덮이지 않도록 한 단계 더 감싼다 */
.fps_thead .fps_th { font-size: 14px; font-weight: 700; color: #fff; }
.fps_thead .fps_th.fps_c_status,
.fps_thead .fps_th.fps_c_cert { text-align: center; }

.fps_row { min-height: 74px; border-bottom: 1px solid #f0f1f4; }
.fps_row:last-child { border-bottom: 0; }
.fps_row:hover { background: #fcfcfd; }

/* PC 에선 rowhead 가 그리드에 녹아들어 셀처럼 배치된다 */
.fps_rowhead { display: contents; }

.fps_c_capital { order: 1; }
.fps_c_name    { order: 2; }
.fps_c_phone   { order: 3; }
.fps_c_regno   { order: 4; }
.fps_c_status  { order: 5; text-align: center; }
.fps_c_cert    { order: 6; text-align: center; }

.fps_cell { font-size: 15px; color: var(--text); word-break: break-all; }
.fps_cell[data-label]::before { display: none; }
.fps_c_capital { color: #6b7280; }
.fps_c_name { font-weight: 700; color: var(--ink); }

.fps_badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--brand-ink);
    background: rgba(238, 58, 35, .09);
    border: 1px solid rgba(238, 58, 35, .28);
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
.fps_badge::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand);
}

.fps_cert_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}
.fps_cert_btn:hover { background: var(--soft); border-color: #d5d8de; }
.fps_cert_btn svg { color: #6b7280; }
.fps_cert_txt_m { display: none; }
.fps_cert_none { color: #c4c8d0; font-size: 14px; }

.fps_empty { padding: 70px 0; margin: 0; text-align: center; color: var(--muted); }

/* ===== 페이지네이션 ===== */
.fps_pg_wrap { margin: 34px 0 0; text-align: center; }
.fps_pg { display: inline-flex; gap: 8px; }
.fps_pg_page,
.fps_pg_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #5a606e;
    background: #fff;
    border: 1px solid var(--line);
}
.fps_pg_page:hover { border-color: #d5d8de; color: var(--ink); }
.fps_pg_current { color: var(--brand-on); background: var(--brand); border-color: var(--brand); font-weight: 800; }

/* ===== 검색 ===== */
.fps_search { margin: 26px auto 0; max-width: 620px; }
.fps_search_inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 20px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 999px;
}
.fps_search_inner:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(238, 58, 35, .16); }
.fps_search_ico { flex: 0 0 auto; color: #a4a9b3; display: inline-flex; }
.fps_search_inp {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    padding: 0 6px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
    color: var(--ink);
    font-family: inherit;
}
.fps_search_inp::placeholder { color: #a9aeb8; }
.fps_search_btn {
    flex: 0 0 auto;
    height: 46px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: var(--brand-on);
    font-size: 14.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}
.fps_search_btn:hover { background: var(--brand-hover); }

/* ===== 등록증 팝업 ===== */
.fps_modal { display: none; position: fixed; inset: 0; z-index: 10000; }
.fps_modal.on { display: block; }
.fps_modal_dim { position: absolute; inset: 0; background: rgba(15, 18, 24, .55); backdrop-filter: blur(3px); }
.fps_modal_box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 560px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.fps_modal_head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 52px;
    background: #fff;
}
.fps_modal_title { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink); }
.fps_modal_close {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #555;
    cursor: pointer;
}
.fps_modal_close:hover { background: var(--soft); }
.fps_modal_body { padding: 0 24px 28px; overflow: auto; text-align: center; background: #fff; }
.fps_modal_img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.fps_modal_noimg { padding: 50px 0; color: var(--muted); }

/* =========================================================
   태블릿 이하 : 표 -> 카드
   (6칸 표는 1024px 아래에서 눌리므로 카드로 전환한다)
   ========================================================= */
@media all and (max-width: 1024px) {
    .fps_header { padding: 34px 18px 30px; }
    .fps_eyebrow { font-size: 11.5px; margin-bottom: 13px; padding: 5px 12px; }
    .fps_title { font-size: 20px; }
    .fps_title strong { display: block; }
    .fps_subtitle { margin-top: 11px; font-size: 13px; }

    .fps_body { padding: 18px 14px 48px; }

    /* 필터 : 가로 스크롤 */
    .fps_tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .fps_tabs::-webkit-scrollbar { display: none; }
    .fps_tab { height: 40px; padding: 0 16px; font-size: 13.5px; }

    .fps_resultbar { margin: 16px 2px 12px; font-size: 13px; }
    .fps_resultbar strong { font-size: 15px; }

    /* 목록 컨테이너는 껍데기만, 카드가 실제 박스 */
    .fps_list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        background: transparent;
        border-radius: 0;
        overflow: visible;
        box-shadow: none;
    }
    .fps_thead { display: none; }

    .fps_row {
        display: block;
        position: relative;
        overflow: hidden;
        min-height: 0;
        padding: 16px;
        background: #fff;
        border: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: 0 3px 12px rgba(20, 24, 33, .05);
    }
    .fps_row:hover { background: #fff; }
    .fps_row::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--brand);
    }

    .fps_rowhead {
        display: flex;
        align-items: center;
        gap: 10px;
        padding-bottom: 13px;
        margin-bottom: 13px;
        border-bottom: 1px solid #f0f1f4;
    }
    .fps_c_name { flex: 1; font-size: 17px; font-weight: 800; }
    .fps_c_status { flex: 0 0 auto; text-align: right; }

    .fps_cell[data-label] { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; }
    .fps_cell[data-label]::before {
        content: attr(data-label);
        display: block;
        flex: 0 0 60px;
        font-size: 12.5px;
        color: var(--muted);
        padding-top: 1px;
    }
    .fps_cell[data-label] .val { flex: 1; font-size: 14px; line-height: 1.5; }

    .fps_c_cert { text-align: left; }
    .fps_cert_btn {
        display: flex;
        width: 100%;
        margin-top: 13px;
        height: 42px;
        background: var(--soft);
    }
    .fps_cert_txt { display: none; }
    .fps_cert_txt_m { display: inline; }

    .fps_empty {
        padding: 56px 0;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
    }

    .fps_pg_wrap { margin: 26px 0 4px; }
    .fps_pg { gap: 5px; }
    .fps_pg_page, .fps_pg_current { min-width: 36px; height: 36px; padding: 0 9px; border-radius: 9px; font-size: 14px; }

    .fps_search { margin-top: 22px; }
    .fps_search_inner { padding: 5px 6px 5px 16px; }
    .fps_search_inp { height: 42px; font-size: 14px; }
    .fps_search_btn { height: 42px; padding: 0 18px; font-size: 13.5px; }

    .fps_modal_box { max-width: 460px; }
    .fps_modal_head { padding: 15px 46px; }
    .fps_modal_title { font-size: 15px; }
    .fps_modal_body { padding: 0 16px 20px; }
}

/* =========================================================
   태블릿 : 카드는 쓰되 폰만큼 좁히지는 않는다
   ========================================================= */
@media all and (min-width: 768px) and (max-width: 1024px) {
    .fps_header { padding: 44px 20px 40px; }
    .fps_title { font-size: 26px; }
    .fps_title strong { display: inline; }
    .fps_subtitle { font-size: 14px; }
    .fps_body { padding: 24px 20px 56px; }
    .fps_tabs { flex-wrap: wrap; overflow: visible; }
    .fps_search { max-width: 560px; }
}
