.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.ranking{padding:0 22px 22px}
.ranking>div{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.ranking>div>span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#eef2ec;color:var(--muted);font-size:11px}
.ranking b{color:var(--green)}
.report-navigation-panel{margin-bottom:18px}
.report-tabs{display:flex;flex-wrap:wrap;gap:8px}
.report-tabs button{min-height:38px;padding:8px 14px;white-space:nowrap}
.report-tabs button.active{background:var(--green)!important;border-color:var(--green)!important;color:#fff!important}
.report-pending-view{padding:28px}
.report-pending-view h2{margin-top:0}
.legacy-report-table{width:max-content;min-width:100%;font-size:12px}
.legacy-report-table th,.legacy-report-table td{white-space:nowrap;padding:10px 12px}
.legacy-report-table-wrap{max-height:62vh}
.legacy-report-table thead{position:sticky;top:0;z-index:1}
.expanded-report-table-wrap{max-height:64vh;overflow:auto;isolation:isolate}
.expanded-report-table{table-layout:fixed;width:max-content;min-width:100%;font-size:12px;border-collapse:separate;border-spacing:0}
.expanded-report-table th,.expanded-report-table td{padding:10px 12px;vertical-align:top;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box;background:var(--color-surface)}
.expanded-report-table thead th{position:sticky;top:0;z-index:3;background:var(--color-surface-2);white-space:nowrap}
.expanded-report-table thead th.expanded-cell-id{white-space:normal}
.expanded-col-id,.expanded-report-table .expanded-cell-id{width:96px;min-width:96px;max-width:96px}
.expanded-col-name,.expanded-report-table .expanded-cell-name{width:240px;min-width:240px;max-width:240px}
.expanded-col-author,.expanded-report-table .expanded-cell-author{width:170px;min-width:170px;max-width:170px}
.expanded-col-interaction,.expanded-col-latest,.expanded-report-table .expanded-cell-interaction,.expanded-report-table .expanded-cell-latest{width:380px;min-width:380px;max-width:380px}
.expanded-col-contact,.expanded-report-table .expanded-cell-contact{width:220px;min-width:220px;max-width:220px}
.expanded-col-document,.expanded-report-table .expanded-cell-document{width:170px;min-width:170px;max-width:170px}
.expanded-col-campaign,.expanded-col-situation,.expanded-report-table .expanded-cell-campaign,.expanded-report-table .expanded-cell-situation{width:220px;min-width:220px;max-width:220px}
.expanded-col-money,.expanded-report-table .expanded-cell-money{width:155px;min-width:155px;max-width:155px;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
.expanded-report-table tr>:first-child{position:sticky;left:0;z-index:2;border-right:1px solid var(--color-divider)}
.expanded-report-table tr>:nth-child(2){position:sticky;left:96px;z-index:2;border-right:2px solid var(--color-divider)}
.expanded-report-table thead tr>:first-child,.expanded-report-table thead tr>:nth-child(2){z-index:4}
.expanded-report-table tbody tr:hover>td{background:var(--color-surface-2)}
#app-view .expanded-prospect-link{border:0!important;background:transparent!important;color:var(--color-accent)!important;text-align:left;padding:0;min-height:0;font-weight:600;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
.expanded-fup{display:grid;gap:6px}
.expanded-fup-meta{font-size:11px;color:var(--color-muted)}
.expanded-fup-situation{color:var(--color-text);font-size:12px;white-space:pre-wrap}
.expanded-fup-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:200px;overflow:auto;line-height:1.5;padding-right:5px}
.expanded-export-status{margin:0 18px 12px;color:var(--color-muted);font-size:12px}
@media(max-width:620px){.expanded-report-table tr>:nth-child(2){position:static}.expanded-col-id,.expanded-report-table .expanded-cell-id{width:78px;min-width:78px;max-width:78px}.expanded-col-name,.expanded-report-table .expanded-cell-name{width:190px;min-width:190px;max-width:190px}.expanded-col-interaction,.expanded-col-latest,.expanded-report-table .expanded-cell-interaction,.expanded-report-table .expanded-cell-latest{width:240px;min-width:240px;max-width:240px}}
.report-prospects-filters{padding:0 18px 12px}
.report-prospects-filter-bar{display:flex;gap:8px;align-items:end;flex-wrap:wrap}
.report-prospects-filter-bar>label{display:grid;gap:5px;flex:1 1 130px;min-width:0;color:var(--color-muted);font-size:11px}
.report-prospects-filter-bar>.report-filter-search{flex:1.2 1 160px}
.report-prospects-filter-bar>.report-filter-campaign,.report-prospects-filter-bar>.report-filter-situation{flex:1.3 1 160px}
.report-prospects-filter-bar input,.report-prospects-filter-bar select{width:100%;min-width:0;font-size:12px}
.report-prospects-filter-bar>button{white-space:nowrap;min-height:40px}
@media(max-width:620px){.report-prospects-filter-bar>.report-filter-search{flex-basis:100%}.report-prospects-filter-bar>label{flex-basis:calc(50% - 8px)}.report-prospects-filter-bar>button{flex:1}}
.portfolio-filters{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;padding:0 22px 18px}
.portfolio-cessionary-picker{min-width:min(100%,330px);max-width:100%}
.portfolio-cessionary-picker summary{list-style:none;min-height:40px;padding:10px 38px 10px 12px;border:1px solid var(--color-divider);border-radius:8px;background:var(--color-surface-2);color:var(--color-text);cursor:pointer;position:relative}
.portfolio-cessionary-picker summary::-webkit-details-marker{display:none}
.portfolio-cessionary-picker summary::after{content:"▾";position:absolute;right:13px;top:8px;font-size:18px;color:var(--color-muted)}
.portfolio-cessionary-picker[open] summary::after{transform:rotate(180deg)}
.portfolio-cessionary-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:4px;margin-top:6px;padding:8px;border:1px solid var(--color-divider);border-radius:8px;background:var(--color-surface);max-height:280px;overflow:auto}
.portfolio-cessionary-options label{display:flex;align-items:center;gap:8px;padding:8px;border-radius:6px;color:var(--color-text);cursor:pointer}
.portfolio-cessionary-options label:hover{background:var(--color-accent-soft)}
.portfolio-cessionary-options input{width:auto!important;min-height:0!important}
.portfolio-filter-actions{display:flex;gap:8px;flex-wrap:wrap}
.portfolio-creditors-summary{display:flex;align-items:center;justify-content:flex-end;gap:8px 20px;flex-wrap:wrap;text-align:right}
.portfolio-creditors-summary strong{color:var(--color-accent);font-size:14px;font-variant-numeric:tabular-nums}
.portfolio-creditors-table tfoot th,.portfolio-creditors-table tfoot td{background:var(--color-surface-2);border-top:2px solid var(--color-divider);color:var(--color-text);font-size:13px;font-weight:700}
.portfolio-creditors-table tfoot th{text-align:right;letter-spacing:normal;text-transform:none;cursor:default}
.portfolio-creditors-table tfoot td{white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:560px){.portfolio-creditors-summary{justify-content:flex-start;text-align:left}}
.financial-stage-note{display:grid;gap:5px;margin:0 22px 18px;padding:14px 16px;border:1px solid color-mix(in srgb,var(--green) 42%,var(--color-divider));border-radius:10px;background:color-mix(in srgb,var(--green) 8%,var(--color-surface));color:var(--color-text);line-height:1.45}
.financial-stage-note span{color:var(--color-muted)}
.financial-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;align-items:end;padding:0 22px 18px}
.financial-filters label{display:grid;gap:6px;min-width:0;color:var(--color-muted);font-size:12px}
.financial-filters input,.financial-filters select{width:100%;min-width:0}
.financial-filter-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.financial-summary{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));padding:0 22px 18px}
.financial-summary article{container-type:inline-size;min-width:0;overflow:hidden}
.financial-summary article strong{display:block;min-width:0;max-width:100%;font-size:clamp(13px,7cqi,25px);line-height:1.15;overflow-wrap:anywhere;word-break:break-word}
.financial-report-table tbody tr{cursor:pointer}
@media(max-width:800px){.report-grid{grid-template-columns:1fr}}
@media(max-width:620px){.financial-filters{grid-template-columns:1fr}.financial-filter-actions button{flex:1}}
