@charset "utf-8";
/* ==========================================================================
   티엘에스씨 고객접수 프로그램 - 공통 스타일
   프론트/관리자 공용. 모든 마크업은 .tlsc-app 안에 들어갑니다.
   ========================================================================== */

.tlsc-app {
	font-size: 13px;
	color: #333;
	line-height: 1.5;
	letter-spacing: -0.02em;
	padding-bottom: 40px;
}
.tlsc-app * { box-sizing: border-box; }
.tlsc-app a { color: #333; text-decoration: none; }
.tlsc-app a:hover { color: #1e56ac; }

/* 폼 요소 ---------------------------------------------------------------- */
.tlsc-app select,
.tlsc-app input[type=text],
.tlsc-app input[type=password],
.tlsc-app input[type=number],
.tlsc-app input[type=date],
.tlsc-app input[type=file],
.tlsc-app textarea {
	height: 26px;
	padding: 2px 4px;
	border: 1px solid #b7b7b7;
	background: #fff;
	font-size: 12px;
	color: #333;
	vertical-align: middle;
	border-radius: 0;
	max-width: 100%;
}
.tlsc-app textarea { height: auto; padding: 6px; line-height: 1.6; width: 100%; }
.tlsc-app select { padding-right: 2px; }
.tlsc-app input[readonly] { background: #f4f4f4; }
.tlsc-app input[type=checkbox],
.tlsc-app input[type=radio] { vertical-align: middle; margin: 0 3px 0 0; }
.tlsc-app label { margin: 0 10px 0 0; font-weight: normal; vertical-align: middle; cursor: pointer; }

/* 버튼 ------------------------------------------------------------------- */
.tlsc-btn {
	display: inline-block;
	height: 26px;
	padding: 0 10px;
	border: 1px solid #b7b7b7;
	background: linear-gradient(#fff, #ededed);
	color: #333 !important;
	font-size: 12px;
	line-height: 24px;
	white-space: nowrap;
	cursor: pointer;
	vertical-align: middle;
}
.tlsc-btn:hover { background: linear-gradient(#fff, #e0e0e0); }
.tlsc-btn i { margin-right: 3px; }
.tlsc-btn-blue { border-color: #1a4b96; background: #1e56ac; color: #fff !important; }
.tlsc-btn-blue:hover { background: #16418a; }
.tlsc-btn-red { border-color: #c22b3f; background: #e3344b; color: #fff !important; }
.tlsc-btn-red:hover { background: #c22b3f; }
.tlsc-btn-lg { height: 34px; padding: 0 22px; font-size: 14px; line-height: 32px; font-weight: 700; }

/* ==========================================================================
   검색 영역
   ========================================================================== */
.tlsc-search {
	border: 1px solid #c9c9c9;
	background: #fff;
	padding: 6px 8px;
	margin-bottom: 4px;
}
.tlsc-search + .tlsc-search { margin-bottom: 8px; }
.tlsc-search-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
}
.tlsc-search-row .tlsc-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.tlsc-search-row .sep { padding: 0 2px; color: #888; }

/* ==========================================================================
   목록 테이블
   ========================================================================== */
.tlsc-list-wrap { overflow-x: auto; }
table.tlsc-list {
	width: 100%;
	border-collapse: collapse;
	border-top: 1px solid #b0b0b0;
	background: #fff;
}
table.tlsc-list th,
table.tlsc-list td {
	border-right: 1px solid #d9d9d9;
	border-bottom: 1px solid #d9d9d9;
	padding: 5px 4px;
	font-size: 12px;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
}
table.tlsc-list th:first-child,
table.tlsc-list td:first-child { border-left: 1px solid #d9d9d9; }
table.tlsc-list thead th {
	background: #f2f2f2;
	font-weight: 700;
	color: #222;
	border-bottom: 1px solid #b0b0b0;
}
table.tlsc-list tbody tr:hover td { background: #f7fafd; }
table.tlsc-list td.left { text-align: left; }
table.tlsc-list td.num { text-align: right; }
table.tlsc-list td.empty {
	padding: 30px 0;
	color: #777;
	border-left: 1px solid #d9d9d9;
}
table.tlsc-list td.ellipsis {
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
}
table.tlsc-list a.subject { color: #1a4b96; }
table.tlsc-list a.subject:hover { text-decoration: underline; }

.tlsc-state { display: inline-block; padding: 1px 6px; border-radius: 2px; font-size: 11px; }
.tlsc-state-0 { background: #eee; color: #555; }
.tlsc-state-1 { background: #e8f0fb; color: #1a4b96; }
.tlsc-state-2 { background: #e6f6ea; color: #1c7a3a; }
.tlsc-state-3 { background: #fdeceb; color: #c22b3f; }

.tlsc-list-foot {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 0;
}

/* 페이징 ----------------------------------------------------------------- */
.tlsc-paging { text-align: center; padding: 16px 0 4px; }
.tlsc-paging a,
.tlsc-paging strong {
	display: inline-block;
	min-width: 28px;
	height: 26px;
	padding: 0 6px;
	margin: 0 1px;
	border: 1px solid #d0d0d0;
	background: #fff;
	line-height: 24px;
	font-size: 12px;
	color: #555;
}
.tlsc-paging strong { background: #eee; border-color: #b7b7b7; color: #222; font-weight: 700; }
.tlsc-total {
	display: inline-block;
	padding: 4px 14px;
	border: 1px solid #d0d0d0;
	background: #f4f4f4;
	font-size: 13px;
	color: #333;
}
.tlsc-total-wrap { text-align: center; padding: 16px 0; }

/* ==========================================================================
   등록/수정 폼
   ========================================================================== */
.tlsc-form { margin-bottom: 6px; }
.tlsc-form-title {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 14px 0 4px;
	font-size: 14px;
	font-weight: 700;
	color: #222;
}
.tlsc-form-title:first-child { margin-top: 0; }
.tlsc-form-title .chk { color: #e3344b; font-size: 14px; font-weight: 700; }

table.tlsc-write {
	width: 100%;
	border-collapse: collapse;
	border-top: 1px solid #b0b0b0;
	background: #fff;
	table-layout: fixed;
}
table.tlsc-write th,
table.tlsc-write td {
	border-right: 1px solid #d9d9d9;
	border-bottom: 1px solid #d9d9d9;
	padding: 5px 8px;
	font-size: 12px;
	vertical-align: middle;
}
table.tlsc-write th:first-child,
table.tlsc-write td:first-child { border-left: 1px solid #d9d9d9; }
table.tlsc-write th {
	width: 130px;
	background: #f4f4f4;
	text-align: center;
	font-weight: 500;
	color: #333;
}
table.tlsc-write td { background: #fff; }
table.tlsc-write td .w-full { width: 100%; }
table.tlsc-write td .w-lg { width: 260px; }
table.tlsc-write td .w-md { width: 160px; }
table.tlsc-write td .w-sm { width: 110px; }
table.tlsc-write td .w-xs { width: 70px; }
table.tlsc-write td .hint { color: #d24; font-size: 11px; margin-left: 4px; }
table.tlsc-write td .unit { margin-left: 3px; color: #666; }
table.tlsc-write td .row-inline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
}

.tlsc-form-btn {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	padding: 14px 0 0;
}

.tlsc-required { color: #e3344b; }

/* 상품 반복 블록 --------------------------------------------------------- */
.tlsc-product-row .row-inline { gap: 4px; }
.tlsc-product-row .pd-del { margin-left: 4px; }

/* 첨부파일 --------------------------------------------------------------- */
.tlsc-file-current { display: inline-block; margin-left: 6px; font-size: 11px; color: #1a4b96; }
.tlsc-file-current .del { color: #c22b3f; margin-left: 4px; }

/* ==========================================================================
   모달 (부트스트랩에 의존하지 않는 자체 모달 - 프론트/관리자 공용)
   ========================================================================== */
.tlsc-modal {
	display: none;
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: 10000;
	background: rgba(0, 0, 0, .5);
	padding: 20px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.tlsc-modal.is-open { display: block; }

.tlsc-modal-box {
	position: relative;
	max-width: 760px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #b7b7b7;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
	font-size: 13px;
	color: #333;
	text-align: left;
}
.tlsc-modal-box.is-sm { max-width: 560px; }

.tlsc-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 16px;
	border-bottom: 1px solid #ddd;
	background: #f6f7f9;
}
.tlsc-modal-head h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #16368c;
}
.tlsc-modal-close {
	border: 0;
	background: transparent;
	font-size: 20px;
	line-height: 1;
	color: #777;
	cursor: pointer;
	padding: 0 4px;
}
.tlsc-modal-close:hover { color: #222; }

.tlsc-modal-body { padding: 16px; }
.tlsc-agree-box {
	height: 150px;
	overflow-y: auto;
	padding: 10px 12px;
	border: 1px solid #c9c9c9;
	background: #fff;
	font-size: 12px;
	line-height: 1.7;
	white-space: pre-wrap;
	word-break: break-all;
}
.tlsc-agree-full {
	max-height: 60vh;
	overflow-y: auto;
	font-size: 13px;
	line-height: 1.85;
	white-space: pre-wrap;
	word-break: break-all;
	color: #333;
}
.tlsc-agree-chk { margin-top: 8px; font-size: 12px; }

/* 약관 동의 + 약관보기 한 줄 */
.tlsc-agree-line {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid #c9c9c9;
	background: #fafbfc;
	font-size: 13px;
}
.tlsc-agree-line label { margin: 0; }

.tlsc-modal-sub {
	margin: 18px 0 6px;
	font-size: 15px;
	font-weight: 700;
	color: #16368c;
}
.tlsc-modal-foot {
	display: flex;
	justify-content: center;
	gap: 6px;
	padding: 14px 16px;
	border-top: 1px solid #eee;
}
.tlsc-modal-msg {
	display: none;
	margin: 0 16px 12px;
	padding: 8px 10px;
	border: 1px solid #f0c2c2;
	background: #fdeceb;
	color: #c22b3f;
	font-size: 12px;
}
.tlsc-modal-msg.is-ok {
	border-color: #bcdcc6;
	background: #eaf7ee;
	color: #1c7a3a;
}
.tlsc-btn-dark {
	border-color: #4a4136;
	background: #5b5044;
	color: #fff !important;
}
.tlsc-btn-dark:hover { background: #423a30; }

/* 폼 하단 약관 동의 줄 */
.tlsc-form-agree {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 6px;
	padding: 8px 0 0;
	font-size: 12px;
}
.tlsc-form-agree a { color: #1a4b96; text-decoration: underline; }

/* ==========================================================================
   로그인 화면
   ========================================================================== */
#tlsc_login_wide {
	background: linear-gradient(180deg, #f7f9fc 0%, #fff 340px);
	padding: 0 20px 50px;
}
#tlsc_login_wide .login-inner {
	max-width: 1200px;
	margin: 0 auto;
}

/* 상단 로고 */
#tlsc_login_wide .login-head { text-align: center; padding: 46px 0 26px; }
#tlsc_login_wide .login-logo {
	margin: 0;
	font-size: 30px;
	font-weight: 800;
	color: #16368c;
	letter-spacing: -0.035em;
	line-height: 1.2;
}
#tlsc_login_wide .login-logo a { color: inherit; text-decoration: none; }
#tlsc_login_wide .login-logo:after {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	margin: 14px auto 0;
	background: #1e56ac;
	border-radius: 2px;
}
#tlsc_login_wide .login-sub {
	margin: 14px 0 0;
	font-size: 13.5px;
	color: #8c939c;
	line-height: 1.7;
}

/* 배너 */
#tlsc_login_wide .login-visual {
	border: 1px solid #e6ebf3;
	border-radius: 12px;
	background: #eef3fa;
	overflow: hidden;
	box-shadow: 0 14px 34px rgba(22, 54, 140, .10);
}
#tlsc_login_wide .login-visual img {
	display: block;
	width: 100%;
	height: clamp(190px, 27vw, 330px);
	object-fit: cover;
	object-position: center 52%;
}

/* 로그인 카드 */
#tlsc_login_wide .login-card {
	margin-top: 20px;
	padding: 20px 26px;
	border: 1px solid #e2e6ee;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(22, 54, 140, .07);
}
#tlsc_login_wide .login-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 18px;
}
#tlsc_login_wide .login-bar .fld {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	color: #444;
}
#tlsc_login_wide .login-bar .fld label {
	margin: 0;
	font-weight: 700;
	color: #40474f;
	white-space: nowrap;
}
#tlsc_login_wide .login-bar .fld input {
	width: 178px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid #d7dce4;
	border-radius: 7px;
	background: #fbfcfe;
	font-size: 13px;
	transition: .15s;
}
#tlsc_login_wide .login-bar .fld input:focus {
	outline: 0;
	border-color: #1e56ac;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(30, 86, 172, .12);
}
#tlsc_login_wide .login-bar .save {
	margin: 0;
	font-size: 13px;
	color: #5a6270;
	white-space: nowrap;
}
#tlsc_login_wide .login-btns { display: flex; gap: 8px; }
#tlsc_login_wide .login-btns .tlsc-btn {
	height: 38px;
	line-height: 36px;
	padding: 0 22px;
	border-radius: 7px;
	font-size: 13.5px;
	font-weight: 700;
	transition: .15s;
}
#tlsc_login_wide .btn-login {
	border-color: #1a4b96;
	background: #1e56ac;
	color: #fff !important;
	min-width: 104px;
}
#tlsc_login_wide .btn-login:hover { background: #16418a; }
#tlsc_login_wide .btn-join {
	border-color: #c9d2e0;
	background: #fff;
	color: #1e56ac !important;
}
#tlsc_login_wide .btn-join:hover { background: #f2f6fc; border-color: #1e56ac; }

#tlsc_login_wide .login-ip {
	margin: 16px 0 0;
	text-align: center;
	font-size: 12px;
	color: #a9b0ba;
}
#tlsc_login_wide .login-ip strong { color: #e3344b; font-weight: 600; }

/* 가입신청 모달 표 */
table.tlsc-modal-table {
	width: 100%;
	border-collapse: collapse;
	border-top: 1px solid #b0b0b0;
}
table.tlsc-modal-table th,
table.tlsc-modal-table td {
	border-bottom: 1px solid #e2e2e2;
	padding: 6px 8px;
	font-size: 12px;
	vertical-align: middle;
}
table.tlsc-modal-table th {
	width: 100px;
	text-align: left;
	font-weight: 500;
	color: #444;
	background: #fafafa;
}
table.tlsc-modal-table td .row-inline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
}
table.tlsc-modal-table input[type=text],
table.tlsc-modal-table input[type=password] { width: 100%; }
table.tlsc-modal-table .w-half { width: 48%; }

/* ==========================================================================
   반응형
   ========================================================================== */
@media (max-width: 991px) {
	#tlsc_login_wide .login-bar { gap: 10px 12px; }
	#tlsc_login_wide .login-bar .fld input { width: 150px; }
}

@media (max-width: 767px) {
	#tlsc_login_wide { padding: 0 14px 36px; }
	#tlsc_login_wide .login-head { padding: 32px 0 20px; }
	#tlsc_login_wide .login-logo { font-size: 22px; }
	#tlsc_login_wide .login-sub { font-size: 12.5px; }
	#tlsc_login_wide .login-card { padding: 18px 16px; }
	#tlsc_login_wide .login-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		max-width: 340px;
		margin: 0 auto;
	}
	#tlsc_login_wide .login-bar .fld { justify-content: space-between; }
	#tlsc_login_wide .login-bar .fld label { width: 58px; }
	#tlsc_login_wide .login-bar .fld input { width: 100%; }
	#tlsc_login_wide .login-btns { width: 100%; }
	#tlsc_login_wide .login-btns .tlsc-btn { flex: 1; padding: 0 10px; }
}

@media (max-width: 575px) {
	.tlsc-modal { padding: 10px; }
	table.tlsc-modal-table th { width: 84px; }
}

@media (max-width: 991px) {
	table.tlsc-write { table-layout: auto; }
	table.tlsc-write th { width: 100px; }
	table.tlsc-write td .w-lg { width: 100%; }
}

@media (max-width: 767px) {
	.tlsc-app { font-size: 12px; }
	.tlsc-search-row .tlsc-right { margin-left: 0; width: 100%; }
	table.tlsc-write,
	table.tlsc-write tbody,
	table.tlsc-write tr,
	table.tlsc-write th,
	table.tlsc-write td { display: block; width: 100% !important; }
	table.tlsc-write th { text-align: left; border-left: 1px solid #d9d9d9; }
	table.tlsc-write td { border-left: 1px solid #d9d9d9; }
	table.tlsc-write td .w-md,
	table.tlsc-write td .w-sm { width: 100%; }
	.tlsc-form-btn { justify-content: stretch; }
	.tlsc-form-btn .tlsc-btn { flex: 1; }
}
