/* Report-only scope. Never changes global company selection or single-company pages. */
.portfolio-mode{display:flex;gap:4px;flex-wrap:wrap;padding:5px;background:#e9eff4;border:1px solid #d7e3ea;border-radius:12px;margin:0 0 18px;max-width:max-content}
.portfolio-mode button{font:inherit;font-weight:600;font-size:.88rem;border:0;background:transparent;color:#365266;padding:10px 16px;border-radius:8px;cursor:pointer;min-height:42px}
.portfolio-mode button.active{background:#075f9b;color:#fff;box-shadow:0 2px 5px #075f9b1a}
.portfolio-mode button:focus-visible,.portfolio-report :is(button,input,select,summary):focus-visible{outline:3px solid #e8a122;outline-offset:3px}
.portfolio-report{min-width:0;max-width:100%;color:#173343}
.portfolio-heading{margin-bottom:18px}.portfolio-heading h2{font-size:1.5rem;line-height:1.25;margin:0 0 6px}.portfolio-heading p{font-size:.92rem;color:#59717f;line-height:1.5;margin:0;max-width:850px}
.portfolio-controls{border:1px solid #d7e3ea;border-radius:15px;background:#fff;padding:18px;box-shadow:0 3px 15px #17334306;min-width:0}
.portfolio-picker{position:relative;border:1px solid #c5d9e6;border-radius:10px;background:#f8fbfd;margin-bottom:15px;min-width:0}
.portfolio-picker summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;cursor:pointer;list-style:none;min-height:46px;font-size:.9rem}
.portfolio-picker summary::-webkit-details-marker{display:none}.portfolio-picker summary:after{content:"⌄";font-size:1rem;color:#075f9b}.portfolio-picker[open] summary:after{transform:rotate(180deg)}
.portfolio-picker summary strong{margin-left:auto;font-size:.8rem;color:#075f9b;font-variant-numeric:tabular-nums;white-space:nowrap}
.portfolio-picker-body{padding:0 14px 14px}.portfolio-search-label{display:block;font-size:.8rem;font-weight:600;margin-bottom:5px}
.portfolio-report input[type=search]{box-sizing:border-box;width:100%;min-width:0;padding:9px 11px;border:1px solid #bdcfda;border-radius:7px;font:inherit;font-size:.88rem;background:#fff}
.portfolio-selection-actions{display:flex;gap:16px;flex-wrap:wrap;padding:8px 0}.portfolio-selection-actions button{font:inherit;font-size:.82rem;font-weight:600;color:#075f9b;border:0;background:transparent;padding:5px 0;min-height:32px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.portfolio-company-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px 12px;max-height:250px;overflow-y:auto;overscroll-behavior:contain;padding:3px}
.portfolio-choice{display:flex;gap:9px;align-items:center;padding:8px 5px;min-width:0;min-height:38px;font-size:.83rem;line-height:1.35;cursor:pointer;border-radius:5px}
.portfolio-choice:hover{background:#e9f3fa}.portfolio-choice input{flex:0 0 17px;width:17px;height:17px;accent-color:#075f9b;margin:0}.portfolio-choice span{min-width:0;overflow-wrap:anywhere}.portfolio-choice[hidden]{display:none}
.portfolio-no-match{font-size:.85rem;color:#59717f;padding:10px 0;margin:0}.portfolio-report [hidden]{display:none!important}
.portfolio-period{display:grid;grid-template-columns:minmax(85px,.65fr) minmax(120px,1fr) minmax(210px,2fr);gap:12px;align-items:end}
.portfolio-period label{display:block;font-size:.78rem;font-weight:650;color:#466271;margin-bottom:5px}.portfolio-period select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;font:inherit;font-size:.88rem;height:42px;padding:8px 30px 8px 10px;border:1px solid #bdcfda;border-radius:8px;color:#173343;background-color:#fff}
.portfolio-type-hint{font-size:.82rem;line-height:1.5;color:#526e7c;margin:12px 0}.portfolio-toolbar{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}.portfolio-toolbar .btn{font-size:.85rem;min-height:42px;white-space:normal;line-height:1.3}.portfolio-exports{display:flex;gap:6px;flex-wrap:wrap}.portfolio-toolbar button:disabled{opacity:.5;cursor:not-allowed}
.portfolio-export-hint{font-size:.74rem;color:#647c89;line-height:1.45;margin:9px 0 0}.portfolio-status:empty{display:none}.portfolio-status{color:#075f9b;font-size:.88rem;padding:12px 0}.portfolio-error{border:1px solid #e7b2ad;background:#fff3f1;color:#8f302a;border-radius:8px;padding:12px;font-size:.9rem;line-height:1.5}.portfolio-empty{font-size:.9rem;color:#647c89;line-height:1.5;padding:20px 0}
.portfolio-result{margin-top:20px;background:#fff;border:1px solid #d7e3ea;border-radius:15px;overflow:hidden;min-width:0}.portfolio-result-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:18px 20px;border-bottom:1px solid #d7e3ea}.portfolio-result-heading h3{font-size:1.1rem;line-height:1.4;margin:0 0 5px}.portfolio-result-heading p{font-size:.85rem;color:#59717f;margin:0}.portfolio-source{font-size:.72rem;color:#637e8a;line-height:1.5;flex:0 0 auto;text-align:right}.portfolio-result>.portfolio-empty{padding:12px 20px;margin:0}
.portfolio-table-wrap{width:100%;overflow-x:auto}.portfolio-table{table-layout:fixed;width:100%;border-collapse:collapse;min-width:0}.portfolio-table th,.portfolio-table td{padding:13px 15px;border:0;border-bottom:1px solid #e6edf1;font-size:.86rem;vertical-align:middle;color:#173343}.portfolio-table thead th{background:#f0f6fa;color:#3d5c6c;font-size:.73rem;font-weight:650;line-height:1.4;white-space:normal;overflow-wrap:normal}.portfolio-table th:first-child{width:30%;text-align:left}.portfolio-table tbody th{font-weight:600;line-height:1.4;overflow-wrap:anywhere}.portfolio-table th small{display:block;font-size:.68rem;font-weight:400;line-height:1.45;color:#637e8a;margin-top:5px}.portfolio-table .portfolio-derived{color:#8b630b}.portfolio-table .portfolio-number{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.portfolio-table thead .portfolio-number{white-space:normal}.portfolio-table tbody tr:nth-child(even){background:#fcfdfe}.portfolio-table tfoot{background:#e7f1f8}.portfolio-table tfoot th,.portfolio-table tfoot td{font-weight:750;border-bottom:0;border-top:2px solid #bfd6e6}.portfolio-notes{padding:12px 20px 16px;border-top:1px solid #d7e3ea}.portfolio-notes p{font-size:.76rem;line-height:1.5;color:#5a7380;margin:5px 0}
.portfolio-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.portfolio-table th{text-transform:none;letter-spacing:normal}
@media(max-width:1100px){.portfolio-company-list{grid-template-columns:repeat(2,minmax(0,1fr))}.portfolio-table th,.portfolio-table td{padding:12px 9px;font-size:.78rem}.portfolio-table thead th{font-size:.7rem}}
@media(max-width:700px){.portfolio-company-list{grid-template-columns:1fr;max-height:230px}.portfolio-controls{padding:13px}.portfolio-period{grid-template-columns:1fr 1fr;gap:10px}.portfolio-type{grid-column:1/-1}.portfolio-picker summary{padding:10px;gap:7px;flex-wrap:wrap}.portfolio-picker summary span{font-size:.85rem}.portfolio-picker summary strong{font-size:.73rem}.portfolio-result-heading{padding:14px;flex-direction:column;gap:6px}.portfolio-source{text-align:left}.portfolio-table,.portfolio-table tbody,.portfolio-table tfoot{display:block;width:100%}.portfolio-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.portfolio-table tr{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #d7e3ea;padding:8px 12px;gap:0 12px}.portfolio-table th:first-child{display:block;grid-column:1/-1;width:auto;padding:9px 0;font-size:.87rem}.portfolio-table td{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:8px 0;border:0;font-size:.84rem}.portfolio-table td:before{content:attr(data-label);display:block;white-space:normal;font-size:.66rem;color:#607d8b;font-weight:500;line-height:1.3;margin-bottom:3px;min-height:1.7em}.portfolio-table tfoot th,.portfolio-table tfoot td{border:0}.portfolio-table tfoot tr{border-top:2px solid #bfd6e6}.portfolio-notes{padding:12px 14px}.portfolio-heading h2{font-size:1.3rem}.portfolio-mode{max-width:100%;display:grid;grid-template-columns:1fr 1fr}.portfolio-mode button{font-size:.8rem;padding:9px 10px}.portfolio-toolbar{align-items:stretch}.portfolio-toolbar>.btn{width:100%}.portfolio-exports{width:100%}.portfolio-exports .btn{flex:1}.portfolio-table-wrap{overflow-x:visible}}
@media(prefers-reduced-motion:reduce){.portfolio-report *, .portfolio-mode *{scroll-behavior:auto!important;transition:none!important}}
