/* Results prioritize the mapped columns; source evidence opens on demand. */
.results-workspace{display:block}
.results-workspace .work-main{width:100%;min-width:0}
.results-workspace .source-toggle{display:inline-flex;flex-shrink:0}
.results-workspace .source-panel{display:none}
.results-workspace.source-open .source-panel{display:block;position:fixed;right:16px;top:80px;bottom:16px;width:380px;max-width:calc(100vw - 32px);z-index:30;overflow:auto;border:1px solid #ddd;border-radius:8px;box-shadow:-8px 8px 32px #0002;background:#fafafa;padding:20px}
.results-workspace .result-metrics{margin:16px 0}
.results-workspace .result-tabs{margin:12px 0}
.results-workspace .result-toolbar{margin:16px 0}
.results-workspace .export-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 16px}
.results-table-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px}
.results-table-heading h2{font-size:17px;line-height:1.5;font-weight:600}
.results-table-wrap{overflow:auto;max-height:65dvh;overscroll-behavior:contain;border:1px solid #ddd;border-radius:8px}
.results-table-wrap table{table-layout:fixed;min-width:960px;width:100%;border-collapse:separate;border-spacing:0}
.results-table-wrap :is(th,td){padding:12px;font-size:14px;line-height:1.85;vertical-align:top;text-align:left;overflow-wrap:anywhere;background:#fff}
.results-workspace .results-table-wrap td:nth-child(3){min-width:0}
.results-table-wrap thead th{position:sticky;top:0;z-index:3;background:#f7f7f7;font-weight:500;border-bottom:1px solid #ddd;white-space:nowrap}
.results-table-wrap tbody th{font-weight:400}
.results-table-wrap tr>:first-child{position:sticky;left:0;z-index:2;background:#fafafa;border-right:1px solid #e5e5e5}
.results-table-wrap tr>:last-child{position:sticky;right:0;z-index:2;border-left:1px solid #e5e5e5;background:#fff}
.results-table-wrap thead tr>:is(:first-child,:last-child){z-index:4;background:#f7f7f7}
.results-table-wrap tbody tr.selected>:is(td,th){background:#f3f3f3}
.results-table-wrap small{display:block;margin-top:4px;line-height:1.65}
.results-table-wrap .row-select{font-size:14px;line-height:1.85;white-space:normal;overflow-wrap:anywhere;min-width:0;text-align:left}
.results-table-wrap .result-identity{font-variant-numeric:tabular-nums;white-space:nowrap}
.results-table-wrap [data-result-field="性别"],.results-table-wrap [data-result-field="民族"]{white-space:normal}
.results-table-wrap .badge{display:inline-block;white-space:normal}
.results-table-wrap .result-court{font-weight:500}

/* Give the review operation nearly the entire desktop viewport. */
#dialog.production-row{width:min(1760px,calc(100vw - 32px));max-width:calc(100vw - 32px);height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);margin:auto}
#dialog.production-row.ai-expanded{width:calc(100vw - 32px);max-width:calc(100vw - 32px)}
.production-row .row-header{gap:16px;padding:16px 20px}
.production-row .row-header>div:first-child{min-width:0}
.production-row .row-header h2{font-size:18px;font-weight:600;overflow-wrap:anywhere}
.production-row .row-header p{overflow-wrap:anywhere}
.production-row .row-header-actions{flex-shrink:0}
.production-row:not(.compact-review) .row-content{grid-template-columns:minmax(360px,.9fr) minmax(440px,1.1fr)}
.production-row.ai-expanded:not(.compact-review) .row-content{grid-template-columns:minmax(320px,.95fr) minmax(360px,1fr) minmax(440px,1.25fr)}
.production-row .row-source{container-type:inline-size}
.production-row .row-source,.production-row .row-decision{padding:20px;scrollbar-gutter:stable}
.production-row .row-data .datum{padding:10px 0;min-width:0}
.production-row .row-data .datum dd{overflow-wrap:anywhere}
.production-row .row-check{margin-bottom:16px;font-size:14px}
.production-row .address-block{margin-top:20px}
.production-row .row-section-heading h3{font-size:17px;font-weight:600}
.production-row .row-section-heading{align-items:center}
.production-row .row-decision .decision-evidence{margin:12px 0 16px;padding:16px}
.production-row:not(.compact-review) .save-fields{grid-template-columns:minmax(300px,520px) minmax(0,1fr);gap:12px 20px}
.production-row:not(.compact-review) .save-fields textarea{height:72px}
.production-row .row-footer{padding:16px 20px;gap:12px 16px}
.production-row .row-footer-actions button{min-height:36px}
.production-row .row-tabs{padding:0 20px}
.production-row:not(.compact-review) .assistant-panel-head{padding:16px 20px}
.production-row:not(.compact-review) .assistant-context{margin:0 20px 12px;padding:12px}
.production-row:not(.compact-review) .assistant-scroll{padding:0 20px 20px}
.production-row:not(.compact-review) .assistant-composer{padding:12px 16px}
.production-row:not(.compact-review) .ai-input-box textarea{height:72px;min-height:72px}
.production-row .row-confirmation .save-fields textarea{height:88px}
@container(min-width:460px){.production-row .row-data:not(.single-facts){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}.production-row .row-data .datum{grid-template-columns:70px minmax(0,1fr);gap:8px}.production-row .row-data .datum-wide{grid-column:1/-1}}
@media(max-height:850px){.production-row .row-header{padding:8px 16px}.production-row .row-footer{padding:10px 16px;gap:8px}.production-row .row-source,.production-row .row-decision{padding:16px}.production-row .row-tabs{padding:0 16px}}
@media(max-height:650px){.production-row .row-confirmation .save-fields textarea{height:54px}.production-row .row-confirmation .save-fields{gap:8px}}
@media(max-width:720px){.results-workspace.source-open .source-panel{top:72px;right:8px;bottom:8px;max-width:calc(100vw - 16px);padding:16px}.results-table-heading{align-items:flex-start}.results-table-wrap{max-height:60dvh}#dialog.production-row,#dialog.production-row.ai-expanded{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0}.production-row .row-header{padding:12px 16px;gap:8px}.production-row .row-header h2{font-size:18px}.production-row .row-header p{max-width:none;white-space:normal}.production-row .row-header-actions{gap:6px}.production-row .row-header-actions button{padding:5px 8px}.production-row .row-footer{padding:10px 12px}.production-row .row-source,.production-row .row-decision{padding:16px}.production-row .row-tabs{padding:0 16px}}

.results-table-wrap col.result-col-row{width:64px}
.results-table-wrap col[data-result-field="姓名"]{width:112px}
.results-table-wrap col[data-result-field="委案编号"]{width:144px}
.results-table-wrap col[data-result-field="身份证号"]{width:188px}
.results-table-wrap col[data-result-field="性别"]{width:88px}
.results-table-wrap col[data-result-field="民族"]{width:100px}
.results-table-wrap col[data-result-field="户籍地址"]{width:280px}
.results-table-wrap col.result-col-court{width:236px}
.results-table-wrap col.result-col-status{width:152px}
.results-table-wrap col.result-col-actions{width:104px}
