.icontainer {
	display: inline-block;
	position: relative;
	padding-left:30px;
	margin:8px 10px 0 0;
	cursor: pointer;
	font-size: 18px;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.icontainer input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}
.checkmark {
	position: absolute;
	top: 0px;
	left: 0;
	height: 25px;
	width: 25px;
	background-color: #d5d5d5;
	border-radius: 10%;
}
.icontainer:hover input ~ .checkmark {
	background-color: #f7a4a4;
}
.icontainer input:checked ~ .checkmark {
	background-color: #f13c3c;
}
.checkmark:after {
	content: "";
	position: absolute;
	display: none;
}
.icontainer input:checked ~ .checkmark:after {
	display: block;
}
.icontainer .checkmark:after {
	left: 9px;
	top: 5px;
	width: 7px;
	height: 13px;
	border: solid white;
	border-width: 0 3px 3px 0;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
}

#date {position:relative; text-align:center; font-size:20px; font-weight:bold; padding:10px 0 10px 0; margin:0; border-left:solid 1px #ddd; border-right:solid 1px #ddd;}
#reserv_info {text-align:center; font-size:16px; font-weight:bold; padding:0 0 10px 0;border-left:solid 1px #ddd; border-right:solid 1px #ddd;}
#reserv_info span {color:#f00;}
#timetable {background-color:#c9ced5;border-spacing:1px;width:100%;margin:0;}
#timetable thead th {white-space:nowrap;background-color:#eef2f9;text-align:center;font-weight:bold;}
#timetable tbody th {white-space:nowrap;background-color:#eef2f9; width:16%;text-align:center;}
#timetable tbody td {color:#fff;background-color:#fff; text-align:center; width:21%; vertical-align:middle;line-height:1.2; background-size:cover; background-repeat:no-repeat; background-position:center;}
#timetable tbody td.photo {padding-top:70px;}
#timetable tbody td.guest label a {color:#000;}
#timetable tbody td.손님 label a {color:#000;}
#timetable.seq_cnt_6 tbody td {width:14%;min-width:70px;}
#timetable tbody td span.imsi {color:#f00;}
.host {color:#f00;}
#timetable tbody a {color:#fff;text-decoration:none;}
#timetable tbody td label {margin-bottom:0;display:block;}
#footer {position:fixed;bottom:0;padding-top:10px;padding-bottom:5px;width:100%;max-width:900px;background-color:#fff;}
#footer .form-group {padding-left:5px; padding-right:5px; margin-bottom:7px;}

.form-group input[type="text"],
.form-group input[type="tel"] {border-radius:5px;}

#hmenu_151 a span {color:#f00;font-size:15px;}

#btn_day {border-left:solid 1px #ddd; border-right:solid 1px #ddd; padding:5px 0 0 0;}
#btn_day>span {display:inline-block; width:12.5%; text-align:center; padding:2px 1px;}
#btn_day>span a {position:relative; display:block;}
#btn_day .cmt {position:absolute; width:15px; height:15px; right:-2px; top:-5px; display:block; border-radius:100px; border-bottom-left-radius:0; background-color:#b9fff0; color:#000; padding:1px 4px 2px 2px; line-height:1;}
#btn_day .cmt.new {background-color:#f00; color:#fff;}
label.reserved {font-size:15px !important; color:#00f;max-width:300px;min-width:80px;white-space:normal;word-break:break-all;}
label.reserved .court_num {display:inline-block; width:20px; height:20px; line-height:1; font-size:18px; padding:2px 0 0 0; border-radius:15px; background-color:#0b0; background-image: linear-gradient(to bottom right, #060, #0b0); color:#fff;}

#game_history caption {text-align:center; color:#333; font-size:18px; font-weight:bold;}
#game_history th {white-space:nowrap; vertical-align:middle;}
#game_history td {text-align:center; word-break:keep-all; vertical-align:middle;}
#game_history td.W {font-weight:bold; color:#f00; font-size:19px;}
#game_history td.L {font-weight:bold; color:#333;}
#game_history td.E {font-weight:bold; color:#333;}
#game_history td span.me {position:relative; background-color:#ff0;}
#game_history td span.me.win:after {content:"";display:block; width:17px; height:17px; background:url('/img/icon_win.png') no-repeat; position:absolute; top:-9px; right:-9px;}
#game_history td span.me.lose:after {content:"";display:block; width:17px; height:17px; background:url('/img/icon_lose.png') no-repeat; position:absolute; top:-9px; right:-9px;}
th.top_ranker:after {content:"";display:block; width:17px; height:17px; background:url('/img/icon_top.png') no-repeat; position:absolute; top:-9px; right:-9px;}

.plus {color:#f00 !important;}
.minus {color:#00f !important;}

.iGraph{white-space:nowrap; line-height:normal; display:inline-block; width:60%;}
.iGraph .gBar{display:block; height:14px; margin:0 5px 0 0; border:1px solid #99a6b6; background:#e9e9e9; font-size:11px;}
.iGraph .gAction{display:inline-block; height:12px; background:#99a6b6;}
.iGraph .gPercent{font:16px Arial, Helvetica, sans-serif; color:#ccc;}
.iGraph .gPercent strong{font-size:18px; color:#e88b30;}

#chat-container {
	background-color: #ABC1D1; /* 카카오톡 기본 배경색 */
	display: flex;
	flex-direction: column;
	border-radius: 12px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	position: relative;
	margin:0 5px 30px 5px;
}
#chat-container .chat-body {
	flex: 1;
	padding: 15px 0;
	overflow-y: auto;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* 메시지 그룹 스티키 날짜 표시 등 */
#chat-container .msg-row {
	display: flex;
	position: relative;
	width: 100%;
	padding: 0 14px;
}
#chat-container div.image {
	overflow: hidden;
    margin-bottom: 10px;
	border-radius: 12px;
}
#chat-container div.image img {
	border-radius: 12px;
}

/* 상대방 메시지 */
#chat-container .msg-row.other {
	flex-direction: row;
	align-items: flex-start;
}
#chat-container .msg-row.other .profile-img {
	width: 40px;
	height: 40px;
	border-radius: 15px;
	background-color: #DDD;
	margin-right: 8px;
	background-size: cover;
	background-position: center;
	flex-shrink: 0;
}
#chat-container .msg-row.other .msg-content {
	display: flex;
	flex-direction: column;
	max-width: 90%;
}
#chat-container .msg-row.other .sender-name {
	font-size: 14px;
	color: #333;
	margin-bottom: 4px;
}
#chat-container .msg-row.other .bubble-wrap {
	display: flex;
	align-items: flex-end;
	gap: 4px;
}
#chat-container .msg-row.other .bubble-wrap>div {
	text-align:left;
}
#chat-container .msg-row.other .bubble {
	background-color: #FFFFFF;
	color: #000;
	padding: 9px 12px;
	border-radius: 0 12px 12px 12px;
	font-size: 16px;
	line-height: 1.45;
	word-break: break-all;
	box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
#chat-container .msg-row.other .time {
	font-size: 13px;
	font-weight:bold;
	color: #555;
	white-space: nowrap;
}

#chatBody div.nalja {text-align: center;}
#chatBody div.nalja span {display: inline-block; background-color: #a0b0bb; border-radius: 15px; padding: 2px 20px; min-width: 150px; text-align: center;}

/* 내 메시지 (스와이프 레이아웃) */
#chat-container .msg-row.me {
	justify-content: flex-end;
	padding: 0;
	overflow: hidden;
}
#chat-container .swipe-wrapper {
	display: flex;
	width: 100%;
	transform: translateX(0px);
	transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
#chat-container .swipe-content {
	display: flex;
	justify-content: flex-end;
	width: 100%;
	flex-shrink: 0;
	padding: 0 14px;
}
#chat-container .msg-row.me .bubble-wrap {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	max-width: 90%;
	gap: 4px;
}
#chat-container .msg-row.me .bubble-wrap>div {
	text-align:right;
}
#chat-container .msg-row.me .bubble {
	background-color: #FEE500; /* 카카오톡 노란색 */
	color: #000;
	padding: 9px 12px;
	border-radius: 12px 0 12px 12px;
	font-size: 16px;
	line-height: 1.45;
	word-break: break-all;
	box-shadow: 0 1px 2px rgba(0,0,0,0.08);
	text-align:left;
}
#chat-container .msg-row.me .time {
	font-size: 13px;
	font-weight:bold;
	color: #555;
	white-space: nowrap;
}

/* 스와이프 삭제 버튼 */
#chat-container .btn-delete {
	width: 70px;
	background-color: #FF3B30;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	flex-shrink: 0;
	user-select: none;
	border-radius: 4px;
	margin-left: 0;
	margin-right: 0;
}

/* 하단 서식 */
#chat-container .chat-footer {
	background-color: #FFFFFF;
	padding: 10px 12px;
	border-top: 1px solid #E5E5E5;
}
#chat-container .input-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
#chat-container .input-form textarea {
	width: 100%;
	height: 52px;
	border: none;
	resize: none;
	outline: none;
	font-size: 16px;
	line-height: 1.4;
	color: #222;
	box-shadow:none;
}
#chat-container .input-form textarea::placeholder {
	color: #AAA;
}
#chat-container .btn-group {
	display: flex;
	justify-content: space-between;
	gap: 6px;
}
#chat-container .btn {
	padding: 8px 16px;
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.15s;
}
#chat-container .btn-refresh {
	background-color: #F0F0F0;
	color: #444;
	border-color: #DDD;
}
#chat-container .btn-refresh:hover {
	background-color: #E2E2E2;
}
#chat-container .btn-send {
	background-color: #FEE500;
	color: #000;
	font-weight: 600;
}
#chat-container .btn-send:hover {
	background-color: #FACC00;
}

#upfile_preview {display:flex; flex-wrap:wrap; gap:12px;}
#upfile_preview>div {position:relative; width:50px; height:50px; border-radius:6px; border:1px solid #e1e4e8; background-color:#f6f8fa; background-size:cover; background-position:center center;}
#upfile_preview>div>button {position:absolute; top:-6px; right:-6px; width:18px; height:18px; background-color:#f00; border:none; border-radius:50%; color:#fff; font-size:11px; font-weight:bold; line-height:16px; text-align:center; cursor:pointer; padding:0;}
#fileupload_btn {position:relative;display:block;overflow:hidden;width:40px;height:40px;box-sizing:border-box;}
#fileupload_btn>span {display:block; font-size:30px; color:#666; font-weight:bold; line-height:1;}

@media (max-width: 768px) {
	div.table-responsive {margin-bottom:0;}
}
