/* ===== 공통 뼈대 (VINUS Workspace 기준) =====
   ACC Admin, Wallet Admin 공용 파일. 프로그램 간 내용을 동일하게 유지할 것.
   이름이 sh- 로 시작하는 요소만 다루므로 각 프로그램의 기존 스타일과 겹치지 않는다. */
.sh-sidebar { width: 190px; background: #fff; border-right: 1px solid #e2e8f0; flex-shrink: 0; display: flex; flex-direction: column; transition: width .2s ease; position: sticky; top: 0; height: 100vh; align-self: flex-start; overflow: visible; z-index: 20; }
.sh-sidebar.collapsed { width: 60px; }
.sh-brand { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 16px; border-bottom: 1px solid #e2e8f0; flex-shrink: 0; gap: 8px; }
.sh-sidebar.collapsed .sh-brand { padding: 0; justify-content: center; }
.sh-logo { font-size: 15px; font-weight: 600; color: #475569; text-decoration: none; overflow: hidden; white-space: nowrap; cursor: pointer; }
.sh-sidebar.collapsed .sh-logo { display: none; }
.sh-toggle { position: absolute; right: -16px; top: 14px; z-index: 60; width: 32px; height: 32px; padding: 0; border-radius: 50%; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 2px 8px rgba(15, 23, 42, .12); cursor: pointer; color: #475569; display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; font-family: inherit; }
.sh-toggle:hover { background: #f1f5f9; }
.sh-sidebar.collapsed .sh-toggle { position: static; width: auto; height: auto; padding: 6px; border-radius: 4px; background: none; border: none; box-shadow: none; font-size: 18px; }
.sh-toggle svg { width: 18px; height: 18px; display: block; }
.sh-sidebar.collapsed .sh-toggle svg { width: 20px; height: 20px; }
.sh-nav { padding: 16px 0; flex: 1; overflow-y: auto; overflow-x: hidden; }
.sh-group { margin-bottom: 18px; }
.sh-sidebar.collapsed .sh-group { margin-bottom: 8px; }
.sh-group-title { font-size: 12px; font-weight: 600; color: #94a3b8; padding: 0 20px 6px; white-space: nowrap; overflow: hidden; }
.sh-sidebar.collapsed .sh-group-title { display: none; }
/* 구역 제목과 메뉴가 같은 층에 나란히 놓이는 구조(월렛)에서의 구역 간격 */
.sh-nav > .sh-group-title { margin-top: 18px; }
.sh-nav > .sh-group-title:first-child { margin-top: 0; }
.sh-item { display: flex; align-items: center; gap: 10px; padding: 8px 20px; font-size: 14px; font-weight: 600; color: #475569; text-decoration: none; border-left: 2px solid transparent; transition: background .1s; white-space: nowrap; overflow: hidden; cursor: pointer; }
.sh-item .sh-ico { font-size: 15px; flex-shrink: 0; width: 20px; text-align: center; line-height: 1; }
.sh-item:hover { background: #f8fafc; }
.sh-item.active { background: #f1f5f9; color: #475569; font-weight: 700; border-left-color: #475569; }
.sh-sidebar.collapsed .sh-item { padding: 8px 0; justify-content: center; border-left: none; }
.sh-sidebar.collapsed .sh-item-text { display: none; }
.sh-sidebar.collapsed .sh-item .sh-ico { font-size: 17px; }
.sh-main { flex: 1; min-width: 0; margin-left: 0 !important; display: flex; flex-direction: column; min-height: 100vh; background: #f8fafc; }
.sh-header { background: #fff; border-bottom: 1px solid #e2e8f0; height: 60px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; position: sticky; top: 0; z-index: 10; }
.sh-header-left { display: flex; align-items: center; min-width: 0; }
.sh-title { font-size: 16px; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-right { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.sh-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; background: #f1f5f9; color: #475569; white-space: nowrap; }
.sh-user { position: relative; }
.sh-user-badge { cursor: pointer; user-select: none; }
.sh-user-badge:hover { opacity: .85; }
.sh-menu { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; min-width: 150px; padding: 4px; box-shadow: 0 4px 12px rgba(15, 23, 42, .1); z-index: 100; }
.sh-user.open .sh-menu { display: block; }
.sh-menu-head { padding: 8px 10px; border-bottom: 1px solid #e2e8f0; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.sh-menu-item { display: block; width: 100%; text-align: left; padding: 8px 10px; border: none; background: none; border-radius: 6px; font-size: 13px; color: #1e293b; cursor: pointer; font-family: inherit; white-space: nowrap; }
.sh-menu-item:hover { background: #f1f5f9; }
.sh-logout { color: #94a3b8; text-decoration: none; font-size: 13px; cursor: pointer; }
.sh-logout:hover { color: #475569; }
.sh-content { padding: 20px 24px !important; flex: 1; }
/* 줄 높이를 뼈대 안에서 직접 지정 (프로그램별 기본값에 의존하지 않도록) */
.sh-sidebar, .sh-header { font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.sh-toggle, .sh-item .sh-ico { line-height: 1; }
/* 모바일 서랍 메뉴: body에 sh-drawer 가 있는 프로그램에서만 켜짐 */
.sh-mobile-btn { display: none; width: 32px; height: 32px; padding: 0; margin-right: 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #475569; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.sh-mobile-btn svg { width: 18px; height: 18px; display: block; }
.sh-backdrop { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, .4); z-index: 65; }
@media (max-width: 768px) {
  body.sh-drawer .sh-sidebar, body.sh-drawer .sh-sidebar.collapsed { position: fixed; left: 0; top: 0; width: 240px; transform: translateX(-100%); transition: transform .25s ease; z-index: 70; }
  body.sh-drawer.sh-drawer-open .sh-sidebar { transform: none; }
  body.sh-drawer.sh-drawer-open .sh-backdrop { display: block; }
  body.sh-drawer .sh-toggle { display: none; }
  body.sh-drawer .sh-sidebar.collapsed .sh-brand { padding: 0 16px; justify-content: space-between; }
  body.sh-drawer .sh-sidebar.collapsed .sh-logo { display: inline; }
  body.sh-drawer .sh-sidebar.collapsed .sh-group-title { display: block; }
  body.sh-drawer .sh-sidebar.collapsed .sh-item { padding: 8px 20px; justify-content: flex-start; border-left: 2px solid transparent; }
  body.sh-drawer .sh-sidebar.collapsed .sh-item.active { border-left-color: #475569; }
  body.sh-drawer .sh-sidebar.collapsed .sh-item-text { display: inline; }
  body.sh-drawer .sh-sidebar.collapsed .sh-item .sh-ico { font-size: 15px; }
  body.sh-drawer .sh-mobile-btn { display: inline-flex; }
  body.sh-drawer .sh-header { padding: 0 14px; }
  body.sh-drawer .sh-title { font-size: 15px; }
  body.sh-drawer .sh-date { display: none; }
  body.sh-drawer .sh-content { padding: 14px !important; }
}
