/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ── レイアウト全体 ──────────────────────────────────────────── */
.layout-wrapper[b-g9tsy91mdw] {
    display: flex;
    min-height: 100vh;
    background-color: #f1f5f9;
}

/* ── デスクトップサイドバー ─────────────────────────────────── */
.sidebar[b-g9tsy91mdw] {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
}

/* ── ブランドロゴエリア ─────────────────────────────────────── */
.sidebar-brand[b-g9tsy91mdw] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
}

.sidebar-brand-icon[b-g9tsy91mdw] {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: var(--bs-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-brand-name[b-g9tsy91mdw] {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.sidebar-brand-sub[b-g9tsy91mdw] {
    font-size: 0.68rem;
    color: #94a3b8;
    line-height: 1;
}

/* ── モバイル Offcanvas ──────────────────────────────────────── */
.sidebar-offcanvas[b-g9tsy91mdw] {
    background: #ffffff;
    width: 240px !important;
    border-right: 1px solid #e2e8f0;
}

/* offcanvas-body の Bootstrap デフォルト overflow-y: auto を無効化し、NavMenu 内で制御する */
.sidebar-offcanvas .offcanvas-body[b-g9tsy91mdw] {
    overflow: hidden;
}

.sidebar-offcanvas-header[b-g9tsy91mdw] {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

/* ── メインコンテンツエリア ─────────────────────────────────── */
.main-wrapper[b-g9tsy91mdw] {
    min-width: 0;
    flex: 1;
}

/* ── モバイルトップバー ─────────────────────────────────────── */
.mobile-topbar[b-g9tsy91mdw] {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    min-height: 3.5rem;
}

/* ── Blazor エラーバー ──────────────────────────────────────── */
#blazor-error-ui[b-g9tsy91mdw] {
    background: #dc2626;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    color: white;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-g9tsy91mdw] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* ── セクション見出し ────────────────────────────────────────── */
.nav-section[b-i5ta8vqvdy] {
    display: block;
    padding: 1rem 0.875rem 0.3rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

/* ── nav-link の共通スタイル上書き ──────────────────────────── */
/* Bootstrap の nav-pills が active クラスに primary bg + white text を自動付与する */
.sidebar-nav-link[b-i5ta8vqvdy] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.55rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    /* Bootstrap の link-body-emphasis 相当 */
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
    min-height: unset;
}

/* ホバー（非アクティブ） */
.sidebar-nav-link:hover:not(.active)[b-i5ta8vqvdy] {
    background-color: #f1f5f9;
    color: #1e293b;
}

/* アクティブは Bootstrap nav-pills が自動でプライマリ色を付ける */
/* .active は Bootstrap が制御するため上書き不要 */

/* ── ログアウトボタン ────────────────────────────────────────── */
.sidebar-logout[b-i5ta8vqvdy] {
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
}

/* ── 区切り線 ────────────────────────────────────────────────── */
.sidebar-divider[b-i5ta8vqvdy] {
    border-color: #e2e8f0;
    margin: 0.25rem 0 0.75rem;
}

/* ── ユーザー情報カード ──────────────────────────────────────── */
.sidebar-user-card[b-i5ta8vqvdy] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.625rem;
    border: 1px solid #e2e8f0;
}

.sidebar-user-avatar[b-i5ta8vqvdy] {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--bs-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-user-info[b-i5ta8vqvdy] {
    overflow: hidden;
    flex: 1;
}

.sidebar-user-name[b-i5ta8vqvdy] {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-tenant[b-i5ta8vqvdy] {
    font-size: 0.68rem;
    font-weight: 600;
    color: #475569;
    max-width: 100%;
}

/* テナント切り替えトグルボタン */
.sidebar-tenant-toggle[b-i5ta8vqvdy] {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-tenant-toggle:hover[b-i5ta8vqvdy] {
    color: #0f172a;
    text-decoration: underline;
}

.sidebar-tenant-chevron[b-i5ta8vqvdy] {
    font-size: 0.55rem;
    flex-shrink: 0;
}

/* ── グループセクションの折りたたみトグルボタン ─────────────────── */
.nav-section-toggle[b-i5ta8vqvdy] {
    cursor: pointer;
    padding: 0;
    outline: none;
}

.nav-section-toggle:focus-visible[b-i5ta8vqvdy] {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

.nav-section-toggle:hover .nav-section[b-i5ta8vqvdy] {
    color: #64748b;
}

/* ナビ項目のスクロールコンテナ（サイドバー本体の overflow: hidden に対応） */
.sidebar-nav-scroll[b-i5ta8vqvdy] {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* テナントリスト・ユーザーカードの position: relative ラッパー */
.sidebar-user-area[b-i5ta8vqvdy] {
    position: relative;
}

/* テナント切り替えリスト（absolute でユーザーカード直上に重ねる。レイアウトに影響しない） */
.sidebar-tenant-list[b-i5ta8vqvdy] {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 0.25rem;
    z-index: 10;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.25rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.sidebar-tenant-list-title[b-i5ta8vqvdy] {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    padding: 0.25rem 0.625rem 0.2rem;
}

.sidebar-tenant-item[b-i5ta8vqvdy] {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.4rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
    background: none;
    border-radius: 0.375rem;
    color: #475569;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-tenant-item:hover[b-i5ta8vqvdy] {
    background: #e2e8f0;
    color: #1e293b;
}

.sidebar-tenant-item.active[b-i5ta8vqvdy] {
    background: var(--bs-primary);
    color: #fff;
}

.sidebar-user-role[b-i5ta8vqvdy] {
    font-size: 0.68rem;
    color: #94a3b8;
}
/* /Components/Pages/DashboardCards/TenantSummaryCard.razor.rz.scp.css */
/* ── サマリーカードのアイコン ─────────────────────────────────── */
.summary-icon[b-ec116e8s4k] {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
/* /Components/Pages/Tenant/Dashboard.razor.rz.scp.css */
/* スタイルは各カードコンポーネントの .razor.css に移動済み */

.dashboard-tenant-name[b-egbj4mrw77] {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    padding-bottom: 1px;
}
