/* v149 — Devolução de compra ao fornecedor */
.prt{display:flex;flex-direction:column;gap:11px;font-size:13px;color:#1e293b}
.prt-muted{margin:0;color:#64748b;font-size:12.5px}.prt-err{margin:4px 0;color:#b91c1c;font-weight:600;font-size:12.5px}
.prt-warn{margin:0;background:#fffbeb;border:1px solid #fde68a;color:#92400e;border-radius:8px;padding:8px 12px;font-size:12.5px}
span.prt-warn{display:inline-block;padding:5px 10px}
.prt-tabs{display:flex;gap:4px;border-bottom:1px solid #e2e8f0}
.prt-tabs button{border:0;background:none;padding:8px 14px;font:inherit;font-weight:600;color:#64748b;border-bottom:2px solid transparent;cursor:pointer}
.prt-tabs button.on{color:#1d4ed8;border-bottom-color:#1d4ed8}
.prt-search{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:#43566b}
.prt input[type=search],.prt-in,.prt-q,.prt-cfop,.prt-csosn{padding:7px 9px;border:1px solid #cdd8e4;border-radius:7px;font:inherit;font-size:13px;color:#0f172a;background:#fff}
.prt-q{width:96px;text-align:right}.prt-cfop{width:64px}.prt-csosn{width:56px}
.prt-head{display:flex;gap:10px;flex-wrap:wrap}
.prt-head>div{flex:1 1 200px;border:1px solid #e2e8f0;background:#f8fafc;border-radius:8px;padding:8px 12px}
.prt-head small{display:block;font-size:11px;color:#64748b;text-transform:uppercase;letter-spacing:.04em}
.prt-head b{display:block;font-size:13.5px}.prt-head span{display:block;font-size:12px;color:#64748b}
.prt-h{margin:4px 0 0;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#1f4b7a}
.prt-wrap{max-height:340px;overflow:auto;border:1px solid #e2e8f0;border-radius:8px}
.prt-table{width:100%;border-collapse:collapse;font-size:12px}
.prt-table th{position:sticky;top:0;background:#f1f5f9;color:#334155;font-weight:700;text-align:left;padding:7px 9px;border-bottom:1px solid #e2e8f0;white-space:nowrap;z-index:1}
.prt-table td{padding:6px 9px;border-bottom:1px solid #eef2f6;vertical-align:middle;height:34px}
.prt-table td small{display:block;color:#64748b;font-size:11px}
.prt-table .r{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.prt-table tfoot td{font-weight:700;background:#f8fafc}
.prt-serials{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:4px;font-size:11.5px}
.prt-fin{display:flex;flex-direction:column;gap:6px}.prt-fin label,.prt-chk{display:flex;gap:8px;align-items:flex-start;cursor:pointer;font-size:13px}
.prt-fin input,.prt-chk input{margin-top:3px}
.prt-total{display:flex;justify-content:space-between;align-items:center;background:#1f4b7a;color:#fff;border-radius:8px;padding:10px 14px}
.prt-total b{font-size:16px}
.prt-done{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;border-radius:8px;padding:9px 12px}
.prt-reason{margin:0;font-size:12.5px;background:#f8fafc;border-radius:8px;padding:8px 12px}
.prt-credit{color:#b45309}
.prt-badge{display:inline-block;padding:2px 9px;border-radius:999px;font-size:11.5px;font-weight:700}
.prt-badge.ok{background:#dcfce7;color:#166534}.prt-badge.warn{background:#fef3c7;color:#92400e}.prt-badge.bad{background:#fee2e2;color:#991b1b}.prt-badge.muted{background:#e2e8f0;color:#475569}
.prt-nfe{border:1px solid #bfdbfe;background:#f8fbff;border-radius:9px;padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.prt-nfe-head{display:flex;gap:8px;align-items:center}
#prt-nfe-body{display:flex;flex-direction:column;gap:8px}
.prt-nfe-info{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:12.5px;color:#334155}
.prt-pend{margin:0;padding-left:18px;color:#b91c1c;font-size:12.5px}
.prt-nfe-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
@media (max-width:760px){.prt-wrap{max-height:none}}
