/* [oscar_my_reports] / [oscar_my_reports_if_available]: compact report list that fits narrow sidebars and wide columns. */
.oscar-history{box-sizing:border-box;--history-ink:#141b2d;--history-muted:#5b6475;--history-blue:#3b4be3;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--history-ink);font-size:14px;line-height:1.45;background:var(--history-body-bg,#fff);border:var(--history-border,1px solid #e2e8f0);border-radius:var(--history-radius,16px 16px 0 0);min-height:var(--history-min-height,400px);display:flex;flex-direction:column;max-width:none;width:100%;margin:0!important;padding:0!important;overflow:hidden;box-shadow:var(--history-shadow,0 6px 24px #16233b0d)}
.oscar-history *{box-sizing:border-box}
.oscar-history[hidden]{display:none!important}
.oscar-history>.oscar-history-header{flex:none}
.oscar-history .oscar-history-content{flex:1;display:flex;flex-direction:column}
.oscar-history .oscar-history-content>.oscar-history-message,.oscar-history>.oscar-history-message{margin:auto 0}
.oscar-history h2,.oscar-history h3,.oscar-history p{font-family:inherit;letter-spacing:normal;text-transform:none}

/* Header: title and count on the left, View Last Report on the right (wraps below in very narrow columns). */
.oscar-history .oscar-history-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 10px;padding:15px 14px 15px 16px;background:var(--history-header-bg,#1f2747);color:var(--history-header-ink,#fff)}
.oscar-history-heading{min-width:0;flex:1 1 120px}
.oscar-history .oscar-history-header h2{margin:0;padding:0;font-size:16px;font-weight:700;line-height:1.25;color:var(--history-header-ink,#fff)}
.oscar-history .oscar-history-header p{margin:3px 0 0;color:var(--history-header-ink,#fff);opacity:.75;font-size:12.5px;line-height:1.4}
.oscar-history .oscar-history-eyebrow{display:block;margin:0 0 6px;color:#b9c2dd;font-size:10px;letter-spacing:.15em;font-weight:650}
.oscar-history .oscar-history-latest{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;border-radius:9px;background:var(--history-blue);color:#fff;font-size:12.5px;font-weight:650;line-height:1.2;text-decoration:none;white-space:nowrap}
.oscar-history .oscar-history-latest:hover{background:#2f3dc9;color:#fff}
.oscar-history .oscar-history-latest[hidden]{display:none}
.oscar-history .screen-reader-text{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}

/* Rows: date and report number, overhead and zone badge, outline View button. Zone accent on the left. */
.oscar-history .oscar-history-list{list-style:none;margin:0;padding:0}
.oscar-history-row{--row-accent:#cbd5e1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin:0;padding:12px 14px 12px 18px;border-bottom:1px solid #e5e9f0;box-shadow:inset 4px 0 0 var(--row-accent);transition:background-color .15s}
.oscar-history-row:hover{background:#f8fafc}
.oscar-history-row-red{--row-accent:#c9414f}.oscar-history-row-yellow{--row-accent:#c4822a}.oscar-history-row-green{--row-accent:#2f9e63}
.oscar-history-report{min-width:0;display:grid;gap:3px}
.oscar-history .oscar-history-when,.oscar-history .oscar-history-figures{margin:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;line-height:1.35}
.oscar-history-when strong{font-size:15px;font-weight:700;color:var(--history-ink)}
.oscar-history-when span{font-size:13px;color:#6b7280}
.oscar-history .oscar-history-figures{align-items:center;font-size:13px;color:var(--history-muted)}
.oscar-history-overhead strong{font-size:14.5px;font-weight:700;color:var(--history-ink);margin-left:3px}
.oscar-history-badge{font-size:12px;font-weight:500;line-height:1.3;padding:2px 9px;border-radius:999px;white-space:nowrap}
.oscar-history-red{background:#fde7ea;color:#b42335}.oscar-history-yellow{background:#fdf0dc;color:#a8650f}.oscar-history-green{background:#e3f6ea;color:#1f7a46}
.oscar-history .oscar-history-view{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:6px 11px;border:1px solid #c9cff5;border-radius:8px;background:#fff;color:var(--history-blue);font-size:13px;font-weight:650;line-height:1.2;text-decoration:none;white-space:nowrap}
.oscar-history .oscar-history-view:hover{background:#f1f3ff;border-color:#aeb7f2;color:#2f3dc9}

/* Footer: See all reports / Show fewer, and pages when viewing all. */
.oscar-history-footer{padding:11px 18px;font-size:13px}
.oscar-history .oscar-history-footer button{font:inherit;font-weight:650;color:var(--history-blue);background:none;border:0;padding:4px 0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.oscar-history .oscar-history-footer button:hover{color:#2f3dc9}
.oscar-history-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid #e5e9f0;font-size:12px;color:#64748b}
.oscar-history-pagination button{font-family:inherit;background:#fff;border:1px solid #d8dfeb;border-radius:8px;color:#334155;font-size:12px;min-height:34px;padding:6px 11px;cursor:pointer}
.oscar-history-pagination button:disabled{opacity:.4;cursor:default}

/* Messages, loading, buttons in messages. */
.oscar-history .oscar-history-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;background:var(--history-blue);border:1px solid var(--history-blue);color:#fff;min-height:38px;padding:8px 15px;border-radius:9px;font-size:13px;font-family:inherit;font-weight:650;line-height:1.4;white-space:nowrap;cursor:pointer}
.oscar-history .oscar-history-button:hover{background:#2f3dc9;border-color:#2f3dc9;color:#fff}
.oscar-history a:focus-visible,.oscar-history button:focus-visible{outline:3px solid #a5b4fc;outline-offset:2px}
.oscar-history-message{padding:28px 20px;text-align:center}
.oscar-history .oscar-history-message h3{font-size:17px;line-height:1.4;margin:0 0 10px;font-weight:650;color:var(--history-ink)}
.oscar-history .oscar-history-message p{font-size:13px;line-height:1.65;color:#64748b;margin:0 auto 18px;max-width:520px}
.oscar-history .oscar-history-message p:last-child{margin-bottom:0}
.oscar-history .oscar-history-loading{padding:24px 18px;margin:0;color:#64748b;font-size:13px}
.oscar-history-content[aria-busy=true]{opacity:.65}
.oscar-history-list:focus,.oscar-history-message:focus{outline:none}
.oscar-history noscript{display:block;padding:18px}

/* [oscar_latest_report] */
.oscar-latest{box-sizing:border-box;width:100%;max-width:1320px;margin:24px auto;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.oscar-latest .oscar-history{margin:0;max-width:none;min-height:0;border-radius:16px}.oscar-latest-content{border-radius:18px;overflow:hidden;min-width:0}.oscar-latest-toolbar{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:18px 24px;border:1px solid #e2e8f0;border-radius:18px 18px 0 0;background:#f8fafc;font-size:12px;line-height:1.5;color:#64748b}.oscar-latest-toolbar a{color:#4338ca;text-decoration:none;font-weight:600;text-underline-offset:3px}.oscar-latest-toolbar a:hover{text-decoration:underline}.oscar-latest-toolbar a:focus-visible{outline:3px solid #a5b4fc;outline-offset:3px}.oscar-latest .oscar-latest-report{min-height:0}.oscar-latest-content[aria-busy=true]{opacity:.7}.oscar-latest noscript{display:block;padding:20px}@media(max-width:639px){.oscar-latest-toolbar{padding:16px;gap:8px}.oscar-latest{margin:16px auto}}

.oscar-latest .oscar-latest-report{border-radius:0 0 18px 18px;overflow:hidden;min-height:0}
