/* Preencher PDF page. Shared PDF CSS stays; this file only restyles this page. */
.fpdf-page {
  --fp-ink: #172033;
  --fp-body: #3d4658;
  --fp-muted: #64748b;
  --fp-line: #e3e9f1;
  --fp-blue: #2563eb;
  --fp-blue-dark: #1d4ed8;
  --fp-aside-w: 210px;
  --fp-side-w: 280px;
  display: grid;
  grid-template-columns: var(--fp-aside-w) minmax(0, 1fr);
  gap: 18px 22px;
  align-items: start;
  margin: 4px 0 28px;
}

.fpdf-aside { display: flex; flex-direction: column; min-width: 0; padding-top: 4px; }

.fpdf-title {
  margin: 0 0 12px;
  color: var(--fp-ink);
  font-size: clamp(1.85rem, 2.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-align: left;
}

.article .fpdf-lede {
  margin: 0 0 18px;
  color: #3b4d9a;
  font-size: 0.98rem;
  line-height: 1.45;
  text-align: left;
}

.article .fpdf-perks,
.article .fpdf-tip-list { margin: 0; padding: 0; list-style: none; }
.article .fpdf-perks { display: grid; gap: 14px; }
.article .fpdf-perks li,
.article .fpdf-tip-list li { margin: 0; padding: 0; }
.article .fpdf-perks li::before { content: none; }

.article .fpdf-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fp-body);
  font-size: 0.82rem;
  line-height: 1.3;
  text-align: left;
}

.fpdf-perks strong { display: block; color: var(--fp-ink); font-size: 0.9rem; }

.fpdf-perk {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: #fff center / 20px no-repeat;
}

.fpdf-perk.is-online {
  background-color: #dcfce7;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2316a34a' d='M12 2 5 5v6.2c0 4.4 2.9 8.2 7 9.3 4.1-1.1 7-4.9 7-9.3V5z'/%3E%3Cpath d='m8.2 12.1 2.4 2.4 5-5.2' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.fpdf-perk.is-fast {
  background-color: #ffe4e6;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e11d48' d='M13.5 2 4.5 13.5h6.2L9.8 22l9-11.5h-6.2z'/%3E%3C/svg%3E");
}
.fpdf-perk.is-device {
  background-color: #ede9fe;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2'%3E%3Crect x='7' y='2' width='10' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
}
.fpdf-perk.is-form {
  background-color: #dbeafe;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 17 14 7l3 3L7 20H4zM12 9l3 3'/%3E%3C/svg%3E");
}

.article img.fpdf-art {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 16px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

body.page-preencher-pdf-online .cpdf-app {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.page-preencher-pdf-online .cpdf-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--fp-side-w);
  gap: 14px;
  align-items: start;
}

body.page-preencher-pdf-online .cpdf-main {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.fpdf-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  list-style: none;
  border: 1px solid var(--fp-line);
  border-radius: 16px;
  background: #fff;
}

.article .fpdf-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: left;
}
.article .fpdf-steps li::before { content: none; }

.fpdf-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: #e8eef6;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
}
.fpdf-steps li.is-current .fpdf-num { background: var(--fp-blue); color: #fff; }
.fpdf-steps li.is-done .fpdf-num {
  background: var(--fp-blue) url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.2 3.6 3.6L18 8' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  color: transparent;
}
.fpdf-steps strong,
.fpdf-steps small { display: block; }
.fpdf-steps strong { color: #94a3b8; font-size: 0.78rem; font-weight: 800; line-height: 1.2; }
.fpdf-steps small { color: var(--fp-muted); font-size: 0.68rem; line-height: 1.25; }
.fpdf-steps li.is-current strong,
.fpdf-steps li.is-done strong { color: var(--fp-ink); }

.fpdf-top,
.fpdf-kinds {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--fp-line);
  border-radius: 16px;
  background: #fff;
}
.fpdf-top #fpdf-btn-clear { margin-left: auto; }

.fpdf-ico,
.fpdf-glyph,
.fpdf-iconbtn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fpdf-ico { width: 18px; height: 18px; flex: none; }
.fpdf-glyph { width: 20px; height: 20px; }

body.page-preencher-pdf-online .cpdf-app .cpdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 12px;
}
body.page-preencher-pdf-online .cpdf-app #fpdf-btn-pick,
body.page-preencher-pdf-online .cpdf-app #fpdf-btn-run,
body.page-preencher-pdf-online .cpdf-app #fpdf-btn-download {
  border-color: var(--fp-blue-dark);
  background: linear-gradient(180deg, #2f6ff0, #1d5ad6);
}

.fpdf-kind {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 64px;
  min-height: 54px;
  padding: 6px 8px;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}
.fpdf-kind.is-on {
  border-color: var(--fp-blue);
  color: var(--fp-blue-dark);
  box-shadow: inset 0 0 0 1px var(--fp-blue);
}
.fpdf-kinds #fpdf-btn-clear-fields { margin-left: auto; }

.fpdf-frame {
  overflow: hidden;
  border: 1px solid var(--fp-line);
  border-radius: 16px;
  background: #fff;
}
.fpdf-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--fp-line);
  background: #f8fafc;
}
.fpdf-iconbtn,
.fpdf-zoomlabel {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--fp-line);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}
.fpdf-iconbtn svg { width: 16px; height: 16px; }
.fpdf-iconbtn:disabled { opacity: 0.45; cursor: not-allowed; }
#fpdf-page-label { min-width: 3.2rem; text-align: center; }
.fpdf-nav #fpdf-zoom-fit { margin-left: auto; }

.fpdf-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 420px;
  padding: 24px;
  background: #d7dde8;
  color: #475569;
  text-align: center;
  cursor: pointer;
}
.fpdf-empty strong { color: var(--fp-ink); font-size: 1rem; }
.fpdf-empty span { font-size: 0.84rem; }
.fpdf-empty.is-dragover { background: #e7eefc; }
#fpdf-drop[hidden],
#fpdf-workspace[hidden],
#fpdf-empty[hidden],
#fpdf-filter[hidden] { display: none !important; }

body.page-preencher-pdf-online .ppdf-workspace { margin: 0; }
body.page-preencher-pdf-online .ppdf-preview-wrap {
  max-height: min(720px, 68vh);
  border: 0;
  border-radius: 0;
  background: #d7dde8;
}
body.page-preencher-pdf-online .ppdf-page-canvas { max-width: none; height: auto; }

.article .fpdf-hint,
.fpdf-status {
  margin: 0;
  color: var(--fp-muted);
  font-size: 0.84rem;
  line-height: 1.4;
  text-align: left;
}

body.page-preencher-pdf-online .cpdf-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  background: transparent;
}
body.page-preencher-pdf-online .cpdf-card {
  padding: 14px;
  border: 1px solid var(--fp-line);
  border-radius: 16px;
  background: #fff;
}
body.page-preencher-pdf-online .cpdf-card-label,
.fpdf-fields-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--fp-ink);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
}

.fpdf-card-ico {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: #e8f0fe center / 16px no-repeat;
}
.fpdf-card-ico.is-file {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232563eb' d='M7 3h8l4 4v14H7z'/%3E%3C/svg%3E");
}
.fpdf-card-ico.is-bulb {
  background-color: #fff4d6;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f5b400' d='M12 2a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E");
}

.fpdf-stats { display: grid; }
.fpdf-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #eef2f7;
  color: var(--fp-body);
  font-size: 0.84rem;
  text-align: left;
}
.fpdf-stat:first-child { border-top: 0; }
.fpdf-stat strong { color: var(--fp-ink); font-size: 0.9rem; font-weight: 800; text-align: right; }
.fpdf-stat strong.is-muted { color: var(--fp-muted); font-weight: 650; }

.fpdf-flatten {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
  color: var(--fp-body);
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: left;
}
.fpdf-flatten input { margin-top: 2px; accent-color: var(--fp-blue); }

body.page-preencher-pdf-online .fpdf-fields {
  max-height: min(42vh, 380px);
}
body.page-preencher-pdf-online .fpdf-field.is-filled {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
body.page-preencher-pdf-online .fpdf-field.is-filled .fpdf-field-type::after {
  content: "Preenchido";
  margin-left: 6px;
  color: #15803d;
}

.article .fpdf-tip-list { display: grid; gap: 8px; counter-reset: fpdf-tip; }
.article .fpdf-tip-list li {
  position: relative;
  padding: 1px 0 1px 28px;
  color: var(--fp-body);
  font-size: 0.84rem;
  line-height: 1.35;
  text-align: left;
  counter-increment: fpdf-tip;
}
.article .fpdf-tip-list li::before {
  content: counter(fpdf-tip);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f5b400;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}
body.page-preencher-pdf-online .cpdf-card.fpdf-tips { background: #fff8e8; border-color: #f6e3b0; }

.fpdf-run,
.fpdf-dl { width: 100%; }

@media (min-width: 1360px) {
  .fpdf-page {
    --fp-stage-w: min(1560px, calc(100vw - 96px));
    --fp-aside-w: clamp(200px, 15vw, 250px);
    --fp-side-w: clamp(270px, 18vw, 320px);
    width: var(--fp-stage-w);
    margin-left: calc((100% - var(--fp-stage-w)) / 2);
  }
}
@media (max-width: 1100px) {
  .fpdf-steps small { display: none; }
}
@media (max-width: 980px) {
  .fpdf-page { grid-template-columns: minmax(0, 1fr); }
  .article .fpdf-perks,
  .article img.fpdf-art { display: none; }
  body.page-preencher-pdf-online .cpdf-shell { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .fpdf-steps { grid-template-columns: 1fr 1fr; }
  .fpdf-top #fpdf-btn-clear,
  .fpdf-kinds #fpdf-btn-clear-fields { margin-left: 0; }
  .fpdf-title { font-size: 1.85rem; }
  .fpdf-empty { min-height: 280px; }
}

html[data-theme="dark"] .fpdf-page {
  --fp-ink: #f1f5f9;
  --fp-body: #cbd5e1;
  --fp-muted: #94a3b8;
  --fp-line: #334155;
}
html[data-theme="dark"] .article .fpdf-lede { color: #a5b4fc; }
html[data-theme="dark"] .fpdf-steps,
html[data-theme="dark"] .fpdf-top,
html[data-theme="dark"] .fpdf-kinds,
html[data-theme="dark"] .fpdf-kind,
html[data-theme="dark"] .fpdf-frame,
html[data-theme="dark"] .fpdf-iconbtn,
html[data-theme="dark"] .fpdf-zoomlabel,
html[data-theme="dark"] body.page-preencher-pdf-online .cpdf-card {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
html[data-theme="dark"] .fpdf-nav { background: #0f172a; }
html[data-theme="dark"] .fpdf-empty,
html[data-theme="dark"] body.page-preencher-pdf-online .ppdf-preview-wrap { background: #0b1220; }
html[data-theme="dark"] .fpdf-stat { border-top-color: #334155; }
html[data-theme="dark"] body.page-preencher-pdf-online .cpdf-card.fpdf-tips { background: #2a2416; border-color: #4a3d1c; }
html[data-theme="dark"] body.page-preencher-pdf-online .fpdf-field.is-filled { background: #102418; border-color: #166534; }
html[data-theme="dark"] body.page-preencher-pdf-online .cpdf-app .cpdf-btn:not(.cpdf-btn-primary) {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
