/* ==========================================================================
   合规：全量留档、法律保留、跨邮箱搜索
   ========================================================================== */

/* ---------- 人员 / 部门选择 ---------- */
.cp { position: relative; width: 100%; max-width: 640px; }
.cp-box {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 32px; padding: 3px 6px; box-sizing: border-box; cursor: text;
    background: var(--surface); border: 1px solid var(--colorNeutralStroke1, #d1d1d1); border-bottom-color: var(--colorNeutralStrokeAccessible, #616161); border-radius: var(--radius);
}
.cp-box:focus-within { border-bottom: 2px solid var(--brand); }
.cp-tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 2px 0 2px; border-radius: 12px; background: var(--canvas); color: var(--fg1); font-size: 13px; max-width: 100%; }
.cp-tag .persona { flex: none; }
.cp-tag.dept { padding-left: 8px; background: var(--brand-soft); color: var(--brand-fg); }
.cp-tag button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: var(--fg3); cursor: pointer; display: grid; place-items: center; padding: 0; }
.cp-tag button:hover { background: var(--hover); color: var(--fg1); }
.cp-input { flex: 1; min-width: 160px; height: 24px; border: 0; outline: 0; background: transparent; font: inherit; color: var(--fg1); }
.cp-overlay { position: fixed; inset: 0; z-index: 50; }
.cp-drop {
    position: absolute; z-index: 51; left: 0; right: 0; top: calc(100% + 4px); max-height: 340px; overflow-y: auto; padding: 4px;
    background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-flyout);
}
.cp-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: var(--radius); background: transparent; text-align: left; font: inherit; color: var(--fg1); cursor: pointer; }
.cp-opt:hover { background: var(--hover); }
.cp-opt-text { display: flex; flex-direction: column; min-width: 0; }
.cp-opt-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-opt-name { font-weight: 600; }
.cp-dept-icon { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-fg); }
.cp-none { padding: 10px 12px; }

/* ---------- 全量留档 ---------- */
.jr-of { font-size: 18px; font-weight: 400; color: var(--fg3); }
.jr-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--success); }
.jr-form .form-row { grid-template-columns: 110px minmax(0, 1fr); }
.jr-form .form-row.jr-top { align-items: start; }
.jr-form .form-row.jr-top > label { padding-top: 14px; }
.jr-choices { padding-top: 0; max-width: 640px; }
.jr-picker { margin-top: 10px; }
.jr-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 10px 12px; border-radius: var(--radius); background: var(--canvas); color: var(--fg2); font-size: 12.5px; line-height: 18px; }
.jr-note fluent-icon, .jr-note svg { flex: none; margin-top: 1px; }
.jr-side { display: flex; flex-direction: column; gap: 16px; }
.jr-p { margin: -4px 0 8px; line-height: 18px; }
.jr-actions { margin-top: 12px; }
.jr-addr { font-size: 12px; word-break: break-all; }
.jr-tabs { margin-top: 16px; padding-top: 8px; }
.jr-table td { vertical-align: top; }
.jr-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-subj { max-width: 320px; font-weight: 600; color: var(--fg1); }
.jr-name { font-weight: 600; }
.jr-block { display: block; }
.jr-err { color: var(--danger); max-width: 560px; word-break: break-all; }
.jr-dir { display: inline-block; padding: 0 8px; height: 20px; line-height: 20px; border-radius: 10px; font-size: 12px; margin-right: 4px; white-space: nowrap; }
.jr-dir.internal { background: var(--canvas); color: var(--fg2); }
.jr-dir.outbound { background: #fef6f1; color: #b44a0a; }
.jr-dir.inbound { background: var(--brand-soft); color: var(--brand-fg); }
.jr-dir.spam { background: #fdf3f4; color: #a4262c; }
.jr-dir.pres { background: #f1faf1; color: #0e700e; }

/* ---------- 法律保留 ---------- */
.hold-table td { vertical-align: middle; }
.hold-reason { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hold-form { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.hold-form textarea { width: 100%; }
.hold-label { font-weight: 600; margin-top: 10px; }
.hold-label .req { color: var(--danger); margin-left: 2px; }
.hold-hint { margin-top: 2px; }
.hold-date { width: 160px; flex: none !important; }
.hold-effects { margin-top: 20px; padding: 12px 16px; border-radius: var(--radius-lg); background: var(--surface-alt); border: var(--pane-border); }
.hold-effects-title { font-weight: 600; margin-bottom: 6px; }
.hold-effects ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--fg2); }
.hold-effects li { display: flex; gap: 8px; align-items: flex-start; line-height: 18px; }
.hold-effects li svg, .hold-effects li fluent-icon { flex: none; margin-top: 1px; }
.hold-preserving { display: inline-flex; align-items: center; gap: 6px; }
.hold-release { margin: 0 0 12px; padding: 12px 16px; border-radius: var(--radius-lg); background: #fff9f5; border: 1px solid #fdcfb4; }
.hold-release .hold-label { margin-top: 0; display: block; margin-bottom: 6px; }
.hold-release textarea { width: 100%; }
.hold-release-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.hold-facts dd { max-width: 380px; word-break: break-all; }
.hold-h { font-size: 15px; font-weight: 600; margin: 20px 0 6px; }
.hold-history { list-style: none; margin: 0; padding: 0; }
.hold-history li { display: grid; grid-template-columns: 130px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--colorNeutralStroke3, #f0f0f0); font-size: 13px; }
.hold-history-time { color: var(--fg3); }

/* ---------- 跨邮箱搜索 ---------- */
.dc-tabs { display: flex; gap: 4px; margin: -4px 0 16px; border-bottom: var(--pane-border); }
.dc-tab { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; background: transparent; font: inherit; color: var(--fg2); cursor: pointer; position: relative; }
.dc-tab:hover { color: var(--fg1); }
.dc-tab.on { color: var(--fg1); font-weight: 600; }
.dc-tab.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 2px; background: var(--brand); }
.dc-criteria { padding: 20px 24px 16px; }
.dc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
.dc-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dc-field > label { font-size: 13px; color: var(--fg2); font-weight: 600; }
.dc-field .fl-input { width: 100%; }
.dc-wide { grid-column: 1 / -1; }
.dc-search-box { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--colorNeutralStroke1, #d1d1d1); border-bottom-color: var(--colorNeutralStrokeAccessible, #616161); border-radius: var(--radius); background: var(--surface); }
.dc-search-box:focus-within { border-bottom: 2px solid var(--brand); }
.dc-input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--fg1); min-width: 0; }
.dc-check { justify-content: flex-end; }
.dc-checkbox { display: inline-flex; align-items: center; gap: 8px; height: 32px; cursor: pointer; }
.dc-scope { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--colorNeutralStroke3, #f0f0f0); }
.dc-scope-label { font-size: 13px; color: var(--fg2); font-weight: 600; margin-bottom: 8px; }
.dc-scope-opts { display: flex; gap: 12px; flex-wrap: wrap; }
.dc-scope-opts .choice { flex: 1; min-width: 260px; max-width: 460px; }
.dc-rec { display: inline-block; margin-left: 6px; padding: 0 6px; height: 18px; line-height: 18px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; vertical-align: 1px; }
.dc-live { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.dc-picker { flex: 1; min-width: 320px; }
.dc-actions { display: flex; align-items: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.dc-case-name { width: 280px; }
.dc-results { margin-top: 16px; }
.dc-count { font-size: 15px; }
.dc-table td { vertical-align: top; }
.dc-table .num { text-align: right; }
.dc-table tr.dc-active { box-shadow: inset 3px 0 0 var(--brand); }
.dc-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-subj { max-width: 380px; }
.dc-subj-text { display: block; font-weight: 600; color: var(--fg1); overflow: hidden; text-overflow: ellipsis; }
.dc-prev { display: block; font-size: 12px; color: var(--fg3); overflow: hidden; text-overflow: ellipsis; }
.dc-src { display: inline-block; padding: 0 8px; height: 20px; line-height: 20px; border-radius: 10px; font-size: 12px; background: var(--canvas); color: var(--fg2); max-width: 140px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.dc-src.journal { background: var(--brand-soft); color: var(--brand-fg); font-weight: 600; }
.dc-more { display: flex; justify-content: center; padding-top: 10px; }
.dc-empty { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 20px; text-align: center; }
.dc-empty-title { font-size: 16px; font-weight: 600; }
.dc-audit td { vertical-align: top; }
.dc-detail { color: var(--fg2); max-width: 640px; word-break: break-all; }
.dc-act { display: inline-block; padding: 0 8px; height: 20px; line-height: 20px; border-radius: 10px; font-size: 12px; background: var(--canvas); color: var(--fg2); }
.dc-act.hold { background: #fdf3f4; color: #a4262c; }
.dc-act.release { background: #f1faf1; color: #0e700e; }
.dc-act.export { background: #fef6f1; color: #b44a0a; }
.dc-act.search { background: var(--brand-soft); color: var(--brand-fg); }
.dc-meta { display: grid; grid-template-columns: 84px 1fr; gap: 6px 12px; margin: 0 0 12px; font-size: 13px; }
.dc-meta dt { color: var(--fg3); }
.dc-meta dd { margin: 0; color: var(--fg1); word-break: break-all; }
.dc-atts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dc-att { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius); border: var(--pane-border); font-size: 13px; }
.dc-frame { width: 100%; height: calc(100vh - 380px); min-height: 320px; border: var(--pane-border); border-radius: var(--radius); background: #fff; }
.dc-text { white-space: pre-wrap; word-break: break-word; font-family: var(--font); font-size: 14px; line-height: 1.6; margin: 0; padding: 12px; border: var(--pane-border); border-radius: var(--radius); background: var(--surface); }

@media (max-width: 1200px) { .dc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.dc-people-label { margin-top: 14px; }
.dc-live { margin-top: 0; align-items: center; }
.dc-people-hint { line-height: 18px; }
