/* JCIPO 分类表条目勾选 P1＋P2/P3 会员区块｜元瑶 2026-11-19 草稿，未上线（P1 版 20261115 已于 11-19 上线）
   首格左内边距在页面渲染前就由本文件预留（<head> 加载），JS 之后把勾选框放进这块空白，不引起布局偏移。
   浮动栏放左下角，避开右下角的咨询小窗（consult embed）。 */
.jcct .jcct-table > thead > tr > :first-child,
.jcct .jcct-table > tbody > tr > :first-child { position: relative; padding-left: 34px; }
.jcct-sel-cb { position: absolute; left: 10px; top: 50%; width: 16px; height: 16px; margin: -8px 0 0; cursor: pointer; accent-color: #1e5aa8; }
.jcct-table tr:has(> td > .jcct-sel-cb:checked) > td { background: #eef4fc; }

.jcct-sel-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.jcct-sel-fab { position: fixed; left: 16px; bottom: 16px; z-index: 980; display: flex; gap: 8px; align-items: center; }
.jcct-sel-fab[hidden], .jcct-sel-panel[hidden] { display: none; }
.jcct-sel-fab button { font: inherit; font-size: 14px; line-height: 1.2; border-radius: 22px; padding: 10px 16px; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.jcct-sel-open { background: #1e5aa8; color: #fff; border: 0; display: inline-flex; align-items: center; gap: 8px; }
.jcct-sel-badge { min-width: 22px; padding: 1px 6px; border-radius: 11px; background: #fff; color: #1e5aa8; font-weight: 600; text-align: center; font-size: 13px; }
.jcct-sel-add { background: #fff; color: #1e5aa8; border: 1px solid #1e5aa8; }
.jcct-sel-add.is-on { background: #eef4fc; }
.jcct-sel-fab button:focus-visible, .jcct-sel-panel button:focus-visible, .jcct-sel-panel a:focus-visible { outline: 2px solid #f0a020; outline-offset: 2px; }

.jcct-sel-panel { position: fixed; left: 16px; bottom: 72px; z-index: 990; width: min(440px, calc(100vw - 32px)); max-height: min(70vh, 640px);
	display: flex; flex-direction: column; background: #fff; color: #222; border-radius: 10px; box-shadow: 0 8px 32px rgba(0, 0, 0, .25); font-size: 14px; }
.jcct-sel-head { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid #e5e5e5; }
.jcct-sel-title { margin: 0; font-size: 17px; outline: none; }
.jcct-sel-headcount { color: #666; font-size: 13px; flex: 1; }
.jcct-sel-x { border: 0; background: none; font-size: 24px; line-height: 1; padding: 0 4px; cursor: pointer; color: #666; }
.jcct-sel-warn { margin: 8px 16px 0; padding: 6px 10px; background: #fff6e0; border-radius: 6px; font-size: 13px; }
.jcct-sel-list { overflow-y: auto; padding: 4px 16px 8px; flex: 1; overscroll-behavior: contain; }
.jcct-sel-empty { color: #666; margin: 16px 0; }
.jcct-sel-group { margin: 12px 0 4px; font-size: 13px; color: #1e5aa8; font-weight: 600; }
.jcct-sel-items { list-style: none; margin: 0; padding: 0; }
.jcct-sel-item { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.jcct-sel-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.jcct-sel-name a { color: inherit; }
.jcct-sel-code { color: #888; font-size: 12px; margin-right: 6px; font-variant-numeric: tabular-nums; }
.jcct-sel-en { display: block; color: #666; font-size: 12px; }
.jcct-sel-rm { flex: none; border: 1px solid #ccc; background: #fff; border-radius: 4px; padding: 2px 8px; font-size: 12px; cursor: pointer; color: #555; }
.jcct-sel-foot { border-top: 1px solid #e5e5e5; padding: 10px 16px 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.jcct-sel-exp { display: flex; gap: 6px; align-items: center; flex: 1; }
.jcct-sel-exp-label { color: #666; font-size: 13px; }
.jcct-sel-btn { border: 1px solid #1e5aa8; background: #fff; color: #1e5aa8; border-radius: 4px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.jcct-sel-btn:disabled { opacity: .5; cursor: wait; }
.jcct-sel-clear { border-color: #bbb; color: #666; }
.jcct-sel-hint { flex-basis: 100%; margin: 2px 0 0; color: #888; font-size: 12px; }

/* P2/P3：会员区块（发到邮箱、提交给顾问、同步提示），放在面板底部导出那一排下面 */
.jcct-sel-member { flex-basis: 100%; display: flex; flex-direction: column; gap: 8px; }
.jcct-sel-member[hidden], .jcct-sel-form[hidden], .jcct-sel-msg[hidden] { display: none; }
.jcct-sel-mrow { display: flex; flex-wrap: wrap; gap: 6px; }
.jcct-sel-email, .jcct-sel-submit, .jcct-sel-go { background: #1e5aa8; color: #fff; }
.jcct-sel-cancel { border-color: #bbb; color: #666; }
.jcct-sel-form { display: flex; flex-direction: column; gap: 6px; }
.jcct-sel-note-label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #555; }
.jcct-sel-note { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid #ccc; border-radius: 4px; resize: vertical; min-height: 60px; }
.jcct-sel-note:focus-visible { outline: 2px solid #f0a020; outline-offset: 1px; }
.jcct-sel-msg { margin: 0; padding: 6px 10px; border-radius: 6px; font-size: 13px; background: #f4f6f9; }
.jcct-sel-msg.is-ok { background: #e9f6ec; }
.jcct-sel-msg.is-warn { background: #fff6e0; }
.jcct-sel-login { margin: 0; font-size: 13px; color: #555; }
.jcct-sel-login a, .jcct-sel-msg a { color: #1e5aa8; }

/* 加入清单的动画替身（用户 11-19 23:30 要求）：fixed 定位，只做 transform/opacity，不接收点击 */
.jcct-sel-ghost { position: fixed; z-index: 1000; pointer-events: none; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px;
	background: #1e5aa8; color: #fff; font-size: 13px; font-weight: 600; line-height: 26px; text-align: center; white-space: nowrap;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25); transform: translate(-50%, -50%); will-change: transform, opacity; }
.jcct-sel-badge { display: inline-block; }
@media (prefers-reduced-motion: reduce) { .jcct-sel-ghost { display: none; } }

@media (max-width: 639px) {
	.jcct-sel-fab { left: 12px; bottom: 12px; }
	.jcct-sel-fab button { padding: 9px 13px; font-size: 13px; }
	.jcct-sel-panel { left: 0; right: 0; bottom: 0; width: auto; max-height: 82vh; border-radius: 12px 12px 0 0; }
}
@media print { .jcct-sel-fab, .jcct-sel-panel, .jcct-sel-cb, .jcct-sel-ghost { display: none !important; } }
