/* /resources/css/pages/transit/counselList.css */

.counsel-section-wrap {
  max-width: 1490px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: #fff;
  padding-bottom: 40px;
  box-sizing: border-box;
}

/* 목록 상단 타이틀 */
.counsel-list-title {
  display: flex;
  align-items: center;
  gap: 8px;;
  margin-bottom: 30px;
}
.counsel-list-title h3 {
  font-size: 1.16rem;
  font-weight: 500;
  margin: 0;
}
.counsel-list-title img {
  width: 22px; height: 22px;
}

/* 페이지 내용 좌우로 들여쓰기(인덴트) */
.counsel-search-area,
.counsel-table-area {
  padding-left: 40px;
  padding-right: 40px;
  box-sizing: border-box;
}

/* 검색영역 */
.counsel-search-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
/* .counsel-list-select, #searchTerm {
  padding: 8px 12px;
  font-size: 1.03rem;
  border: 1px solid #348bee;
  border-radius: 6px;
}
.counsel-list-select {
  width: 20%;
  min-width: 100px;
  max-width: 200px;
}
#searchTerm {
  width: 30%;
  min-width: 120px;
}
#searchTerm::placeholder {          최신 표준
  color: #b1b7c5;                   원하는 색상으로 지정
  opacity: 1;                       투명도(기본 1)
} */

.counsel-list-select {
  height: 42px;
  font-size: 1.04rem;
  border: 1px solid #348bee;
  border-radius: 5px;
  color: #343a40;
  padding: 0 11px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.17s, background 0.17s;
  box-sizing: border-box;
}
.counsel-list-select {
  width: 15%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  letter-spacing: 0.13em;
  background: #fff url('/resources/images/comm/icon/arrow_down.svg') no-repeat right 10px center/28px 28px;
  cursor: pointer;
}
.counsel-list-select:focus,
.counsel-list-select:hover {
  border-color: #43a2f7;
  background: #eef7fe;
  box-shadow: 0 0 0 2px #bae2ff;
  background: #eaf2fe url('/resources/images/comm/icon/arrow_down.svg') no-repeat right 8px center/30px 30px;
}

.counsel-list-select::-ms-expand { display: none; }
.counsel-search-input {
	width: 20%;
	height: 42px; /* 높이는 유지 */
	padding: 8px 10px; /* 테마와 통일 */
	font-size: 1.04rem; /* 테마와 통일 */
	border-radius: 5px; /* 테마 적용: 둥글기 5px */
	border: 1px solid #348bee; /* 테마 적용: 연한 하늘색 테두리 */
	background: #fafdff; /* 테마 적용: 아주 연한 푸른빛 흰색 */
	box-sizing: border-box;
	font-weight: 300;
	letter-spacing: 0.13rem;
	font-family: inherit;
	transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.counsel-search-input:hover,
.counsel-search-input:focus {
	outline: none;
	border-color: #2196f3; /* 테마 적용: 선명한 파란색 */
	background-color: #eef7fd; /* 테마 적용: 연한 하늘색 배경 */
	box-shadow: 0 0 0 2px #bae2ff; /* 테마 적용: 파란색 광선 효과 */
}
.counsel-search-input::placeholder {          /* 최신 표준 */
  color: #b1b7c5;                   /* 원하는 색상으로 지정 */
  opacity: 1;                       /* 투명도(기본 1) */
} 

/* .hidden {
	display: none !important;
} */

.serch-btn-wrap {
  display: flex;
  flex: 5 1 0;
  align-items: center;
  justify-content: right;
  min-width: 110px;
}
.btn-counsel-list {
  height: 38px;
  font-size: 1.05rem;
  font-weight: 400;
  display: flex;
}
.btn-counsel-list:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-counsel-list:focus {
  border: 1px solid #b76fff;
 /*  border-color: #9326ff; */
  box-shadow: 0 0 0 2px #c78eff;
}
.btn-counsel-list img {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  align-self: flex-end;
}
.btn-counsel-list:hover {
  background: #509dfc;
}

/* 상세보기 비활성 상태 */
.btn-detail.is-disabled {
  pointer-events: none;   /* 마우스 클릭 막기 */
  opacity: .5;
  outline: none;
  box-shadow: none;
  cursor: not-allowed;
  text-decoration: none;
}
/* 키보드 포커스도 시각적으로 비활성 */
.btn-detail.is-disabled:focus {
  outline: none;
}

/* 테이블 */
.counsel-table-area {
  overflow-x: auto;
}
.counsel-list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.03rem;
}
/* 상담번호, 신청인, 상담분류, 문의유형, 진행상태, 상태보기: 100px */
.counsel-list-table th.counsel-th-request-no,
.counsel-list-table td.counsel-td-request-no,
.counsel-list-table th.counsel-th-applicant-name,
.counsel-list-table td.counsel-td-applicant-name,
.counsel-list-table th.counsel-th-member-div-name,
.counsel-list-table td.counsel-td-member-div-name,
.counsel-list-table th.counsel-th-clasfi-name,
.counsel-list-table td.counsel-td-clasfi-name,
.counsel-list-table th.counsel-th-request-type-name,
.counsel-list-table td.counsel-td-request-type-name,
.counsel-list-table th.counsel-th-status-name,
.counsel-list-table td.counsel-td-status-name {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 신청일자, 답변일자: 130px */
.counsel-list-table th.counsel-th-request-ymd,
.counsel-list-table td.counsel-td-request-ymd,
.counsel-list-table th.counsel-th-answer-ymd,
.counsel-list-table td.counsel-td-answer-ymd {
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    box-sizing: border-box;
}

/* 연락처: 110px */
.counsel-list-table th.counsel-th-detail,
.counsel-list-table td.counsel-td-detail {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
    box-sizing: border-box;
}

/* 상담내용: 남는 공간 모두(가변) */
.counsel-list-table th.counsel-th-content,
.counsel-list-table td.counsel-td-content {
    /* width 생략 또는 100% */
    min-width: 160px;
    max-width: none;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

.counsel-list-table th {
  border: 1px solid #0799F4;
  padding: 10px 6px;
  font-weight: 300;
  text-align: center;
  white-space: nowrap;
}
.counsel-list-table th {
  background: #e0effc;
  font-weight: 400;
  color: #222;
}
.counsel-list-table td {
  border: 1px solid #0799F4;
  padding: 6px 6px;
  font-weight: 300;
  text-align: center;
  white-space: nowrap;
}
.counsel-list-table td.counsel-td-content {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.counsel-tbody-row:hover {
  background: #eaf2fe;
  cursor: pointer;
}
.counsel-td-detail .btn-detail {
  background: #fff;
  /* border: 1px solid #2755c7; */
  border: 1px solid #aebfea;
  color: #22b4f2;
  padding: 4px 12px;
  font-size: 0.97rem;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
  box-shadow: 0 2px 5px #8a50f7;
  text-decoration: none;
}
.counsel-td-detail .btn-detail:hover,
.counsel-td-detail .btn-detail:focus {
  background: #0b88c0;
  color: #fff;
  outline: none;
  box-shadow: none;
}
.custom-tooltip {
	position: absolute;
    background: #8a50f7;
    color: #ffffff;
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
    pointer-events: none;
    white-space: pre-line;
    font-weight: 300;
    line-height: 1.5;
}


/* 페이지네이션 컨테이너 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 32px 0 24px 0;
}

/* 숫자(전체 원형) */
.pagination .page-num {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #2196f3;
  color: #2196f3;
  font-weight: 400;
  font-size: 1.03rem;
  background: #fff;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, font-weight 0.13s;
  margin: 0 1.5px;
  box-sizing: border-box;
  cursor: pointer;
}

/* 선택 페이지만 진한 배경+흰색+굵은 폰트 */
.pagination .page-num.active {
  background: #2196f3;
  color: #fff;
  font-weight: 700;
  border-color: #2196f3;
  z-index: 2;
}

/* Hover 효과 */
.pagination .page-num:not(.active):hover {
  background: #f2f9fd;
  color: #1976d2;
}

/* 이전/다음 버튼 */
.pagination .page-btn {
 /*  min-width: 62px; */
  padding: 0 16px;
  height: 36px;
  border-radius: 20px;
  background: #dfc8f6;
  color: #33376b;
  font-weight: 400;
  font-size: 1.03rem;
  border: 1.5px solid #2196f3;
  outline: none;
  display: flex;
  align-items: center;
  /* gap: 4px; */
  cursor: pointer;
  text-decoration: none;
  transition: background 0.14s, color 0.13s;
}
.pagination .page-btn:hover,
.pagination .page-btn:focus {
  background: #bb88ef;
  color: #fff;
}

.page-btn .icon-double-arrow {
  font-size: 1.55em;      /* 원하는 크기로 조절 (1.3em~2em도 가능) */
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  /* margin: 0 4px; */
  color: #33376b;         /* 필요시 색상 맞춤 */
  font-weight: 400;
}

    /* ===== 상담 결과 메시지 (전역 결과 박스) ===== */
	#counselListResultMsg {
	  /* margin-top: 15px; */
	  padding: 10px 15px;
	  font-size: 1.03rem;
	  /* border: 1.5px solid #2196f3; */
	  border-radius: 8px;
	  min-height: 20px;
	  text-align: center;
	  transition: all .2s;
	  word-break: keep-all;
	  /* display: none; */ /* 기본 숨김 */
	}
	
	/* 상태별 */
	#counselListResultMsg.success { 
	  display:block; background:#e8f9ee; color:#249859; border:1px solid #74e1ae; 
	}
	#counselListResultMsg.error { 
	  display:block; background:#fff6f6; color:#db2828; border:1px solid #ffbdbd; 
	}
	#counselListResultMsg.info { 
	  display:block; background:#f4f6f8; color:#5f6c7b; border:1px solid #d9e1e8; 
	}
	
	/* 키보드 포커스 스타일 통일 */
	.reserve-result-msg:focus,
	.reserve-result-msg:focus-visible,
	#counselListResultMsg:focus,
	#counselListResultMsg:focus-visible {
	  outline: 1px solid currentColor;
	  outline-offset: 1px;
	}