/* ===== タスク一覧ページ専用スタイル =====
   members.css の :root 変数・pg-* ヘッダースタイルを流用。
   このファイルはタスク固有のコンポーネントのみ定義する。
   ===================================================== */

/* ===== Main ===== */
.t-main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 32px 60px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ===== Section header ===== */
.t-sec-hd {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.t-sec-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--tx2);
}
.t-sec-sub { font-size: 11px; color: var(--tx3); }

/* ===== Summary grid（6枚） ===== */
.t-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.t-sum-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--r);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .15s;
}
.t-sum-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.t-sum-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--tx3);
  margin-bottom: 6px;
}
.t-sum-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--tx1);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ===== Filter card ===== */
.t-filter-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.t-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.t-search {
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  background: #FAFAF8;
  color: var(--tx1);
  outline: none;
  transition: border-color .15s, background .15s;
}
.t-search::placeholder { color: var(--tx3); }
.t-search:focus { border-color: #AFC6CF; background: #fff; }
.t-sel {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  background: #FAFAF8;
  color: var(--tx1);
  cursor: pointer;
  outline: none;
  transition: border-color .15s, background .15s;
}
.t-sel:focus { border-color: #AFC6CF; background: #fff; }
.t-filter-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #F0EBE4;
  font-size: 11px;
  color: var(--tx3);
}

/* ===== Table card ===== */
.t-table-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.t-tbl-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.t-tbl-title { font-size: 13px; font-weight: 600; color: var(--tx1); }
.t-tbl-right { display: flex; align-items: center; gap: 10px; }
.t-tbl-info  { font-size: 11px; color: var(--tx3); }
.t-sel-sm {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 11px;
  font-family: inherit;
  background: #FAFAF8;
  color: var(--tx1);
  cursor: pointer;
  outline: none;
}
/* ===== 更新ボタン ===== */
.t-refresh-btn {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  color: #5F7F8E;
  background: #EAF1F3;
  cursor: pointer;
  transition: background .15s, color .15s, opacity .15s;
  white-space: nowrap;
}
.t-refresh-btn:hover:not(:disabled) { background: #DCE9ED; }
.t-refresh-btn:disabled { opacity: .6; cursor: default; }

/* ===== 差分トースト ===== */
.t-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #4E4A46;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 6px 22px rgba(78,74,70,.28);
  opacity: 0;
  transition: opacity .3s, transform .3s;
  z-index: 1000;
  pointer-events: none;
}
.t-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.t-tbl-scroll { overflow-x: auto; }
.t-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.t-table th {
  text-align: left;
  padding: 9px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--tx3);
  border-bottom: 1px solid var(--border);
  background: #F9F8F5;
  white-space: nowrap;
}
.t-table td {
  padding: 11px 12px;
  color: var(--tx1);
  border-bottom: 1px solid #F2EDE7;
  vertical-align: middle;
}
.t-table tr:last-child td { border-bottom: none; }
.t-table tr:hover td      { background: #FAFAF8; }
.t-td-title { font-weight: 600; }
.t-td-memo  { color: var(--tx2); font-size: 11px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-td-empty { text-align: center; padding: 48px 24px; color: var(--tx3); font-size: 13px; }

/* ===== 担当者ドット ===== */
.t-assignee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.t-a-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== ステータスバッジ ===== */
.t-sb {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.t-sb-done   { background: #E8F5EE; color: #4A7A5A; border-color: #B8DCC4; }
.t-sb-active { background: #EBF3F7; color: #3A6A8A; border-color: #B0CDE0; }
.t-sb-hold   { background: #FAF0E3; color: #8A6040; border-color: #D8C0A0; }
.t-sb-none   { background: #F2F0ED; color: #7A7570; border-color: #D0C8C0; }
.t-sb-over   { background: #F5EEEC; color: #8A4040; border-color: #D4B0AC; }

/* ===== 優先度バッジ ===== */
.t-pb {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.t-pb-high { background: #F5EAE8; color: #8A4A40; border-color: #DEB8B0; }
.t-pb-mid  { background: #F8F4E6; color: #7A6A30; border-color: #E0D090; }
.t-pb-low  { background: #F2F0ED; color: #7A7570; border-color: #D0C8C0; }

/* ===== 依頼書/仕様書 ===== */
.t-doc-wrap  { display: flex; flex-direction: column; gap: 3px; min-width: 80px; }
.t-doc-link  {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #5F7F8E;
  text-decoration: none;
  border-bottom: 1px dotted #AFC6CF;
  width: fit-content;
  transition: color .12s;
}
.t-doc-link:hover { color: #4A6A78; }
.t-doc-none  { font-size: 11px; color: #C8C2BB; }

/* ===== 期限超過行 ===== */
.t-row-over td:first-child {
  border-left: 3px solid #C98276;
}
.t-deadline-over {
  color: #C98276;
  font-weight: 600;
  white-space: nowrap;
}
.t-deadline-normal { white-space: nowrap; }
