/* =========================================================
   出張管理【ホテル・フライト・レンタカー確認シート】の見た目（2026-11-02）
   ⚠ tt- で始まるものだけ（ほかの画面に当てない）。色はシートと同じ（サーバーの /meta が持つ）。
   ========================================================= */
.tt-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 6px 0 10px; }
.tt-legend { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 12px; }
.tt-legend span { display: inline-flex; align-items: center; gap: 4px; }
.tt-legend i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid #cbd5e1; display: inline-block; }
.tt-wrap { overflow: auto; max-height: 75vh; border: 1px solid #d6dde6; border-radius: 8px; background: #fff; }
.tt { border-collapse: separate; border-spacing: 0; font-size: 12px; }
/* 列の幅は決めうち（2026-11-18「幅広すぎる」）。⚠ 長い文字で列が広がらないように table-layout: fixed。表の幅は trip-travel.js の render が日数から入れる */
.tt.tt--fixed { table-layout: fixed; }
.tt.tt--fixed thead .tt-p { width: 140px; }
.tt.tt--fixed thead .tt-k { width: 112px; }
.tt.tt--fixed thead .tt-d { width: 66px; }
.tt.tt--fixed thead .tt-sum { width: 130px; }
.tt th, .tt td { border-right: 1px solid #cfd6df; border-bottom: 1px solid #cfd6df; padding: 2px 3px; white-space: nowrap; }
/* ⚠ top は trip-travel.js の stickHead が入れる（ページをスクロールして表が上の帯の下にもぐったぶん下げる＝帯のすぐ下に止まる。2026-11-18） */
.tt thead th { position: sticky; top: var(--tt-head-top, 0px); background: #f4f7f5; z-index: 3; font-weight: 700; text-align: center; }
/* 日付の見出しは1行（日付＋曜日）。2026-11-18 */
.tt thead .tt-d { line-height: 1.25; padding: 3px 2px; }
.tt thead .tt-dow { display: block; font-size: 11px; font-weight: 600; }
.tt .is-sat { color: #1d4ed8; }
.tt .is-sun { color: #b91c1c; }
.tt .tt-p { position: sticky; left: 0; z-index: 2; background: #fff; box-sizing: border-box; width: 140px; min-width: 140px; max-width: 140px; white-space: normal; vertical-align: top; }
.tt .tt-k { position: sticky; left: 140px; z-index: 2; background: #fafbfc; min-width: 112px; color: #475569; }
.tt thead .tt-p, .tt thead .tt-k { z-index: 4; background: #f4f7f5; }
.tt .tt-first td { border-top: 2px solid #94a3b8; }
/* 幅をつめる（2026-11-18 ご指摘「もっとコンパクトに」「幅広すぎる」）。⚠ 長い文字は前と同じく、空いている右のマスへはみ出して見せる */
.tt .tt-d { min-width: 58px; }
.tt .tt-c { min-width: 58px; max-width: 92px; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.tt .tt-c:hover { outline: 2px solid #1E40AF; outline-offset: -2px; }
.tt .tt-c.is-yen { text-align: right; font-variant-numeric: tabular-nums; }
.tt .tt-sum { vertical-align: top; min-width: 130px; background: #fbfaf5; }
.tt-sl { display: flex; justify-content: space-between; gap: 8px; line-height: 1.6; }
.tt-sl b { font-variant-numeric: tabular-nums; }
.tt-name { font-weight: 700; font-size: 13px; }
.tt-sub { color: #64748b; font-size: 11px; }
.tt-pref { margin-top: 4px; padding: 4px 6px; background: #fff7ed; border-radius: 4px; color: #9a3412; font-size: 11px; line-height: 1.5; }
.tt-gone { margin-left: 4px; font-size: 10px; color: #b91c1c; font-weight: 400; }
.tt-link { border: 0; background: none; color: #1E40AF; text-decoration: underline; font: inherit; font-size: 11px; padding: 2px 0; cursor: pointer; }
.tt-pub td { background: #f8fafc; }
.tt .tt-pb { text-align: center; }
.tt-pubbtn { border: 1px solid #94a3b8; background: #fff; border-radius: 6px; font: inherit; font-size: 11px; padding: 2px 6px; cursor: pointer; }
.tt-pubbtn.is-on { background: #16a34a; border-color: #16a34a; color: #fff; }
.tt-pubbtn.is-changed { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.tt-empty { padding: 16px; text-align: center; color: #64748b; }
.tt-dlg { border: 0; border-radius: 12px; padding: 16px 18px; width: min(760px, 94vw); max-height: 90vh; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.tt-dlg::backdrop { background: rgba(15, 23, 42, .4); }
.tt-dlg h3 { margin: 0 0 8px; font-size: 16px; }
.tt-fs { border: 1px solid #e2e8f0; border-radius: 8px; margin: 0 0 8px; padding: 6px 10px 8px; }
.tt-fs legend { font-weight: 700; font-size: 13px; padding: 0 4px; }
/* スプレッドシートのように打つ（2026-11-02 ご指摘「記入しにくい」「コピー貼り付け」） */
.tt-bar { position: sticky; top: 0; z-index: 6; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; background: #fff;
  border: 1px solid #d6dde6; border-radius: 8px; padding: 8px 10px; margin: 0 0 8px; }
.tt-bar__grp { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 12px; }
.tt-bar__grp b { margin-right: 2px; color: #334155; }
.tt-bar__info { flex-basis: 100%; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #475569; }
.tt-save { color: #0f766e; }
.tt-hint { color: #64748b; font-size: 11px; }
.tt-chip { border: 1px solid #cbd5e1; background: #fff; border-radius: 99px; padding: 3px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.tt-chip:hover { border-color: #1E40AF; }
.tt-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tt .tt-c { user-select: none; }
.tt .tt-c.is-sel { box-shadow: inset 0 0 0 9999px rgba(30, 64, 175, .12); }
.tt .tt-c.is-act { outline: 2px solid #1E40AF; outline-offset: -2px; }
.tt .tt-c { position: relative; }
/* 選んでいるマスに置いておく入力欄。ふだんは見えない（打ち始めると見える） */
.tt .tt-c .tt-in { position: absolute; left: 0; top: 0; height: 100%; box-sizing: border-box; border: 0; outline: none; font: inherit; font-size: 12px; padding: 3px 4px; }
.tt .tt-c .tt-in--ready { width: 100%; opacity: 0; background: transparent; }
.tt .tt-c .tt-in--edit { width: 100%; min-width: 240px; height: auto; min-height: 46px; opacity: 1; background: #fff; z-index: 5; box-shadow: 0 0 0 2px #1E40AF, 0 4px 12px rgba(0,0,0,.15);
  white-space: pre-wrap; line-height: 1.5; padding: 4px 6px; border-radius: 2px; }
.tt .tt-c textarea.tt-in { resize: none; overflow: auto; }
/* NGホテル（2026-11-04）・候補のプルダウン */
.tt .tt-c.is-ng-ng { color: #B91C1C; font-weight: 700; }
.tt .tt-c.is-ng-caution { color: #B45309; font-weight: 700; }
.tt .tt-c.is-ng-note { text-decoration: underline dotted #64748b; }
.tt-warn { color: #B91C1C; }
.tt-pick { font: inherit; font-size: 12px; padding: 2px 4px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; }
.tt-ngform { margin-bottom: 10px; }
.tt-person-h { grid-column: 1 / -1; margin: 6px 0 0; font-weight: 700; color: #0f5132; }
.tt-dlg .admin-field input, .tt-dlg .admin-field select { width: 100%; box-sizing: border-box; }
.tt-guest { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #e0e7ff; color: #3730a3; font-size: 10px; font-weight: 700; }
/* クローザー／フリー枠の切り替えと名前で探す（2026-11-10） */
.tt-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 4px; }
.tt-scope__b { padding: 8px 18px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; color: #334155; font-weight: 700; cursor: pointer; }
.tt-scope__b.is-on { background: #0f5132; border-color: #0f5132; color: #fff; }
.tt-search { margin-left: auto; min-width: 220px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; }
.tt-pubs { display: inline-flex; gap: 2px; flex-wrap: wrap; justify-content: center; }
.tt-pubs .tt-pubbtn { min-width: 0; padding: 2px 4px; font-size: 12px; line-height: 1.2; }
.tt-pubk { font-size: 11px; color: #0f5132; font-weight: 700; white-space: nowrap; }
.tt-pb-all { font-size: 11px; color: #64748b; }
/* NGホテルの注釈・一覧のタブ（2026-11-09 ご依頼「別タブで横に並べる」「入力したら注釈」） */
.tt-ngnote { margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: #fef2f2; border: 1px solid #fecaca; font-size: 12.5px; line-height: 1.6; }
.tt-ngnote__row.is-ng { color: #b91c1c; }
.tt-ngnote__row.is-caution { color: #b45309; }
.tt-ngnote__row.is-note { color: #334155; }
.tt-ngbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 6px; }
.tt-ngtable td input, .tt-ngtable td select { width: 100%; box-sizing: border-box; min-width: 80px; }
.tt-ngkind { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.tt-ngkind.is-ng { background: #fee2e2; color: #b91c1c; }
.tt-ngkind.is-caution { background: #fef3c7; color: #b45309; }
.tt-ngkind.is-note { background: #e2e8f0; color: #334155; }
.tt-ngtable .tt-ngadd td { background: #f0fdf4; }
.tt-ngtable .tt-ngadd input, .tt-ngtable .tt-ngadd select { width: 100%; box-sizing: border-box; min-width: 80px; }
/* 中のタブ（手配シート／NGホテル一覧）。⚠ キャッチ本数管理の中のタブ（saiji-catch-count.css .catch-count-tabs）と同じ見た目（2026-11-11） */
.tt-inner-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.tt-inner-tabs button { font: inherit; font-size: 14px; padding: 10px 16px; min-height: 44px; max-width: 100%; border: 1px solid #cbcfc8; border-radius: 8px; background: #fff; color: #354f3d; cursor: pointer; }
.tt-inner-tabs button[aria-selected="true"] { background: #354f3d; border-color: #354f3d; color: #fff; font-weight: 700; }
.tt-inner-tabs button:focus-visible { outline: 3px solid #92723b; outline-offset: 3px; }
/* NGホテル一覧の作り直し（2026-11-11「もっと直感的に」「使いにくそう」） */
.ng-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 12px; }
.ng-top .tt-search { margin-left: auto; min-width: 260px; }
.ng-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.ng-chip { padding: 6px 12px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; color: #334155; font-size: 13px; cursor: pointer; }
.ng-chip b { margin-left: 2px; }
.ng-chip.is-on { background: #354f3d; border-color: #354f3d; color: #fff; }
.ng-chip.is-ng:not(.is-on) { color: #b91c1c; border-color: #fecaca; }
.ng-chip.is-caution:not(.is-on) { color: #b45309; border-color: #fde68a; }
.ng-form { margin: 0 0 16px; padding: 14px 16px; border: 1px solid #cbd5e1; border-radius: 12px; background: #f8fafc; max-width: 760px; }
.ng-form__h { margin: 0 0 10px; font-size: 15px; color: #0f5132; }
.ng-form__row { display: grid; grid-template-columns: 170px 1fr; gap: 10px; align-items: center; margin-bottom: 10px; }
.ng-form__row input[type="text"] { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; }
.ng-form__lbl { font-weight: 700; font-size: 13px; color: #1e293b; }
.ng-form__lbl em { margin-left: 6px; font-style: normal; font-size: 11px; color: #b91c1c; }
.ng-form__lbl small { display: block; font-weight: 400; font-size: 11px; color: #64748b; }
.ng-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.ng-kindpick { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; cursor: pointer; }
.ng-kindpick small { color: #64748b; font-size: 11px; }
.ng-kindpick.is-ng b { color: #b91c1c; }
.ng-kindpick.is-caution b { color: #b45309; }
.ng-kindpick:has(input:checked) { border-color: #354f3d; box-shadow: 0 0 0 2px #354f3d33; }
.ng-form__acts { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
@media (max-width: 640px) { .ng-form__row { grid-template-columns: 1fr; } }
.ng-table td { vertical-align: top; }
.ng-table tr.is-ng td:first-child { border-left: 4px solid #ef4444; }
.ng-table tr.is-caution td:first-child { border-left: 4px solid #f59e0b; }
.ng-table tr.is-note td:first-child { border-left: 4px solid #94a3b8; }
.ng-hotel { font-weight: 700; font-size: 14px; }
.ng-area { font-size: 12px; color: #64748b; margin-top: 2px; }
.ng-reason { max-width: 360px; white-space: normal; line-height: 1.5; }
.ng-who { color: #b91c1c; font-weight: 700; }
.ng-all { color: #64748b; }
.ng-ops { white-space: nowrap; }
.ng-empty { padding: 20px; color: #64748b; }

/* チャレンジ可（NGでもこの人ならOK・SQL 0280） */
.ng-ok { margin-top: 4px; color: #1b7a3d; font-weight: 700; font-size: 12px; }
.ng-ok small { margin-left: 6px; padding: 0 6px; border-radius: 9px; background: #e3f4e8; color: #1b7a3d; font-weight: 600; }

/* ---- 自己手配（⑥・2026-11-12） ---- */
.tt-c--self .tt-selfhint { color: #7a5aa8; font-size: 11px; opacity: .85; font-style: italic; }
.tt-c--self.is-due .tt-selfhint, .tt-c--self.is-late .tt-selfhint { color: #c0392b; font-weight: 700; font-style: normal; }
.tt-self-due, .tt-self-late { padding: 0 6px; border-radius: 9px; }
.tt-self-due { background: #fff1d6; color: #9a5b00; }
.tt-self-late { background: #fde2e0; color: #b42318; }
.tt-self-st { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #eef0f2; color: #555; }
.tt-self-st.is-done { background: #e3f4e8; color: #1b7a3d; }
.tt-self-st.is-due { background: #fff1d6; color: #9a5b00; }
.tt-self-st.is-late { background: #fde2e0; color: #b42318; }
.tt-self-table tr.is-late td:first-child { border-left: 4px solid #d93025; }
.tt-self-table tr.is-due td:first-child { border-left: 4px solid #f0a020; }
.tt-self-table tr.is-done td:first-child { border-left: 4px solid #2e9e5b; }
.tt-self-table tr.is-past { opacity: .6; }
.tt-self-pay { font-size: 12px; color: #b42318; margin-top: 2px; }
.tt-self-ok { color: #1b7a3d; font-weight: 700; font-size: 12px; white-space: nowrap; }
.tt-self-ngr { font-size: 12px; color: #b42318; margin-top: 2px; }
.tt-self-chip.is-late.is-on { background: #b42318; color: #fff; border-color: #b42318; }
.tt-self-chip.is-due.is-on { background: #9a5b00; color: #fff; border-color: #9a5b00; }
.tt-self-chip.is-done.is-on { background: #1b7a3d; color: #fff; border-color: #1b7a3d; }
.tt-self-dates { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tt-self-table .ng-ops .admin-btn { margin: 2px 0 2px 4px; }
.ng-form__row select, .ng-form__row input[type="date"] { box-sizing: border-box; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; background: #fff; }
.ng-form__row select { width: 100%; }

/* ---- マスの下に出る選択ボタン（2026-11-13） ---- */
.tt-pick { position: fixed; z-index: 60; max-width: min(520px, calc(100vw - 16px)); padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .18); }
.tt-pick__h { margin: 2px 0 4px; font-size: 12px; font-weight: 700; color: #334155; }
.tt-pick__h small { margin-left: 4px; font-weight: 400; color: #64748b; }
.tt-pick__row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.tt-pick__row:last-child { margin-bottom: 0; }
.tt-pick__b { padding: 5px 10px; border: 1px solid #cbd5e1; border-radius: 999px; background: #f8fafc; color: #1e293b; font: inherit; font-size: 13px; cursor: pointer; }
.tt-pick__b:hover { border-color: #1e40af; }
.tt-pick__b.is-on { background: #1e40af; border-color: #1e40af; color: #fff; font-weight: 700; }
.tt-pick__b--clear { color: #b91c1c; background: #fff; }
.tt-pick__c { padding: 4px 9px; border: 1px solid rgba(0,0,0,.15); border-radius: 6px; font: inherit; font-size: 12px; cursor: pointer; background: #fff; }
.tt-pick__c.is-on { outline: 2px solid #1e40af; outline-offset: 1px; font-weight: 700; }
.tt-bar__grp[hidden] { display: none !important; }
.tt-bar__hint { font-size: 12px; color: #475569; }

/* ---- セルのプルダウン（2026-11-13「セルのプルダウンのほうが楽」） ---- */
.tt-c.tt-c--dd { position: relative; padding-right: 18px; }
.tt-c.tt-c--dd::after { content: "▾"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 11px; pointer-events: none; }
.tt-c.tt-c--dd.is-act::after, .tt-c.tt-c--dd:hover::after { color: #1e40af; }
.tt-pick { padding: 6px 0; min-width: 180px; max-height: 60vh; overflow: auto; }
.tt-pick .tt-pick__h { padding: 0 10px; }
.tt-dd__list { display: flex; flex-direction: column; }
.tt-dd__i { display: flex; align-items: center; gap: 6px; width: 100%; padding: 7px 12px; border: 0; background: #fff; color: #1e293b; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.tt-dd__i:hover { background: #eff6ff; }
.tt-dd__i.is-on { font-weight: 700; color: #1e40af; }
.tt-dd__ck { display: inline-block; width: 1.2em; color: #1e40af; }
.tt-dd__i--clear { color: #b91c1c; border-top: 1px solid #e2e8f0; }

/* ---- 種類ごとの淡い色（2026-11-16 ご依頼「レンタカーとホテルとフライトの項目別に色変えたい・淡い系」）----
   ⚠ 状態の色（予約済み など・マスに直接付く style）のほうが上に来る。ここは色の無いマスと項目名だけ */
.tt tr.tt-g-hotel td.tt-c, .tt tr.tt-g-hotel td.tt-pb { background-color: #fff8f0; }
.tt tr.tt-g-flight td.tt-c, .tt tr.tt-g-flight td.tt-pb { background-color: #f2f8ff; }
.tt tr.tt-g-rental td.tt-c, .tt tr.tt-g-rental td.tt-pb { background-color: #f2fbf5; }
.tt tr.tt-g-hotel td.tt-k { background: #fdebd6; box-shadow: inset 4px 0 #f0b37a; }
.tt tr.tt-g-flight td.tt-k { background: #dcebfb; box-shadow: inset 4px 0 #7fb0e6; }
.tt tr.tt-g-rental td.tt-k { background: #dcf1e2; box-shadow: inset 4px 0 #7cc496; }
/* 色の帯（左4px）と文字が重ならないように、項目の文字は帯の右から（2026-11-18 ご指摘の写真「この色と文字の被りが気になる」） */
.tt tr.tt-g-hotel td.tt-k, .tt tr.tt-g-flight td.tt-k, .tt tr.tt-g-rental td.tt-k { padding-left: 9px; }
/* ---- 今日の列（2026-11-16） ---- */
.tt thead th.is-today { background: #f59e0b !important; color: #fff !important; }
.tt-today { display: block; font-size: 9px; line-height: 1; font-weight: 700; }
/* ⚠ 2026-11-16 ご指摘「当日のオレンジ線いらない・文字見にくくなる」→ 列の線はやめた（見出しのオレンジ・「今日」だけ） */

/* ---- 1人ぶんが画面に入るよう、行を詰める（2026-11-16 ご依頼「一人の枠は全部で見える用に」） ---- */
.tt tbody td { padding-top: 1px; padding-bottom: 1px; height: 20px; line-height: 18px; }
.tt tbody td.tt-p { line-height: 1.45; }
.tt .tt-pubbtn { padding: 0 6px; line-height: 16px; }
.tt-pub .admin-btn--sm { padding-top: 1px; padding-bottom: 1px; }
/* レンタカーを借りている間（2026-11-16） */
.tt-spanhint { font-size: 11px; color: #14532d; font-weight: 700; }
/* 横・下へコピーの■（2026-11-16） */
.tt-fill { position: fixed; z-index: 55; width: 9px; height: 9px; background: #1e40af; border: 2px solid #fff; border-radius: 2px; cursor: crosshair; box-shadow: 0 0 0 1px #1e40af; }
.tt .tt-c.is-fill { box-shadow: inset 0 0 0 9999px rgba(30, 64, 175, .08); outline: 1px dashed #1e40af; outline-offset: -2px; }
/* 長い文字は右の空いたマスへはみ出す（2026-11-16） */
.tt .tt-c .tt-tx { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt .tt-c.is-yen .tt-tx { text-align: right; }
.tt .tt-c.tt-c--ov { overflow: visible; }
.tt .tt-c.tt-c--ov .tt-tx { position: absolute; left: 4px; top: 1px; z-index: 2; pointer-events: none; text-overflow: ellipsis; }
/* 日時を選ぶ（2026-11-16） */
.tt-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 10px 6px; }
.tt-when input { padding: 5px 6px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; font-size: 13px; }
/* 連泊（2026-11-16） */
.tt-nights { display: flex; flex-wrap: wrap; gap: 4px; padding: 2px 10px 8px; }
.tt-nights .tt-pick__b { padding: 4px 9px; font-size: 12px; }
.tt-nights .tt-pick__b:disabled { opacity: .4; cursor: default; }
.tt .tt-tx.tt-run { font-weight: 700; color: #92400e; }
/* 打っているマス：枠を外まで出す（2026-11-16） */
.tt .tt-c.tt-c--editing { overflow: visible; z-index: 7; }
/* 改行の入ったマス：行を高くして全部見せる（2026-11-16） */
.tt .tt-c.tt-c--ml { height: auto; vertical-align: top; max-width: 220px; min-width: 150px; }
.tt .tt-c.tt-c--ml .tt-tx { white-space: pre-wrap; word-break: break-all; text-overflow: clip; line-height: 1.45; }
/* はみ出した文字が、左に止まっている名前・項目の列の上に出ないように（2026-11-16） */
.tt .tt-c.tt-c--ov .tt-tx { z-index: 1; }
.tt tbody .tt-p, .tt tbody .tt-k { z-index: 3; }

/* ---- 公開の窓（2026-11-16「公開と同時にURLや文章添える」「テンプレート」）---- */
.tt-pubdlg { width: min(640px, 94vw); }
.tt-pubdlg .tt-pub-l { display: block; margin: 12px 0 4px; font-weight: 700; font-size: 14px; }
.tt-pubdlg .tt-pub-l small { font-weight: 400; color: #64748b; }
.tt-pubdlg textarea, .tt-pubdlg input[type="url"], .tt-pubdlg input[type="text"], .tt-pubdlg select {
  width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; }
.tt-pubdlg textarea { resize: vertical; line-height: 1.6; }
.tt-pub-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tt-pub-row select { flex: 1 1 260px; width: auto; }
.tt-pub-count { text-align: right; font-size: 12px; color: #64748b; margin-top: 2px; }
.tt-linkbtn { border: 0; background: none; color: #1d4ed8; text-decoration: underline; cursor: pointer; font: inherit; font-size: 12px; padding: 0 0 0 8px; }
.tt-tpl { margin-top: 14px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; }
.tt-tpl__h { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.tt-tpl__item { display: flex; gap: 6px; align-items: flex-start; padding: 6px 0; border-bottom: 1px dashed #e2e8f0; }
.tt-tpl__item > div { flex: 1; min-width: 0; font-size: 13px; }
.tt-tpl__item b { display: block; }
.tt-tpl__item span { display: block; color: #475569; white-space: pre-wrap; max-height: 3.2em; overflow: hidden; }
.tt-tpl__form { display: grid; gap: 6px; margin-top: 8px; }

/* ---- マスのメモ（2026-11-18「スプレッドシートみたいにセルに右クリックでメモ追加」）---- */
.tt .tt-c.tt-c--note { position: relative; }
.tt .tt-c.tt-c--note::after { content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0; border-top: 8px solid #f59e0b; border-left: 8px solid transparent; pointer-events: none; z-index: 3; }
.tt-notemenu { z-index: 60; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 4px; min-width: 170px; }
.tt-notemenu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; font: inherit; font-size: 13px; border-radius: 6px; cursor: pointer; }
.tt-notemenu button:hover { background: #eff6ff; }
.tt-notemenu__hint { font-size: 11px; color: #94a3b8; padding: 2px 10px 4px; }
.tt-noteed { z-index: 61; background: #fffbea; border: 1px solid #f5d77a; border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.2); padding: 10px; width: 280px; }
.tt-noteed__h { font-size: 12px; font-weight: 700; color: #92400e; margin-bottom: 6px; }
.tt-noteed textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; line-height: 1.5; padding: 6px 8px; border: 1px solid #e5c76b; border-radius: 6px; resize: vertical; background: #fff; }
.tt-noteed__btns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.tt-notetip { z-index: 59; background: #fffbea; border: 1px solid #f5d77a; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.15); padding: 8px 10px; max-width: 260px; font-size: 13px; line-height: 1.5; pointer-events: none; }
.tt-notetip__b { white-space: pre-wrap; word-break: break-word; }
.tt-notetip__by { margin-top: 4px; font-size: 11px; color: #92400e; }

/* ---- フライト②③・レンタカー②③（2026-11-24）---- */
.tt-addslots { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 4px; }
.tt-addslot { font-size: 11px; }

/* ---- 公開のときに添えた文・URL（📝）（2026-11-25「何の情報添えて公開したかわかるように」）---- */
.tt-pubnote { display: inline-block; margin-left: 3px; font-size: 12px; cursor: pointer; vertical-align: middle; }
.tt-pubnote:focus { outline: 2px solid #1d4ed8; border-radius: 3px; }
.tt-notetip__url { margin-top: 4px; font-size: 12px; color: #1d4ed8; word-break: break-all; }

/* ---- ②③の行は①より少しずつ濃い色（2026-11-25 ご依頼「フライト追加したとき色微妙に変えてわかりやすく」）。
   ⚠ マスに状態の色（予約済みなど）を付けたときは、そちらが前に出る ---- */
.tt tr.tt-g-flight.tt-slot2 td.tt-c, .tt tr.tt-g-flight.tt-slot2 td.tt-pb { background-color: #e6efff; }
.tt tr.tt-g-flight.tt-slot3 td.tt-c, .tt tr.tt-g-flight.tt-slot3 td.tt-pb { background-color: #dae6fd; }
.tt tr.tt-g-flight.tt-slot2 td.tt-k { background: #c9dcf7; box-shadow: inset 4px 0 #4f88cf; }
.tt tr.tt-g-flight.tt-slot3 td.tt-k { background: #b8d0f2; box-shadow: inset 4px 0 #2f6bb8; }
.tt tr.tt-g-rental.tt-slot2 td.tt-c, .tt tr.tt-g-rental.tt-slot2 td.tt-pb { background-color: #e6f6eb; }
.tt tr.tt-g-rental.tt-slot3 td.tt-c, .tt tr.tt-g-rental.tt-slot3 td.tt-pb { background-color: #daf0e1; }
.tt tr.tt-g-rental.tt-slot2 td.tt-k { background: #c8e9d2; box-shadow: inset 4px 0 #4aa86f; }
.tt tr.tt-g-rental.tt-slot3 td.tt-k { background: #b5e0c2; box-shadow: inset 4px 0 #2f8d55; }

/* ---- マスの塗りつぶし（2026-11-25）。色の小窓は shucchou.html の .tset-colorpop（テリトリー表と同じ見た目） ---- */
.tt-fillwrap { position: relative; display: inline-flex; }
.tt-fillwrap .ta-fill__bar { display: inline-block; vertical-align: middle; margin-left: 4px; width: 16px; height: 4px; }

/* ---- 名前のチップ・全体検索（2026-11-25 ご依頼「名前チップ式」「全体検索」）---- */
.tt-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 8px; }
.tt-chipteam { font-size: 11px; color: #64748b; margin-left: 6px; }
.tt-chipname { position: relative; padding: 5px 12px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; color: #1f2937; font: inherit; font-size: 13px; cursor: pointer; }
.tt-chipname:hover { border-color: #0f5132; }
.tt-chipname.is-on { background: #0f5132; border-color: #0f5132; color: #fff; }
.tt-chipnum { display: inline-block; min-width: 16px; margin-left: 5px; padding: 0 4px; border-radius: 999px; background: #f59e0b; color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
.tt-found { margin: 4px 0 8px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; max-height: 220px; overflow: auto; }
.tt-found__h { font-size: 12px; color: #475569; margin-bottom: 4px; }
.tt-found__i { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 5px 6px; font: inherit; font-size: 13px; border-radius: 6px; cursor: pointer; }
.tt-found__i:hover { background: #e0ecff; }
