/* 本システム固有の追加スタイル */

/* ヘッダーの2行表示ブロック（契約期間・日時・ユーザー名） */
.ace-nav .nav-info {
  max-width: none;
  line-height: 15px;
  top: 7px;
}
.ace-nav .nav-info small {
  display: block;
  font-size: 12px;
  opacity: 1;
}
.ace-nav > li.red > a > .fa-clock {
  float: left;
  margin: 15px 5px 0 0;
}

/* 凡例の色見本 */
.legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 6px;
  border: 1px solid #ccc;
}

/* 円グラフのラベル */
.pie-label {
  font-size: 11px;
  text-align: center;
  padding: 2px;
  color: #fff;
}

/* グラフ上の金額ラベル */
.chart-value-label {
  position: absolute;
  font-size: 11px;
  color: #666;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* 合計欄（ラベル＋下線付きの金額） */
.total-row { margin-bottom: 2px; }
.total-value {
  border-bottom: 1px solid #d5d5d5;
  text-align: right;
  padding: 5px 4px 4px;
  min-height: 28px;
}

/* 明細テーブル（枠線なし・ヘッダは細字中央） */
.table-item > thead > tr > th {
  border: none;
  background: none;
  font-weight: bold;
  text-align: center;
  padding-bottom: 2px;
}
.table-item > tbody > tr > td { border: none; padding: 3px 4px; vertical-align: middle; }
.table-item .amount {
  border: none;
  border-bottom: 1px solid #d5d5d5;
  box-shadow: none;
  border-radius: 0;
}
.table-confirm > tbody > tr > td { border-bottom: 1px solid #d5d5d5 !important; }

/* 選択中ボタンの Selected バッジ */
.toggle-btn { position: relative; }
.toggle-btn .selected-badge {
  display: none;
  position: absolute;
  top: -11px;
  left: 0;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 2px;
}
.toggle-btn.selected .selected-badge { display: inline-block; }
.toggle-group { margin-top: 4px; }

/* 一覧の選択スイッチ（ON/OFF表記に固定） */
input[type=checkbox].ace.ace-switch.ace-switch-5.switch-onoff + .lbl::before {
  content: "ON\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0OFF";
}

/* 必須バッジ（管理者管理のラベル） */
.badge-required {
  display: inline-block;
  background-color: #dd5a43;
  color: #fff;
  font-size: 12px;
  font-weight: normal;
  line-height: 1;
  padding: 4px 9px;
  border-radius: 10px;
  vertical-align: 1px;
}

/* 環境設定：色見本 */
.color-sample {
  display: inline-block;
  padding: 5px 10px;
  min-width: 130px;
  text-align: center;
  border: 1px solid #ddd;
}

/* 環境設定：ファイル選択 */
.file-input-label {
  display: block;
  position: relative;
  border: 1px solid #ccc;
  background: #fafafa;
  font-weight: normal;
  margin: 0;
  overflow: hidden;
}
.file-input-icon {
  display: inline-block;
  padding: 7px 10px;
  background: #eee;
  border-right: 1px solid #ddd;
  color: #888;
}
.file-input-text { color: #888; padding-left: 6px; }
.file-input-button {
  float: right;
  background: #6fb3e0;
  color: #fff;
  padding: 7px 16px;
}
.file-input-hidden { position: absolute; left: -9999px; }

/* 売上比率の円グラフ枠 */
#ratio-chart {
  border: 1px solid #ddd;
  background-color: #FDFDF6;
}

/* 棒グラフの中に表示する金額 */
.chart-bar-label {
  position: absolute;
  font-size: 11px;
  color: #fff;
  transform: translateX(-50%);
  white-space: nowrap;
}


/* 一覧で選択中の行 */
.table > tbody > tr.row-selected > td,
.table-hover > tbody > tr.row-selected:hover > td {
  background-color: #dbeefc;
}
