/* Track Record only. Report colors/geometry reproduce the approved originals. */
.tr-report-actions button,.tr-dialog button{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:9px 14px;cursor:pointer}
.tr-report-actions button[aria-pressed=true],.tr-dialog button[aria-pressed=true]{color:var(--accent);border-color:var(--accent);background:var(--fill-accent)}
.tr-dialog button:hover{border-color:var(--muted)}
.tr-report-list{display:flex;flex-direction:column;gap:48px}.tr-month-report{min-width:0;scroll-margin-top:96px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
#reports>.wrap{max-width:1120px;padding-inline:clamp(20px,4vw,32px)}
.tr-report-status:empty{display:none}
.tr-report-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 20px;margin-bottom:16px;background:var(--elevated);border-bottom:1px solid var(--border)}
.tr-report-title{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.tr-model-badge{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:8px 13px;border-radius:999px;background:var(--bg);color:var(--body);font-size:.72rem;line-height:1.4;white-space:nowrap}
.tr-model-badge strong{font-weight:500;color:var(--text)}
.tr-month-report>.tr-report-scroll{margin:0 14px 16px;max-width:calc(100% - 28px)}
.tr-month-report>.tr-report-status{margin:12px 20px 16px}
.tr-report-actions h3{margin:0;font-size:1.25rem}.tr-report-actions p{margin:5px 0 0;font-size:.85rem;color:var(--muted)}
.tr-report-scroll{overflow-x:auto;max-width:100%;border-radius:4px;background:#171717}
.tr-report-viewport{position:relative;overflow:hidden;margin:auto}
.tr-report-native{position:absolute;top:0;left:0;transform-origin:top left;background:linear-gradient(to right,#171717 0 var(--report-original-width),var(--bg) var(--report-original-width) 100%);color:#f3f3f3;-webkit-font-smoothing:auto}
.tr-report-table{display:block;position:absolute;inset:0;width:100%;border:0;border-collapse:collapse;table-layout:fixed;font-family:"Helvetica Neue",Arial,sans-serif;font-size:var(--report-body-size);font-weight:400;text-align:center;line-height:1}
.tr-report-table tr{display:grid;grid-template-columns:var(--report-cols);position:absolute;left:var(--report-left);width:var(--report-width)}
.tr-report-table th,.tr-report-table td{padding:0;display:flex;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;border:1px solid #363636;background:#3a3a3a;color:#f3f3f3;vertical-align:middle;line-height:1}
.tr-report-table th{background:#2c2c2c;border-color:#3a3a3a;font-family:-apple-system,BlinkMacSystemFont,sans-serif;font-size:var(--report-head-size);font-weight:700;color:#e0e0e0}
.tr-report-table th>span{display:block;transform:scaleX(.94)}
.tr-report-table tbody td>span{transform:translate(1px,-1px)}
.tr-report-table .tr-report-result{font-family:-apple-system,BlinkMacSystemFont,sans-serif;font-weight:700;font-size:calc(var(--report-body-size) + 1px);color:#000}
.tr-report-table tfoot tr{display:block}.tr-report-table tfoot td{height:100%;background:#2c2c2c;border-color:#3a3a3a;font-family:-apple-system,BlinkMacSystemFont,sans-serif;font-size:var(--report-head-size);font-weight:700;color:#e0e0e0}
.tr-report-table tfoot td>span{display:block;transform:translateY(-1px) scaleX(.95)}
.tr-execution-row:focus-within{outline:2px solid #fffc;outline-offset:-2px;z-index:1}
.tr-report-august{--report-body-size:24px!important;--report-head-size:32px!important}
.tr-report-august .tr-report-result{font:700 26px "Helvetica Neue",Arial,sans-serif}
.tr-report-august th>span{transform:scaleX(.92)}
.tr-report-august tfoot td{font-size:30px;justify-content:flex-start}
.tr-report-august tfoot td>span{width:1202px;transform:translateY(-2px) scaleX(1.02)}
/* The exact native table from the approved August example. */
.tr-report-august .tr-report-table{display:table;inset:auto;left:9px;top:8px;width:1416px;height:auto;border:2px solid #3a3a3a;font-size:24px}
.tr-report-august .tr-report-table tr{display:table-row;position:relative;width:auto;height:38px}
.tr-report-august .tr-report-table td,.tr-report-august .tr-report-table th{display:table-cell;vertical-align:middle;border-width:2px;line-height:34px}
.tr-report-august .tr-report-table th,.tr-report-august .tr-report-table thead tr{height:42px;line-height:38px}
.tr-report-august .tr-report-table tbody td{height:38px}
.tr-report-august .tr-report-table .tr-taller,.tr-report-august .tr-report-table .tr-taller td{height:41px}
.tr-report-august .tr-report-table .tr-result-loss{background:#fc4b3d;border-color:#df453b}
.tr-report-august .tr-report-table .tr-result-gain{background:#52d52a;border-color:#47be21}
.tr-report-august .tr-report-table tfoot tr,.tr-report-august .tr-report-table tfoot td{height:40px;line-height:37px}
.tr-report-table .tr-action-cell,.tr-report-august .tr-report-table .tr-action-cell{position:absolute;left:calc(var(--report-width) + 10px);top:0;width:160px;height:100%;display:flex;align-items:center;justify-content:center;background:none;border:0;overflow:visible;padding:0}
.tr-show-chart{display:inline-flex;align-items:center;justify-content:center;height:calc(100% - 4px);max-height:32px;font:500 18px/1 "Helvetica Neue",Arial,sans-serif;letter-spacing:0;white-space:nowrap;color:var(--accent);background:transparent;border:0;border-radius:0;padding:0 8px;cursor:pointer;text-underline-offset:4px}
.tr-show-chart:hover{text-decoration:underline}.tr-show-chart:focus-visible{outline:2px solid var(--text);outline-offset:3px}
.tr-report-native [hidden]{display:none!important}
.tr-dialog{padding:0;margin:auto;width:min(1120px,calc(100vw - 64px));max-width:none;max-height:calc(100dvh - 64px);border:1px solid var(--border);border-radius:16px;background:var(--bg);color:var(--text);box-shadow:0 30px 100px #000b;overflow:auto;overscroll-behavior:contain}
.tr-dialog::backdrop{background:#000c;backdrop-filter:blur(4px)}
.tr-dialog-header{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:22px 26px 16px;background:var(--bg);border-bottom:1px solid var(--border)}
.tr-dialog h2{font-size:1.7rem;margin:0;line-height:1.15}.tr-dialog-date{color:var(--muted);font-size:.83rem;margin:6px 0 0}
.tr-dialog-result{text-align:right;font:500 1.6rem var(--mono);white-space:nowrap}.tr-dialog-result small{display:block;color:var(--muted);font:400 .72rem var(--sans);margin-bottom:5px}
.tr-dialog-title-group{display:flex;align-items:flex-start;gap:20px}.tr-dialog .tr-close{padding:2px 10px;font-size:26px;line-height:1.3;background:transparent}
.tr-dialog-body{padding:0 26px 24px}.tr-facts{display:flex;gap:18px 38px;flex-wrap:wrap;margin:18px 0 20px}
.tr-facts dt{font-size:.73rem;color:var(--muted)}.tr-facts dd{font:400 1rem var(--mono);margin:4px 0 0;color:var(--text)}
.tr-chart-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px;font-size:.78rem}.tr-tool-group{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.tr-chart-scroll{overflow-x:auto;border:1px solid var(--border);border-radius:8px;background:#0f0f0f}.tr-chart-host{min-height:240px}
.tr-chart-status{padding:70px 24px;text-align:center;color:var(--muted);font-size:.9rem}.tr-chart-caption{font-size:.74rem;color:var(--muted);line-height:1.5;margin:10px 0 16px}
.tr-model-note{font-size:.8rem;color:var(--accent);padding:10px 12px;border-left:2px solid var(--accent);background:var(--fill-accent);margin:8px 0 14px}
.tr-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:18px;border-top:1px solid var(--border);font-size:.82rem}
.tr-dialog button:disabled{opacity:.35;cursor:default}.tr-dialog a{color:var(--accent)}
.tr-context-toggle{margin:6px 0 16px}.tr-context-chart{height:300px;margin-bottom:16px}.tr-context-notice{font-size:.8rem;color:var(--muted);margin-bottom:20px}
.tr-positive{color:#52d52a}.tr-negative{color:#fc4b3d}.tr-flat{color:#0096ff}
.tr-wide-chart{min-width:900px}.tr-dialog [hidden]{display:none!important}
@media(max-width:640px){.tr-dialog{width:calc(100% - 32px);max-height:calc(100dvh - 32px);border-radius:12px}.tr-dialog-header{padding:16px;gap:12px}.tr-dialog h2{font-size:1.4rem}.tr-dialog-title-group{gap:12px}.tr-dialog-result{font-size:1.1rem}.tr-dialog-result small{font-size:.65rem}.tr-dialog-body{padding:0 12px 20px}.tr-facts{gap:15px 25px;margin:16px 4px}.tr-chart-host{min-height:0}.tr-chart-host .ls-chart-inspector{font-size:8px!important;padding:4px!important;top:4px!important;left:4px!important;opacity:.85}.tr-dialog-footer{gap:6px;font-size:.75rem}.tr-dialog-footer button{padding:9px 10px}.tr-report-actions{gap:12px}}

/* Model colors approved by Felipe: Cyan for Baseline, Violet for Portfolio T. */
.tr-report-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;row-gap:4px;padding:22px 24px}
.tr-report-actions>div,.tr-report-title{display:contents}
.tr-report-actions h3{grid-column:1;grid-row:1}
.tr-report-actions p{grid-column:1;grid-row:2;margin:0}
.tr-model-badge{grid-column:2;grid-row:1 / span 2;justify-self:end;gap:9px;padding:14px 22px;border:1px solid transparent;background:#70dcf0;color:#06242b;font-size:1rem;line-height:1.4;max-width:100%}
.tr-model-badge[data-model="portfolio-t"]{background:#c1a0ff;color:#25103e}
.tr-model-badge>span{font-size:.875rem;color:inherit}
.tr-model-badge strong{font-size:1rem;font-weight:600;color:inherit}
@media(max-width:640px){
 .tr-report-actions{grid-template-columns:minmax(0,1fr);padding:20px;row-gap:5px}
 .tr-model-badge{grid-column:1;grid-row:3;justify-self:end;margin-top:10px;flex-direction:column;align-items:flex-end;gap:3px;padding:12px 18px;white-space:normal;text-align:right}
 .tr-model-badge>span{font-size:.75rem}.tr-model-badge strong{font-size:.9375rem}
}
