/* Documents, contracts and knowledge (dc- prefix). */
.dc-bigsearch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line, #d6e0e9); border-radius: 4px; padding: 10px 12px; }
.dc-bigsearch > .bi-search { color: #7a8ea3; font-size: 16px; }
.dc-bigsearch input[type=search] { flex: 1 1 260px; min-width: 0; height: 38px; font-size: 14px; }
.dc-bigsearch select { max-width: 200px; }
.dc-tree { display: flex; flex-direction: column; padding: 4px 0; max-height: 560px; overflow-y: auto; position: relative; }
.dc-tree a { display: flex; align-items: center; gap: 7px; padding: 7px 10px; min-height: 36px; color: var(--text, #10263b); text-decoration: none; border-left: 3px solid transparent; font-size: 12.5px; }
.dc-tree a:hover { background: #f2f6fa; }
.dc-tree a.on { background: #eaf3fc; border-left-color: var(--brand-primary); font-weight: 700; }
.dc-tree a .n { margin-left: auto; font-size: 11px; color: #7a8ea3; }
.dc-tree a i { color: #6f88a1; }
.dc-ficon { color: #6f88a1; }
.dc-preview { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.55; background: #f8fafc; border: 1px solid #e0e7ed; border-radius: 3px; padding: 12px; max-height: 520px; overflow: auto; overflow-wrap: anywhere; position: relative; }
.dc-diff { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; max-height: 640px; overflow: auto; position: relative; }
.dc-diff > div { display: flex; gap: 8px; padding: 2px 10px; border-bottom: 1px solid #f0f3f6; }
.dc-diff > div i { font-style: normal; width: 12px; flex: none; color: #8a9bb0; }
.dc-diff > div span { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.dc-diff .add { background: #e7f7ef; } .dc-diff .add i { color: #0d7a50; font-weight: 700; }
.dc-diff .del { background: #fdecee; text-decoration: line-through; text-decoration-color: rgba(180, 35, 53, .4); } .dc-diff .del i { color: #b42335; font-weight: 700; }
.dc-diff .same span { color: #4b5d70; }
.dc-results .dc-snip, .ct-tbl .dc-snip { margin-top: 4px; font-size: 12px; color: #3e5268; white-space: normal; line-height: 1.5; }
.dc-snip mark { background: #fff1b8; padding: 0 1px; border-radius: 2px; color: inherit; }
.dc-score { display: inline-block; min-width: 34px; text-align: center; padding: 2px 6px; border-radius: 10px; background: #eef4fa; color: #2f5f88; font-size: 11px; font-weight: 700; }
.dc-clause { padding: 10px 14px; border-bottom: 1px solid #edf1f4; }
.dc-clause .h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.dc-clause p { margin: 4px 0; color: #2c3e50; line-height: 1.5; }
.dc-clause.dev { border-left: 3px solid #d99a06; background: #fffaf0; }
.dc-clause textarea { width: 100%; min-height: 70px; }
.dc-clause .ct-inline { margin-top: 4px; }
.dc-article { line-height: 1.65; font-size: 13.5px; color: #1f3347; overflow-wrap: anywhere; }
.dc-article h1, .dc-article h2, .dc-article h3 { font-size: 15px; margin: 16px 0 6px; }
.dc-article ul, .dc-article ol { padding-left: 20px; }
.dc-lead { font-size: 14px; color: #3e5268; margin-top: 0; }
.dc-ack { margin-top: 16px; padding: 12px; border-top: 1px solid #e0e7ed; background: #f8fafc; }
.dc-roles { display: grid; grid-template-columns: 1fr; gap: 2px; max-height: 320px; overflow-y: auto; position: relative; }
@media (max-width: 760px) {
    .dc-bigsearch select { max-width: 100%; flex: 1 1 140px; }
    .dc-tree { max-height: 240px; }
}
