/* ============================================================
   custom.css … 素 Bootstrap に無い独自スタイル
   ------------------------------------------------------------
   独自コンポーネント・独自ユーティリティ。「BS に足す」もの。
   BS の標準要素／標準クラスの上書きは overwrite.css へ。
   ============================================================
*/

/* 表ヘッダ固定枠クラス */
.table-freeze-container {
	max-height: calc(100vh - 220px);
	overflow-y: auto;
}

/* 表ヘッダ固定クラス */
.freeze-table thead th {
	position: sticky;
	top: 0;
	z-index: 999;
	background-color: var(--bs-table-bg, #ffffff);
}

/* main（コンテンツ領域）に追従する固定ボトムバー。
   サイドバー幅(225px)分だけ左を空け、開閉に追従する。 */
.main-fixed-bottom {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 225px;	/* サイドバー幅 */
	transition: left 0.15s ease-in-out;	/* サイドバー開閉と同じ速度 */
}

/* サイドバー格納時はフル幅 */
.sb-sidenav-toggled .main-fixed-bottom {
	left: 0;
}

/* モバイル（サイドバー off-canvas）時もフル幅 */
@media (max-width: 991.98px) {
	.main-fixed-bottom {
		left: 0;
	}
}