/* ============================================================
   pd-calcs.css — Manual PD Calculator suite (Rating Calcs mode)
   Mounted inside #panel-pd. Uses theme tokens from styles.css.
   ============================================================ */

/* ─── Mode tabs (top-level: From Report / Rating Calcs) ─── */
.pd-mode-tabs-card {
  display: flex; gap: 0; padding: 0; margin-bottom: 18px;
  overflow: hidden;
}
.pd-mode-tab {
  flex: 1;
  padding: 18px 22px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 3px;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  transition: all 0.2s;
  user-select: none;
  position: relative;
}
.pd-mode-tab:first-child { border-top-left-radius: 14px; }
.pd-mode-tab:last-child { border-top-right-radius: 14px; }
.pd-mode-tab + .pd-mode-tab { border-left: none; }
.pd-mode-tab:hover { background: var(--surface2); color: var(--text); }
.pd-mode-tab.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.10) 0%, rgba(6, 182, 212, 0.10) 100%);
  color: var(--text);
  border-bottom-color: var(--accent);
}
.pd-mode-tab .icon { font-size: 18px; margin-bottom: 2px; }
.pd-mode-tab > span:nth-child(2) {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.0rem;
}
.pd-mode-tab .pd-mode-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ─── Sticky case header (DOB, DOI, group, age, AWE + headline numbers) ─── */
.pdc-case-bar {
  position: sticky; top: 0; z-index: 30;
  padding: 0;
  margin-bottom: 18px;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.pdc-case-row {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.pdc-case-name {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-right: 6px;
}
.pdc-divider { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }
.pdc-lbl {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-right: 4px;
  font-weight: 600;
}
.pdc-input {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 5px 10px;
  border-radius: 6px;
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
}
.pdc-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15); }
.pdc-input.short { width: 60px; }
.pdc-input.med { width: 110px; }

.pdc-case-row-occ { gap: 10px; }
.pdc-occ-input { flex: 1; min-width: 180px; max-width: 340px; }
.pdc-headline { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.pdc-hd-cell { display: flex; flex-direction: column; }
.pdc-hd-cell .val {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  line-height: 1;
}
.pdc-hd-cell .val.gradient {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pdc-hd-cell .sub {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  font-weight: 600;
}

/* ─── Sub-tabs (Rating String / Money / PV / CVC / Report) ─── */
.pdc-tabs { display: flex; gap: 0; padding: 0 12px; }
.pdc-tab {
  padding: 11px 18px;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  user-select: none;
  letter-spacing: 0.02em;
}
.pdc-tab:hover { color: var(--text); background: rgba(139, 92, 246, 0.06); }
.pdc-tab.active {
  color: var(--accent-bright);
  border-bottom-color: var(--accent);
  background: rgba(6, 182, 212, 0.04);
}
.pdc-tab .icon { margin-right: 6px; }
.pdc-tab .badge {
  display: inline-block; margin-left: 6px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-bright);
  font-size: 10px; padding: 2px 7px; border-radius: 10px;
  font-weight: 600;
}

.pdc-tab-panel { display: none; }
.pdc-tab-panel.active { display: block; }

.pdc-section-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.pdc-section-toolbar h2 {
  font-family: 'Playfair Display', serif;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}
.pdc-toolbar-actions { display: flex; gap: 10px; }

/* ─── Impairment table ─── */
.pdc-imp-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

/* Each row is a flex column: [input grid] + [rating string bar] */
.pdc-imp-row {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
}
.pdc-imp-row:last-of-type { border-bottom: none; }
.pdc-imp-row.head {
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* The actual 9-column input grid lives inside pdc-inp-row */
.pdc-inp-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 140px 65px 65px 55px 65px 110px 85px 32px;
  align-items: stretch;
}
.pdc-inp-row > div {
  padding: 10px 12px;
  border-right: 1px solid var(--border);
  display: flex; align-items: center;
  min-width: 0;
}
.pdc-inp-row > div:last-child { border-right: none; }

.pdc-imp-row.data { cursor: pointer; transition: background 0.15s; }
.pdc-imp-row.data:hover .pdc-inp-row { background: rgba(139, 92, 246, 0.06); }
.pdc-imp-row.data.selected {
  border-left: 3px solid var(--accent);
}
.pdc-imp-row.data.selected .pdc-inp-row { background: rgba(6, 182, 212, 0.08); }

/* ─── Rating string bar (full-width, below input row) ─── */
.pdc-rs-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 7px;
  border-top: 1px solid var(--border);
  background: rgba(6, 182, 212, 0.03);
  min-height: 32px;
}
.pdc-imp-row.data.selected .pdc-rs-bar { background: rgba(6, 182, 212, 0.07); }
.pdc-rs-str {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 11.5px;
  color: var(--accent-bright);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdc-rs-empty {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  flex: 1;
}
.pdc-rs-copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
  border-radius: 4px;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
  line-height: 1;
}
.pdc-rs-copy-btn:hover { color: var(--accent-bright); background: rgba(6, 182, 212, 0.12); }

.pdc-cell-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 0;
  outline: none;
  min-width: 0;
}
.pdc-cell-input:focus { color: var(--accent-bright); }
.pdc-cell-readonly {
  color: var(--text-muted);
  font-size: 12.5px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
}
.pdc-del {
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.15s;
}
.pdc-del:hover { color: #f87171; }

.pdc-add-btn {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 2px dashed var(--border);
  color: var(--text-muted);
  margin-top: 10px;
  cursor: pointer;
  border-radius: 10px;
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.pdc-add-btn:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: rgba(6, 182, 212, 0.04);
}

/* ─── Slide-out detail panel ─── */
.pdc-panel-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 10, 46, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
  z-index: 90;
}
.pdc-panel-overlay.open { opacity: 1; pointer-events: auto; }
.pdc-detail-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 480px; max-width: 92vw;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 100;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.pdc-detail-panel.open { transform: translateX(0); }
.pdc-panel-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  z-index: 10;
}
.pdc-panel-header h3 {
  font-family: 'Playfair Display', serif;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.pdc-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 26px;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
  transition: color 0.15s;
}
.pdc-close:hover { color: #f87171; }
.pdc-panel-body { padding: 18px 24px; flex: 1; }

.pdc-field-group { margin-bottom: 22px; }
.pdc-grp-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 700;
}
.pdc-field {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
}
.pdc-field label { color: var(--text); font-size: 13px; font-weight: 500; }
.pdc-field-input {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 7px 11px;
  border-radius: 6px;
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
}
.pdc-field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}
.pdc-with-suffix { display: flex; align-items: center; gap: 8px; }
.pdc-suffix { color: var(--text-muted); font-size: 12px; }
.pdc-hint {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 4px;
  grid-column: 2;
  line-height: 1.4;
}

.pdc-toggle-group { display: flex; gap: 0; }
.pdc-toggle-group label {
  flex: 1;
  padding: 7px 10px;
  text-align: center;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
}
.pdc-toggle-group label:first-child { border-radius: 6px 0 0 6px; }
.pdc-toggle-group label:last-child { border-radius: 0 6px 6px 0; }
.pdc-toggle-group label:not(:first-child) { border-left: none; }
.pdc-toggle-group input { display: none; }
.pdc-toggle-group input:checked + label {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}

.pdc-advanced { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 16px; }
.pdc-advanced details { margin-bottom: 8px; }
.pdc-advanced summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--accent-bright);
  padding: 8px 0;
  user-select: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pdc-advanced summary:hover { color: var(--accent); }
.pdc-advanced .adv-body {
  padding: 10px 0 4px 16px;
  border-left: 2px solid var(--border);
  margin-left: 6px;
  margin-top: 6px;
}

.pdc-rs-block {
  margin-top: 18px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #0d1025 0%, #151a30 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.pdc-rs-block::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.10) 0%, transparent 60%);
  pointer-events: none;
}
.pdc-rs-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  font-weight: 700;
  position: relative;
}
.pdc-rs-value {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 13.5px;
  color: var(--accent-bright);
  word-break: break-all;
  line-height: 1.6;
  position: relative;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}
.pdc-rs-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  position: relative;
}
.pdc-rs-cite {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 10px;
  font-style: italic;
  position: relative;
}

.pdc-step-list {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
}
.pdc-step-list .step { padding: 3px 0; color: var(--text); }
.pdc-step-list .step .step-lbl { color: var(--text-muted); }

/* ─── Assumptions / Rated Age collapsible details ─── */
.pdc-assumptions-details { border-top: 1px solid var(--border); padding-top: 10px; }
.pdc-assumptions-details > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pdc-assumptions-details > summary::before { content: '▶'; font-size: 9px; transition: transform 0.15s; }
.pdc-assumptions-details[open] > summary::before { transform: rotate(90deg); }
.pdc-assumptions-details > summary:hover { color: var(--accent); }

/* ─── Money Chart card ─── */
.pdc-money-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.pdc-money-hero {
  text-align: center;
  padding: 14px 0 18px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 18px;
}
.pdc-money-total-label {
  font-size: 0.78rem;
  letter-spacing: 0.10em;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}
.pdc-money-total-val {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 6px;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pdc-money-total-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }
.pdc-money-math {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--surface2);
  border-radius: 8px;
}
.pdc-money-math-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pdc-money-math-val {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.92rem;
  color: var(--accent-bright);
}
.pdc-money-grid { margin-top: 12px; display: grid; gap: 6px; }
.pdc-money-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
}
.pdc-money-row:nth-child(odd) { background: rgba(255, 255, 255, 0.02); }
.pdc-money-row span:first-child { color: var(--text-muted); font-size: 0.85rem; }
.pdc-money-row .pdc-money-val { color: var(--text); font-size: 0.9rem; font-weight: 500; }
.pdc-money-row .pdc-money-mono { font-family: 'JetBrains Mono', 'SF Mono', monospace; font-size: 0.82rem; }
.pdc-money-row .pdc-money-strong { font-weight: 700; color: #4ade80; }
.pdc-money-row .pdc-money-fee { color: #f87171; }
.pdc-money-section {
  margin-top: 18px;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 8px;
}
.pdc-money-section-title { font-weight: 700; color: var(--text); font-size: 0.95rem; margin-bottom: 8px; }
.pdc-money-section-sub { font-weight: 400; font-size: 0.78rem; color: var(--text-muted); }
.pdc-money-aww-note { font-size: 0.72rem; color: var(--text-muted); margin-top: 6px; font-style: italic; }
.pdc-money-disclaimer { font-size: 0.7rem; color: var(--text-muted); margin-top: 14px; font-style: italic; }

/* ─── Empty/placeholder ─── */
.pdc-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.pdc-placeholder {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.pdc-placeholder .ph-icon { font-size: 48px; opacity: 0.4; margin-bottom: 16px; }

/* ─── Toast ─── */
.pdc-toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--accent);
  color: var(--accent-bright);
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.2);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  z-index: 200;
  font-weight: 500;
}
.pdc-toast.show { opacity: 1; }

body.pdc-panel-open { overflow: hidden; }

/* ─── #panel-pd light-theme reconciliation ────────────────
   panel-pd applies light/lavender card styling. Make pd-calcs
   readable inside that context. */
#panel-pd .pd-mode-tab { color: #475569; background: rgba(245, 243, 250, 0.96); border-color: rgba(139, 92, 246, 0.55); }
#panel-pd .pd-mode-tab:hover { background: rgba(232, 226, 250, 0.95); color: #1e1b4b; }
#panel-pd .pd-mode-tab.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.20) 0%, rgba(6, 182, 212, 0.20) 100%);
  color: #1e1b4b;
  border-bottom-color: #6366f1;
}
#panel-pd .pd-mode-tab > span:nth-child(2) { color: #1e1b4b; font-weight: 700; }
#panel-pd .pd-mode-tab .pd-mode-sub { color: #64748b; }
#panel-pd .pd-mode-tab.active > span:nth-child(2) { color: #4c1d95; }

#panel-pd .pdc-case-bar { background: rgba(245, 243, 250, 0.96); }
#panel-pd .pdc-case-name { color: #1e1b4b; }
#panel-pd .pdc-divider { background: rgba(139, 92, 246, 0.30); }
#panel-pd .pdc-lbl { color: #4338ca; font-weight: 700; }
#panel-pd .pdc-input { background: rgba(255, 255, 255, 0.65) !important; color: #1e1b4b !important; border-color: rgba(139, 92, 246, 0.35) !important; }
#panel-pd .pdc-input:focus { background: #fff !important; border-color: #6366f1 !important; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18) !important; }
#panel-pd .pdc-hd-cell .val { color: #1e1b4b; }
#panel-pd .pdc-hd-cell .sub { color: #64748b; }

#panel-pd .pdc-tab { color: #64748b; }
#panel-pd .pdc-tab:hover { color: #1e1b4b; background: rgba(139, 92, 246, 0.08); }
#panel-pd .pdc-tab.active { color: #4c1d95; border-bottom-color: #6366f1; background: rgba(99, 102, 241, 0.06); }
#panel-pd .pdc-tab .badge { background: rgba(99, 102, 241, 0.15); color: #4338ca; }

#panel-pd .pdc-section-toolbar h2 { color: #1e1b4b !important; }
#panel-pd .pdc-imp-table { background: rgba(255, 255, 255, 0.65); border-color: rgba(139, 92, 246, 0.30); }
#panel-pd .pdc-imp-row { border-bottom-color: rgba(139, 92, 246, 0.20); }
#panel-pd .pdc-imp-row > div { border-right-color: rgba(139, 92, 246, 0.20); }
#panel-pd .pdc-imp-row.head { background: rgba(139, 92, 246, 0.10); color: #4338ca; }
#panel-pd .pdc-imp-row.data:hover { background: rgba(139, 92, 246, 0.06); }
#panel-pd .pdc-imp-row.data.selected { background: rgba(99, 102, 241, 0.10); border-left-color: #6366f1; }
#panel-pd .pdc-cell-input { color: #1e1b4b; }
#panel-pd .pdc-cell-input:focus { color: #4c1d95; }
#panel-pd .pdc-cell-readonly { color: #64748b; }
#panel-pd .pdc-rs-cell { color: #4338ca; font-weight: 600; }
#panel-pd .pdc-del { color: #94a3b8; }
#panel-pd .pdc-del:hover { color: #dc2626; }
#panel-pd .pdc-add-btn { color: #64748b; border-color: rgba(139, 92, 246, 0.35); }
#panel-pd .pdc-add-btn:hover { color: #4338ca; border-color: #6366f1; background: rgba(99, 102, 241, 0.06); }

#panel-pd .pdc-empty, #panel-pd .pdc-placeholder { color: #64748b; }
#panel-pd .pdc-placeholder p { color: #475569 !important; }

/* Detail panel keeps dark gradient — looks great as a focused workspace */

/* ─── Print stylesheet ──────────────────────────────────────
   Activated by body.pdc-printing (set by window.pdcReportPrint).
   Strips chrome and prints only the Report tab content. */
@media print {
  body.pdc-printing { background: #fff !important; color: #000 !important; }
  body.pdc-printing * { box-shadow: none !important; text-shadow: none !important; }

  /* Hide everything by default */
  body.pdc-printing > *:not(#panel-pd) { display: none !important; }
  body.pdc-printing #panel-pd > *:not(.pdc-tab-panel) { display: none !important; }
  body.pdc-printing .pdc-tab-panel { display: none !important; }
  body.pdc-printing .pdc-tab-panel[data-pdc-tab="report"] { display: block !important; }

  /* Hide UI chrome inside the report tab */
  body.pdc-printing .pdc-section-toolbar .pdc-toolbar-actions,
  body.pdc-printing .pdc-detail-panel,
  body.pdc-printing .pdc-panel-overlay,
  body.pdc-printing .pdc-empty,
  body.pdc-printing nav, body.pdc-printing header, body.pdc-printing footer { display: none !important; }

  /* Strip card chrome, expand to full page */
  body.pdc-printing .card,
  body.pdc-printing .pdc-money-card,
  body.pdc-printing .pdc-money-grid,
  body.pdc-printing .pdc-money-hero {
    background: #fff !important;
    color: #000 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 0 12pt 0 !important;
    box-shadow: none !important;
  }

  /* Title — keep prominent */
  body.pdc-printing .pdc-section-toolbar h2 {
    color: #000 !important;
    font-size: 16pt !important;
    margin: 0 0 12pt 0 !important;
    border-bottom: 2pt solid #000;
    padding-bottom: 4pt;
  }
  body.pdc-printing .pdc-section-toolbar h2 span { display: none !important; }

  /* Claimant info block — keep visible & clean */
  body.pdc-printing .pdc-tab-panel[data-pdc-tab="report"] > .card > div:nth-child(2) {
    background: #fff !important;
    border: 1pt solid #000 !important;
    padding: 8pt !important;
    margin-bottom: 12pt !important;
  }
  body.pdc-printing .pdc-grp-title { color: #000 !important; }
  body.pdc-printing .pdc-field-input {
    border: none !important;
    border-bottom: 1pt solid #000 !important;
    background: transparent !important;
    color: #000 !important;
    border-radius: 0 !important;
    padding: 1pt 2pt !important;
  }

  /* Hero summary */
  body.pdc-printing .pdc-money-hero {
    text-align: left !important;
    margin-bottom: 14pt !important;
  }
  body.pdc-printing .pdc-money-total-label {
    color: #000 !important; font-size: 11pt !important;
    text-transform: uppercase; letter-spacing: 1pt;
  }
  body.pdc-printing .pdc-money-total-val {
    color: #000 !important; font-size: 20pt !important; font-weight: 700;
    background: none !important; -webkit-text-fill-color: #000 !important;
  }
  body.pdc-printing .pdc-money-total-sub { color: #333 !important; font-size: 10pt !important; }

  /* Section titles */
  body.pdc-printing .pdc-money-section-title {
    color: #000 !important;
    font-size: 11pt !important;
    text-transform: uppercase; letter-spacing: 0.5pt;
    border-bottom: 0.5pt solid #000;
    padding-bottom: 2pt; margin-bottom: 6pt;
    page-break-after: avoid;
  }

  /* Money rows — table-like, no page breaks mid-row */
  body.pdc-printing .pdc-money-row {
    display: flex !important;
    justify-content: space-between;
    padding: 3pt 0 !important;
    border-bottom: 0.25pt solid #999 !important;
    color: #000 !important;
    font-size: 10pt !important;
    page-break-inside: avoid;
  }
  body.pdc-printing .pdc-money-row span,
  body.pdc-printing .pdc-money-mono,
  body.pdc-printing .pdc-money-val,
  body.pdc-printing .pdc-money-strong { color: #000 !important; }
  body.pdc-printing .pdc-money-mono { font-family: 'Courier New', monospace !important; }
  body.pdc-printing .pdc-money-strong { font-weight: 700 !important; }

  /* Disclaimer footer */
  body.pdc-printing .pdc-money-disclaimer {
    color: #555 !important;
    font-size: 8pt !important;
    border-top: 0.5pt solid #999;
    padding-top: 4pt; margin-top: 12pt;
    font-style: italic;
  }

  /* Page setup */
  @page { margin: 0.6in 0.5in; }
  body.pdc-printing { font-family: Georgia, 'Times New Roman', serif !important; font-size: 10pt; }

  /* Hide the "Tips" footer */
  body.pdc-printing .pdc-tab-panel[data-pdc-tab="report"] > .card > div:last-child { display: none !important; }
}

/* Mobile */
@media (max-width: 900px) {
  .pdc-imp-row { grid-template-columns: 1fr; }
  .pdc-imp-row > div { border-right: none; padding: 6px 12px; }
  .pdc-imp-row.head { display: none; }
  .pdc-imp-row.data { padding: 8px; border-radius: 8px; margin: 6px; border: 1px solid var(--border); }
  .pdc-headline { width: 100%; }
  .pdc-detail-panel { width: 100vw; }
  .pd-mode-tabs-card { flex-direction: column; }
  .pd-mode-tab + .pd-mode-tab { border-left: 1px solid var(--border); border-top: none; }
}
