@charset "utf-8";

/* sidebar Box */
#sidebar-box { top: 0px; width: 280px; height: 100%; position: fixed; z-index:99998; background: #fff; }
#sidebar-box .sidebar-content { position:relative; padding:0px 15px; overflow:auto; overflow-x:hidden; height:100%; -webkit-overflow-scrolling:touch; }
#sidebar-box .sidebar-head { position:absolute; top:0; left:-1px; width:281px; height:10px; z-index:10; }
#sidebar-box .div-title-underline-thin { margin-bottom:8px; }
#sidebar-box .sidebar-sns-login img { margin:5px 0px 0px; width:20%; float:left; }
#sidebar-box .sidebar-icon-tbl { display:table; width:100%; table-layout:fixed; }
#sidebar-box .sidebar-icon-cell { display:table-cell;	text-align:center; vertical-align:top; padding:0px 0px 10px; }
#sidebar-box .sidebar-icon-cell span { display:block; font-size:12px; letter-spacing:-1px; margin-top:6px; }
#sidebar-box-mask { display:none; position:fixed; z-index:99997; background:rgba(0,0,0,0.75); left:0; top:0; width:100%; height:100%; }

#sidebar-box .sidebar-menu { margin:0px; border-top:1px solid #eee; }
#sidebar-box .sidebar-menu a { display:block; }
#sidebar-box .sidebar-menu .panel { background: none; margin-top:0px; line-height:24px; }
#sidebar-box .sidebar-menu .ca-head { padding: 0px; border-bottom:1px solid #eee; }
#sidebar-box .sidebar-menu .ca-head > a { padding: 4px 15px; }
#sidebar-box .sidebar-menu .ca-head.active > a { font-weight:bold !important; color: crimson !important; }
#sidebar-box .sidebar-menu .ca-head > a.no-sub::after { top: 0px; font-family: "FontAwesome"; float: right; position: relative; content: "\f105"; }
#sidebar-box .sidebar-menu .ca-head > a > .ca-href { display:inline-block; width:30px; cursor:pointer; }
#sidebar-box .sidebar-menu .ca-head > a > .ca-href::after { top: 0px; float: right; position: relative; content: "+"; }
#sidebar-box .sidebar-menu .ca-head.active > a > .ca-href::after { top: 0px; font-family: "FontAwesome"; float: right; position: relative; content: "\f107"; }
#sidebar-box .sidebar-menu .ca-sub { padding:0; margin:0; list-style:none; background: #fafafa; padding:0px; margin:0px; border-bottom:1px solid #eee }
#sidebar-box .sidebar-menu .ca-sub li { padding:5px 25px; padding-right:12px; border-bottom:1px solid #eee; }
#sidebar-box .sidebar-menu .ca-sub li:last-child { border-bottom:0px; }
#sidebar-box .sidebar-menu .ca-sub li.on a { font-weight:bold !important; color: crimson !important; }
#sidebar-box .sidebar-menu .ca-line { border:0px; background:#fff; font-weight:bold; }

#sidebar-box .sidebar-search { border:1px solid #eee; background:#fafafa; padding:8px; margin-bottom:10px; }
#sidebar-box .sidebar-search .row { margin-left:-3px; margin-right:-3px; }
#sidebar-box .sidebar-search .row > div { padding-left:3px; padding-right:3px; }

#sidebar-box .sidebar-media { border-bottom:1px solid #eee; margin:0px 0px 8px; padding:0px 0px 8px; line-height:20px; }
#sidebar-box .sidebar-media .media-photo i { background:#eee; border-radius: 50%; padding: 8px; width: 40px; height: 40px; text-align: center; font-size: 22px; display: inline-block; }
#sidebar-box .sidebar-media .media-photo img { border-radius: 50%; width: 40px !important; height: 40px !important; display:inline-block; }
#sidebar-box .sidebar-media .media-info { font-size:12px; color:#888; }
#sidebar-box .sidebar-media .media-info i { margin-left:10px; }

#sidebar-box .sidebar-login label { line-height:12px !important; font-weight: normal; cursor: pointer; }
#sidebar-box .sidebar-login .profile .photo { margin-right:12px; }
#sidebar-box .sidebar-login .profile .photo img { width:60px; height:60px; border-radius: 50%; border:0; }
#sidebar-box .sidebar-login .profile .photo i { width:60px; height:60px; font-size:30px; padding:15px 0px 0px; text-align:center; background:#ddd; color:#fff; border-radius: 50%; }
#sidebar-box .sidebar-login .profile h3 { font-size:18px; line-height:32px; padding:0px; margin:0px; letter-spacing:-1px; display:block; text-overflow:ellipsis; white-space:nowrap; word-wrap:normal; overflow:hidden; }
#sidebar-box .sidebar-login .form-group { margin-bottom:10px; }

#sidebar-box .sidebar-list { padding:0px; margin:0px; list-style:none; }
#sidebar-box .sidebar-list a { display:block; padding:4px 15px; border-bottom:1px solid #eee; }
#sidebar-box .sidebar-list.list-links a::after { top: 0px; font-family: "FontAwesome"; float: right; position: relative; content: "\f105"; }
#sidebar-box .sidebar-list.list-links a.no-fa::after { content: ""; }

#sidebar-box .progress { position:relative; border-radius: 0px; height: 28px; overflow: hidden; margin-bottom: 15px; box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1); background-color: rgb(245, 245, 245); -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); }
#sidebar-box .progress .sr-only { margin: 0px 15px; left: 0px; width: auto; height: 28px; line-height: 28px; font-size: 12px; clip: auto; }
#sidebar-box .sr-score { height: 28px; line-height: 28px; font-size: 12px; padding-right:8px; }
#sidebar-box .sr-secret { display:inline-block; padding:0px; margin:0px; line-height:12px; vertical-align:middle; background-repeat: no-repeat; background-position: 0px 0px; width:12px; height:12px; background-image: url('./img/icon_secret.gif'); }

#sidebar-box .sidebar-wing { position:absolute; width:36px; z-index:1; text-align:center; }
#sidebar-box .sidebar-wing-close { background:#fff; font-size: 18px; font-weight: 300 !important; width:36px; height:50px; line-height:50px !important; border:1px solid #ddd; cursor:pointer; }

@media (min-width: 481px) {
	#sidebar-box { right: -320px; border-left:1px solid #ddd; margin-left:40px; }
	#sidebar-box .sidebar-wing { left:0; margin-left:-35px; }
	#sidebar-box .sidebar-wing-close { border-right:0px; }
}
@media (max-width: 480px) {
	#sidebar-box { left: -320px; border-right:1px solid #ddd; margin-right:40px; }
	#sidebar-box .sidebar-wing { right:0; margin-right:-35px; }
	#sidebar-box .sidebar-wing-close { border-left:0px; }
}

@media (min-width: 768px) {
	#sidebar-box { padding-bottom:0px; }
	#sidebar-box .sidebar-wing { top:20%; }
	#sidebar-box .sidebar-wing-icon { border-right:0px; display:block; }
}
@media (max-width: 767px) {
	#sidebar-box { padding-bottom:0px; }
	#sidebar-box .sidebar-wing { top:35%; }
	#sidebar-box .sidebar-wing-icon { display:none; }
}

/* ======================================================================
   Gram 사이드바
   ====================================================================== */
#sidebar-box { width: 300px; background: var(--surface, #fff); border-color: var(--line, #DCE1EA) !important; font-family: var(--g-font, sans-serif); color: var(--ink, #13213F); box-shadow: 0 0 40px rgba(19,33,63,.18); display: flex; flex-direction: column; }
#sidebar-box .sidebar-head, #sidebar-box .sidebar-wing { display: none; }
#sidebar-box-mask { background: rgba(10,18,38,.55); }
#sidebar-box a { color: inherit; }

.g-sb-head { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--line-2); flex-shrink: 0; }
.g-sb-logo .g-logo-img { height: 28px; margin-left: -10px; }
.g-sb-close { width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.g-sb-close:hover { background: var(--paper); }
.g-sb-close svg { width: 22px; height: 22px; }

#sidebar-box .sidebar-content { flex: 1; height: auto; padding: 18px 18px 28px; }

/* 회원 영역 */
#sidebar-box .sidebar-common { margin-bottom: 18px; }
.g-sb-member { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.g-sb-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff !important; display: grid; place-items: center; font-weight: 850; font-size: 18px; overflow: hidden; flex-shrink: 0; }
.g-sb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.g-sb-who { min-width: 0; }
.g-sb-who b { display: block; font-size: 16px; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-sb-who span { font-size: 12.5px; color: var(--ink-3); }
.g-sb-hello { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.g-sb-btns { display: flex; gap: 6px; }
.g-sb-btns .g-btn { flex: 1; height: 40px; padding: 0 8px; }
.g-sb-lost { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--ink-3) !important; }

/* 검색 */
.g-sb-search { display: flex; border: 1.5px solid var(--ink); border-radius: var(--r-md); overflow: hidden; margin-bottom: 16px; }
.g-sb-search input { flex: 1; min-width: 0; border: 0; padding: 0 12px; height: 42px; font: inherit; font-size: 14.5px; }
.g-sb-search input:focus { outline: none; }
.g-sb-search button { border: 0; background: var(--ink); color: #fff; width: 46px; display: grid; place-items: center; cursor: pointer; }

/* 바로가기 */
.g-sb-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 18px; }
.g-sb-quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: var(--r-md); background: var(--paper); font-size: 12px; font-weight: 700; color: var(--ink-2) !important; }
.g-sb-quick a:hover { background: var(--blue-soft); color: var(--ink) !important; }
.g-sb-quick a.is-seal { background: var(--seal-soft); color: var(--seal) !important; }
.g-sb-quick .g-svg { width: 22px; height: 22px; }

/* 메뉴 */
.g-sb-nav { border-top: 2px solid var(--ink); }
.g-sb-group { border-bottom: 1px solid var(--line-2); }
.g-sb-top { display: flex; align-items: baseline; justify-content: space-between; padding: 13px 4px; font-size: 16px; font-weight: 850; letter-spacing: -0.03em; }
.g-sb-top small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.g-sb-group.on .g-sb-top { color: var(--blue) !important; }
.g-sb-group ul { list-style: none; margin: -4px 0 10px; padding: 0 0 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.g-sb-group li a { display: block; padding: 6px 0; font-size: 14px; color: var(--ink-2) !important; }
.g-sb-group li a:hover { color: var(--blue) !important; }

#sidebar-box .sidebar-menu { border-top: 0; margin: 0; }
#sidebar-box .sidebar-menu .panel { border: 0; box-shadow: none; border-radius: 0; line-height: inherit; }
#sidebar-box .sidebar-menu .ca-head { border-bottom: 1px solid var(--line-2); }
#sidebar-box .sidebar-menu .ca-head > a { display: flex; justify-content: space-between; align-items: center; padding: 13px 4px; font-size: 16px; font-weight: 850; letter-spacing: -0.03em; color: var(--ink) !important; }
#sidebar-box .sidebar-menu .ca-head.active > a { color: var(--blue) !important; font-weight: 850 !important; }
#sidebar-box .sidebar-menu .ca-head > a.no-sub::after { content: none; }
#sidebar-box .sidebar-menu .ca-caret { width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .2s; }
#sidebar-box .sidebar-menu .ca-head > a[aria-expanded="true"] .ca-caret, #sidebar-box .sidebar-menu .ca-head.active .ca-caret { transform: rotate(-135deg); margin-top: 4px; }
#sidebar-box .sidebar-menu .ca-sub { background: none; border: 0; padding: 0 0 10px 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
#sidebar-box .sidebar-menu .ca-sub li { padding: 0; border: 0; }
#sidebar-box .sidebar-menu .ca-sub li a { padding: 6px 0; font-size: 14px; color: var(--ink-2) !important; }
#sidebar-box .sidebar-menu .ca-sub li.on a { color: var(--blue) !important; font-weight: 700 !important; }
.g-sb-new { display: inline-block; margin-left: 4px; font-size: 10px; font-weight: 900; color: #fff; background: var(--seal); border-radius: 3px; padding: 0 3px; vertical-align: 1px; }

/* 현황 */
.g-sb-stats { margin-top: 22px; padding: 14px 16px; background: var(--paper); border-radius: var(--r-md); }
.g-sb-stats h4, .g-sb-stats .g-sb-stats-title { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.g-sb-stats dl { margin: 0; }
.g-sb-stats dl > div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.g-sb-stats dt { font-weight: 500; color: var(--ink-3); }
.g-sb-stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 로그인 패널·내 정보 패널 (기존 마크업 보정) */
#sidebar-box .div-title-underline-thin { border-bottom: 2px solid var(--ink); margin: 6px 0 10px; padding-bottom: 6px; }
#sidebar-box .div-title-underline-thin b { font-family: var(--g-font); font-size: 14px; font-weight: 850; }
#sidebar-box .sidebar-login .form-control, #sidebar-box .sidebar-search .form-control { height: 42px; border-radius: var(--r-sm); border-color: var(--line); }
#sidebar-box .sidebar-login .input-group-addon { background: var(--paper); border-color: var(--line); }
#sidebar-box .btn-navy { background: var(--ink); border-color: var(--ink); color: #fff; border-radius: var(--r-sm); font-weight: 700; }
#sidebar-box .btn-block.btn-navy { height: 44px; }
#sidebar-box .sidebar-list a { padding: 10px 4px; border-color: var(--line-2); font-size: 14.5px; }
#sidebar-box .sidebar-login .profile h3 { font-family: var(--g-font); font-weight: 850; }
#sidebar-box .progress-bar-blue { background-color: var(--blue); }

@media (min-width: 481px) { #sidebar-box { right: -320px; margin-left: 0; } }
@media (max-width: 480px) { #sidebar-box { left: -320px; margin-right: 0; width: 300px; } }
