/* =============================================================
   P&L Presentation (Accounting > Reports > Financial Statements) — js/pl-deck.js
   Kanvas slide tetap 1280×720 lalu di-scale ke layar; tema mengikuti XenosHMS (navy→blue, sky).
   ============================================================= */
#pl-deck-overlay { position: fixed; inset: 0; z-index: 90; background: #0b1220; display: none; flex-direction: column; font-family: 'Inter', system-ui, sans-serif; }
#pl-deck-overlay.open { display: flex; }
.pld-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #0f172a; color: #e2e8f0; border-bottom: 1px solid #1e293b; flex-wrap: wrap; }
.pld-bar .pld-title { font-weight: 700; font-size: 14px; margin-right: auto; display: flex; align-items: center; gap: 8px; }
.pld-bar .pld-title img { width: 22px; height: 22px; }
.pld-bar input[type=month] { background: #1e293b; border: 1px solid #334155; color: #e2e8f0; border-radius: 8px; padding: 5px 8px; font-size: 12px; color-scheme: dark; }
.pld-btn { background: #1e293b; border: 1px solid #334155; color: #e2e8f0; border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pld-btn:hover { background: #334155; }
.pld-btn.primary { background: #2563eb; border-color: #2563eb; }
.pld-btn.primary:hover { background: #1d4ed8; }
.pld-page { font-size: 12px; color: #94a3b8; min-width: 54px; text-align: center; }
.pld-stage { flex: 1; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pld-track { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; transform-origin: center center; }
.pld-status { color: #94a3b8; font-size: 14px; }
.pld-thumbs { display: flex; gap: 6px; padding: 8px 12px; background: #0f172a; border-top: 1px solid #1e293b; overflow-x: auto; }
.pld-thumbs button { flex: 0 0 auto; font-size: 11px; color: #94a3b8; background: #1e293b; border: 1px solid #334155; border-radius: 6px; padding: 4px 8px; cursor: pointer; white-space: nowrap; }
.pld-thumbs button.active { background: #2563eb; color: #fff; border-color: #2563eb; }

/* ── Slide ── */
.pld-slide { position: absolute; inset: 0; width: 1280px; height: 720px; background: #ffffff; color: #0f172a; display: none; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.45); border-radius: 6px; }
.pld-slide.active { display: flex; }
.pld-head { padding: 34px 56px 10px; position: relative; }
.pld-head::before { content: ''; position: absolute; left: 0; top: 34px; width: 8px; height: 58px; background: linear-gradient(180deg, #38bdf8, #2563eb); border-radius: 0 4px 4px 0; }
.pld-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #2563eb; margin: 0 0 4px; }
.pld-h2 { font-size: 32px; font-weight: 800; color: #0f1f4b; margin: 0; letter-spacing: -.01em; }
.pld-lead { font-size: 13px; color: #64748b; margin: 6px 0 0; }
.pld-body { flex: 1; display: flex; gap: 28px; padding: 8px 56px 0; min-height: 0; }
.pld-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pld-side { flex: 0 0 330px; background: linear-gradient(160deg, #eff6ff, #f8fafc); border: 1px solid #dbeafe; border-radius: 16px; padding: 18px 20px; overflow: hidden; }
.pld-side h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #1e3a8a; display: flex; align-items: center; gap: 6px; }
.pld-side ul { margin: 0; padding-left: 18px; }
.pld-side li { font-size: 13px; line-height: 1.5; color: #334155; margin-bottom: 8px; }
.pld-foot { display: flex; justify-content: space-between; padding: 10px 56px 16px; font-size: 11px; color: #94a3b8; border-top: 1px solid #f1f5f9; margin-top: 8px; }
.pld-pos { color: #059669; font-weight: 700; }
.pld-neg { color: #dc2626; font-weight: 700; }

/* chart */
.pld-chart { width: 100%; }
.pld-chart text { font-family: 'Inter', system-ui, sans-serif; }
.pld-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: #475569; }
.pld-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* table */
.pld-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pld-table th { text-align: right; font-weight: 700; color: #475569; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 10px; border-bottom: 2px solid #1e3a8a; white-space: nowrap; }
.pld-table th:first-child, .pld-table td:first-child { text-align: left; }
.pld-table td { text-align: right; padding: 5px 10px; border-bottom: 1px solid #f1f5f9; white-space: nowrap; color: #1e293b; }
.pld-table th.main, .pld-table td.main { background: #eff6ff; color: #0f1f4b; font-weight: 700; }
/* garis bawah header tetap terlihat di kolom yang di-highlight */
.pld-table thead th { border-bottom: 2px solid #1e3a8a; }
.pld-table tbody tr:first-child td { border-top: 0; }
.pld-table tr.total td { font-weight: 800; border-top: 1.5px solid #cbd5e1; background: #f8fafc; }
.pld-table tr.total td.main { background: #dbeafe; }
.pld-table tr.ratio td { color: #64748b; font-size: 11.5px; font-style: italic; }
.pld-table .var { font-weight: 700; }
.pld-table tr td.pld-pos { color: #059669; }
.pld-table tr td.pld-neg { color: #dc2626; }

/* donuts */
.pld-donuts { display: flex; gap: 22px; justify-content: space-around; }
.pld-donut { flex: 1; text-align: center; }
.pld-donut p { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: #1e3a8a; }
.pld-donut ul { list-style: none; padding: 0; margin: 6px 0 0; text-align: left; font-size: 11.5px; }
.pld-donut li { display: flex; gap: 6px; align-items: center; padding: 2px 0; color: #334155; }
.pld-donut li.pld-rd { cursor: pointer; border-radius: 6px; padding: 2px 6px; margin: 0 -6px; }
.pld-donut li.pld-rd:hover { background: #eff6ff; }
.pld-donut li.pld-rd span { text-decoration: underline dotted #60a5fa; text-underline-offset: 3px; }
.pld-donut li i { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 9px; }
.pld-donut li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pld-donut li em { color: #64748b; font-style: normal; width: 44px; text-align: right; }

/* cover */
.pld-cover { background: radial-gradient(1200px 600px at 85% 20%, #1d4ed8 0%, rgba(29,78,216,0) 60%), linear-gradient(135deg, #050b1f 0%, #0f1f4b 45%, #1e3a8a 100%); color: #fff; }
.pld-cover .pld-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(56,189,248,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,.07) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, #000 30%, transparent 85%); }
.pld-cover .pld-photo { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
.pld-cover .pld-photo img { width: 100%; height: 100%; object-fit: cover; }
.pld-cover .pld-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,31,75,.85), rgba(15,31,75,.05) 55%); }
.pld-cover .pld-cover-in { position: relative; z-index: 2; padding: 64px 72px; display: flex; flex-direction: column; height: 100%; box-sizing: border-box; max-width: 760px; }
.pld-brand { display: flex; align-items: center; gap: 12px; }
.pld-brand .pld-logo { width: 54px; height: 54px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(56,189,248,.35); }
.pld-brand .pld-logo img { width: 40px; height: 40px; object-fit: contain; }
.pld-brand b { font-size: 22px; letter-spacing: -.01em; }
.pld-brand small { display: block; font-size: 11px; color: #93c5fd; letter-spacing: .14em; text-transform: uppercase; }
.pld-cover .pld-kicker { margin-top: auto; font-size: 14px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #38bdf8; }
.pld-cover h1 { font-size: 76px; line-height: 1.02; margin: 14px 0 18px; font-weight: 800; letter-spacing: -.02em; }
.pld-cover h1 span { background: linear-gradient(90deg, #7dd3fc, #38bdf8, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pld-cover .pld-hotel { font-size: 26px; font-weight: 700; margin: 0; }
.pld-cover .pld-city { font-size: 15px; color: #bfdbfe; margin: 4px 0 0; }
.pld-cover .pld-meta { margin-top: 34px; font-size: 12px; color: #93c5fd; display: flex; align-items: center; gap: 8px; }
.pld-cover .pld-meta::before { content: ''; width: 34px; height: 2px; background: #38bdf8; }
.pld-end { background: linear-gradient(135deg, #050b1f, #0f1f4b 50%, #1e3a8a); color: #fff; align-items: center; justify-content: center; text-align: center; }
.pld-end h2 { font-size: 72px; margin: 0; font-weight: 800; background: linear-gradient(90deg, #7dd3fc, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pld-end p { color: #bfdbfe; font-size: 16px; margin-top: 10px; }
.pld-note { font-size: 11px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 6px 10px; margin: 0; }

/* angka yang bisa diklik → grafik tren */
.pld-table a.pld-tr { color: inherit; text-decoration: underline dotted #60a5fa; text-underline-offset: 3px; cursor: pointer; }
.pld-table a.pld-tr:hover { color: #2563eb; }
.pld-trend-modal { position: absolute; inset: 0; z-index: 7; background: rgba(2,6,23,.65); display: flex; align-items: center; justify-content: center; padding: 24px; }
.pld-trend-box { background: #fff; border-radius: 18px; width: min(1100px, 100%); max-height: 100%; overflow: auto; padding: 20px 24px; color: #0f172a; }
.pld-trend-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pld-trend-head h3 { margin: 0 auto 0 0; font-size: 18px; color: #0f1f4b; }
.pld-trend-head .pld-btn { background: #f1f5f9; color: #334155; border-color: #e2e8f0; }
.pld-trend-head .pld-btn.primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.pld-trend-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.pld-trend-stats div { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 12px; }
.pld-trend-stats span { display: block; font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: .06em; }
.pld-trend-stats b { font-size: 16px; color: #0f1f4b; }
.pld-trend-stats small { font-weight: 500; color: #64748b; font-size: 11px; }

/* working capital slides */
.pld-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pld-kpi { background: linear-gradient(160deg, #f8fafc, #eff6ff); border: 1px solid #dbeafe; border-radius: 14px; padding: 10px 14px; }
.pld-kpi span { display: block; font-size: 10.5px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .06em; }
.pld-kpi b { display: block; font-size: 24px; font-weight: 800; color: #0f1f4b; margin-top: 2px; }
.pld-kpi em { display: block; font-style: normal; font-size: 11px; color: #64748b; }
.pld-kpi.good { border-color: #a7f3d0; background: linear-gradient(160deg, #f8fafc, #ecfdf5); }
.pld-kpi.bad { border-color: #fecaca; background: linear-gradient(160deg, #f8fafc, #fef2f2); }
.pld-kpi.bad b { color: #b91c1c; }
.pld-wc-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; margin-top: 12px; align-items: start; }
.pld-wc-grid .pld-table { font-size: 11.5px; }
.pld-wc-grid .pld-table td, .pld-wc-grid .pld-table th { padding: 4px 8px; }
.pld-ratio-table { margin-top: 6px; }

/* tombol & modal Highlights */
.pld-ins-btn { position: absolute; top: 30px; right: 48px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; font: 700 13px Inter, sans-serif;
    color: #1d4ed8; background: linear-gradient(135deg, #eff6ff, #e0f2fe); border: 1px solid #bfdbfe; border-radius: 999px; padding: 8px 16px; cursor: pointer;
    box-shadow: 0 4px 14px rgba(37,99,235,.15); transition: transform .15s, box-shadow .15s; }
.pld-ins-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37,99,235,.25); }
.pld-ins-btn i { color: #f59e0b; font-size: 15px; }
.pld-ins-modal { position: absolute; inset: 0; z-index: 6; background: rgba(2,6,23,.55); display: flex; align-items: center; justify-content: center; padding: 24px; animation: pldFade .2s ease; }
.pld-ins-box { background: linear-gradient(160deg, #ffffff, #f8fafc); color: #0f172a; border-radius: 20px; width: min(620px, 100%); max-height: 100%; overflow: auto; padding: 22px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.4); animation: pldPop .25s cubic-bezier(.2,.8,.2,1); }
.pld-ins-box header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pld-ins-box header .ic { width: 36px; height: 36px; border-radius: 12px; background: #fef3c7; color: #f59e0b; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.pld-ins-box header p { margin: 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #2563eb; font-weight: 700; }
.pld-ins-box header h3 { margin: 0; font-size: 18px; color: #0f1f4b; }
.pld-ins-box header button { margin-left: auto; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px; padding: 5px 8px; cursor: pointer; color: #475569; }
.pld-ins-box ul { margin: 0; padding-left: 20px; }
.pld-ins-box li { font-size: 14.5px; line-height: 1.6; color: #334155; margin-bottom: 10px; }

/* transisi galeri antar slide */
.pld-slide.pld-out-left, .pld-slide.pld-out-right { display: flex; pointer-events: none; }
.pld-slide.pld-in-right  { animation: pldInRight 1s cubic-bezier(.25,.8,.25,1) both; }
.pld-slide.pld-in-left   { animation: pldInLeft  1s cubic-bezier(.25,.8,.25,1) both; }
.pld-slide.pld-out-left  { animation: pldOutLeft 1s cubic-bezier(.25,.8,.25,1) both; }
.pld-slide.pld-out-right { animation: pldOutRight 1s cubic-bezier(.25,.8,.25,1) both; }
@keyframes pldInRight  { from { transform: translateX(42%) scale(.86) rotateY(-14deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pldInLeft   { from { transform: translateX(-42%) scale(.86) rotateY(14deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pldOutLeft  { from { transform: none; opacity: 1; } to { transform: translateX(-42%) scale(.86) rotateY(14deg); opacity: 0; } }
@keyframes pldOutRight { from { transform: none; opacity: 1; } to { transform: translateX(42%) scale(.86) rotateY(-14deg); opacity: 0; } }
@keyframes pldFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pldPop  { from { transform: translateY(12px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.pld-track { perspective: 1800px; }

/* drill-down (view only) */
.pld-drill { position: absolute; inset: 0; z-index: 5; background: rgba(2,6,23,.65); display: flex; align-items: center; justify-content: center; padding: 24px; }
.pld-drill-box { background: #fff; color: #0f172a; border-radius: 18px; width: min(1180px, 100%); height: min(760px, 100%); display: flex; flex-direction: column; overflow: hidden; }
.pld-drill-top { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid #f1f5f9; flex-wrap: wrap; }
.pld-drill-top .pld-btn { background: #f1f5f9; color: #334155; border-color: #e2e8f0; }
.pld-drill-crumbs { margin-right: auto; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: #0f1f4b; }
.pld-drill-crumbs a { color: #2563eb; cursor: pointer; }
.pld-drill-crumbs a:hover { text-decoration: underline; }
.pld-drill-crumbs i { color: #94a3b8; font-size: 12px; }
.pld-viewonly { font-size: 11px; font-weight: 700; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 999px; padding: 3px 10px; display: inline-flex; gap: 4px; align-items: center; }
.pld-drill-body { flex: 1; overflow: auto; padding: 14px 20px 20px; }
.pld-drill-note { font-size: 12px; color: #64748b; margin: 0 0 10px; }
.pld-drill-table td.wrap { white-space: normal; max-width: 380px; }
.pld-drill-table th.l, .pld-drill-table td.l { text-align: left; }
.pld-drill-table th.n, .pld-drill-table td.n { text-align: right; }
.pld-drill-table tfoot td { text-align: right; font-weight: 700; padding: 6px 10px; border-top: 1.5px solid #cbd5e1; }
.pld-drill-table tfoot td:first-child { text-align: left; }
.pld-drill-table tbody tr.pld-click { cursor: pointer; }
.pld-drill-table tbody tr.pld-click:hover td { background: #eff6ff; }
.pld-chip { font-size: 10px; font-weight: 700; background: #fee2e2; color: #b91c1c; border-radius: 6px; padding: 1px 6px; }
.pld-drill-head { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.pld-drill-head > div { flex: 1; min-width: 140px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 12px; }
.pld-drill-head span { display: block; font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: .06em; }
.pld-drill-head b { font-size: 14px; color: #0f1f4b; }
.pld-drill-src { margin-top: 16px; }
.pld-drill-src h4 { margin: 0 0 6px; font-size: 13px; color: #1e3a8a; text-transform: uppercase; letter-spacing: .08em; }
.pld-drill-body h5 { margin: 12px 0 6px; font-size: 13px; color: #0f172a; }

/* slide bebas */
.pld-custom .pld-edit { position: absolute; top: 18px; right: 22px; display: flex; gap: 6px; z-index: 3; }
.pld-custom .pld-edit button { font: 600 12px Inter, sans-serif; background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; border-radius: 8px; padding: 5px 10px; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.pld-custom .pld-edit button:hover { background: #dbeafe; }
.pld-story { margin: 6px 0 0; padding-left: 22px; }
.pld-story li { font-size: 20px; line-height: 1.5; color: #1e293b; margin-bottom: 12px; }
.pld-split { display: flex; gap: 30px; height: 100%; align-items: flex-start; }
.pld-split > div:first-child { flex: 1; min-width: 0; }
.pld-media { flex: 0 0 52%; height: 480px; border-radius: 16px; overflow: hidden; background: #f1f5f9; }
.pld-media img { width: 100%; height: 100%; object-fit: cover; }
.pld-media.full { flex: none; width: 100%; height: 500px; }
.pld-textonly { max-width: 980px; }
.pld-video { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 15px; font-weight: 700; color: #fff; background: #2563eb; padding: 9px 16px; border-radius: 10px; text-decoration: none; }
.pld-thumbs button.custom { border-color: #a78bfa; color: #ddd6fe; }
.pld-thumbs button.custom.active { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.pld-editor { position: absolute; inset: 0; z-index: 6; background: rgba(2,6,23,.65); display: flex; align-items: center; justify-content: center; padding: 24px; }
.pld-editor-box { background: #fff; color: #0f172a; border-radius: 18px; width: min(640px, 100%); max-height: 100%; overflow: auto; }
.pld-editor-box header { display: flex; align-items: center; padding: 16px 22px; border-bottom: 1px solid #f1f5f9; }
.pld-editor-box header h3 { margin: 0 auto 0 0; font-size: 16px; }
.pld-editor-box .pld-ed-fields { padding: 16px 22px; display: grid; gap: 12px; }
.pld-editor-box label { font-size: 12px; font-weight: 600; color: #475569; display: block; margin-bottom: 4px; }
.pld-editor-box input[type=text], .pld-editor-box textarea, .pld-editor-box select { width: 100%; box-sizing: border-box; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; font: 13px Inter, sans-serif; color: #0f172a; background: #fff; }
.pld-editor-box textarea { min-height: 120px; resize: vertical; }
.pld-ed-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pld-ed-img { display: flex; gap: 12px; align-items: center; }
#pld-ed-img-preview { width: 140px; height: 84px; border-radius: 10px; background: #f1f5f9; border: 1px dashed #cbd5e1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; font-size: 11px; color: #94a3b8; }
#pld-ed-img-preview img { width: 100%; height: 100%; object-fit: cover; }
#pld-ed-img-preview button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: none; background: #fff; cursor: pointer; }
.pld-editor-box footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid #f1f5f9; }
.pld-editor-box footer button { font: 600 13px Inter, sans-serif; border-radius: 10px; padding: 8px 16px; cursor: pointer; border: 1px solid #e2e8f0; background: #f1f5f9; color: #334155; }
.pld-editor-box footer button.primary { background: #2563eb; color: #fff; border-color: #2563eb; }

/* print: semua slide satu per halaman (A4 landscape) */
@media print {
    @page { size: A4 landscape; margin: 0; }
    html.pld-printing body > *:not(#pl-deck-overlay) { display: none !important; }
    html.pld-printing #pl-deck-overlay { position: static; display: block; background: #fff; }
    html.pld-printing .pld-bar, html.pld-printing .pld-thumbs, html.pld-printing .pld-edit, html.pld-printing .pld-trend-modal, html.pld-printing .pld-ins-modal, html.pld-printing .pld-ins-btn, html.pld-printing .pld-drill, html.pld-printing .pld-editor { display: none !important; }
    html.pld-printing .pld-table a.pld-tr { text-decoration: none; }
    html.pld-printing .pld-stage { overflow: visible; display: block; }
    html.pld-printing .pld-track { position: static; transform: none !important; width: auto; height: auto; }
    html.pld-printing .pld-slide { animation: none !important; display: flex !important; position: relative; zoom: .875; break-after: page; box-shadow: none; border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Cash Flow slide — compact so 4+4 groups + totals fit above the footer */
.pld-cf .pld-kpi { padding: 7px 14px; border-radius: 12px; }
.pld-cf .pld-kpi b { font-size: 21px; margin-top: 0; }
.pld-cf .pld-kpi em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pld-cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 10px; align-items: start; }
.pld-cf-grid .pld-donuts { gap: 16px; min-width: 0; }
.pld-cf-donut { min-width: 0; }
.pld-cf-donut p { font-size: 12px; }
.pld-cf-donut svg { width: 176px; height: 168px; }
.pld-cf-donut ul { font-size: 10.5px; margin-top: 2px; }
.pld-cf-donut li { padding: 1px 0; }
.pld-cf-donut li b { white-space: nowrap; }
.pld-cf-donut li em { width: 38px; }
.pld-cf-table { font-size: 11px; line-height: 1.25; table-layout: fixed; }
.pld-cf-table th { font-size: 10px; padding: 4px 8px; }
.pld-cf-table th:first-child { width: 46%; }
.pld-cf-table td { padding: 2.5px 8px; }
.pld-cf-table tr.ratio td { font-size: 10.5px; }
.pld-cf-table tr.pld-cf-sec td { font-weight: 700; padding-top: 5px; }
.pld-cf-table tr.pld-cf-sec.in td:first-child { color: #047857; }
.pld-cf-table tr.pld-cf-sec.out td:first-child { color: #b91c1c; }
.pld-cf-table td.pld-cf-ind { padding-left: 18px; color: #475569; overflow: hidden; text-overflow: ellipsis; }
.pld-slide a.pld-cf-dr { color: inherit; text-decoration: underline dotted #60a5fa; text-underline-offset: 3px; cursor: pointer; }
.pld-slide a.pld-cf-dr:hover { color: #2563eb; }
.pld-cf-donut li.pld-cf-dr { cursor: pointer; border-radius: 6px; padding: 1px 6px; margin: 0 -6px; }
.pld-cf-donut li.pld-cf-dr:hover { background: #eff6ff; }
.pld-cf-donut li.pld-cf-dr span { text-decoration: underline dotted #60a5fa; text-underline-offset: 3px; }
@media print { .pld-slide a.pld-cf-dr, .pld-cf-donut li.pld-cf-dr span { text-decoration: none; } }
