/* Operating Report (rooftop/opreport.js) */
html.op-on .lp { display: none !important; }
#rooftop-op { --ink: #1B2333; --muted: #5B6475; --line: #DCE1EA; --line2: #EEF1F6; --brand: #1F3A93; --page: #F4F6FA; --up: #1F7A3E; --down: #B42318; --act: #F1F3F7;
  font: 13px Roboto, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--page); min-height: 100vh; }
.op-page { padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.op-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.op-per { display: flex; gap: 10px; align-self: center; }
.op-per button { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; font-weight: 600; font-size: 12px; color: var(--muted); }
.op-per button i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #B8C0CE; box-sizing: border-box; display: block; }
.op-per button[aria-checked="true"] { color: var(--ink); }
.op-per button[aria-checked="true"] i { border: 6px solid #22324F; }
.op-per button:focus-visible i { outline: 2px solid var(--brand); outline-offset: 2px; }
.op-f { display: flex; flex-direction: column; gap: 3px; }
.op-f span { font-size: 12px; color: var(--muted); }
.op-f select { font: inherit; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; min-width: 120px; }
.op-chk { display: flex; align-items: center; gap: 6px; padding-bottom: 6px; cursor: pointer; }
.op-sp { flex: 1; }
.op-view { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; align-self: center; }
.op-view button { all: unset; cursor: pointer; padding: 6px 12px; color: var(--muted); }
.op-view button + button { border-left: 1px solid var(--line); }
.op-view button[aria-selected="true"] { background: #22324F; color: #fff; }
.op-btn { font: inherit; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; align-self: center; }
.op-btn:hover { border-color: #B8C2D6; }
.op-ic { all: unset; cursor: pointer; align-self: center; width: 24px; height: 24px; border-radius: 50%; background: #111; color: #fff; font: 700 14px Georgia, serif; text-align: center; line-height: 24px; }
.op-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.op-tag { background: #A3161B; color: #fff; padding: 3px 10px; font-weight: 500; }
.op-title { display: flex; align-items: baseline; gap: 12px; }
.op-title h1 { margin: 0; font-size: 22px; font-weight: 700; }
.op-title small { color: var(--muted); }
.op-note { margin: 0; color: #6B5300; background: #FFF8E6; border: 1px solid #F3E2B3; border-radius: 8px; padding: 6px 10px; }
.op-empty { color: var(--muted); padding: 30px; text-align: center; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.op-foot { margin: 0; color: var(--muted); font-size: 12px; }

.op-wrap { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.op-t { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; min-width: 100%; }
.op-t th, .op-t td { white-space: nowrap; border-bottom: 1px solid var(--line2); }
.op-t thead th { position: sticky; background: #fff; z-index: 3; font-weight: 500; color: #3A4458; }
.op-h1 th { top: 0; height: 30px; }
.op-h2 th { top: 31px; font-size: 12px; padding: 5px 10px; text-align: right; border-bottom: 2px solid #22324F; }
.r13 .op-h1 th { border-bottom: 2px solid #22324F; font-size: 12px; text-align: right; padding: 6px 10px; }
.op-blk { font-size: 20px; font-weight: 400 !important; letter-spacing: .02em; text-align: center; color: var(--ink) !important; }
.op-blk.op-ytd { background: #F2F8F8 !important; }
.op-blk.op-cur { background: #FCF4EC !important; }
.op-t th.act, .op-t td.act { background: var(--act); }
.op-t thead th.act { background: #E3E7EF; }
.op-t .op-bl { border-left: 1px solid #C9D0DC; }
.op-t td { text-align: right; padding: 4px 10px; min-width: 76px; }
.op-t td.nb { color: var(--muted); }
.op-t td.up { color: var(--up); }
.op-t td.down { color: var(--down); }
.op-t td.warn { color: #9A5B00; background: #FFF4DE; font-weight: 600; }
.op-sec { position: sticky; left: 0; z-index: 2; width: 34px; min-width: 34px; padding: 0; background: var(--sec, #fff) !important; border-right: 2px solid #3A4458; border-bottom: 2px solid #3A4458 !important; vertical-align: middle; }
thead .op-sec, thead .op-lab { z-index: 5; left: 0; }
thead .op-lab { left: 34px; }
.op-sec button { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 40px; }
.op-sec button span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; color: #3A4458; padding: 8px 0; white-space: nowrap; }
.op-sec button:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.op-lab { position: sticky; left: 34px; z-index: 2; background: #fff; text-align: left; min-width: 330px; max-width: 360px; padding: 0 !important; border-right: 2px solid #3A4458; font-weight: 400; }
.op-lab button { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; padding: 4px 10px; overflow: hidden; text-overflow: ellipsis; }
.op-lab button:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.op-lab button:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.op-r.memo .op-lab button { padding-left: 24px; color: #4A5569; }
.op-r.tot td, .op-r.tot .op-lab { background: #EDEFF3; font-weight: 600; }
.op-r.tot td.act { background: #E2E6EE; }
.op-r:hover td, .op-r:hover .op-lab { background-color: #F3F6FC; }
.op-g tr:last-child td, .op-g tr:last-child .op-lab { border-bottom: 2px solid #3A4458; }
.op-t td.op-shut { text-align: left; padding: 8px 12px; border-bottom: 2px solid #3A4458; }
.op-t td.op-shut .op-link { position: sticky; left: 46px; }
.op-link { all: unset; color: var(--brand); cursor: pointer; text-decoration: underline; }
.op-new { font-style: normal; font-size: 10px; font-weight: 700; color: #2E6B3F; background: #E3F2E6; border-radius: 4px; padding: 0 4px; margin-left: 6px; vertical-align: 1px; }
.op-spark { display: block; margin-left: auto; }

.op-dwrap { position: fixed; inset: 0; z-index: 70; }
.op-scrim { position: absolute; inset: 0; background: rgba(20, 26, 40, .32); }
.op-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); background: #fff; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(20, 26, 40, .2); }
.op-drawer header { display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.op-drawer h2 { margin: 0; font-size: 18px; }
.op-drawer header p { margin: 3px 0 0; color: var(--muted); }
.op-src { font-size: 12px; }
.op-x { all: unset; cursor: pointer; font-size: 24px; line-height: 1; color: var(--muted); padding: 2px 6px; border-radius: 6px; height: fit-content; }
.op-x:hover { background: rgba(0,0,0,.06); }
.op-dbody { overflow: auto; padding: 12px 20px 20px; }
.op-dt { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.op-dt th, .op-dt td { padding: 7px 10px; border-bottom: 1px solid var(--line2); text-align: right; white-space: nowrap; }
.op-dt th[scope=row], .op-dt thead th:first-child { text-align: left; font-weight: 500; }
.op-dt thead th { font-size: 12px; color: var(--muted); font-weight: 500; border-bottom: 2px solid #22324F; }
.op-dt .act { background: var(--act); }
.op-dt .up { color: var(--up); } .op-dt .down { color: var(--down); } .op-dt .warn { color: #9A5B00; }
.op-dt .op-bl { border-left: 1px solid #C9D0DC; }
.op-dt tfoot tr { font-weight: 600; background: #EDEFF3; }
.op-prose { line-height: 1.5; max-width: 640px; }
.op-prose h3 { font-size: 14px; margin: 18px 0 6px; }
.op-prose ul { padding-left: 20px; margin: 0; }
.op-prose li { margin: 4px 0; }
.op-demo { background: #FFF8E6; border: 1px solid #F3E2B3; border-radius: 8px; padding: 8px 12px; color: #6B5300; }

@media (max-width: 700px) {
  .op-page { padding: 12px; }
  .op-lab { min-width: 200px; max-width: 220px; }
}

/* Edit the report */
.op-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.op-edit { width: min(560px, 100vw); }
.op-eh { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 8px; }
.op-ecols { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px 12px; }
.op-ecols label, .op-elines label { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 3px 0; }
.op-esec { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 10px; padding: 6px 12px 10px; border-left: 6px solid var(--sec); }
.op-esec legend { padding: 0 4px; }
.op-esec legend label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.op-esec legend small { color: var(--muted); font-weight: 400; }
.op-elines { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.op-elines label.memo { color: var(--muted); }
.op-efoot { display: flex; gap: 8px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 600px) { .op-elines { grid-template-columns: 1fr; } }

/* Budgets */
.op-bud { display: flex; flex-direction: column; gap: 10px; }
.op-budbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.op-budfill { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.op-budfill input { width: 60px; font: inherit; padding: 5px 6px; border: 1px solid var(--line); border-radius: 7px; }
.op-budst { color: var(--muted); align-self: center; }
.op-btn[disabled] { opacity: .5; cursor: default; }
.op-lead { margin: 0; color: var(--muted); max-width: 980px; }
.op-budt .op-lab { min-width: 260px; padding: 4px 10px 4px 22px !important; }
.op-budt tr.op-bsec th, .op-budt tr.op-bsec td { background: #F2F4F8; border-top: 2px solid #22324F; padding: 7px 10px !important; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #22324F; }
.op-budt tr.tot .op-lab { padding-left: 10px !important; }
.op-budt tr.tot td, .op-budt tr.tot th { border-top: 1px solid #C7CDD8; }
.op-budt thead th { text-align: right; padding: 6px 8px; border-bottom: 2px solid #22324F; top: 0; }
.op-budt thead th.op-lab { text-align: left; }
.op-budt td.op-bc { padding: 2px 3px; min-width: 92px; }
.op-budt td.op-bc input { width: 100%; box-sizing: border-box; font: inherit; text-align: right; padding: 5px 6px; border: 1px solid transparent; border-radius: 5px; background: transparent; font-variant-numeric: tabular-nums; }
.op-budt td.op-bc input::placeholder { color: #A3AAB8; font-style: italic; }
.op-budt td.op-bc input:hover { border-color: var(--line); background: #fff; }
.op-budt td.op-bc input:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 2px rgba(31, 58, 147, .12); }
.op-budt td.op-bc input.bad { border-color: var(--down); }
.op-budt .op-lab { left: 0; }
.op-bar .op-title h1 { font-size: 20px; }
/* the corner above the line names: one cell, labelled, instead of two empty rows (Nov 1, 2026) */
.op-h1 th[rowspan] { border-bottom: 2px solid #22324F; vertical-align: bottom; }
.op-t thead th.op-corner { position: sticky; left: 0; z-index: 6; text-align: left; vertical-align: bottom; padding: 8px 14px 8px 14px; min-width: 364px; max-width: 394px; background: linear-gradient(135deg, #22324F, #3A4A6B) !important; color: #fff; border-right: 2px solid #3A4458; border-bottom: 2px solid #22324F; }
.op-corner .op-cn { display: block; font-size: 16px; font-weight: 600; letter-spacing: .01em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-corner .op-cs { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #C9D3E6; }
.op-cover { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: #FFF7E8; color: #7A4B00; font-size: 13px; }
