.refunds-workspace{padding:12px 22px 20px;max-width:1600px;width:100%;min-width:0;margin:auto;min-height:calc(100dvh - var(--topbar-height,64px) - var(--admin-footer-height,28px))}
.refunds-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.refunds-heading h1{font-size:20px;font-weight:500;line-height:1.3;margin:0}
.refunds-heading .text-button{min-height:30px;padding:4px 0;font-size:11px;color:var(--muted)}
.refunds-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.refunds-summary>div{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:53px;padding:10px 14px;background:var(--paper);border:1px solid var(--line);border-radius:9px}
.refunds-summary>div:first-child{background:#f0f6ec;border-color:#d8e4cf}
.refunds-summary>div.needs-review{background:#fff8e7;border-color:#eadbb7}
.refunds-summary span{color:#65715d;font-size:11px;line-height:1.4}
.refunds-summary strong{color:#354d2e;font-size:22px;font-weight:500;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap}
.refunds-summary .needs-review strong{color:#94661a}
.refunds-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.refunds-tabs{display:flex;align-items:center;gap:3px;padding:3px;background:var(--paper);border:1px solid var(--line);border-radius:9px}
.refunds-tabs button{min-height:29px;padding:4px 12px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted);font-size:11px;line-height:19px;cursor:pointer;white-space:nowrap}
.refunds-tabs button[aria-pressed=true]{color:#315d32;background:#edf5e8;border-color:#cbddc0}
.refunds-toolbar form{position:relative;display:flex;align-items:center;width:235px}
.refunds-toolbar input{width:100%;min-height:36px;margin:0;padding:6px 37px 6px 11px;border:1px solid var(--line);border-radius:9px;font-size:12px;background:var(--paper)}
.refunds-search-button{position:absolute;right:2px;display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:7px;background:transparent;color:#6d7667;cursor:pointer}
.refunds-caption{margin:9px 0;color:#78816f;font-size:10px;line-height:1.5}
.refunds-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
.refunds-table{width:100%;border-collapse:collapse;font-size:12px;line-height:18px;font-variant-numeric:tabular-nums;text-align:left}
.refunds-table th{padding:7px 12px;color:#77836f;background:#f8faf6;font-size:10px;font-weight:500;white-space:nowrap}
.refunds-table td{padding:5px 12px;border-top:1px solid var(--line);vertical-align:middle}
.refunds-data-row{height:42px}
.refunds-table .text-button{min-height:30px;padding:4px 0;color:#356139;font-size:12px;line-height:20px;white-space:nowrap;text-decoration:underline;text-decoration-color:#c2d2ba;text-underline-offset:3px}
.refunds-identity{display:flex;align-items:center;gap:15px;min-width:0}
.refunds-customer{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11px}
.refunds-table .refunds-amount{text-align:right;white-space:nowrap;font-weight:500}
.refunds-table .refunds-date{color:var(--muted);font-size:11px;white-space:nowrap}
.refunds-table th.refunds-amount{font-weight:500}
.refunds-actions{width:1%;white-space:nowrap}
.refunds-actions>div{display:flex;align-items:center;justify-content:flex-end;gap:9px}
.refunds-table .button{min-height:29px;padding:4px 10px;border-color:#d4e1cc;background:#f0f6ec;color:#356139;font-size:11px;line-height:19px;white-space:nowrap}
.refunds-table .button:disabled{color:var(--muted);background:#f7f8f6;border-color:var(--line);cursor:not-allowed}
.refunds-detail-toggle{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:30px;padding:4px 1px;border:0;background:transparent;color:var(--muted);font-size:11px;cursor:pointer}
.refunds-detail-toggle[aria-expanded=true]{color:#315d32}
.refunds-detail-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
.refunds-state{display:inline-block;max-width:180px;padding:3px 6px;border-radius:5px;font-size:10px;line-height:15px;background:#f1f3f0;color:#66715f}
.refunds-state.accepted{color:#32613d;background:#edf5e9}
.refunds-state.ready{color:#64735c;background:#f1f5ed}
.refunds-state.partial{color:#49677d;background:#edf3f8}
.refunds-state.unknown,.refunds-state.sending,.refunds-state.verifying{color:#8b6109;background:#fff4d7}
.refunds-state.rejected,.refunds-state.verification_failed{color:#9b4038;background:#fff0ee}
.refunds-detail-row[hidden]{display:none}
.refunds-detail-row>td{padding:12px 16px;background:#f8faf6}
.refunds-detail-row dl{display:flex;flex-wrap:wrap;gap:12px 32px;margin:0}
.refunds-detail-row dl>div{min-width:100px;max-width:380px}
.refunds-detail-row dt{color:var(--muted);font-size:10px}
.refunds-detail-row dd{margin:3px 0 0;overflow-wrap:anywhere;font-size:12px;color:#35452f}
.refunds-detail-note{margin:10px 0 0;color:#8b6109;font-size:11px}
.refunds-table .refunds-empty{padding:30px 15px;text-align:center;font-size:12px;color:var(--muted);font-weight:400}
.refunds-bottom{position:relative;display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:9px}
.refunds-pagination{order:2;display:flex;align-items:center;gap:10px;margin-left:auto;font-size:10px;color:var(--muted)}
.refunds-pagination .button{min-height:28px;padding:3px 8px;font-size:10px}
.refunds-explanation{order:1;max-width:850px;font-size:11px;line-height:1.7;color:var(--muted)}
.refunds-explanation[open]{flex-basis:100%;max-width:none;order:3;padding:8px 0}
.refunds-explanation summary{width:max-content;color:#717c69;font-size:11px;cursor:pointer}
.refunds-explanation p{max-width:900px;margin:8px 0 0}
.refunds-feedback{margin:0 0 10px;padding:9px 12px;background:#edf5e9;border:1px solid #ccdfc6;border-radius:8px;font-size:12px;line-height:1.6}
.refunds-workspace button:focus-visible{outline:2px solid #508341;outline-offset:2px}
@media(hover:hover){.refunds-data-row:hover{background:#fafcf8}.refunds-detail-toggle:hover,.refunds-search-button:hover{color:#315d32;background:#f0f5ec}}
.refund-dialog{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--line);border-radius:16px}.refund-dialog::backdrop{background:rgb(26 33 30 / .45)}.refund-dialog header,.refund-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px}.refund-dialog header{border-bottom:1px solid var(--line)}.refund-dialog h2{font-size:20px;margin-top:4px}.refund-dialog header small{color:var(--muted);font-size:12px}.refund-dialog-body{padding:18px 22px}.refund-dialog-body>p:first-child{font-size:13px;color:var(--muted);margin:0 0 20px}.refund-dialog-body>label{display:block;font-size:13px;margin:15px 0 7px}.refund-dialog-body label small{font-size:11px;color:var(--muted);margin-left:6px}.refund-amount-row{display:flex;gap:8px}.refund-amount-row input{flex:1;min-width:0;font-size:20px;font-weight:500}.refund-amount-row .button{font-size:12px}.refund-dialog textarea{width:100%;resize:vertical}.refunds-mode{font-size:12px;line-height:1.6;color:#756133;background:#fff8e7;border-radius:8px;padding:11px 13px;margin-top:16px}.refund-dialog-body .refund-confirm{display:flex;align-items:flex-start;gap:10px;line-height:1.6;margin-top:18px}.refund-confirm input{width:18px;height:18px;flex:none;margin-top:2px}.refund-dialog footer{border-top:1px solid var(--line);background:#fafcf9}.refund-dialog button:disabled{opacity:.55;cursor:not-allowed}.refund-dialog .error{font-size:12px;line-height:1.6;margin-top:12px}

@media(max-width:800px){.refunds-workspace{padding:12px}.refunds-summary{gap:7px}.refunds-summary>div{padding:9px 11px;gap:8px}.refunds-summary strong{font-size:20px}.refunds-customer{max-width:145px}.refunds-table td,.refunds-table th{padding-left:10px;padding-right:10px}}
@media(max-width:600px){.refunds-heading{margin-bottom:9px}.refunds-heading h1{font-size:19px}.refunds-summary>div{flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;min-height:67px;padding:10px}.refunds-summary span{font-size:10px}.refunds-summary strong{font-size:20px}.refunds-toolbar{gap:8px}.refunds-tabs{width:100%}.refunds-tabs button{flex:1;min-height:34px;padding:5px 7px}.refunds-toolbar form{width:100%}.refunds-toolbar input{min-height:39px;font-size:16px}.refunds-search-button{height:36px;width:36px}.refunds-caption{font-size:10px;margin:8px 0}.refunds-table{font-size:11px}.refunds-table th{padding:7px 7px;font-size:9px}.refunds-table td{padding:4px 7px}.refunds-table .text-button{font-size:10px;min-height:38px;line-height:18px}.refunds-customer,.refunds-date{display:none}.refunds-data-row{height:48px}.refunds-table .button{min-height:36px;padding:6px 8px;font-size:10px}.refunds-actions>div{gap:4px}.refunds-detail-toggle{width:28px;min-height:40px;padding:0}.refunds-detail-toggle>span{display:none}.refunds-state{font-size:9px;line-height:13px;padding:3px 5px;max-width:100px}.refunds-detail-row>td{padding:12px}.refunds-detail-row dl{display:grid;grid-template-columns:1fr 1fr;gap:12px}.refunds-detail-row dl>div{min-width:0}.refunds-detail-row dd{font-size:11px}.refunds-table .refunds-empty{padding:24px 12px}.refunds-pagination .button{min-height:36px}.refund-dialog header,.refund-dialog footer,.refund-dialog-body{padding:16px}}
@media(prefers-reduced-motion:no-preference){.refunds-detail-toggle svg{transition:transform .15s ease}}
