/* _content/HospitalInventory.Web/Components/Layout/MainLayout.razor.rz.scp.css */
/* ── 전체 레이아웃: 가로 flex ── */
.page[b-qftsx509cu] {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    overflow: hidden;
}

main[b-qftsx509cu] {
    flex: 1;
    min-width: 0;          /* flex 자식이 넘치지 않게 */
    display: flex;
    flex-direction: column;
    transition: margin-left 0.25s ease;
}

/* ── 사이드바 (push 방식) ── */
.sidebar[b-qftsx509cu] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    width: 250px;
    min-width: 250px;
    min-height: 100%;
    flex-shrink: 0;
    overflow: hidden;
    transition: width 0.15s ease, min-width 0.15s ease;
}

.sidebar-closed[b-qftsx509cu] {
    width: 0 !important;
    min-width: 0 !important;
}

/* ── 사이드바 드래그 리사이즈 핸들 ── */
.sidebar-resize-handle[b-qftsx509cu] {
    width: 5px;
    flex-shrink: 0;
    cursor: ew-resize;
    background: rgba(0, 0, 0, 0.08);
    transition: background 0.2s;
    position: relative;
    z-index: 50;
}

.sidebar-resize-handle:hover[b-qftsx509cu],
.sidebar-resize-handle.dragging[b-qftsx509cu] {
    background: rgba(58, 6, 71, 0.5);
}

.sidebar-closed + .sidebar-resize-handle[b-qftsx509cu] {
    display: none;
}

/* 내부 nav만 sticky — 배경은 sidebar가, 스크롤 고정은 여기서 */
.sidebar-sticky-nav[b-qftsx509cu] {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-sticky-nav[b-qftsx509cu]::-webkit-scrollbar {
    display: none;
}

/* ── 햄버거 토글 버튼 ── */
.sidebar-toggle-btn[b-qftsx509cu] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.sidebar-toggle-btn span[b-qftsx509cu] {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #444;
    border-radius: 2px;
}

.sidebar-toggle-btn:hover span[b-qftsx509cu] {
    background-color: #000;
}

/* ── 상단 바 ── */
.top-row[b-qftsx509cu] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    padding-left: 1rem !important;
    padding-right: 1.5rem !important;
}

.top-row[b-qftsx509cu]  a, .top-row[b-qftsx509cu]  .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
    text-decoration: none;
}

.top-row[b-qftsx509cu]  a:hover, .top-row[b-qftsx509cu]  .btn-link:hover {
    text-decoration: underline;
}

/* ── 콘텐츠 패딩 ── */
article[b-qftsx509cu] {
    padding-left: 2rem !important;
    padding-right: 1.5rem !important;
    flex: 1;
}

/* ── 에러 UI ── */
#blazor-error-ui[b-qftsx509cu] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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-qftsx509cu] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* _content/HospitalInventory.Web/Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-3m63bsx33r] {
    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-3m63bsx33r] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-3m63bsx33r] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-3m63bsx33r] {
    font-size: 1.1rem;
}

.bi[b-3m63bsx33r] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-3m63bsx33r] {
    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");
}

.bi-plus-square-fill-nav-menu[b-3m63bsx33r] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-3m63bsx33r] {
    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-item[b-3m63bsx33r] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-3m63bsx33r] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-3m63bsx33r] {
        padding-bottom: 1rem;
    }

    .nav-item[b-3m63bsx33r]  .nav-link,
    .nav-item[b-3m63bsx33r]  .nav-link:visited {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        min-height: 3rem;
        height: auto;
        display: flex;
        align-items: center;
        line-height: 1.4;
        padding: 0.4rem 0;
        width: 100%;
        white-space: nowrap;
    }

.nav-item[b-3m63bsx33r]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-3m63bsx33r]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-3m63bsx33r] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-3m63bsx33r] {
    display: block;
}

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

    .nav-scrollable[b-3m63bsx33r] {
        display: block;
    }
}
/* _content/HospitalInventory.Web/Components/Pages/Stats/MonthlyStats.razor.rz.scp.css */
.print-only[b-qhiey5dx73] {
    display: none;
}

@media print {
    .no-print[b-qhiey5dx73] {
        display: none !important;
    }

    .print-only[b-qhiey5dx73] {
        display: block !important;
    }

    h1[b-qhiey5dx73] {
        margin-bottom: 0.2rem !important;
    }

    h4[b-qhiey5dx73] {
        margin-bottom: 0.15rem !important;
    }

    .mb-1[b-qhiey5dx73], .mb-2[b-qhiey5dx73], .mb-3[b-qhiey5dx73], .mb-4[b-qhiey5dx73] {
        margin-bottom: 0.3rem !important;
    }

    .mt-1[b-qhiey5dx73], .mt-3[b-qhiey5dx73] {
        margin-top: 0.3rem !important;
    }

    .card[b-qhiey5dx73] {
        break-inside: avoid;
        border: 1px solid #999 !important;
        margin-bottom: 0.3rem !important;
    }

    .card-header[b-qhiey5dx73] {
        padding: 0.3rem 0.6rem !important;
    }

    .card-body[b-qhiey5dx73] {
        padding: 0.4rem 0.6rem !important;
    }

    .row.g-4[b-qhiey5dx73] {
        --bs-gutter-y: 0.4rem !important;
        --bs-gutter-x: 0.4rem !important;
    }

    .row.g-4 > div[b-qhiey5dx73] {
        break-inside: avoid;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .row.g-3[b-qhiey5dx73] {
        --bs-gutter-y: 0.3rem !important;
        --bs-gutter-x: 0.3rem !important;
    }

    table[b-qhiey5dx73] {
        font-size: 8px;
    }

    th[b-qhiey5dx73], td[b-qhiey5dx73] {
        padding: 1px 4px !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        word-break: break-word;
    }

    /* 진료과별 합계/연도별 추이합계/항목별 TOP10 등 요약 목록 행 — 카드가 인쇄 시 전체 폭으로
       펼쳐지면서 justify-content:between이 라벨과 값을 양 끝으로 멀리 밀어놓던 문제 수정 */
    .d-flex.justify-content-between.small.mb-1[b-qhiey5dx73] {
        justify-content: flex-start !important;
        gap: 0.6rem;
    }

    /* 진행률 막대는 배경색이라 브라우저 "배경 그래픽" 인쇄 옵션이 꺼져 있으면 안 보임 — 강제로 인쇄 */
    .progress[b-qhiey5dx73], .progress-bar[b-qhiey5dx73] {
        print-color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
    }
}
