.received-returns { margin-bottom:16px; border-color:#b9ddd0; }
.received-returns[hidden] { display:none !important; }
.received-returns__head { gap:16px; align-items:flex-start; }
.received-returns__head h2 { margin-bottom:4px; }
.received-returns__kpis { margin-bottom:12px; }
.received-returns__total-card { font:inherit; color:inherit; text-align:left; cursor:pointer; border-color:#8fcab4; transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease; }
.received-returns__total-card:hover { border-color:var(--green); box-shadow:0 6px 18px rgba(20,94,72,.12); transform:translateY(-1px); }
.received-returns__total-card:focus-visible { outline:3px solid rgba(30,120,88,.25); outline-offset:2px; }
.received-returns__total-card small { display:block; margin-top:5px; color:#1b6d55; font-weight:800; }
.received-returns__charge-summary { margin:0 0 14px; padding:14px; border:1px solid #a8d8c6; border-radius:14px; background:#f6fcfa; }
.received-returns__charge-summary[hidden] { display:none; }
.received-returns__charge-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:10px; }
.received-returns__charge-head h3 { margin:0 0 3px; }
.received-returns__charge-list { display:grid; gap:8px; }
.received-returns__charge-row { display:grid; grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) minmax(130px,.75fr) minmax(110px,.65fr); gap:12px; align-items:center; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.received-returns__charge-row strong { display:block; overflow-wrap:anywhere; }
.received-returns__charge-amount { color:#145e48; text-align:right; }
.received-returns__period { margin:0 0 16px; padding:10px 12px; border-radius:10px; background:#edf8f4; color:#245b48; }
.received-returns__toolbar { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:flex-end; gap:12px; margin:16px 0 12px; }
.received-returns__toolbar select { min-width:190px; }
.received-returns__date-filter { display:flex; align-items:flex-end; gap:10px; }
.received-returns__date-filter[hidden] { display:none; }
.received-returns__date-filter input { min-width:145px; }
.received-returns__list { display:grid; gap:12px; }
.received-return-card { border:1px solid var(--line); border-radius:14px; padding:14px; background:#fff; }
.received-return-card.needs-review { border-color:#e8bf6a; background:#fffdf7; }
.received-return-card.confirmed { border-left:5px solid var(--green); }
.received-return-card.ignored { opacity:.75; }
.received-return-card__summary { display:grid; grid-template-columns:minmax(180px,1.3fr) repeat(3,minmax(110px,.7fr)) auto; gap:12px; align-items:center; }
.received-return-card__label { color:var(--muted); font-size:12px; text-transform:uppercase; font-weight:800; letter-spacing:.03em; }
.received-return-card__value { margin-top:3px; font-weight:850; overflow-wrap:anywhere; }
.received-return-card__details { display:grid; grid-template-columns:minmax(200px,280px) 1fr; gap:16px; border-top:1px solid var(--line); margin-top:12px; padding-top:12px; }
.received-return-card__details[hidden] { display:none; }
.received-return-card__image { min-height:180px; border-radius:12px; background:#eef2f3; display:grid; place-items:center; overflow:hidden; }
.received-return-card__image img { width:100%; max-height:420px; object-fit:contain; background:#111; }
.received-return-card__form { display:grid; gap:10px; align-content:start; }
.received-return-card__form .actions { margin-top:4px; }
.received-returns__split { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:22px; }
.received-returns__split h3 { margin:0 0 10px; }
.received-returns__compact-list { display:grid; gap:8px; }
.received-returns__compact-item { border:1px solid var(--line); border-radius:10px; padding:11px; background:#fafcfc; }
.received-returns__compact-item strong { display:block; margin-bottom:3px; }

@media (max-width: 860px) {
  .received-returns__head { display:grid; }
  .received-return-card__summary { grid-template-columns:1fr 1fr; }
  .received-return-card__summary .actions { grid-column:1 / -1; }
  .received-return-card__details,.received-returns__split { grid-template-columns:1fr; }
  .received-returns__charge-row { grid-template-columns:1fr 1fr; }
  .received-returns__toolbar { justify-content:stretch; }
  .received-returns__toolbar > div,.received-returns__toolbar select { width:100%; }
  .received-returns__date-filter { display:grid; grid-template-columns:1fr 1fr; }
  .received-returns__date-filter .btn { grid-column:1 / -1; }
  .received-returns__date-filter input { width:100%; min-width:0; }
}

@media (max-width: 520px) {
  .received-return-card__summary { grid-template-columns:1fr; }
  .received-return-card__summary .actions { grid-column:auto; }
  .received-returns__head .actions { width:100%; }
  .received-returns__head button { flex:1; }
  .received-returns__charge-head { align-items:stretch; }
  .received-returns__charge-row { grid-template-columns:1fr; }
  .received-returns__charge-amount { text-align:left; }
}
