/*
 * Prima Seguro ARAUCO/SURA — Estilos
 * © 2026 Felipe Nicolás Esparza Torrealba
 * Licencia: PolyForm Internal Use License 1.0.0
 * https://polyformproject.org/licenses/internal-use/1.0.0
 * Ver LICENSE.md para el texto completo.
 */

/* ── FUENTES LOCALES ── */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: block;
  src: url('fonts/dm-sans-normal-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: block;
  src: url('fonts/dm-sans-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url('fonts/dm-sans-italic-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url('fonts/dm-sans-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('fonts/dm-mono-400-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('fonts/dm-mono-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url('fonts/dm-mono-500-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url('fonts/dm-mono-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── VARIABLES ── */
:root {
  --arauco: #006633;
  --arauco-dark: #004d26;
  --arauco-light: #e6f5ee;
  --arauco-mid: #c2e8d4;
  --sura: #003087;
  --euro: #8B5CF6;
  --euro-light: #f3f0ff;
  --euro-mid: #d8b4fe;
  --bg: #f2f1ed;
  --surface: #ffffff;
  --surface2: #f7f6f2;
  --border: #e4e2da;
  --text: #1a1a18;
  --text2: #6b6b66;
  --text3: #a8a8a2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-up: 0 -2px 16px rgba(0,0,0,0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── STICKY PRINT BAR ── */
.sticky-bar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-up);
}
.sticky-bar .sb-title {
  font-size: 13px; font-weight: 600; color: var(--text2);
  display: flex; align-items: center; gap: 8px;
}
.sticky-bar .sb-prima {
  font-size: 15px; font-weight: 600; font-family: 'DM Mono', monospace;
  color: var(--arauco);
}
.btn-print {
  background: var(--arauco);
  color: #fff; font-size: 13px; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  border: none; border-radius: var(--radius-sm);
  padding: 9px 18px; cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  box-shadow: 0 2px 8px rgba(0,102,51,0.30);
  transition: background 0.18s, transform 0.1s, box-shadow 0.18s;
  white-space: nowrap;
}
.btn-print:hover { background: var(--arauco-dark); box-shadow: 0 4px 14px rgba(0,102,51,0.35); }
.btn-print:active { transform: scale(0.97); }
.btn-print svg { width: 15px; height: 15px; flex-shrink:0; }

/* ── PAGE ── */
.page { max-width: 680px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

/* ── HEADER ── */
.header {
  background: linear-gradient(135deg, #006633 0%, #004d26 100%);
  border-radius: var(--radius);
  padding: 1.4rem 1.75rem;
  display: flex; align-items: center; gap: 1.25rem;
  box-shadow: 0 4px 20px rgba(0,102,51,0.25);
  margin-bottom: 1.1rem;
  position: relative; overflow: hidden;
}
.header::after {
  content: '';
  position: absolute; right: -30px; top: -30px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.header::before {
  content: '';
  position: absolute; right: 60px; bottom: -40px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.logo-box {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; letter-spacing: 0.5px; text-align: center;
  line-height: 1.2; position: relative; z-index: 1;
}
.logo-arauco { background: rgba(255,255,255,0.18); border: 1.5px solid rgba(255,255,255,0.3); color: #fff; font-size: 9px; }
.logo-sura   { background: var(--sura); color: #fff; font-size: 14px; margin-left: auto; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.header-text { position: relative; z-index: 1; }
.header-text h1 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.header-text p  { font-size: 11.5px; color: rgba(255,255,255,0.7); line-height: 1.5; }
.header-text .badge {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 6px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  font-size: 10.5px; font-weight: 500;
  padding: 3px 10px; border-radius: 20px;
}

/* ── CONFIG ROW ── */
.config-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem;
  margin-bottom: 1.1rem;
}
.config-card {
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  box-shadow: var(--shadow);
  border: 1.5px solid transparent;
  transition: border-color 0.2s;
}
.config-card.cc-tasa  { background: var(--arauco); }
.config-card.cc-euro  { background: var(--surface); border-color: var(--border); }
.config-card.cc-euro.editing { border-color: var(--euro); }

.cc-label { font-size: 10.5px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 3px; }
.cc-tasa .cc-label { color: rgba(255,255,255,0.65); }
.cc-euro .cc-label { color: var(--text3); }
.cc-val { font-size: 18px; font-weight: 600; font-family: 'DM Mono', monospace; }
.cc-tasa .cc-val { color: #fff; }
.cc-euro .cc-val { color: var(--euro); }
.cc-sub { font-size: 10px; margin-top: 1px; }
.cc-tasa .cc-sub { color: rgba(255,255,255,0.5); }
.cc-euro .cc-sub { color: var(--text3); }

.cc-input {
  display: none;
  font-size: 16px; font-weight: 600; font-family: 'DM Mono', monospace;
  border: none; outline: none; background: transparent;
  width: 90px;
  -moz-appearance: textfield;
}
.cc-input::-webkit-outer-spin-button,
.cc-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cc-tasa  .cc-input { color: #fff; border-bottom: 1.5px solid rgba(255,255,255,0.5); }
.cc-euro  .cc-input { color: var(--euro); border-bottom: 1.5px solid var(--euro-mid); }

.cc-btn {
  flex-shrink: 0;
  border-radius: 8px;
  padding: 5px 10px; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-family: 'DM Sans', sans-serif; font-weight: 500;
  border: none;
  transition: background 0.18s;
  white-space: nowrap;
}
.cc-tasa .cc-btn { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.cc-tasa .cc-btn:hover { background: rgba(255,255,255,0.25); }
.cc-euro .cc-btn { background: var(--euro-light); color: var(--euro); border: 1px solid var(--euro-mid); }
.cc-euro .cc-btn:hover { background: #ede9ff; }
.cc-btn svg { width: 11px; height: 11px; }

/* ── INPUTS ── */
.inputs-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem;
  margin-bottom: 1.1rem;
}
.input-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem 1rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-card:focus-within {
  border-color: var(--arauco);
  box-shadow: 0 0 0 3px rgba(0,102,51,0.09), var(--shadow);
}
.input-card.eur-mode:focus-within {
  border-color: var(--euro);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.10), var(--shadow);
}
.ic-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ic-label {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text3);
  display: flex; align-items: center; gap: 5px;
}
.ic-label svg { width: 13px; height: 13px; }
.currency-toggle {
  display: flex; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden; flex-shrink: 0;
}
.ct-btn {
  padding: 3px 9px; font-size: 10.5px; font-weight: 600;
  font-family: 'DM Mono', monospace;
  cursor: pointer; border: none; background: transparent;
  color: var(--text3); transition: background 0.15s, color 0.15s;
  letter-spacing: 0.3px;
}
.ct-btn.active-usd { background: var(--arauco); color: #fff; }
.ct-btn.active-eur { background: var(--euro); color: #fff; }
.ic-input-wrap { display: flex; align-items: baseline; gap: 5px; }
.ic-prefix { font-size: 14px; color: var(--text3); font-weight: 400; transition: color 0.2s; }
.ic-prefix.eur { color: var(--euro); }
.ic-prefix.usd { color: var(--text3); }
.ic-num {
  border: none; outline: none;
  font-size: 26px; font-weight: 500; font-family: 'DM Mono', monospace;
  color: var(--text); background: transparent;
  width: 100%;
  -moz-appearance: textfield;
}
.ic-num::-webkit-outer-spin-button,
.ic-num::-webkit-inner-spin-button { -webkit-appearance: none; }
.ic-footer { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; }
.ic-unit { font-size: 10.5px; color: var(--text3); }
.ic-converted {
  font-size: 10.5px; font-family: 'DM Mono', monospace;
  color: var(--euro); background: var(--euro-light);
  padding: 2px 7px; border-radius: 5px; border: 1px solid var(--euro-mid);
  display: none;
}
.ic-converted.show { display: block; }

/* FOB derivado de EXW */
.fob-derived { opacity: 0.72; }
.fob-derived .ic-num { color: var(--euro); }
.fob-derived .ic-prefix { color: var(--euro); }
.exw-card:focus-within {
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139,92,246,0.10), var(--shadow);
}

/* ── ARROW ── */
.calc-arrow {
  text-align: center; font-size: 16px; color: var(--text3);
  margin-bottom: 1.1rem; position: relative; line-height: 1;
}
.calc-arrow::before, .calc-arrow::after {
  content: ''; position: absolute; top: 50%;
  width: calc(50% - 22px); height: 1px; background: var(--border);
}
.calc-arrow::before { left: 0; }
.calc-arrow::after  { right: 0; }

/* ── RESULTS ── */
.results-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.1rem; overflow: hidden;
}
.r-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 1.35rem;
  border-bottom: 1px solid var(--border);
}
.r-row:last-child { border-bottom: none; }
.r-label {
  font-size: 13px; color: var(--text2); display: flex; align-items: center; gap: 8px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.r-value {
  font-size: 15px; font-weight: 500; font-family: 'DM Mono', monospace; color: var(--text);
}
.r-row.total { background: linear-gradient(135deg, #e8f5ef 0%, #d4eee2 100%); }
.r-row.total .r-label { font-size: 14px; font-weight: 600; color: var(--arauco-dark); gap: 9px; }
.r-row.total .r-value { font-size: 22px; font-weight: 700; color: var(--arauco); }

/* ── FORMULA ── */
.formula-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 1.1rem; overflow: hidden;
}
.formula-hdr {
  padding: 0.85rem 1.35rem; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
  transition: background 0.15s;
}
.formula-hdr:hover { background: var(--surface2); }
.formula-hdr-left { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.7px; color: var(--text2); }
.formula-hdr-left svg { width: 14px; height: 14px; color: var(--arauco); }
.chev { transition: transform 0.3s; color: var(--text3); }
.chev.open { transform: rotate(180deg); }
.formula-body { overflow: hidden; max-height: 0; transition: max-height 0.4s ease; }
.formula-body.open { max-height: 700px; }
.formula-inner { padding: 0 1.35rem 1.25rem; display: flex; flex-direction: column; gap: 0.9rem; }
.fstep { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.fstep-n {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--arauco-light); border: 1.5px solid var(--arauco-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--arauco); flex-shrink: 0; margin-top: 2px;
}
.fstep-d { font-size: 11.5px; color: var(--text3); margin-bottom: 4px; line-height: 1.4; }
.fstep-eq {
  font-family: 'DM Mono', monospace; font-size: 12.5px;
  background: var(--surface2); border-radius: 8px;
  padding: 8px 12px; border: 1px solid var(--border); color: var(--text2); line-height: 1.7;
}
.fv { color: var(--sura); }
.fres { color: var(--arauco); font-weight: 600; }

/* ── LICENSE BAR ── */
.license-bar {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  max-width: 680px; margin: 1.5rem auto 0;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 11.5px; color: var(--text2); line-height: 1.6;
  box-shadow: var(--shadow);
  text-align: center;
}
.license-bar a {
  color: var(--arauco); text-decoration: none; font-weight: 600;
}
.license-bar a:hover { text-decoration: underline; }
.license-logo {
  width: 52px; height: 52px;
  margin-top: 4px;
  object-fit: contain;
  opacity: 0.12;
  filter: none;
  mix-blend-mode: multiply;
  transition: opacity 0.2s;
}
.license-logo:hover { opacity: 0.22; }
.license-sub {
  font-size: 10.5px; color: var(--text3); letter-spacing: 0.3px;
}

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #1a1a18; color: #fff; font-size: 13px;
  padding: 10px 20px; border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s;
  opacity: 0; pointer-events: none; z-index: 999; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform:translateY(0); } }
.header       { animation: fadeUp 0.35s ease both; }
.config-row   { animation: fadeUp 0.35s ease 0.06s both; }
.inputs-row   { animation: fadeUp 0.35s ease 0.10s both; }
.results-card { animation: fadeUp 0.35s ease 0.14s both; }
.formula-card { animation: fadeUp 0.35s ease 0.18s both; }

@keyframes flash { 0%{opacity:1} 30%{opacity:0.25} 100%{opacity:1} }
.value-flash { animation: flash 0.4s ease; }

/* ── RESPONSIVE: Tablet ≤ 640px ── */
@media (max-width: 640px) {
  body { padding: 0; }
  .page { padding: 0.85rem 0.75rem 2.5rem; }

  .sticky-bar { padding: 0.55rem 0.85rem; gap: 8px; }
  .sticky-bar .sb-title { font-size: 11.5px; gap: 5px; }
  .sticky-bar .sb-prima { font-size: 13px; }
  .btn-print { padding: 7px 12px; font-size: 12px; }
  .btn-print span { display: none; }

  .header { padding: 1rem 1.1rem; gap: 0.9rem; }
  .logo-box { width: 42px; height: 42px; border-radius: 10px; }
  .logo-arauco { font-size: 8px; }
  .logo-sura   { font-size: 12px; }
  .header-text h1 { font-size: 13.5px; }
  .header-text p  { font-size: 10.5px; }
  .header-text .badge { font-size: 9.5px; padding: 2px 8px; }

  .config-row { grid-template-columns: 1fr; gap: 0.7rem; }
  .cc-val { font-size: 16px; }

  .inputs-row { grid-template-columns: 1fr; gap: 0.7rem; }
  .ic-num { font-size: 22px; }

  .r-row { padding: 0.75rem 1rem; flex-wrap: wrap; gap: 4px; }
  .r-label { font-size: 12px; }
  .r-value { font-size: 13px; }
  .r-row.total .r-value { font-size: 19px; }
  .r-row.total .r-label { font-size: 13px; }

  .formula-hdr { padding: 0.75rem 1rem; }
  .formula-inner { padding: 0 1rem 1rem; gap: 0.75rem; }
  .fstep-eq { font-size: 11.5px; padding: 6px 10px; }
  .fstep-d  { font-size: 11px; }

  .license-bar { font-size: 10.5px; padding: 0.65rem 1rem; margin: 1rem auto 0; }
  .license-sub { font-size: 9.5px; }
  .license-logo { width: 42px; height: 42px; }
}

/* ── RESPONSIVE: Mobile ≤ 400px ── */
@media (max-width: 400px) {
  .page { padding: 0.65rem 0.6rem 2rem; }
  .header { padding: 0.85rem 0.9rem; gap: 0.75rem; }
  .header-text h1 { font-size: 12.5px; }
  .logo-box { width: 38px; height: 38px; }
  .ic-num { font-size: 20px; }
  .r-row.total .r-value { font-size: 17px; }

  .config-card { padding: 0.75rem 0.9rem; }
  .cc-val { font-size: 15px; }
  .cc-input { font-size: 14px; width: 75px; }

  .exw-card .ic-label span { display: none; }

  .formula-body.open { max-height: 1000px; }
}

/* ── PRINT VIEW ── */
@media screen { #print-view { display: none; } }

@media print {
  @page { size: A4; margin: 18mm 20mm; }
  html  { height: auto !important; min-height: 0 !important; }
  body  { height: auto !important; min-height: 0 !important;
          background: #fff !important; padding: 0 !important; overflow: visible !important; }
  .sticky-bar, .screen-only, .page, .toast { display: none !important; }
  #print-view { display: block !important; }
}

#print-view {
  font-family: 'DM Sans', Arial, sans-serif;
  color: #111;
}
.pv-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; border-bottom: 3px solid #006633; margin-bottom: 20px;
}
.pv-logo-a {
  background: #006633; color: #fff; width: 54px; height: 54px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 9pt; font-weight: 700; letter-spacing: 0.5px; text-align: center; line-height: 1.2;
}
.pv-logo-s {
  background: #003087; color: #fff; width: 54px; height: 54px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 16pt; font-weight: 700;
}
.pv-title { text-align: center; }
.pv-title h1 { font-size: 16pt; font-weight: 700; color: #006633; margin-bottom: 4px; }
.pv-title p  { font-size: 9pt; color: #666; }
.pv-section { margin-bottom: 22px; }
.pv-section-title {
  font-size: 8pt; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: #006633; border-bottom: 1pt solid #c2e8d4; padding-bottom: 5px; margin-bottom: 10px;
}
.pv-table { width: 100%; border-collapse: collapse; font-size: 10.5pt; }
.pv-table td { padding: 7px 12px; }
.pv-table tr:nth-child(even) td { background: #f5f5f0; }
.pv-table .l { color: #555; width: 55%; }
.pv-table .v { font-weight: 600; text-align: right; font-family: monospace; }
.pv-table .total td { background: #e6f5ee !important; border-top: 1.5pt solid #006633; }
.pv-table .total .l { color: #004d26; font-weight: 700; font-size: 12pt; }
.pv-table .total .v { color: #006633; font-size: 14pt; }
.pv-formula {
  border: 1pt solid #ddd; border-radius: 6pt; padding: 12px 14px; background: #fafaf8;
}
.pv-formula h3 { font-size: 8pt; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.pv-fline { font-size: 9pt; font-family: monospace; color: #333; margin-bottom: 6px; line-height: 1.6; }
.pv-fline .green { color: #006633; font-weight: 700; }
.pv-footer {
  margin-top: 28px; border-top: 0.5pt solid #ccc; padding-top: 8px;
  font-size: 7.5pt; color: #999; display: flex; justify-content: space-between;
}
