@charset "UTF-8";
/* スマートフォンなど狭い画面向け（PCの表示は変えない）。共通の調整は ../common/css/edit-responsive.css */
@media (max-width: 840px) {
	/* Exp は現在値と累計をまとめる見出しなので、専門能力・過去と同じく全幅の見出しにする */
	#base > tbody > tr:has(#base\.exp\.current) > th:first-child {
		grid-column: 1 / -1 !important;
	}
	/*
	 * その下の現在値と累計は横に並べる
	 * （項目名｜入力欄｜項目名｜入力欄 の4列にして、ほかの入力欄は右端まで広げる）
	 */
	#base > tbody {
		grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr);
	}
	#base > tbody > tr > td {
		grid-column-end: -1 !important;
	}
	#base > tbody > tr:has(#base\.exp\.current) > :nth-child(2) { grid-column: 1 / 2 !important; }
	#base > tbody > tr:has(#base\.exp\.current) > :nth-child(3) { grid-column: 2 / 3 !important; }
	#base > tbody > tr:has(#base\.exp\.current) > :nth-child(4) { grid-column: 3 / 4 !important; }
	#base > tbody > tr:has(#base\.exp\.current) > :nth-child(5) { grid-column: 4 / 5 !important; }
	/* 累計の入力欄も、現在値（2列目）と同じく左寄せにする */
	#base\.exp\.cumulative {
		text-align: left;
	}

	/* ダメージと人間性を横に並べる */
	.edit-auto form #div\.damage {
		float: left !important;
		margin-right: 4px;
	}
	.edit-auto form #div\.humanity {
		overflow: hidden;
	}
}
