/* 運営：サービスの分類の一覧（/admin/categories）。
   説明が長く、1行が何十行にもなっていたので、列の幅を決めて1行に切っている。
   compare-table のあとに効かせたいので、わざと2つのクラスを重ねて書いている。 */

table.compare-table.category-table { table-layout: fixed; width: 100%; }

.compare-table.category-table th,
.compare-table.category-table td { vertical-align: top; padding: 7px 8px; }

/* 列の幅。分類・やりたいことは割合、数や識別名は固定、説明は残り全部 */
.compare-table.category-table th:nth-child(1),
.compare-table.category-table td:nth-child(1) { width: 19%; }
.compare-table.category-table th:nth-child(2),
.compare-table.category-table td:nth-child(2) { width: 62px; }
.compare-table.category-table th:nth-child(3),
.compare-table.category-table td:nth-child(3) { width: 132px; }
.compare-table.category-table th:nth-child(4),
.compare-table.category-table td:nth-child(4) { width: 44px; }
.compare-table.category-table th:nth-child(5),
.compare-table.category-table td:nth-child(5) { width: 70px; }
.compare-table.category-table th:nth-child(6),
.compare-table.category-table td:nth-child(6) { width: 15%; }
.compare-table.category-table th:nth-child(8),
.compare-table.category-table td:nth-child(8) { width: 146px; }

/* 長い文は1行で切る。全文は title でマウスを乗せると出る */
.compare-table.category-table .cat-clip {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* しぼり込んでいるときに出す、上の段の道筋 */
.compare-table.category-table .cat-path {
  font-size: 11px;
  color: #93a2b2;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-table.category-table .cat-slug {
  font-size: 12px;
  color: #45596c;
  background: #f2f6fa;
  border-radius: 4px;
  padding: 1px 5px;
}

.compare-table.category-table .num { text-align: right; white-space: nowrap; }

/* 大分類のところで区切りを入れて、枝のかたまりを見やすくする */
.compare-table.category-table tr.lv0 > td { border-top: 2px solid #d5e2ed; background: #fafcff; }
