/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-feoqeacg3p] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-feoqeacg3p] {
    flex: 1;
    min-width: 0; /* flex 자식이 콘텐츠 폭만큼 늘어나 페이지를 넘치지 않도록 */
}

.sidebar[b-feoqeacg3p] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-feoqeacg3p] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-feoqeacg3p]  a, .top-row[b-feoqeacg3p]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-feoqeacg3p]  a:hover, .top-row[b-feoqeacg3p]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-feoqeacg3p]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-feoqeacg3p] {
        justify-content: space-between;
    }

    .top-row[b-feoqeacg3p]  a, .top-row[b-feoqeacg3p]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-feoqeacg3p] {
        flex-direction: row;
        height: 100vh;       /* 뷰포트 높이 고정 → 본문만 스크롤, 사이드바는 항상 고정 */
        overflow: hidden;
    }

    .sidebar[b-feoqeacg3p] {
        width: 250px;
        height: 100vh;
        flex: 0 0 auto;      /* 폭 고정, 스크롤에도 항상 제자리 */
        /* 접힘 상태의 플라이아웃(하위 메뉴)이 main 콘텐츠 위에 뜨고 클릭되도록 사이드바 전체를 위로 */
        position: relative;  /* z-index가 적용되려면 positioned 여야 함(없으면 static→z-index 무효) */
        z-index: 1000;
    }

    main[b-feoqeacg3p] {
        height: 100vh;
        overflow: auto;      /* 오른쪽 콘텐츠 영역만 가로·세로 스크롤 */
    }

    .top-row[b-feoqeacg3p] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-feoqeacg3p]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-feoqeacg3p], article[b-feoqeacg3p] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

/* 본문 하단 여백 (마지막 섹션이 화면 바닥에 붙지 않도록) */
article.content[b-feoqeacg3p] {
    padding-bottom: 2.5rem;
}

/* ===== 상단바: 테마 토글 + 사용자 메뉴 ===== */
.top-row[b-feoqeacg3p] {
    gap: 0.5rem;
}

.theme-toggle[b-feoqeacg3p] {
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 1.05rem;
    line-height: 1;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
}

.theme-toggle:hover[b-feoqeacg3p] {
    background: rgba(0,0,0,0.06);
}

.user-menu[b-feoqeacg3p] {
    position: relative;
}

    .user-menu > summary[b-feoqeacg3p] {
        list-style: none;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        padding: 0.2rem 0.5rem;
        border-radius: 20px;
        margin-left: 0; /* top-row 기본 margin 무력화 */
    }

        .user-menu > summary[b-feoqeacg3p]::-webkit-details-marker { display: none; }
        .user-menu > summary[b-feoqeacg3p]::marker { content: ""; }

        .user-menu > summary:hover[b-feoqeacg3p] { background: rgba(0,0,0,0.06); }

.user-avatar[b-feoqeacg3p] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
    background: #fff;
}

.user-name[b-feoqeacg3p] {
    font-size: 0.9rem;
    white-space: nowrap;
}

.user-caret[b-feoqeacg3p] {
    font-size: 0.7rem;
    color: #888;
}

.user-menu-panel[b-feoqeacg3p] {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 180px;
    background: #fff;
    border: 1px solid #dadada;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    padding: 0.35rem;
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

    .user-menu-panel a[b-feoqeacg3p], .user-menu-panel button[b-feoqeacg3p] {
        display: block;
        width: 100%;
        text-align: left;
        background: none;
        border: none;
        margin-left: 0; /* top-row 기본 margin 무력화 */
        padding: 0.5rem 0.6rem;
        border-radius: 6px;
        color: #333;
        text-decoration: none;
        font-size: 0.9rem;
        white-space: nowrap;
        cursor: pointer;
    }

        .user-menu-panel a:hover[b-feoqeacg3p], .user-menu-panel button:hover[b-feoqeacg3p] { background: #f0f3f7; }

    .user-menu-panel form[b-feoqeacg3p] { margin: 0; }

.user-menu-sep[b-feoqeacg3p] { height: 1px; background: #e6e6e6; margin: 0.25rem 0.2rem; }
[data-bs-theme="dark"] .user-menu-sep[b-feoqeacg3p] { background: #454d54; }

/* ── 테마/포인트 색 피커 (프로필 드롭다운) ── */
.theme-picker[b-feoqeacg3p] { padding: 0.35rem 0.5rem 0.45rem; }
.tp-label[b-feoqeacg3p] { font-size: 0.72rem; color: #888; margin: 0.25rem 0 0.3rem; }
.tp-grid[b-feoqeacg3p] { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
/* .user-menu-panel button 공통 규칙(배경 none 등)보다 우선하도록 .theme-picker 접두로 특이도 확보 */
.theme-picker .tp-grid button[b-feoqeacg3p] {
    border: 1px solid #d6d6d6; background: none; border-radius: 6px; width: auto;
    font-size: 0.78rem; padding: 0.28rem 0.2rem; color: #333; cursor: pointer; white-space: nowrap; text-align: center;
}
.theme-picker .tp-grid button:hover[b-feoqeacg3p] { background: #f0f3f7; }
.theme-picker .tp-grid button.active[b-feoqeacg3p] { border-color: #1b6ec2; color: #1b6ec2; font-weight: 600; background: #e7f1ff; }
.tp-accents[b-feoqeacg3p] { display: flex; gap: 7px; padding: 2px 1px; }
.theme-picker .tp-dot[b-feoqeacg3p] {
    display: inline-block; width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
    background: var(--c); border: 2px solid transparent; padding: 0;
}
.theme-picker .tp-dot:hover[b-feoqeacg3p] { transform: scale(1.1); }
.theme-picker .tp-dot.active[b-feoqeacg3p] { border-color: #fff; box-shadow: 0 0 0 2px var(--c); }

[data-bs-theme="dark"] .theme-picker .tp-grid button[b-feoqeacg3p] { border-color: #4a5158; color: #d6dade; }
[data-bs-theme="dark"] .theme-picker .tp-grid button:hover[b-feoqeacg3p] { background: #3a4147; }
[data-bs-theme="dark"] .theme-picker .tp-grid button.active[b-feoqeacg3p] { border-color: #4dabf7; color: #4dabf7; background: #1c3551; }
[data-bs-theme="dark"] .theme-picker .tp-dot.active[b-feoqeacg3p] { border-color: #2b3035; }

/* 다크 테마 보정 */
[data-bs-theme="dark"] .top-row[b-feoqeacg3p] {
    background: #1b1e21;
    border-bottom-color: #343a40;
}

[data-bs-theme="dark"] .theme-toggle:hover[b-feoqeacg3p],
[data-bs-theme="dark"] .user-menu > summary:hover[b-feoqeacg3p] {
    background: rgba(255,255,255,0.08);
}

[data-bs-theme="dark"] .user-menu-panel[b-feoqeacg3p] {
    background: #2b3035;
    border-color: #454d54;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

    [data-bs-theme="dark"] .user-menu-panel a[b-feoqeacg3p],
    [data-bs-theme="dark"] .user-menu-panel button[b-feoqeacg3p] { color: #e6e6e6; }

        [data-bs-theme="dark"] .user-menu-panel a:hover[b-feoqeacg3p],
        [data-bs-theme="dark"] .user-menu-panel button:hover[b-feoqeacg3p] { background: #3a4147; }

[data-bs-theme="dark"] .user-avatar[b-feoqeacg3p] { border-color: #555; background: #2b3035; }

#blazor-error-ui[b-feoqeacg3p] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-feoqeacg3p] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-bptzvmuf2q] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-bptzvmuf2q] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-bptzvmuf2q] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-bptzvmuf2q] {
    font-size: 1.1rem;
}

/* 상단 브랜드 줄: 로고+워드마크+토글 버튼을 한 줄로(navbar 기본 flex-wrap:wrap 무력화) */
.top-row .container-fluid[b-bptzvmuf2q] { flex-wrap: nowrap; gap: 6px; }

/* 브랜드 로고: SVG 마크 + 워드마크 */
.brand[b-bptzvmuf2q] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

.brand-mark[b-bptzvmuf2q] {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
    transition: transform 0.15s ease;
}

.brand:hover .brand-mark[b-bptzvmuf2q] { transform: translateY(-1px) scale(1.04); }

.brand-text[b-bptzvmuf2q] {
    font-family: "Segoe UI", "Pretendard", system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.2px;
    line-height: 1;
    white-space: nowrap;
}

.brand-soft[b-bptzvmuf2q] {
    background: linear-gradient(90deg, #ffffff 0%, #c8e0ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.brand-hr[b-bptzvmuf2q] {
    margin-left: 2px;
    font-weight: 800;
    color: #74c0fc;
}

/* 사이드바 접기/펼치기 토글 버튼 */
.nav-collapse-btn[b-bptzvmuf2q] {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cdd5e0;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    line-height: 1;
    font-size: 1rem;
    cursor: pointer;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav-collapse-btn:hover[b-bptzvmuf2q] { background: rgba(255, 255, 255, 0.18); color: #fff; }
.nav-collapse-icon[b-bptzvmuf2q] { display: inline-block; transition: transform 0.15s ease; }

/* 아이콘: ::deep 으로 NavGroup 등 자식 컴포넌트가 렌더한 .bi 까지 적용 */
.nav-scrollable[b-bptzvmuf2q]  .bi {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    top: -1px;
    background-size: cover;
    flex: 0 0 auto;
}

.nav-scrollable[b-bptzvmuf2q]  .bi-house-door-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.nav-scrollable[b-bptzvmuf2q]  .bi-list-nested-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

/* 직원 관리 — 사람들 */
.nav-scrollable[b-bptzvmuf2q]  .bi-people-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7 14s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1zm4-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6m-5.784 6A2.24 2.24 0 0 1 5 13c0-1.355.68-2.75 1.936-3.72A6.3 6.3 0 0 0 5 9c-4 0-5 3-5 4s1 1 1 1zM4.5 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5'/%3E%3C/svg%3E");
}

/* 조직 관리 — 조직도 */
.nav-scrollable[b-bptzvmuf2q]  .bi-diagram-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M6 3.5A1.5 1.5 0 0 1 7.5 2h1A1.5 1.5 0 0 1 10 3.5v1A1.5 1.5 0 0 1 8.5 6v1H14a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-1 0V8h-5v.5a.5.5 0 0 1-1 0V8h-5v.5a.5.5 0 0 1-1 0v-1A.5.5 0 0 1 2 7h5.5V6A1.5 1.5 0 0 1 6 4.5zm-6 8A1.5 1.5 0 0 1 1.5 10h1A1.5 1.5 0 0 1 4 11.5v1A1.5 1.5 0 0 1 2.5 14h-1A1.5 1.5 0 0 1 0 12.5zm6 0A1.5 1.5 0 0 1 7.5 10h1a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 8.5 14h-1A1.5 1.5 0 0 1 6 12.5zm6 0a1.5 1.5 0 0 1 1.5-1.5h1a1.5 1.5 0 0 1 1.5 1.5v1a1.5 1.5 0 0 1-1.5 1.5h-1a1.5 1.5 0 0 1-1.5-1.5z'/%3E%3C/svg%3E");
}

/* 휴가 관리 — 달력 체크 */
.nav-scrollable[b-bptzvmuf2q]  .bi-calendar-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M6.146 8.146a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 0 1 0-.708'/%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z'/%3E%3C/svg%3E");
}

/* 결재 — 승인 인장(체크 배지) */
.nav-scrollable[b-bptzvmuf2q]  .bi-approval-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M10.067.87a2.89 2.89 0 0 0-4.134 0l-.622.638-.89-.011a2.89 2.89 0 0 0-2.924 2.924l.01.89-.636.622a2.89 2.89 0 0 0 0 4.134l.637.622-.011.89a2.89 2.89 0 0 0 2.924 2.924l.89-.01.622.636a2.89 2.89 0 0 0 4.134 0l.622-.637.89.011a2.89 2.89 0 0 0 2.924-2.924l-.01-.89.636-.622a2.89 2.89 0 0 0 0-4.134l-.637-.622.011-.89a2.89 2.89 0 0 0-2.924-2.924l-.89.01zm.287 5.984-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7 8.793l2.646-2.647a.5.5 0 0 1 .708.708'/%3E%3C/svg%3E");
}

/* 문서함 — 서류 */
.nav-scrollable[b-bptzvmuf2q]  .bi-shortcut-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5'/%3E%3Cpath d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z'/%3E%3C/svg%3E");
}

.nav-scrollable[b-bptzvmuf2q]  .bi-docs-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0M9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1M4.5 9a.5.5 0 0 1 0-1h7a.5.5 0 0 1 0 1zm0 2a.5.5 0 0 1 0-1h7a.5.5 0 0 1 0 1zm0 2a.5.5 0 0 1 0-1h4a.5.5 0 0 1 0 1z'/%3E%3C/svg%3E");
}

/* 시스템 관리 — 톱니바퀴 */
.nav-scrollable[b-bptzvmuf2q]  .bi-gear-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z'/%3E%3C/svg%3E");
}

/* 라벨: 좁은 폭에서 한 줄 유지 + 말줄임표 */
.nav-scrollable[b-bptzvmuf2q]  .nav-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-item[b-bptzvmuf2q] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-bptzvmuf2q] {
        padding-top: 1rem;
    }

    .nav-item[b-bptzvmuf2q]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        min-height: 3rem;
        display: flex;
        align-items: center;
        line-height: 1.25;
        width: 100%;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* 단일 항목(홈·로그인) — 강조 박스가 가장자리에서 떨어지고(외부 0.5rem),
   박스 안에서 아이콘에 여백(내부 0.6rem). 그룹 아이콘과 동일 x(1.1rem)로 정렬. */
.nav-single[b-bptzvmuf2q] { padding: 0 0.5rem; }
.nav-single[b-bptzvmuf2q]  .nav-link { padding-left: 0.6rem; padding-right: 0.6rem; }

.nav-item[b-bptzvmuf2q]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-bptzvmuf2q]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

/* ===== 그룹(아코디언) ===== */
.nav-scrollable[b-bptzvmuf2q]  .nav-group {
    padding: 0 0.5rem;
    font-size: 0.9rem;
}

.nav-scrollable[b-bptzvmuf2q]  .nav-group-summary {
    color: #d7d7d7;
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    line-height: 1.25;
    border-radius: 4px;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
    overflow: hidden;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
}

    .nav-scrollable[b-bptzvmuf2q]  .nav-group-summary::-webkit-details-marker { display: none; }
    .nav-scrollable[b-bptzvmuf2q]  .nav-group-summary::marker { content: ""; }
    .nav-scrollable[b-bptzvmuf2q]  .nav-group-summary:hover { background: rgba(255,255,255,0.1); color: #fff; }

.nav-scrollable[b-bptzvmuf2q]  .nav-caret {
    margin-left: auto;
    font-size: 0.7rem;
    flex: 0 0 auto;
    transition: transform 0.15s;
}

.nav-scrollable[b-bptzvmuf2q]  details[open] > .nav-group-summary .nav-caret {
    transform: rotate(180deg);
}

.nav-scrollable[b-bptzvmuf2q]  .nav-group-body {
    display: flex;
    flex-direction: column;
}

/* 알림 배지 (결재 대기 등) — 그룹 헤더/하위 항목 우측에 빨간 펠릿 */
.nav-scrollable[b-bptzvmuf2q]  .nav-badge {
    margin-left: auto;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 0.65rem;
    background: #e03131;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
    flex: 0 0 auto;
}

/* 그룹 헤더는 배지 뒤에 캐럿이 오므로 배지의 우측 여백 약간 */
.nav-scrollable[b-bptzvmuf2q]  .nav-group-summary .nav-badge { margin-right: 0.4rem; }

.nav-scrollable[b-bptzvmuf2q]  .nav-sublink {
    color: #c4c4c4;
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    padding-left: 2.45rem;  /* 그룹 아이콘 폭만큼 들여쓰기 */
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .nav-scrollable[b-bptzvmuf2q]  .nav-sublink:hover { background: rgba(255,255,255,0.1); color: #fff; }
    .nav-scrollable[b-bptzvmuf2q]  .nav-sublink.active { background: rgba(255,255,255,0.37); color: #fff; }

.nav-scrollable[b-bptzvmuf2q] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-bptzvmuf2q] {
    display: block;
}

@media (max-width: 640.98px) {
    /* 모바일: 사이드바가 상단으로 오면 접기(«) 버튼은 불필요 — 햄버거 뒤로 겹쳐 보여 숨김 */
    .nav-collapse-btn[b-bptzvmuf2q] { display: none; }
}

@media (min-width: 641px) {
    .navbar-toggler[b-bptzvmuf2q] {
        display: none;
    }

    .nav-scrollable[b-bptzvmuf2q] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
        overflow-x: hidden;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-xiji9iw535],
.components-reconnect-repeated-attempt-visible[b-xiji9iw535],
.components-reconnect-failed-visible[b-xiji9iw535],
.components-pause-visible[b-xiji9iw535],
.components-resume-failed-visible[b-xiji9iw535],
.components-rejoining-animation[b-xiji9iw535] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-xiji9iw535],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-xiji9iw535],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-xiji9iw535],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-xiji9iw535],
#components-reconnect-modal.components-reconnect-retrying[b-xiji9iw535],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-xiji9iw535],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-xiji9iw535],
#components-reconnect-modal.components-reconnect-failed[b-xiji9iw535],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-xiji9iw535] {
    display: block;
}


#components-reconnect-modal[b-xiji9iw535] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-xiji9iw535 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-xiji9iw535 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-xiji9iw535 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-xiji9iw535]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-xiji9iw535 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-xiji9iw535 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-xiji9iw535 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-xiji9iw535 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-xiji9iw535] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-xiji9iw535] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-xiji9iw535] {
    border: 0;
    background-color: #1b6ec2;
    color: white;
    padding: 6px 24px;
    border-radius: 6px;
}

    #components-reconnect-modal button:hover[b-xiji9iw535] {
        background-color: #155CA2;
    }

    #components-reconnect-modal button:active[b-xiji9iw535] {
        background-color: #1b6ec2;
    }

.components-reconnect-logo[b-xiji9iw535] {
    display: block;
}

/* 다크 계열 테마(다크/딤/블랙) 보정 */
[data-bs-theme="dark"] #components-reconnect-modal[b-xiji9iw535] {
    background-color: #23272b;
    color: #e9ecef;
}

[data-bs-theme="dark"] #components-reconnect-modal[b-xiji9iw535]::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

.components-rejoining-animation[b-xiji9iw535] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-xiji9iw535] {
        position: absolute;
        border: 3px solid #4dabf7;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-xiji9iw535 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-xiji9iw535] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-xiji9iw535 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Shared/BusyOverlay.razor.rz.scp.css */
.busy-overlay[b-fjx5lgkke6] {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(1px);
}

.busy-box[b-fjx5lgkke6] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    padding: 1.6rem 2rem;
    border-radius: 12px;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    min-width: 180px;
}

.busy-spinner[b-fjx5lgkke6] {
    width: 2.4rem;
    height: 2.4rem;
    border: 3px solid rgba(127, 127, 127, 0.25);
    border-top-color: var(--hr-acc, #1b6ec2);
    border-radius: 50%;
    animation: busy-spin-b-fjx5lgkke6 0.7s linear infinite;
}

.busy-text[b-fjx5lgkke6] {
    font-size: 0.95rem;
    font-weight: 600;
}

@keyframes busy-spin-b-fjx5lgkke6 {
    to { transform: rotate(360deg); }
}
