/* /Components/Layout/MainLayout.razor.rz.scp.css */
/*
 * 껍데기(T-024 · Medmap `MainLayout.razor.css`). 사이드바는 면-2 — 바탕과 면 사이 한 단이라 본문 카드보다
 * 한 발 뒤로 물러나 보인다. 그라데이션 · 그림자를 쓰지 않는다.
 */
.page[b-rnsitpfau1] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-rnsitpfau1] {
    flex: 1;
    /* 🔴 이 한 줄이 없으면 넓은 표가 페이지를 통째로 민다 — flex 항목의 min-width 기본값이 auto 라
       내용보다 작아지지 않아서 `.table-wrap` 안에서 스크롤될 기회가 오지 않는다(Medmap 실측 2026-09-03). */
    min-width: 0;
}

.sidebar[b-rnsitpfau1] {
    position: relative;
    background: var(--surface-2);
    border-right: 1px solid var(--border);
}

/* 본문 여백은 여기 한 곳. 아래 48px 은 마지막 카드가 창 끝에 붙지 않게. 아주 넓은 창에서 표가 끝없이 늘지 않게 최대 폭. */
article.content[b-rnsitpfau1] {
    padding: var(--sp-5) var(--sp-6) var(--sp-7);
    max-width: 100rem;
}

/* 펴는 단추 — 접혔을 때만 보인다. 스크롤해도 따라온다(fixed). 같은 아이콘을 뒤집어 `>>` 로 쓴다. */
.sidebar-open[b-rnsitpfau1] {
    display: none;
    position: fixed;
    left: 10px;
    top: 12px;
    z-index: 20;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    transform: rotate(180deg);
}

.sidebar-open:hover[b-rnsitpfau1] {
    background: var(--code-bg);
    color: var(--text-h);
}

@media (min-width: 641px) {
    .page[b-rnsitpfau1] {
        flex-direction: row;
    }

    .sidebar[b-rnsitpfau1] {
        flex: 0 0 240px;
        width: 240px;
        height: 100vh;
        position: sticky;
        top: 0;
        /* 접고 펴는 것이 180ms 로 미끄러진다. flex-basis 와 width 를 함께 움직인다 — 하나만 주면 다른 하나가 튄다. */
        transition: flex-basis 180ms ease, width 180ms ease;
    }

    /* 접힌 상태 — 폭 0 · 내용 자름 · 테 없앰(1px 이 남으면 덜 접혀 보인다).
       ⚠ 스코프 속성은 마지막 선택자에만 붙어서 `html[data-sidebar]` 가 격리 CSS 에서 그대로 통한다. */
    html[data-sidebar="collapsed"] .sidebar[b-rnsitpfau1] {
        flex-basis: 0;
        width: 0;
        overflow: hidden;
        border-right-width: 0;
    }

    html[data-sidebar="collapsed"] .sidebar-open[b-rnsitpfau1] {
        display: inline-flex;
    }

    /* 펴는 단추가 화면 제목 위에 앉지 않게 왼쪽을 연다. */
    html[data-sidebar="collapsed"] article.content[b-rnsitpfau1] {
        padding-left: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar[b-rnsitpfau1] {
        transition: none;
    }
}

@media (max-width: 640.98px) {
    article.content[b-rnsitpfau1] {
        padding: var(--sp-4) var(--sp-4) var(--sp-6);
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/*
 * 왼쪽 메뉴의 모양(T-024 · Medmap `NavMenu.razor.css`). 항목 32px · 글자 13px/500 · 반경 6 · 아이콘 16px · 묶음 라벨 11px.
 * 활성: 연한 녹색 면 + 녹색 아이콘 + 진한 글자 600 — 녹색 글자는 대비가 모자라서(3.78:1) 쓰지 않는다.
 * ⚠ `::deep` — `NavLink` 가 그리는 `a` 는 이 컴포넌트의 스코프 밖이다.
 */

/* ── 머리: 브랜드 ─────────────────────────────────────────────────── */
.sidebar-head[b-r750jeazn2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 12px 0 16px;
}

.sidebar-brand[b-r750jeazn2] {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    min-height: 24px;
    text-decoration: none;
}

.sidebar-brand:hover[b-r750jeazn2] {
    text-decoration: none;
}

/* ── 메뉴 접기 — 메뉴에 손이 가거나 초점이 오면 나타난다 ─────────────── */
.sidebar-collapse[b-r750jeazn2] {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 120ms ease, background-color 120ms ease, color 120ms ease;
}

.sidebar-collapse:hover[b-r750jeazn2] {
    background: var(--code-bg);
    color: var(--text-h);
}

@media (min-width: 641px) {
    .sidebar-collapse[b-r750jeazn2] {
        display: inline-flex;
    }

    /* `.sidebar` 는 MainLayout 의 요소라 이 파일의 스코프 속성이 안 붙는다 — 그대로 쓴다. */
    .sidebar:hover .sidebar-collapse[b-r750jeazn2],
    .sidebar-collapse:focus-visible[b-r750jeazn2] {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-collapse[b-r750jeazn2] {
        transition: none;
    }
}

/* ── 폰: 메뉴 여닫기 ───────────────────────────────────────────────── */
.navbar-toggler[b-r750jeazn2] {
    appearance: none;
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    /* 줄 셋은 data URL 안이라 토큰이 안 닿는다 — `--text-muted`(#667085)를 손으로 적었다. */
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23667085' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/20px var(--surface);
    cursor: pointer;
}

.navbar-toggler:checked[b-r750jeazn2] {
    background-color: var(--code-bg);
}

.navbar-toggler:focus-visible[b-r750jeazn2] {
    outline: 2px solid var(--brand-strong);
    outline-offset: 2px;
}

/* ── 메뉴 묶음 ──────────────────────────────────────────────────────── */
.nav-scrollable[b-r750jeazn2] {
    display: none;
    padding: 4px 12px 12px;
}

.navbar-toggler:checked ~ .nav-scrollable[b-r750jeazn2] {
    display: flex;
    flex-direction: column;
}

.nav[b-r750jeazn2] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-group-label[b-r750jeazn2] {
    padding: 14px 10px 4px;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.nav-item[b-r750jeazn2]  .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: var(--fs-md);
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.nav-item[b-r750jeazn2]  .nav-link .icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.nav-item[b-r750jeazn2]  .nav-link:hover {
    background-color: rgb(16 24 40 / 5%);
    color: var(--text-h);
}

.nav-item[b-r750jeazn2]  .nav-link:hover .icon {
    color: var(--text);
}

.nav-item[b-r750jeazn2]  a.active {
    background-color: var(--brand-bg);
    color: var(--text-h);
    font-weight: 600;
}

.nav-item[b-r750jeazn2]  a.active .icon {
    color: var(--brand-strong);
}

/* ── 발: 운영자 칩 ──────────────────────────────────────────────────── */
.nav-user[b-r750jeazn2] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 4px 4px 8px;
    border-top: 1px solid var(--border);
}

.nav-avatar[b-r750jeazn2] {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-bg);
    color: var(--text-h);
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1;
}

.nav-user-text[b-r750jeazn2] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.3;
}

.nav-user-name[b-r750jeazn2] {
    font-size: var(--fs-md);
    font-weight: 500;
    color: var(--text-h);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-id[b-r750jeazn2] {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 그림만 있는 단추 둘(비밀번호 변경 · 로그아웃) — 누를 자리 28px(WCAG 2.2 AA 24px 위). */
.nav-user-btn[b-r750jeazn2] {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.nav-user-btn:hover[b-r750jeazn2] {
    background: rgb(16 24 40 / 6%);
    color: var(--text-h);
    text-decoration: none;
}

.nav-user-btn[b-r750jeazn2]  .icon {
    width: 16px;
    height: 16px;
}

@media (min-width: 641px) {
    .navbar-toggler[b-r750jeazn2] {
        display: none;
    }

    /* 머리(56px)를 뺀 나머지 — 길면 메뉴만 스크롤된다. 칩은 맨 아래(`margin-top: auto`). */
    .nav-scrollable[b-r750jeazn2] {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 56px);
        overflow-y: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-6cc5f74bah],
.components-reconnect-repeated-attempt-visible[b-6cc5f74bah],
.components-reconnect-failed-visible[b-6cc5f74bah],
.components-pause-visible[b-6cc5f74bah],
.components-resume-failed-visible[b-6cc5f74bah],
.components-rejoining-animation[b-6cc5f74bah] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-6cc5f74bah],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-6cc5f74bah],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-6cc5f74bah],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-6cc5f74bah],
#components-reconnect-modal.components-reconnect-retrying[b-6cc5f74bah],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-6cc5f74bah],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-6cc5f74bah],
#components-reconnect-modal.components-reconnect-failed[b-6cc5f74bah],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-6cc5f74bah] {
    display: block;
}


/* 재연결 상자 — 어드민 토큰으로 칠한다(T-024). 틀은 Blazor 템플릿 그대로다. */
#components-reconnect-modal[b-6cc5f74bah] {
    background-color: var(--surface);
    color: var(--text);
    width: 20rem;
    margin: 20vh auto;
    padding: var(--sp-6);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    box-shadow: 0 12px 32px rgb(16 24 40 / 18%);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-6cc5f74bah 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-6cc5f74bah 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-6cc5f74bah 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-6cc5f74bah]::backdrop {
    background-color: rgb(16 24 40 / 35%);
    animation: components-reconnect-modal-fadeInOpacity-b-6cc5f74bah 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-6cc5f74bah {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-6cc5f74bah {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-6cc5f74bah {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-6cc5f74bah] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-6cc5f74bah] {
    margin: 0;
    text-align: center;
}

/* 주 단추와 같은 모양 — 녹색 면 + 진한 글자(흰 글자는 대비가 모자란다). */
#components-reconnect-modal button[b-6cc5f74bah] {
    min-height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--radius);
    background-color: var(--brand);
    color: var(--brand-ink);
    font-weight: 500;
}

    #components-reconnect-modal button:hover[b-6cc5f74bah],
    #components-reconnect-modal button:active[b-6cc5f74bah] {
        background-color: var(--brand-strong);
    }

.components-rejoining-animation[b-6cc5f74bah] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-6cc5f74bah] {
        position: absolute;
        border: 3px solid var(--brand-strong);
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-6cc5f74bah 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-6cc5f74bah] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-6cc5f74bah {
    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/Pages/Home.razor.rz.scp.css */
/* 대시보드 막대 그래프(T-024). 막대는 진한 녹색 — 흰 면 대비 4.23:1(그래픽 3:1 기준 위). 연한 녹색(#76be2e)은 2.29:1 이라 쓰지 않는다. */
.chart-sub[b-gqrs5ctnam] {
    margin-top: var(--sp-1);
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.views-chart[b-gqrs5ctnam] {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 180px;
    padding-bottom: 1px;
    border-bottom: 1px solid var(--border);
}

.views-col[b-gqrs5ctnam] {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}

.views-col:hover .views-bar[b-gqrs5ctnam] {
    background: var(--brand-deep);
}

.views-bar[b-gqrs5ctnam] {
    width: 100%;
    max-width: 28px;
    border-radius: 3px 3px 0 0;
    background: var(--brand-strong);
}

.views-axis[b-gqrs5ctnam] {
    display: flex;
    justify-content: space-between;
    margin-top: var(--sp-1);
    font-size: var(--fs-xs);
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
