.proposal-icon::before { content:""; position:absolute; inset:1px 3px; border:1.7px solid currentColor; border-radius:3px; }
.proposal-icon::after { content:""; position:absolute; left:7px; top:6px; width:7px; height:6px; border-block:1.6px solid currentColor; }
.pp-page, .pp-detail { display:grid; min-width:0; gap:16px; }
.pp-page .ai-heading { margin:0; }
.pp-heading { display:flex; flex-direction:row; justify-content:space-between; align-items:center; gap:14px; }
.pp-heading h1 { overflow-wrap:anywhere; }
.pp-heading .pp-state { flex:none; }
.pp-filters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; }
.pp-search { grid-column:span 2; }
.pp-filters label { display:grid; min-width:0; gap:6px; font-weight:600; font-size:12px; color:var(--muted); }
.pp-filters input, .pp-filters select { width:100%; min-width:0; min-height:41px; border:1px solid var(--line); padding:6px 10px; border-radius:8px; color:var(--ink); background:#fff; }
.pp-filters input:focus, .pp-filters select:focus { border-color:var(--blue); outline:2px solid #0170ff24; outline-offset:1px; }
.pp-filter-buttons, .pp-shortcuts, .pp-pages { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.pp-shortcuts { justify-content:flex-end; grid-column:span 3; }
.pp-results { min-width:0; }
.pp-results-head, .pp-formal { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.pp-results-head h2, .pp-detail h2 { margin:0; font-size:18px; letter-spacing:-.035em; }
.pp-results-head span, .pp-formal p { margin:2px 0 0; color:var(--muted); font-size:12px; }
.pp-summary { display:flex; align-items:stretch; flex-wrap:wrap; gap:10px; margin:18px 0; }
.pp-summary div { display:flex; align-items:baseline; gap:10px; border-radius:9px; padding:7px 12px; background:#eff4fa; color:#405875; }
.pp-summary strong { color:var(--ink); font-size:16px; font-variant-numeric:tabular-nums; }
.pp-summary span { font-size:12px; font-weight:600; }
.pp-summary div:nth-child(2) { color:#176640; background:#e7f5ed; }
.pp-summary div:nth-child(3) { color:#754e17; background:#fcf3e6; }
.pp-scroll { overflow:auto; width:100%; border:1px solid #e5eaf0; border-radius:10px; }
.pp-list table { border-collapse:collapse; width:100%; text-align:left; color:var(--ink); font-size:13px; }
.pp-list th { color:var(--muted); font-weight:600; font-size:11px; background:#f6f8fb; text-transform:uppercase; }
.pp-list td, .pp-list th { padding:12px 10px; border-bottom:1px solid #e5eaf0; }
.pp-list td { min-width:86px; vertical-align:middle; }
.pp-list td:nth-child(3) { min-width:144px; }
.pp-list tbody tr:last-child td { border:0; }
.pp-list td small { display:block; font-size:11px; color:var(--muted); }
.pp-code { font-weight:700; text-underline-offset:3px; overflow-wrap:anywhere; }
.pp-bank { display:inline-flex; align-items:center; gap:6px; }
.pp-bank img { object-fit:contain; }
.pp-state { display:inline-block; padding:3px 8px; border-radius:999px; background:#eef1f6; color:#415069; font-weight:650; font-size:12px; }
.pp-registered { color:#17603c; background:#dcf5e6; }
.pp-submitting, .pp-processing { color:#18529b; background:#e0eeff; }
.pp-uncertain, .pp-unconfirmed { color:#7e4b0c; background:#fff1d9; }
.pp-rejected, .pp-failed { color:#973a42; background:#ffe8e9; }
.pp-missing { color:#617086; }
.pp-pages { margin:16px 0 0; justify-content:flex-end; }
.pp-empty { padding:28px 12px; text-align:center; color:var(--muted); }
.pp-empty p { margin:5px 0; }
.pp-error { margin:0; padding:12px 14px; border-radius:8px; color:#962831; background:#fff0ef; }
.pp-back { width:max-content; padding:5px 10px; color:var(--ink); border:1px solid var(--line); border-radius:8px; background:white; text-decoration:none; font-weight:600; }
.pp-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:16px 20px; margin:16px 0 0; }
.pp-fields div { min-width:0; }
.pp-fields dt { color:var(--muted); font-size:12px; }
.pp-fields dd { margin:4px 0 0; overflow-wrap:anywhere; font-weight:600; }
.pp-formal a { text-decoration:none; }
@media(max-width:1100px) {
  .pp-filters { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .pp-shortcuts { grid-column:auto; }
}
@media(max-width:740px) {
  .pp-filters { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .pp-filter-buttons, .pp-shortcuts { grid-column:1 / -1; justify-content:flex-start; }
  .pp-summary { gap:5px; }
  .pp-summary div { padding:5px 7px; gap:4px; }
  .pp-scroll { border:0; overflow:visible; }
  .pp-list table, .pp-list tbody { display:block; }
  .pp-list thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .pp-list tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; border:1px solid var(--line); border-radius:10px; padding:13px; margin-top:8px; }
  .pp-list td { display:block; border:0; padding:0; min-width:0; overflow-wrap:anywhere; }
  .pp-list td::before { content:attr(data-label); display:block; margin-bottom:2px; color:var(--muted); font-size:10px; }
  .pp-list td:nth-child(3) { min-width:0; }
  .pp-list td[data-label="Cliente"] { grid-column:1 / -1; }
  .pp-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
