.agency-header,.agency-lead-head,.agency-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.agency-header h2{margin:0 0 8px}.agency-header p{margin:5px 0}.agency-filter,.agency-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.agency-filter{grid-template-columns:2fr 1fr 1fr auto;align-items:end;margin:18px 0}.agency-filter button,.agency-actions button{margin:0}.agency-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.agency-stat{padding:17px;border:1px solid #dce8e4;border-radius:14px;background:#f4faf7}.agency-stat span{display:block;color:#587067;font-size:12px}.agency-stat strong{display:block;margin-top:8px;font-size:25px;color:#165341}.agency-list{display:grid;grid-template-columns:1fr 1fr;gap:14px}.agency-lead{border:1px solid #dce5e1;border-radius:16px;padding:20px;min-width:0;overflow-wrap:anywhere}.agency-lead h3{font-size:18px;margin:0}.agency-lead p{font-size:14px;margin:10px 0}.agency-lead button{width:100%;margin-top:14px;background:#f4f7f5;border:1px solid #dbe7e0;color:#174d3b}.agency-pill{font-size:12px;white-space:nowrap;border-radius:20px;background:#eef2f0;color:#54695d;padding:5px 10px}.state-won{background:#d9f3e7;color:#125c3d}.state-proposal{background:#e3ecfc;color:#31558f}.state-contacted{background:#fff0d4;color:#805800}.agency-muted,.agency-note{color:#698075;font-size:13px}.agency-followup{color:#176a4a}.agency-empty{grid-column:1/-1;padding:35px 12px;text-align:center;color:#75897f}.agency-pagination{display:flex;justify-content:center;gap:12px;margin-top:20px}.agency-dialog{width:min(640px,calc(100vw - 32px));max-height:90vh;overflow:auto;border:0;border-radius:20px;padding:28px}.agency-dialog textarea{min-height:110px;resize:vertical}.agency-dialog .agency-actions{margin-top:18px}.agency-events{font-size:12px;color:#6a7e73;border-top:1px solid #e2e9e5;margin-top:24px;padding-top:15px}.agency-events p{overflow-wrap:anywhere}#agency-error{color:#a72b38}#agency-pending-note:not(:empty){padding:12px;background:#fff5de;border-radius:10px;color:#72520f}button:disabled{cursor:not-allowed}@media(max-width:760px){.agency-filter{grid-template-columns:1fr 1fr}.agency-list{grid-template-columns:1fr}.agency-stat{padding:12px}.agency-stat strong{font-size:21px}.agency-fields{grid-template-columns:1fr}.agency-dialog{padding:22px}.agency-header{align-items:flex-start}}

.allowance-filter{display:grid;grid-template-columns:repeat(4,1fr) auto;gap:12px;align-items:end;margin:20px 0}.allowance-test{padding:12px 15px;border:1px solid #ead5a6;background:#fff8e9;border-radius:12px;font-size:13px;color:#765519}.allowance-amount{font-size:23px;font-weight:750;color:#176448}.allowance-note{white-space:pre-wrap;overflow-wrap:anywhere}.allowance-lead-search{display:flex;gap:8px;align-items:center}.allowance-lead-search input{min-width:0;flex:1}.allowance-lead-search button{white-space:nowrap}#allowance-error,#allowance-detail-error{color:#a72b38}#allowance-pending:not(:empty){padding:12px;background:#fff5de;border-radius:10px;color:#72520f}#allowance-cancel-area{border-top:1px solid #e2e9e5;margin-top:20px;padding-top:12px}#allowance-cancel{background:#fff1ef;color:#a52c32;border:1px solid #f1d4d0}#allowance-summary strong{font-size:22px;overflow-wrap:anywhere}@media(max-width:900px){.allowance-filter{grid-template-columns:1fr 1fr}}@media(max-width:460px){#allowance-summary{grid-template-columns:1fr}.allowance-amount{font-size:21px}}
