.opp-heading,.opp-list-head,.opp-pagination,.opp-dialog-actions,.opp-switch {
  display:flex;align-items:center;gap:.65rem;flex-wrap:wrap
}
.opp-heading,.opp-list-head {justify-content:space-between}
.opp-heading h1,.opp-list-head h2,.opp-reasons h2 {margin:0}
.opp-heading p {margin:.4rem 0}
.opp-heading {margin-bottom:1rem}
.opp-filters,.opp-fields {
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(10rem,100%),1fr));align-items:end;gap:.8rem
}
.opp-summary {display:grid;grid-template-columns:repeat(auto-fit,minmax(8.5rem,1fr));gap:.65rem;margin:1rem 0}
.opp-summary article {border:1px solid #acc7bd73;border-radius:12px;padding:.75rem .9rem}
.opp-summary article[data-tone="loss"] {border-left:3px solid #e68756}
.opp-summary article[data-tone="success"] {border-left:3px solid #40a374}
.opp-summary strong {display:block;font-size:1.45rem}
.opp-summary span,.opp-table-wrap small {display:block}
.opp-reasons ul {display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;padding:0;margin:.65rem 0 0}
.opp-reasons li {padding:.35rem .65rem;border:1px solid #acc7bd73;border-radius:8px}
.opp-switch button[aria-pressed="true"] {background:#136850;color:#fff}
.opp-table-wrap {overflow:auto;margin:.85rem 0}
.opp-table-wrap table {width:100%;min-width:42rem}
.opp-table-wrap small {margin-top:.25rem}
.opp-table-wrap details {max-width:24rem;overflow-wrap:anywhere}
.opp-table-wrap summary {cursor:pointer}
.opp-table-wrap .btn {margin:.2rem .3rem .2rem 0}
.opp-overdue {color:#b54619;font-weight:750}
.opp-pagination {justify-content:flex-end}
.opp-dialog {
  position:fixed;inset:0;margin:auto;width:min(42rem,calc(100% - 1.5rem));max-height:calc(100dvh - 1.5rem);
  overflow:auto;border:1px solid #a3c0b5;border-radius:18px;padding:1.2rem;background:#fff;color:#17362d
}
.opp-dialog::backdrop {background:#071b17aa}
.opp-dialog h2 {margin:0 0 .75rem}
.opp-fields {border:0;margin:0;padding:0;grid-template-columns:repeat(2,minmax(0,1fr))}
.opp-full {grid-column:1/-1}
.opp-dialog textarea {width:100%;box-sizing:border-box}
.opp-dialog-actions {justify-content:flex-end}
.opp-dialog [role="status"]:empty {display:none}
#oppClientSearch button {margin-top:.4rem}
#oportunidades [hidden] {display:none!important}
@media(max-width:520px) {
  .opp-fields {grid-template-columns:minmax(0,1fr)}
}

.opp-client-fields {padding:.85rem;border:1px solid #acc7bd;border-radius:10px}
.opp-client-fields legend {padding:0 .35rem;font-weight:700}
.opp-client-fields p {margin:0}
