.container {
  font-family: arial;
  font-size: 24px;
  margin: 25px;
  width: 950px;
  height: 400px;
  outline: dashed 1px black;
  /* 水平・垂直方向の中央揃え */
  display: flex;
  justify-content: center;
  align-items: center;
}

.child {
  width: 400px;
  height: 120px;
  background-color: rgb(236, 240, 240);
}

.center-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-table {
  margin: 0 auto;
  border-collapse: collapse;
  text-align: center;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.center-table th, .center-table td {
  padding: 10px;
  border: 1px solid #ccc;
}

.center-table thead th {
  position: sticky;
  top: 4rem;
  z-index: 10;
  background-color: var(--color-primary);
  color: var(--color-primary-content);
}

.center-table tbody tr {
  position: relative;
  z-index: 0;
}

.center-table tbody td {
  /* trに付けた role_color_class 等の背景色が透けて見えるように透過にする（table自体は白背景なので通常行は白のまま） */
  background-color: transparent;
}

.zebra-table tbody tr:nth-child(odd) {
  background-color: #fff;
}

.zebra-table tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

.navbar {
  position: sticky;
  top: 0;
  /* テーブルヘッダー(z-index: 10)と同値だとDOM順で後ろのテーブルヘッダーが勝ち、
     ナビバー内の管理者ドロップダウン等が裏に回り込むため、確実に上に来るよう高くする */
  z-index: 30;
}

.center-table th,
.center-table thead th {
  background-color: #c8dce8 !important;
  color: #777 !important;
  font-weight: normal !important;
}

.title {
  white-space: nowrap;
}

.center-table caption {
  caption-side: top;
  font-size: 1.5em;
  margin-bottom: 10px;
}
.radius-table{
    border-radius: 4px;
}
.menu-table {
  border-collapse: collapse;
}
.menu-table td,
.menu-table th {
  border: 1px solid #e0e0e0;
}
.kenmei-col {
  /* table-layout: auto では th/td 自体の width 指定はセル間の余白配分で無視されがちなので、
     中の div に固定幅を持たせてカラム幅を強制的に狭める */
  /* 「09001（受注）」が折り返さない幅(約84px)に、少し余裕を持たせて90pxにしている */
  width: 90px;
  overflow-wrap: break-word;
}
.ono-col {
  /* kenmei-colと同じ理由でdivに固定幅を持たせる。件名(kenmei-col)を広げた分、
     ここを狭めてバランスを取る */
  width: 70px;
  overflow-wrap: break-word;
}
.etype-col {
  /* kenmei-colと同じ理由でdivに固定幅を持たせる。型式は9文字(例: 6L28HX-CR)
     でも折り返さない幅(約88px)に、少し余裕を持たせて100pxにしている */
  width: 100px;
  overflow-wrap: break-word;
}
.row-compact th,
.row-compact td {
  /* 注文部品詳細の上部（取引管理No./件名/TC/納入期日の各行）の高さを揃えて低くする */
  padding: 2px 10px !important;
}
.th-compact th {
  /* 「取引管理No.」が折り返さない大きさに統一（小さめ） */
  font-size: 0.75rem !important;
  white-space: nowrap;
  /* row-compactと同じ理由で、見出し行の上下余白もぎりぎりまで詰める */
  padding: 2px 10px !important;
}
th.mno-col, td.mno-col {
  /* 取引Noは9桁固定で数字は折り返せないため、幅を絞るには左右パディングを
     詰めるしかない(table-layout: autoは中身が入りきる最小幅までしか縮まらない)。
     th-compact(padding: 2px 10px)と詳細度(クラス+要素)が同点になるため、
     th-compactより後ろに書いて確実に上書きする */
  padding-left: 2px !important;
  padding-right: 2px !important;
}
.hide-updated-at-col .updated-at-col {
  /* 部品詳細テーブル最後尾の「更新日時」列の表示/非表示切り替え用 */
  display: none;
}
.alert {
  overflow: hidden;
  transition:
    opacity 300ms ease,
    max-height 400ms ease,
    padding-top 300ms ease,
    padding-bottom 300ms ease;
  max-height: 120px;
}
.alert--dismissing {
  opacity: 0;
  max-height: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
}
.join .btn {
  /* ページネーションのボタンは文字が小さく読みにくいとの指摘があったため14pxに
     拡大。ボタンの高さは他画面のbtn-smボタン(検索ボタン等)と見た目を揃えるため
     既定の32px(btn-smのデフォルト)のまま変えない。
     「.join .btn」(クラス2つ)は「.btn」(クラス1つ)より詳細度が高いので、
     !important無しでfont-sizeを上書きできる */
  font-size: 14px;
}
