/* Tab workspace */
#content-wrapper,
#content,
.contents,
.content {
    background-color: #ffffff;
}

.tapbar {
    background-color: #ffffff;
    border-bottom: 1.5px solid #c9dfe9;
    height: 2.9rem;
    padding: 1rem 0.6rem 0;
}

.tapBox {
    overflow: hidden;
    background-color: #f9f9ff;
    border-color: #c9dfe9;
    border-bottom: 1.5px solid #c9dfe9;
    border-radius: 4px 4px 0 0;
    height: 1.9rem;
    padding: 0.18rem 0.6rem 0.25rem;
    font-size: 0.8rem;
}

.tapBox.active {
    background-color: #efeff0;
    border-width: 1.5px;
    border-color: #c9dfe9;
    border-top-color: #c9dfe9;
    border-bottom-color: #efeff0;
    border-radius: 4px 4px 0 0;
    color: #1f4f89;
    margin-bottom: -1.5px;
    position: relative;
    z-index: 1;
}

.closeImg {
    width: calc(0.8rem - 2px);
    height: calc(0.8rem - 2px);
}

#userDropdown {
    margin: 0.25rem 0.35rem;
    height: calc(100% - 0.5rem);
    background-color: #eef8fd;
    border-radius: 4px;
}

/* 사이드바: 로고/사용자정보 고정, 메뉴 영역만 스크롤 */
#accordionSidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

#accordionSidebar .sidebar-brand,
#accordionSidebar > .sidebar-divider,
#accordionSidebar .sidebar-user {
    flex: 0 0 auto;
}

.sidebar-menu-area {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}

.sidebar-menu-scroll {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-menu-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.sidebar-scroll-zone {
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    z-index: 5;
}

.sidebar-scroll-top {
    top: 0;
}

.sidebar-scroll-bottom {
    bottom: 0;
}

/* 사용자 정보 */
.sidebar-user {
    margin-top: auto;
}

.sidebar-user-name {
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.3;
}

.sidebar-user-rank {
    font-size: 0.75rem;
    line-height: 1.3;
}

.sidebar-user-email {
    font-size: 0.6rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 탭바 우측 메뉴 (모든 탭 닫기 / 우측 탭 닫기) */
.tapbar {
    position: relative;
}

.tapbar-menu {
    position: absolute;
    top: 1rem;
    right: 0.6rem;
}

.tapbar-menu-button {
    height: 1.9rem;
    padding: 0 0.5rem;
    background-color: #051766;
    border: 1.5px solid #051766;
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.8rem;
    line-height: 1;
    cursor: pointer;
}

.tapbar-menu-button:hover {
    background-color: #0a2488;
    border-color: #0a2488;
}

.tapbar-menu-list {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    min-width: 8.5rem;
    padding: 0.25rem;
    background-color: #ffffff;
    border: 1px solid #c9dfe9;
    border-radius: 4px;
    box-shadow: 0 0.5rem 1rem rgba(5, 23, 102, 0.15);
}

.tapbar-menu-list button {
    padding: 0.35rem 0.5rem;
    background: transparent;
    border: 0;
    color: #212529;
    font-size: 0.8rem;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.tapbar-menu-list button:hover {
    background-color: #eef8fd;
}
