/* tables.css */

/* 共通テーブルレイアウト */
.ai-objective-table,
.modal-objectives-table,
.objective-table,
.history-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

/* 履歴詳細テキスト */
.history-table td.history-detail {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  text-overflow: unset; 
}
.ai-objective-table th,
.ai-objective-table td,
.modal-objectives-table th,
.modal-objectives-table td,
.objective-table th,
.objective-table td,
.history-table th,
.history-table td {
  border: 1px solid #ccc;
  padding: 3px;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal-objectives-table th,
.objective-table th,
.history-table th {
  background: #f7f7f7;
}

/* objective-table：標準列幅（ドラッグ列含む） */
.objective-table th:nth-child(1),
.objective-table td:nth-child(1) {
  border: none;
  background: transparent;
  width: 2%;
  text-align: right;
  padding: 0;
}
.objective-table th:nth-child(2),
.objective-table td:nth-child(2) { width: 34%; }
.objective-table th:nth-child(3),
.objective-table td:nth-child(3) { width: 7%; }
.objective-table th:nth-child(4),
.objective-table td:nth-child(4) { width: 7%; }
.objective-table th:nth-child(5),
.objective-table td:nth-child(5) { width: 7%; }
.objective-table th:nth-child(6),
.objective-table td:nth-child(6) { width: 30%; }
.objective-table th:nth-child(7),
.objective-table td:nth-child(7) { width: 7%; }
.objective-table th:nth-child(8),
.objective-table td:nth-child(8) {
  width: 6%;
  text-align: center;
  white-space: nowrap;
}


/* history-table 列幅設定（colgroupを使用） */
.history-table col:nth-child(1) { width: 20%; }
.history-table col:nth-child(2) { width: 20%; }
.history-table col:nth-child(3) { width: 60%; }
.history-table col:nth-child(4) { width: 74px; }

/* 旧報告ハイライト */
.old-report {
  color: red;
}

/* 編集可能なセル */
td[contenteditable="true"] {
  white-space: normal;
  overflow-wrap: break-word;
  text-overflow: unset;
  height: auto;
}

/* インライン日付入力 */
.objective-inline-input[type="date"] {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  padding: 6px;
  width: 100%;
  box-sizing: border-box;
  appearance: auto;
  -webkit-appearance: none;
}
.objective-inline-input[type="date"]:hover {
  background: #f0f0f0;
}


#edit-objectives-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* 各列の幅を固定するために必要 */
}

#edit-objectives-table th:nth-child(1),
#edit-objectives-table td:nth-child(1) {
  width: 60%;
}

#edit-objectives-table th:nth-child(2),
#edit-objectives-table td:nth-child(2) {
  width: 20%;
}

#edit-objectives-table th:nth-child(3),
#edit-objectives-table td:nth-child(3) {
  width: 20%;
}

#edit-objectives-table th:nth-child(4),
#edit-objectives-table td:nth-child(4) {
  width: 74px;
}

.task-block{
  margin-top: 10px;
}

#ai-suggest-modal .objective-input {
  border: none;
  outline: none; /* フォーカス時の青い枠線も非表示にする */
  font-size: 14px;
}
.full-width-input {
  font-size: 18px;
  width: 100%;
}