.rma-view { max-width: 1700px; }
.rma-filters input,.rma-filters select { max-width: 260px; }
.rma-table { width:100%; }
.rma-table td small,.rma-attachments small { display:block; color:var(--muted,#606775); margin-top:5px; }
.rma-status { display:inline-flex; padding:5px 10px; border-radius:7px; background:#eef1f5; font-size:13px; white-space:nowrap; }
.rma-status-decision { background:#fff0d5; color:#714400; }
.rma-status-progress { background:#e5f0ff; color:#124f99; }
.rma-status-closed { background:#e7f4eb; color:#215b36; }
.rma-status-rejected { background:#fbe9e9; color:#8a2828; }
.rma-detail-grid,.rma-dashboard-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.rma-facts { display:grid; grid-template-columns:minmax(110px,1fr) minmax(0,2fr); gap:8px 15px; }
.rma-facts dt { color:var(--muted,#606775); }
.rma-facts dd { margin:0; overflow-wrap:anywhere; }
.rma-wrap { white-space:pre-wrap; overflow-wrap:anywhere; }
.rma-line-picker { border:1px solid #dce0e6; border-radius:9px; padding:14px; }
.rma-line-choice { display:grid; grid-template-columns:20px minmax(0,1fr) 110px; gap:10px; align-items:center; padding:10px 0; }
.rma-line-choice small { display:block; color:#606775; }
.rma-line-choice input[type=number] { width:100%; min-width:0; }
.rma-items { display:grid; gap:12px; }
.rma-items article { border-bottom:1px solid #e4e7eb; padding:12px 0; }
.rma-action-row { display:flex; justify-content:space-between; gap:16px; align-items:start; }
.rma-timeline { list-style:none; padding:0; }
.rma-timeline li { padding:12px 0 12px 18px; border-left:3px solid #dce2eb; }
.rma-timeline small { display:block; color:#606775; margin-top:6px; }
.rma-attachments { padding-left:18px; }
.rma-attachments li { margin:10px 0; }
.rma-queue-badge { display:block; margin-top:5px; font-weight:700; color:#954017; }
@media(max-width:760px) { .rma-detail-grid,.rma-dashboard-grid { grid-template-columns:1fr; } .rma-action-row { flex-direction:column; } .rma-facts { grid-template-columns:1fr; gap:4px; } .rma-facts dd { margin-bottom:10px; } .rma-filters label { width:100%; } .rma-filters input,.rma-filters select { max-width:none; width:100%; } }

.rma-view .module-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:12px; margin:16px 0; }

.rma-dialog .dialog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.rma-dialog .dialog-grid > label,.rma-dialog .field { display:flex; flex-direction:column; align-items:stretch; gap:7px; min-width:0; }
.rma-dialog input:not([type=checkbox]),.rma-dialog select,.rma-dialog textarea { width:100%; min-width:0; box-sizing:border-box; }
.rma-dialog .module-wide { grid-column:1/-1; }
.rma-order-field { position:relative; display:flex; flex-direction:column; gap:7px; }
.rma-order-results { position:absolute; top:76px; left:0; right:0; max-height:260px; overflow:auto; z-index:10; background:var(--surface,#fff); border:1px solid #dce0e6; border-radius:9px; box-shadow:0 8px 22px #0002; }
.rma-order-results [role=option] { padding:12px; cursor:pointer; }
.rma-order-results [role=option]:hover,.rma-order-results [aria-selected=true] { background:#eef3f9; }
.rma-order-results small { display:block; color:var(--muted,#606775); margin-top:4px; }
.rma-order-status { font-size:13px; color:var(--muted,#606775); }
@media(max-width:760px) { .rma-dialog .dialog-grid { grid-template-columns:minmax(0,1fr); } }
