/* 期間メンバー成績・アポ化率（2026-11-02・pages/catch-custom-view.js）。ポータルとキャッチャーアプリで同じ見た目。
   ⚠ アプリは背景がテーマ色なので、カードの中は白地・濃い字で決める（字の色をテーマ任せにしない） */
.cm-wrap{color:#1f1f1e}
.cm-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.cm-sp{flex:1}
.cm-switch{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;margin:0 0 10px}
.cm-tabs{display:flex;flex-wrap:wrap;gap:4px}
.cm-tab{border:1px solid #d6d6d1;background:#fff;color:#4a4a46;border-radius:8px;padding:5px 10px;font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}
.cm-tab.is-on{background:#e6f1fb;border-color:#185fa5;color:#185fa5;font-weight:700}
.cm-btn{border:1px solid #d6d6d1;background:#fff;color:#1f1f1e;border-radius:8px;padding:7px 12px;font:inherit;font-size:13px;cursor:pointer}
.cm-btn--main{background:#185fa5;border-color:#185fa5;color:#fff}
.cm-btn--danger{color:#a32d2d}
.cm-btn:disabled{opacity:.5;cursor:default}
.cm-card{background:#fff;border:1px solid #e3e3e0;border-radius:12px;margin:0 0 12px;overflow:hidden;color:#1f1f1e}
.cm-chead{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;border-bottom:1px solid #e3e3e0}
.cm-chead--group{background:#f1efe8}
.cm-chead input[type=date]{border:1px solid #d6d6d1;border-radius:8px;padding:6px 8px;font:inherit;font-size:14px;background:#fff;color:#1f1f1e}
.cm-crow{padding:8px 12px;border-bottom:1px solid #e3e3e0;align-items:center}
.cm-muted{color:#6b6b66;font-size:12px}
.cm-note{margin:0;padding:8px 12px;font-size:12px;color:#6b6b66}
.cm-empty{padding:20px;text-align:center;color:#6b6b66;background:#fff;border-radius:12px}
.cm-band{background:#eef3f8;color:#185fa5;font-weight:700;font-size:13px;padding:7px 12px;border-top:1px solid #e3e3e0}
.cm-scroll{overflow-x:auto}
.cm-table{width:100%;border-collapse:collapse;font-size:13px}
.cm-table th,.cm-table td{padding:8px 10px;border-top:1px solid #e3e3e0;text-align:right;white-space:nowrap}
.cm-table thead th{background:#f1efe8;color:#6b6b66;font-weight:700;border-top:0}
.cm-table .cm-name{text-align:left;position:sticky;left:0;background:#fff;z-index:1;box-shadow:1px 0 0 #e3e3e0}
.cm-table thead .cm-name{background:#f1efe8}
.cm-table td.cm-muted{text-align:left}
.cm-total td,.cm-total th{background:#faf9f6 !important;font-weight:700}
.cm-red{background:#f7c9c9 !important}.cm-yellow{background:#fdeeb3 !important}.cm-blue{background:#c7e7f2 !important}
.cm-pcs{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px;padding:10px}
.cm-pc{border:1px solid #e3e3e0;border-radius:10px;background:#fff;overflow:hidden}
.cm-pc--total{border-color:#c9c6bc;background:#faf9f6}
.cm-pc__h{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:8px 10px 6px}
.cm-pc__g{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #e3e3e0}
.cm-kv{display:flex;flex-direction:column;align-items:center;padding:6px 4px;border-right:1px solid #e3e3e0;border-bottom:1px solid #e3e3e0}
.cm-kv:nth-child(3n){border-right:0}
.cm-kv span{font-size:11px;color:#6b6b66}
.cm-kv b{font-size:15px}
.cm-kv--apo{background:#e8f0fe}
.cm-pc__s{display:grid;grid-template-columns:1fr 1fr;gap:2px 10px;padding:7px 10px;font-size:12px;color:#6b6b66}
.cm-pc__s span{display:flex;justify-content:space-between}
.cm-pc__s b{color:#1f1f1e}
.cm-days{display:grid;grid-template-columns:repeat(7,1fr);border-top:1px solid #e3e3e0}
.cm-days div{text-align:center;padding:4px 0;font-size:12px}
.cm-days span{display:block;font-size:10px;color:#6b6b66}
.cm-apo__n{background:#e8f0fe;font-weight:700}
.cm-apo__rate{font-weight:700}
.cm-week{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin:0 0 10px;padding:8px;background:#eef3ef;border:1px solid #d1d5db;border-radius:10px;color:#1f2937}
.cm-week .nm-period__lbl,.cm-week__range{width:100%;text-align:center;font-size:12px;color:#555}
.cm-week .nm-period__btn{width:42px;min-height:42px;font:inherit;color:#0f4c35;background:#fff;border:1px solid #d1d5db;border-radius:8px;cursor:pointer}
.cm-week .nm-period__btn:disabled{opacity:.3;cursor:default}
.cm-week .nm-period__sel{min-height:42px;padding:4px 8px;font:inherit;font-size:16px;font-weight:700;color:#0f4c35;background:#fff;border:1px solid #d1d5db;border-radius:8px;max-width:70%}
.cm-mine{background:#fff;border:2px solid #f2b84b;border-radius:12px;padding:12px;margin:0 0 12px;color:#1f1f1e}
.cm-mine h3{margin:0 0 8px;font-size:15px}
.cm-mine__in{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 0}
.cm-mine__in input{width:90px;font:inherit;font-size:16px;padding:8px;border:1px solid #d9c98f;border-radius:8px;background:#fff2cc;text-align:center;color:#1f1f1e}
.cm-msg{margin:6px 0 0;font-weight:700;font-size:13px}
/* メンバー選択（ポータル） */
.cm-dlg{border:1px solid #e3e3e0;border-radius:12px;padding:0;width:min(520px,94vw);color:#1f1f1e}
.cm-dlg::backdrop{background:rgba(0,0,0,.35)}
.cm-dlg__h{padding:12px 14px;border-bottom:1px solid #e3e3e0;font-weight:700}
.cm-dlg__b{padding:10px 14px;max-height:56vh;overflow:auto}
.cm-dlg__f{padding:10px 14px;border-top:1px solid #e3e3e0;display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.cm-dlg__tools{display:flex;gap:6px;align-items:center;margin:0 0 8px}
.cm-dlg__tools input{flex:1;min-width:0;border:1px solid #d6d6d1;border-radius:8px;padding:8px;font:inherit;font-size:16px}
.cm-mrow{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px dashed #eee;cursor:pointer}
.cm-mrow input{width:18px;height:18px}
@media (max-width:640px){
  .cm-table th,.cm-table td{padding:6px 7px;font-size:12px}
  .cm-pcs{grid-template-columns:1fr;padding:8px}
  .cm-chead .cm-btn{flex:1}
}
/* まとめて保存の帯（2026-11-04 ご指示「一気に変更がかけられない」） */
.cm-savebar{position:sticky;top:0;z-index:5;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 10px;padding:10px 12px;background:#fff;border:1px solid #e3e3e0;border-radius:10px;color:#1f1f1e}
.cm-savebar span{flex:1 1 auto;font-size:13px;font-weight:700;color:#6b6b66}
.cm-savebar.is-dirty{border:2px solid #e0b34a;background:#fff8e6}
.cm-savebar.is-dirty span{color:#7a5a10}
.cm-note--dirty{background:#fff8e6;color:#7a5a10}
/* 人から入れる（2026-11-04 ご指示「期間と人追加したら勝手に振り分け」「チェックボックス面倒すぎる・人削除は絶対」） */
.cm-in{padding:12px}
.cm-in__head{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;margin:0 0 8px}
.cm-in__add{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px}
.cm-in__add label{display:flex;flex-direction:column;font-size:12px;color:#6b6b66;gap:2px}
.cm-in__add input[type=date],.cm-plist input[type=date]{border:1px solid #d6d6d1;border-radius:8px;padding:6px 8px;font:inherit;font-size:14px;background:#fff;color:#1f1f1e}
.cm-in__add input[type=search]{flex:1 1 200px;min-width:0;border:1px solid #185fa5;border-radius:8px;padding:9px 10px;font:inherit;font-size:16px;background:#fff;color:#1f1f1e}
.cm-hits{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:4px;max-height:280px;overflow:auto}
.cm-hits button{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:9px 10px;border:1px solid #cad6dd;border-radius:8px;background:#fff;color:#1f1f1e;font:inherit;cursor:pointer}
.cm-hits button:hover,.cm-hits button:focus-visible{background:#e6f1fb;border-color:#185fa5}
.cm-hits button:disabled{opacity:.55;cursor:default}
.cm-hits small{color:#6b6b66}
.cm-hits span{margin-left:auto;color:#185fa5;font-weight:700;font-size:12px}
.cm-in__list{margin:12px 0 0;border-top:1px solid #e3e3e0;padding-top:10px}
.cm-in__lh{margin:0 0 6px}
.cm-plist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.cm-plist li{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:6px 0;border-bottom:1px dashed #eee}
.cm-plist__name{flex:1 1 140px;font-weight:700}
.cm-plist__name small{margin-left:6px;font-weight:400;color:#6b6b66;font-size:12px}
.cm-x{width:36px;height:36px;border:1px solid #e6b8b8;border-radius:8px;background:#fff;color:#a32d2d;font-size:18px;line-height:1;cursor:pointer}
/* 終了日 未定（2026-11-04） */
.cm-open{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px dashed #b9b9b3;border-radius:8px;background:#f7f7f5;color:#4a4a46;font-weight:700;font-size:14px}
.cm-open-btn{white-space:nowrap}
.cm-open-btn.is-on{background:#e6f1fb;border-color:#185fa5;color:#185fa5}
.cm-open-btn--s{border:1px solid #d6d6d1;background:#fff;color:#4a4a46;border-radius:8px;padding:6px 8px;font:inherit;font-size:12px;cursor:pointer}
/* まとめて貼り付け（2026-11-04 ご指示「自動入力みたいなのできないかな」） */
.cm-paste{margin:10px 0 0;padding:8px 10px;border:1px dashed #b9c7d4;border-radius:10px;background:#f8fbfe}
.cm-paste summary{cursor:pointer;font-weight:700;color:#185fa5}
.cm-paste textarea{width:100%;box-sizing:border-box;margin:6px 0;padding:8px;border:1px solid #d6d6d1;border-radius:8px;font:inherit;font-size:14px;background:#fff;color:#1f1f1e}
.cm-paste__btns{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0}
.cm-paste__sum{font-weight:700;margin:8px 0 4px}
.cm-paste__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;max-height:360px;overflow:auto}
.cm-paste__list li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:6px 8px;background:#fff;border:1px solid #e3e3e0;border-radius:8px}
.cm-paste__list li.is-miss{background:#fdeeee;border-color:#e6b8b8}
.cm-paste__who{flex:1 1 160px;font-weight:700}
.cm-paste__when{color:#4a4a46;font-size:13px}
.cm-near{display:inline-block;margin-left:6px;font-style:normal;font-size:12px;font-weight:700;color:#7a5a10;background:#fdeeb3;border-radius:6px;padding:1px 6px}
.cm-miss{font-style:normal;color:#a32d2d}
/* 画像で保存（2026-11-04） */
.cm-img{border:1px solid #b9c9c4;background:#fff;color:#103c32;border-radius:999px;padding:4px 12px;min-height:32px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
.cm-img:disabled{opacity:.6;cursor:default}
.cm-imgall{display:flex;justify-content:flex-end;margin:0 0 8px}
.cm-img--all{font-size:13px;padding:6px 14px;min-height:38px}
/* 画像にするときだけ（catch-custom-editor.js が .cm-shot を付ける・2026-11-05）
   ・枠を表の幅まで広げる（横スクロールの表で、白い下地が途中で切れていた）
   ・どの期間の表も同じ列の幅（期間ごとに列がずれて見えた） */
.cm-shot{width:max-content !important;max-width:none !important;overflow:visible !important}
.cm-shot .cm-scroll{overflow:visible !important}
.cm-shot .cm-table{width:auto}
.cm-shot .cm-table th,.cm-shot .cm-table td{width:6.6em;min-width:6.6em;box-sizing:border-box}
.cm-shot .cm-table .cm-name{width:8.6em;min-width:8.6em;position:static;box-shadow:none}
.cm-shot .cm-table .cm-team{width:5.6em;min-width:5.6em}
