/*
 * Bulma は vendor/assets/stylesheets/bulma-no-dark-mode.min.css（Bulma の配布 CSS）をレイアウトで先に読み込む。
 * ダークモード用の規則を含まない版（ライトテーマのみ）を使う。Bulma 1.0 は OS がダークモードのとき自動でダークテーマになるが、
 * 独自に固定している色（.background-full-height の背景、has-background-white-ter）と食い違い、文字が読めなくなるため（#446）
 */
html {
  font-size: 12px;
}

.container {
  width: 100%;
}

.full-height {
  height: 100%;
}

.columns {
  margin-bottom: 0;
}

@media screen and (min-width: 769px) {
  .column > .label {
    text-align: right;
  }
}

.background-full-height {
  min-height: 100vh;
  /* Bulma 0.9.4 の has-background-info-light と同じ色。Bulma 1.0 では info-light が濃い水色 */
  /* （hsl(198, 100%, 90%)）に変わったため、色を直接指定して更新前の薄さを保つ（#396） */
  background-color: #eff5fb;
}

.table-container {
  margin-bottom: 1rem !important;
  overflow-x: auto;
}

.table.is-narrow td, .table.is-narrow th {
  padding: 0.25rem;
}

input.short {
  max-width: 6rem;
}

td > .input {
  width: auto;
}

td > textarea.input {
  width: 20rem;
}

.one-line {
  white-space: nowrap;
}

.file-display-wrapper {
  width: 200px;
  height: 200px;
}

.file-display-wrapper img {
  max-width: 100%;
  max-height: 100%;
}

/* 行の並び替え（sortable_controller.js） */
.drag-handle {
  cursor: grab;
  user-select: none;
  touch-action: none; /* タッチ操作でつまみをドラッグしたとき、ページがスクロールしないようにする */
  vertical-align: middle;
}

.sortable-ghost {
  opacity: 0.4;
}
