.lost-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}.lost-stat{background:#ffffffd9;border:1px solid #e0e5f5;border-radius:16px;padding:22px 26px;border-bottom:4px solid #9a8cff}.lost-stat:nth-child(2){border-bottom-color:#efbc67}.lost-stat:nth-child(3){border-bottom-color:#69baad}.lost-stat span{color:#7d8ba6;font-size:15px}.lost-stat strong{display:block;font-size:34px;color:#283d5a;margin-top:14px}.lost-panel{background:#ffffffd9;border:1px solid #e0e5f5;border-radius:16px;padding:22px}.lost-panel #lost-filter{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.lost-panel #lost-filter input{flex:1;min-width:220px}.lost-panel #lost-filter select{width:160px}.lost-empty{text-align:center;padding:35px!important}.lost-pager{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:18px}.lost-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.lost-wide{grid-column:1/-1}.lost-detail{display:grid;grid-template-columns:130px 1fr;gap:14px}.lost-detail dt{color:#7d8ba6}.lost-detail dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.lost-completed{color:#248c75;background:#e3f5ed}.lost-pending{color:#a26c1a;background:#fff2d9}.lost-processing{color:#5279b2;background:#e8efff}@media(max-width:650px){.lost-refunds-page .heading{flex-wrap:wrap;gap:12px}.lost-stats{gap:8px}.lost-stat{padding:14px 10px}.lost-stat span{font-size:12px}.lost-stat strong{font-size:26px}.lost-panel{padding:12px}.lost-form-grid{grid-template-columns:1fr}.lost-detail{grid-template-columns:90px 1fr}}

.lost-images{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}.lost-images img{width:120px;height:100px;object-fit:contain;border:1px solid #e0e5f5;border-radius:8px;background:white}.lost-images>div{display:flex;flex-direction:column;gap:6px}.lost-images button{font-size:12px;padding:5px}

.lost-refunds-page,.lost-panel,.lost-orders{min-width:0;max-width:100%}.lost-orders{display:grid;gap:16px}.lost-order{min-width:0;border:1px solid #e0e5f5;border-radius:12px;padding:18px;background:#ffffffb8;overflow-wrap:anywhere}.lost-order header{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.lost-order-actions{margin-left:auto;display:flex;gap:8px}.lost-order-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:20px 0}.lost-order-fields>div{min-width:0}.lost-order-fields dt{color:#7d8ba6;font-size:13px;margin-bottom:6px}.lost-order-fields dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.lost-order-wide{grid-column:span 2}.lost-order footer{display:flex;flex-wrap:wrap;gap:8px 20px;color:#7d8ba6;font-size:12px;border-top:1px solid #edf0f8;padding-top:12px}.lost-pager{flex-wrap:wrap}.lost-panel #lost-filter input{min-width:0;width:100%}.lost-refunds-page .heading{flex-wrap:wrap;gap:12px}@media(max-width:900px){.lost-order-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.lost-order{padding:12px}.lost-order-fields{grid-template-columns:minmax(0,1fr)}.lost-order-wide{grid-column:auto}.lost-panel #lost-filter input{flex-basis:100%}.lost-panel #lost-filter select{max-width:100%}}

.return-refunds-page .lost-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.return-table-wrap{width:100%;min-width:0}.return-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px}.return-table th,.return-table td{padding:16px 8px;text-align:left;border-bottom:1px solid #e7edf2;overflow-wrap:anywhere;white-space:normal}.return-table th{background:#f3f7f8;color:#7b8e9b;font-weight:500}.return-table tbody tr:hover{background:#f6f8ff}.return-table th:nth-child(2){width:14%}.return-table th:nth-child(10){width:12%}.return-table .badge{white-space:normal}.return-table .text-btn{padding:5px}.return-table .return-empty{height:220px;text-align:center;color:#8e9ca9}.return-refunds-page .lost-pager span{margin-right:auto}.return-refunds-page .lost-panel{padding:20px 14px}@media(max-width:650px){.return-table thead{display:none}.return-table tbody tr{display:block;padding:12px 0;border-bottom:1px solid #e7edf2}.return-table td{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px;padding:7px;border:0}.return-table td:before{content:attr(data-label);color:#7b8e9b}.return-table td.return-empty{display:block;height:auto;padding:40px 12px}.return-table td.return-empty:before{display:none}}

.return-import-preview{max-height:380px;overflow:auto}.return-import-table{width:100%;table-layout:fixed}.return-import-cell{overflow-wrap:anywhere;vertical-align:top;padding:10px}.return-import-batch{padding:14px 0;border-bottom:1px solid #e6e7f5}.return-import-batch b{overflow-wrap:anywhere}

/* Wide review layout; one field per column, no nested scrolling. */
dialog:has(#return-review-table){width:calc(100vw - 40px);max-width:1800px;max-height:94vh}
dialog:has(#return-review-table) .dialog-body{padding:20px 24px;overflow:visible}
.return-review-summary{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;padding:14px 16px;background:#f5f7ff;border-radius:10px;margin-bottom:18px}.return-review-summary>span:nth-child(2){color:#a45c00}
#return-review-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px;line-height:1.65}
#return-review-table th,#return-review-table td{text-align:left;padding:14px 10px;border-bottom:1px solid #e3e9f1;overflow-wrap:anywhere;white-space:pre-wrap;vertical-align:top}
#return-review-table th{background:#f0f5f8;color:#687c90;font-weight:600;position:sticky;top:0;z-index:1}
#return-review-table th:nth-child(1){width:4%}#return-review-table th:nth-child(2){width:7%}#return-review-table th:nth-child(3){width:16%}#return-review-table th:nth-child(4){width:16%}#return-review-table th:nth-child(5),#return-review-table th:nth-child(6){width:11%}#return-review-table th:nth-child(7){width:8%}#return-review-table th:nth-child(8){width:11%}#return-review-table th:nth-child(9){width:7%}#return-review-table th:nth-child(10){width:9%}
#return-review-table tbody tr:nth-child(even){background:#f8faff}#return-review-table tbody tr:hover{background:#f1f5ff}#return-review-table .return-review-attention td:first-child{border-left:3px solid #e4a03a}
.return-review-missing,.return-review-flag{color:#a45c00}.return-review-flag{display:block;margin-bottom:4px}.review-status-intercepted{background:#fff0d7;color:#965300}.review-status-completed{background:#e8f7ee;color:#217743}.review-status-pending{background:#fff4df;color:#95600a}.review-status-received{background:#eeebff;color:#6b55ca}
dialog:has(#return-review-table) #return-review-form{margin-top:24px;padding:20px;background:#f7f8fc;border:1px solid #e6e9f2;border-radius:12px}dialog:has(#return-review-table) #return-review-back{margin-top:12px}
@media(max-width:700px){dialog:has(#return-review-table){width:calc(100vw - 16px)}dialog:has(#return-review-table) .dialog-body{padding:14px}#return-review-table thead{display:none}#return-review-table tr{display:block;margin-bottom:14px;border:1px solid #e3e9f1;border-radius:8px;padding:8px}#return-review-table td{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px;border:0;padding:7px}#return-review-table td:before{content:attr(data-label);color:#687c90}.return-review-flag{grid-column:2}}

.return-refunds-page #lost-filter [data-return-search]{flex:1;min-width:0;width:100%;min-height:44px;height:44px;resize:none;overflow:hidden;line-height:22px;padding:10px 12px;font:inherit;box-sizing:border-box}@media(max-width:500px){.return-refunds-page #lost-filter [data-return-search]{flex-basis:100%}}

#return-editor [data-add-return-option],#return-editor [data-delete-return-option]{display:inline-flex!important;visibility:visible!important;align-items:center;justify-content:center;min-height:36px;padding:7px 12px;font-size:13px;opacity:1!important}#return-editor .return-option-add{background:#f3f1ff;border:1px solid #dcd6ff;color:#6450c4}#return-editor .return-option-delete{background:#fff2f2;border:1px solid #edbcbc;color:#b52c38}

#return-editor .lost-form-grid{align-items:start;gap:12px 18px}#return-editor .field{align-content:start;gap:6px;margin-bottom:0}#return-editor input,#return-editor select{height:42px;min-height:42px;padding:9px 12px}#return-editor .field textarea{height:64px;min-height:64px}#return-editor .return-option-actions{display:flex;gap:8px;flex-wrap:wrap}#return-editor .return-option-actions button{flex:1;min-height:30px;padding:4px 8px;font-size:12px}#return-editor>p.small{font-size:12px;line-height:1.5;margin:12px 0}#return-editor>.error{margin:6px 0;min-height:0}
