/* =========================================================================
   Management report system. Research-based: conclusion first, KPI scorecard
   against a comparison point and a target, numbered sections whose subtitles
   state the takeaway, numbered figures with sources, appendix and sign-off.
   IBCS restraint: no decoration, horizontal rules only, ink = current period,
   grey outline = comparison period, colour only for status and variance.
   ========================================================================= */
.sheet { --r-ink: #111522; --r-ink-2: #3F4657; --r-ink-3: #727a8c; --r-rule: #D9DDE4; --r-hair: #ECEEF2; --r-grey: #B9BEC8; --r-green: #1E7F55; --r-amber: #A86B00; --r-red: #B83434; }

/* cover */
.rc { position: absolute; inset: 0; padding: 60px 64px 56px; display: flex; flex-direction: column; }
.rc-top { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--r-rule); }
.rc-top .p-mark { width: 36px; height: 36px; border-radius: 9px; font-size: 17px; }
.rc-top b { display: block; font-size: 14px; color: var(--r-ink); }
.rc-top small { color: var(--r-ink-3); font-size: 11.5px; }
.rc-class { margin-inline-start: auto; font-size: 11px; font-weight: 600; color: var(--r-red); border: 1px solid #E8C3C3; padding: 4px 10px; border-radius: 4px; }
.rc-main { margin-top: 150px; }
.rc-kind { font-size: 13px; color: var(--p-accent); font-weight: 600; margin-bottom: 12px; }
.rc-main h1 { font-size: 36px; line-height: 1.12; letter-spacing: -0.025em; color: var(--r-ink); max-width: 600px; }
.sheet[dir="rtl"] .rc-main h1 { line-height: 1.35; letter-spacing: 0; }
.rc-main p { font-size: 15px; color: var(--r-ink-2); margin-top: 14px; max-width: 560px; line-height: 1.6; }
.rc-rule { display: block; width: 56px; height: 3px; background: var(--p-accent); margin-top: 26px; }
.rc-ctrl { margin-top: 64px; width: 100%; border-collapse: collapse; font-size: 12px; }
.rc-ctrl th { text-align: start; font-weight: 500; color: var(--r-ink-3); width: 190px; padding: 8px 0; border-top: 1px solid var(--r-hair); vertical-align: top; }
.rc-ctrl td { padding: 8px 0; border-top: 1px solid var(--r-hair); color: var(--r-ink); font-weight: 500; }
.rc-ctrl tr:last-child th, .rc-ctrl tr:last-child td { border-bottom: 1px solid var(--r-hair); }
.rc-dist { margin-top: 26px; font-size: 11.5px; color: var(--r-ink-2); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.rc-dist b { width: 100%; color: var(--r-ink-3); font-weight: 500; font-size: 11px; }
.rc-foot { margin-top: auto; font-size: 10.5px; color: var(--r-ink-3); border-top: 1px solid var(--r-rule); padding-top: 12px; }

/* contents */
.rp-toc h2 { font-size: 20px; color: var(--r-ink); margin-bottom: 14px; }
.rp-toc ol { list-style: none; margin: 0 0 26px; padding: 0; }
.rp-toc li { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; font-size: 13px; color: var(--r-ink); }
.rp-toc .n { width: 22px; color: var(--p-accent); font-weight: 700; }
.rp-toc .dots { flex: 1; border-bottom: 1px dotted var(--r-grey); transform: translateY(-4px); }
.rp-toc .p { min-width: 20px; text-align: end; font-weight: 600; }

/* executive summary */
.rp-exec { border-top: 2px solid var(--r-ink); padding-top: 14px; }
.rp-kicker { font-size: 20px; font-weight: 700; color: var(--r-ink); margin-bottom: 12px; }
.rp-status { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rp-status .lbl { font-size: 11.5px; color: var(--r-ink-3); }
.rp-key { font-size: 16px; line-height: 1.55; font-weight: 600; color: var(--r-ink); margin: 6px 0 16px; }
.sheet[dir="rtl"] .rp-key { line-height: 1.8; }
.rp-exec h3, .rp-h3 { font-size: 13px; font-weight: 700; color: var(--r-ink); margin: 6px 0 8px; }
.rp-findings { margin: 0 0 6px; padding-inline-start: 20px; font-size: 12.5px; color: var(--r-ink-2); }
.rp-findings li { margin-bottom: 7px; padding-inline-start: 4px; }
.rp-findings b { color: var(--r-ink); }
.rag { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; padding: 3px 9px; padding-inline-start: 8px; border-radius: 3px; white-space: nowrap; }
.rag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rag.ok { color: var(--r-green); background: #EAF5EF; }
.rag.watch { color: var(--r-amber); background: #FBF2DF; }
.rag.act { color: var(--r-red); background: #FAE9E9; }

/* tables */
.rp-t { width: 100%; border-collapse: collapse; font-size: 11.5px; color: var(--r-ink); }
.rp-t th { text-align: start; font-weight: 600; font-size: 10.5px; color: var(--r-ink-3); padding: 6px 8px; border-bottom: 1.5px solid var(--r-ink); vertical-align: bottom; }
.rp-t td { padding: 6px 8px; border-bottom: 1px solid var(--r-hair); vertical-align: top; }
.rp-t td small { display: block; color: var(--r-ink-3); font-size: 10px; }
.rp-t .num { text-align: end; white-space: nowrap; }
.rp-t th.prev, .rp-t td.prev { color: var(--r-ink-3); }
.rp-t th.cur { color: var(--r-ink); }
.rp-t tfoot td { font-weight: 700; border-top: 1.5px solid var(--r-ink); border-bottom: 0; }
.rp-t .idx { color: var(--r-ink-3); width: 18px; }
.rp-t.score td:first-child { width: 34%; }
.dv { font-weight: 700; font-size: 11px; white-space: nowrap; color: var(--r-ink-3); }
.dv.pos { color: var(--r-green); }
.dv.neg { color: var(--r-red); }
.neg-t { color: var(--r-red); }
.st { font-weight: 600; font-size: 10.5px; white-space: nowrap; }
.st.signed, .st.ontime { color: var(--r-green); }
.st.reserved, .st.late { color: var(--r-amber); }
.st.overdue { color: var(--r-red); }
.st.negotiation, .st.open { color: var(--r-ink-3); }

/* sections */
.rp-sec { display: flex; gap: 12px; align-items: flex-start; border-top: 2px solid var(--r-ink); padding-top: 12px; margin: 10px 0 12px; }
.rp-sec .no { font-size: 20px; font-weight: 700; color: var(--p-accent); line-height: 1.2; min-width: 22px; }
.rp-sec h2 { font-size: 17px; color: var(--r-ink); }
.rp-sec p { margin: 4px 0 0; font-size: 12.5px; color: var(--r-ink-2); line-height: 1.55; }
.rp-cont { font-size: 11px; color: var(--r-ink-3); margin-bottom: 6px; font-weight: 600; }
.rp-h4 { font-size: 12px; font-weight: 700; color: var(--r-ink); margin: 14px 0 6px; }
.rp-p { font-size: 12.5px; color: var(--r-ink-2); line-height: 1.65; margin: 0 0 8px; }
.sheet[dir="rtl"] .rp-p { line-height: 1.9; }
.rp-p.muted { color: var(--r-ink-3); }

/* figures */
.rp-fig { margin: 4px 0 6px; }
.rp-fig figcaption { font-size: 12px; color: var(--r-ink); margin-bottom: 10px; }
.rp-fig figcaption b { color: var(--p-accent); margin-inline-end: 6px; }
.rp-src { font-size: 10px; color: var(--r-ink-3); margin-top: 8px; border-top: 1px solid var(--r-hair); padding-top: 5px; }
.rp-bars { display: grid; gap: 8px; }
.rp-bars .row { display: grid; grid-template-columns: 150px 1fr 74px 64px; gap: 10px; align-items: center; font-size: 11.5px; color: var(--r-ink); }
.rp-bars .tr { position: relative; height: 14px; }
.rp-bars .tr i { position: absolute; inset-inline-start: 0; display: block; }
.rp-bars .tr .cv { top: 3px; height: 9px; background: var(--r-ink); }
.rp-bars .tr .pv { top: 0; height: 14px; border: 1px solid var(--r-grey); background: transparent; }
.rp-bars .tr.stk { display: flex; flex-direction: row; height: 11px; gap: 1px; }
.rp-bars .tr.stk i { position: static; height: 100%; }
.rp-bars .v { text-align: end; font-weight: 700; }
.rp-bars .d { text-align: end; }
.s-conf { background: #C24242; } .s-res { background: #D99A00; } .s-av { background: #2E8F66; }
.rp-leg { display: flex; gap: 16px; font-size: 10.5px; color: var(--r-ink-3); margin-top: 8px; }
.rp-leg i { display: inline-block; width: 12px; height: 9px; margin-inline-end: 6px; vertical-align: -1px; }
.rp-leg i.cv { background: var(--r-ink); }
.rp-leg i.pv { border: 1px solid var(--r-grey); }
.rp-plan .plan-svg { width: 100%; height: auto; display: block; }
.rp-plan .plan-svg .hall { fill: #fff; stroke: var(--r-rule); stroke-width: .15; }
.rp-plan .plan-svg .feature rect { fill: #ECEEF2; }
.rp-plan .plan-svg .feature text { fill: #727a8c; font: 600 1.15px 'Geist', 'IBM Plex Sans Arabic', sans-serif; }
.rp-plan .plan-svg .booth rect.b { stroke: #fff; stroke-width: .28; }
.rp-plan .plan-svg .booth.available rect.b { fill: #2E8F66; }
.rp-plan .plan-svg .booth.reserved rect.b { fill: #D99A00; }
.rp-plan .plan-svg .booth.confirmed rect.b { fill: #C24242; }
.rp-plan .plan-svg .booth text { fill: #fff; font: 700 1.05px 'Geist', sans-serif; }
.rp-plan .plan-svg .booth .talk { fill: #fff; stroke: #727a8c; stroke-width: .18; }
.rp-trace { font: 10.5px ui-monospace, Consolas, monospace; color: var(--r-ink-3); direction: ltr; text-align: left; }

/* appendix & sign-off */
.rp-defs { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; font-size: 11.5px; margin: 0; }
.rp-defs dt { font-weight: 700; color: var(--r-ink); }
.rp-defs dd { margin: 0; color: var(--r-ink-2); line-height: 1.6; }
.rp-sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
.rp-sign .sg span { display: block; font-size: 10.5px; color: var(--r-ink-3); }
.rp-sign .sg b { display: block; font-size: 11.5px; color: var(--r-ink); margin-top: 2px; min-height: 30px; }
.rp-sign .sg i { display: block; border-bottom: 1px solid var(--r-ink); height: 34px; }
.rp-sign .sg small { font-size: 9.5px; color: var(--r-ink-3); }

/* polish round 1 */
.rc .rc-foot { margin: auto 0 0; }
/* padding, not margin: block-start margins collapse out of .blk and the paginator never sees them */
.rp-exec h3, .rp-h3 { margin-top: 0; padding-top: 18px; }
.rp-h4 { margin-top: 0; padding-top: 14px; }
.rp-t td.nowrap, .rp-t .nowrap { white-space: nowrap; }
.rp-toc { margin-bottom: 10px; }
