@charset "utf-8";
/* Element Reset */
.xm,
.xm table,
.xm input,
.xm textarea,
.xm select,
.xm button {
    font-family: 'Pretendard', Tahoma, Geneva, sans-serif; /* ★ Pretendard 우선 적용 */
    font-size: 14px; /* ★ 12px -> 14px 변경 */
    color: #333;
}
.xm button,
.xm input[type=submit],
.xm input[type=reset],
.xm input[type=button] {
    cursor: pointer;
    overflow: visible;
}
.xm img { border: 0; }
.xm p { line-height: 1.6; } /* ★ 줄간격 넓힘 */

/* Heading */
.xm .h1, 
.xm .h2, 
.xm .h3, 
.xm .h4 {
    position: relative;
    border-bottom-style: solid;
    border-bottom-color: transparent; /* ★ 기존 하단 선 제거 */
    zoom: 1;
    font-weight: 700;
    color: #222;
}
.xm .h1 { border-bottom-width: 0; font-size: 24px; margin-bottom: 20px; }
.xm .h2 { border-bottom-width: 0; font-size: 20px; }
.xm .h3 { border-bottom-width: 0; font-size: 18px; }
.xm .h4 { border-bottom-width: 0; font-size: 16px; }

/* Lined Tab Navigation (Modern Tuning) */
.xm .nav { padding: 0; margin: 0 0 25px 0; }
.xm .nav ul {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 2px solid #2c3e50; /* ★ 탭 하단 메인 컬러 선 */
    display: flex;
    flex-wrap: wrap;
    zoom: 1;
}
.xm .nav ul:after { content: ""; display: block; clear: both; }
.xm .nav li { float: left; margin-bottom: -2px; margin-right: 5px; } /* ★ 간격 띄움 */
.xm .nav li a {
    display: block; /* ★ float 대신 block 적용 */
    text-decoration: none;
    border: 1px solid transparent; 
    border-radius: 6px 6px 0 0; /* ★ 상단 둥글게 */
    background: #f8f9fa;
    color: #666;
    transition: 0.2s;
}
.xm .nav li a span {
    display: inline-block;
    padding: 10px 18px; /* ★ 클릭 영역 확대 */
    cursor: pointer;
    font-size: 14px;
}
.xm .nav li a:hover {
    color: #2c3e50;
    background: #eef2f5;
}
.xm .nav li.active a {
    border: 2px solid #2c3e50;
    border-bottom-color: #fff;
    margin-top: 0;
    background: #fff;
    color: #2c3e50;
}
.xm .nav li.active a span {
    padding-top: 10px; /* ★ 위치 보정 */
    font-weight: 600;
}

/* Form */
.xm .form { margin: 1em 0; padding: 0; }
.xm .form fieldset { margin: 0 0 2em 0; padding: 0; border: 0; }
.xm .form em { font-style: normal; color: #e74c3c; } /* ★ 빨간색 톤 다운 */
.xm .form label { margin-right: 1em; line-height: 1; vertical-align: middle; }
.xm .form input[type=checkbox]+label,
.xm .form input[type=radio]+label,
.xm .form input[type=file] { cursor: pointer; }
.xm .form ul {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 2px solid #2c3e50; /* ★ 폼 상단선 교체 */
    border-bottom: 1px solid #ddd;
    zoom: 1;
}
.xm .form li {
    list-style: none;
    border: 1px solid #eee;
    border-left: 0;
    border-right: 0;
    margin: -1px 0;
    padding: 15px 0; /* ★ 상하여백 확대 */
    vertical-align: top;
    zoom: 1;
}
.xm .form li:first-child { border-top: 0; }
.xm .form li>label:first-child { display: block; font-weight: 600; margin-bottom: 8px; color: #444; } /* ★ 라벨 분리 및 굵기 */
.xm .form li label em { font-weight: normal; }
.xm .form label.overlap { position: absolute; color: #aaa; padding-top: 4px; padding-left: 6px; }
.xm .form input[type=text],
.xm .form input[type=password],
.xm .form input[type=file],
.xm .form textarea {
    position: relative;
    width: 280px;
    margin: 2px 0;
    border: 1px solid #ddd; /* ★ 테두리 연하게 */
    border-radius: 4px; /* ★ 인풋 둥글게 */
    background: transparent;
    padding: 6px 8px; /* ★ 인풋 여백 확대 */
}
.xm .form input[type=text],
.xm .form input[type=password],
.xm .form input[type=file] {
    height: auto; 
    line-height: normal;
    vertical-align: middle;
}
.xm .form input[type=text]:focus,
.xm .form input[type=password]:focus,
.xm .form textarea:focus { border-color: #2c3e50; outline: none; } /* ★ 포커스 효과 */
.xm .form input[type=text].loading,
.xm .form input.loading[type=password] {
    padding-right: 24px;
    width: 260px;
    background: transparent url(../img/preLoader16.gif) no-repeat 265px center;
}
.xm .form input[type=checkbox],
.xm .form input[type=radio] { margin: 0; padding: 0; width: 15px; height: 15px; vertical-align: middle; }
.xm .form input[type=text][disabled=disabled],
.xm .form input[type=password][disabled=disabled],
.xm .form input[type=checkbox][disabled=disabled],
.xm .form input[type=radio][disabled=disabled],
.xm .form input[type=file][disabled=disabled],
.xm .form textarea[disabled=disabled],
.xm .form select[disabled=disabled] { background: #f5f5f5 !important; color: #999; }
.xm .form textarea { padding: 8px; vertical-align: top; width: 90%; }
.xm .form span.desc, 
.xm .form em.desc { line-height: 22px; vertical-align: middle; margin: 0 10px; color: #777; font-size: 13px; }
.xm .form p.desc { margin: .5em 0; line-height: 1.5; color: #777; font-size: 13px; }
.xm .form .q { font-weight: 600; margin: 0 0 5px 0; color: #222; }
.xm .form .a { margin: 0 0 15px 0; }
.xm .form .tgForm { margin-right: 1em; }
.xm .form .h1 + ul,
.xm .form .h2 + ul,
.xm .form .h3 + ul,
.xm .form .h4 + ul { border-top: 0; }

/* Table (Modern Tuning) */
.xm .table { margin: 1em 0; }
.xm .table table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    border-top: 2px solid #2c3e50 !important; /* ★ 표 상단선 강조 */
    border-bottom: 1px solid #ddd !important;
}
.xm .table caption { font-weight: bold; text-align: left; line-height: 22px; padding: 10px 0; color: #555; }
.xm .table caption:after { content: ""; display: block; clear: both; }
.xm .table caption a { font-weight: normal; }
.xm .table caption em { float: right; margin-left: 1em; }
.xm .table caption strong { color: #e74c3c; }
.xm .table caption .side { float: right; font-weight: normal; margin-left: 1em; }
.xm .table th {
    border: 0;
    border-bottom: 1px solid #ddd !important;
    padding: 14px 10px !important;
    vertical-align: middle;
    text-align: center; /* ★ 중앙 정렬 통일 */
    white-space: nowrap;
    background: #f8f9fa; /* ★ 헤더 배경색 */
    font-weight: 600;
    color: #444;
}
.xm .table td {
    border: 0;
    border-bottom: 1px solid #eee !important;
    padding: 14px 10px !important;
    vertical-align: middle;
    text-align: center; /* ★ 중앙 정렬 통일 */
    white-space: nowrap;
    color: #555;
}
.xm .table th.title,
.xm .table td.title,
.xm .table td.text { text-align: left; white-space: normal; } /* ★ 제목/내용만 좌측 정렬 */
.xm .table td.title a { font-weight: 500; color: #333; text-decoration: none; transition: 0.2s; display: inline-block;}
.xm .table td.title a:hover { color: #2c3e50; text-decoration: underline; }
.xm .table tfoot td { font-weight: bold; background: #f8f8f8; }
.xm .table.even tbody tr { transition: background-color 0.2s; }
.xm .table.even tbody tr:hover { background-color: #fcfcfc !important; } /* ★ 마우스 오버 효과 추가 */
.xm .table td>input[type=text] { margin: -1px 0 -3px 0 !important; vertical-align: middle; }
.xm .table img { vertical-align: middle; }
.xm .table em { font-style: normal; font-weight: normal; color: #e74c3c; }

/* Pagination (Modern Tuning) */
.xm .pagination {
    margin: 30px 0; /* ★ 여백 확대 */
    text-align: center;
    line-height: normal;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px; /* ★ 버튼 간격 */
}
.xm .pagination * { vertical-align: middle; }
.xm .pagination a,
.xm .pagination strong {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 5px;
    font-weight: 500;
    text-decoration: none;
    line-height: normal;
    color: #666 !important;
    border: 1px solid #eee;
    border-radius: 4px; /* ★ 둥글게 */
    background-color: #fff;
    transition: 0.2s;
}
.xm .pagination a:hover,
.xm .pagination a:active,
.xm .pagination a:focus {
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    margin: 0;
    color: #333 !important;
}
.xm .pagination strong {
    color: #fff !important;
    background-color: #2c3e50;
    border-color: #2c3e50;
    font-size: 14px; /* ★ 크기 통일 */
    font-weight: 600;
}
.xm .pagination .direction {
    font-weight: normal;
    white-space: nowrap;
    background-color: #f8f9fa;
    padding: 0 10px;
}
.xm .pagination .direction:hover,
.xm .pagination .direction:active,
.xm .pagination .direction:focus {
    border-color: #ddd;
    margin: 0;
    text-decoration: none;
}
.xm .pagination input { width: 40px; text-align: center; padding: 4px; border: 1px solid #ddd; border-radius: 4px;}
.xm .pagination button { overflow: visible; padding: 4px 10px; border: 1px solid #ddd; border-radius: 4px; background: #fff;}

/* Text Button (Buttons Modern Tuning) */
.xm input.text, 
.xm button.text {
    border: 1px solid #dcdcdc; /* ★ 테두리 추가 */
    border-radius: 4px; /* ★ 둥글게 */
    padding: 6px 14px; /* ★ 여백 추가 */
    margin: 0 4px 0 0;
    color: #555;
    background: #fff;
    text-decoration: none; /* ★ 밑줄 제거 */
    transition: 0.2s;
    font-weight: 500;
    font-size: 13px;
}
.xm input.text:hover, 
.xm button.text:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #333;
}
/* ★ 삭제 버튼을 위해 특별히 지정 (td 안의 버튼일 경우) */
.xm .table button.text:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

/* Agreement */
.xm .agreement { margin: 1em 0; }
.xm .agreement .text {
    height: 200px;
    overflow-y: auto;
    margin: 1em 0;
    padding: 15px;
    border: 1px solid #ddd; /* ★ 테두리 연하게 */
    border-radius: 4px;
    background: #fbfbfb;
    line-height: 1.6;
    font-size: 13px;
    color: #555;
}
.xm .agreement .confirm { margin: 1em 0; font-weight: 600; color: #222; }