/* SCALE LIST の調整
 *
 * 参考画面のDOMは触らず、ここで表示だけを制御する。
 * DOMを削ると app.js の列インデックスがずれるので、非表示で対応する。
 */

/* JCコード列（5列目）を隠す。
 * JCコードは参考システムの独自IDで、SCALE LIST は法人番号を主キーにしているため不要。 */
table thead th:nth-child(5),
table tbody td:nth-child(5) {
  display: none;
}

/* ------------------------------------------------------------------
 * 絞り込みパネルで自前に組み立てる部分
 *
 * 参考画面が保存時に中身を持っていなかった領域（中業界・ラベル・除外・企業名）だけを
 * ここで描く。既にある枠の中に収めるので、枠の見た目は変わらない。
 * ------------------------------------------------------------------ */

/* 中業界の表示領域。大業界リストと同じ高さで、はみ出したら中でスクロールさせる */
.sl-mid {
  overflow-y: auto;
  padding: 8px 4px 8px 16px;
}

.sl-mid-msg {
  margin: 0;
  padding: 16px;
  color: #8d8d8d;
  font-size: 13px;
}

.sl-mid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 4px 16px;
}

/* 中業界を開いている大業界の行に印を付ける */
.sl-row-open {
  background: #f2f2f2;
}

.sl-section {
  padding: 16px 24px;
  border-top: 1px solid #e6e6e6;
}

.sl-section-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #000;
}

.sl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 6px 16px;
}

.sl-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
  cursor: pointer;
}

.sl-check input {
  accent-color: #000;
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex: none;
}

.sl-text {
  grid-column: 1 / -1;
  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
}

.sl-text:focus {
  outline: none;
  border-color: #000;
}

/* 実行できない状態のボタン（対象0件など）は押せないことを見た目で示す */
.sl-busy {
  opacity: 0.55;
  pointer-events: none;
}
