.pf-overlay { position: fixed; inset: var(--pf-viewport-top, 0px) 0 auto; height: var(--pf-altura, 100dvh); z-index: var(--z-processo-3, 1200); background: #0009; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.pf-overlay[hidden], .pf-overlay [hidden] { display: none !important; }
.pf-folha { width: min(100%, 560px); max-height: calc(var(--pf-altura, 100dvh) - 32px); display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #fff; color: #171612; font: 400 1rem/1.5 Inter, Arial, sans-serif; }
.pf-folha * { box-sizing: border-box; }
.pf-topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 16px; border-bottom: 1px solid #dedbd5; flex-shrink: 0; }
.pf-topo h2 { margin: 0; font: 700 1.125rem/1.4 Inter, Arial, sans-serif; }
.pf-folha button { min-height: 48px; width: auto; margin: 0; padding: 8px 16px; border: 1px solid #aaa69f; border-radius: 8px; background: #fff; color: #171612; font: 600 1rem/1.35 Inter, Arial, sans-serif; cursor: pointer; }
.pf-corpo { padding: 16px; display: grid; gap: 16px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.pf-resumo, .pf-status { margin: 0; font-weight: 600; }
.pf-status:empty { display: none; }
.pf-produtos { min-width: 0; }
.pf-produtos summary { min-height: 44px; display: list-item; padding: 8px; cursor: pointer; }
.pf-produtos ul, .pf-falhas { margin: 8px 0 0; padding-left: 24px; overflow-wrap: anywhere; }
.pf-opcoes { min-width: 0; padding: 0; margin: 0; border: 0; }
.pf-opcoes legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chips button[aria-pressed="true"] { background: #171612; border-color: #171612; color: #fff; }
.pf-folha .pf-campo { display: grid; gap: 8px; margin: 0; font-size: 1rem; font-weight: 600; }
.pf-folha textarea { width: 100%; min-height: 80px; margin: 0; padding: 12px; resize: vertical; border: 1px solid #77736c; border-radius: 8px; background: #fff; color: #171612; font: 400 1rem/1.5 Inter, Arial, sans-serif; }
.pf-ajuda { margin: 0; color: #57534d; font-size: .875rem; }
.pf-pe { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid #dedbd5; flex-shrink: 0; }
.pf-folha .pf-enviar { width: 100%; border-color: #171612; background: #171612; color: #fff; }
.pf-folha :focus-visible { outline: 3px solid var(--tk-foco-cor,#A85200); outline-offset: 3px; }
.pf-folha button:disabled { cursor: default; opacity: .65; }
@media (max-width: 600px) { .pf-overlay { align-items: flex-end; padding: 0; } .pf-folha { width: 100%; max-height: var(--pf-altura, 100dvh); border-radius: 16px 16px 0 0; } }
