/* Reference: the existing DingTalk-style admin shell: blue actions, quiet lines,
   readable status and one working sheet. All selectors remain scoped. */
.rf-cases{margin:22px 0 28px;border:1px solid #e5e6e8;border-radius:10px;background:#fff;overflow:hidden;color:#30343b}
.rf-list-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 22px}
.rf-list-heading h2{font-size:16px;font-weight:600;margin:0 0 6px!important;line-height:1.5}.rf-list-heading h2 span{margin-left:9px;font-size:12px;color:#74777c;font-weight:400}
.rf-list-heading p{font-size:13px;line-height:1.6;color:#74777c;margin:0}.rf-list-heading>button{flex-shrink:0}
.rf-case-list{border-top:1px solid #edf0f3}.rf-cases .rf-case-row{width:100%;display:grid;grid-template-columns:minmax(120px,1fr) minmax(180px,1.4fr) auto 12px;align-items:center;gap:18px;text-align:left;border:0;border-bottom:1px solid #edf0f3;border-radius:0;background:#fff;padding:13px 22px;color:#30343b;font-size:13px;box-shadow:none}
.rf-cases .rf-case-row:last-child{border-bottom:0}.rf-cases .rf-case-row:hover{background:#f7faff}.rf-case-row b,.rf-case-row small{display:block}.rf-case-row b{font-size:14px;font-weight:550}.rf-case-row small{font-size:12px;color:#74777c;margin-top:4px}.rf-case-row span{overflow-wrap:anywhere}.rf-case-next{color:#74777c;line-height:1.6}.rf-list-more{display:block;margin:10px auto}.rf-list-empty{padding:4px 22px 21px;color:#74777c;font-size:13px;line-height:1.7}
.rf-draft-tray{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#f5f8fd;border-top:1px solid #edf0f3;padding:12px 22px;font-size:12px}.rf-draft-tray strong{font-weight:550;color:#74777c}.rf-draft-tray button{font-size:12px;border:1px solid #cbdcf4;border-radius:5px;background:#fff;color:#0066ff;padding:5px 9px}
.rf-dialog{box-sizing:border-box;width:min(1050px,calc(100vw - 40px));max-width:1050px;max-height:90dvh;padding:0 28px 28px;border:1px solid #dfe2e7;border-radius:12px;background:#fff;color:#30343b;box-shadow:0 20px 70px #17264126;overflow:auto;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:13px;line-height:1.6}
.rf-dialog::backdrop{background:#18283a50}.rf-dialog *{box-sizing:border-box}.rf-dialog [hidden]{display:none!important}
.rf-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 0 18px;border-bottom:1px solid #edf0f3;margin:0 0 20px}.rf-dialog-heading h2{font-size:24px;line-height:1.4;font-weight:600;margin:3px 0 0;color:#171a1d}.rf-dialog .rf-eyebrow{font-size:12px;color:#74777c;margin:0}.rf-case-id{margin:6px 0 0;font-size:11px;color:#96999f;overflow-wrap:anywhere}.rf-dialog .rf-close{border:0;background:#f4f5f7;color:#74777c;border-radius:6px;width:32px;height:32px;min-height:32px;font-size:24px;line-height:24px;padding:0;flex-shrink:0}
.rf-dialog h3{font-size:15px;font-weight:600;line-height:1.6;color:#171a1d;margin:0}.rf-dialog .primary,.rf-dialog .secondary,.rf-dialog .plain,.rf-cases .secondary{font:inherit;min-height:34px;padding:7px 12px;border-radius:6px;cursor:pointer;box-shadow:none;line-height:1.4}
.rf-dialog .primary{background:#0066ff;border:1px solid #0066ff;color:#fff}.rf-dialog .primary:hover{background:#0055d9}.rf-dialog .secondary,.rf-cases .secondary{background:#fff;border:1px solid #dfe2e7;color:#373b41}.rf-dialog .secondary:hover,.rf-cases .secondary:hover{background:#f5f9ff;border-color:#8dbbff}.rf-dialog .plain{background:transparent;border:0;color:#0066ff;padding:6px 0}.rf-dialog button:disabled,.rf-cases button:disabled{cursor:wait;opacity:.55}.rf-dialog button:focus-visible,.rf-dialog a:focus-visible,.rf-cases button:focus-visible{outline:2px solid #0066ff;outline-offset:2px}
.rf-next{display:flex;align-items:center;justify-content:space-between;gap:20px}.rf-next>div{display:flex;align-items:center;gap:12px;min-width:0}.rf-next strong{font-size:15px;line-height:1.6;font-weight:550}.rf-next>button{flex-shrink:0}.rf-status{display:inline-block;white-space:nowrap;border-radius:4px;background:#edf4ff;color:#0066ff;padding:3px 8px;font-size:12px;line-height:1.5;font-weight:500}
.rf-steps{display:flex;padding:20px 0 19px;margin:0 0 20px;list-style:none;border-bottom:1px solid #edf0f3;gap:20px}.rf-steps li{position:relative;flex:1;display:flex;align-items:center;gap:7px;font-size:12px;color:#96999f;white-space:nowrap}.rf-steps span{display:grid;place-items:center;border:1px solid #dce1e8;border-radius:50%;width:22px;height:22px;font-size:11px;flex-shrink:0}.rf-steps li.current{color:#0066ff;font-weight:550}.rf-steps li.current span{background:#0066ff;color:#fff;border-color:#0066ff}.rf-steps li.done{color:#4e6d91}.rf-steps li.done span{background:#edf4ff;border-color:#d8e7fb;color:#0066ff}
.rf-overview{display:grid;grid-template-columns:1fr 1.4fr 1fr auto;gap:18px;align-items:center}.rf-overview span{display:block;font-size:12px;color:#858990;margin-bottom:3px}.rf-overview strong{font-size:14px;font-weight:550;overflow-wrap:anywhere}.rf-request{margin:14px 0 22px;color:#5b616b;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
.rf-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.rf-check{border:1px solid #e5e8ed;border-radius:8px;padding:16px}.rf-check>div{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px}.rf-check>div>span{font-size:11px}.rf-check p{color:#74777c;font-size:12px;min-height:36px;line-height:1.6;margin:9px 0 14px;overflow-wrap:anywhere}.rf-check button{width:100%;font-size:12px!important}
.rf-muted{color:#74777c;font-size:12px}.rf-recheck{color:#ad6a14;font-size:12px}.rf-missing{background:#fffaf1;border-left:3px solid #dfb366;padding:12px 15px;margin-top:18px;font-size:12px;color:#795c2f}.rf-missing strong{font-weight:550}.rf-missing ul{padding-left:18px;margin:6px 0 0}.rf-summary{margin-top:22px;padding:0 0 20px;border-bottom:1px solid #edf0f3}.rf-summary ul{padding-left:18px;margin:9px 0;font-size:13px;line-height:1.9;color:#505762}.rf-summary li{overflow-wrap:anywhere;white-space:pre-wrap}.rf-summary>p{margin:10px 0 0;font-size:12px;color:#858990}
.rf-following{margin:0}.rf-following>section{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 0;border-bottom:1px solid #edf0f3}.rf-following>section>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;min-width:0}.rf-following h3{font-size:14px}.rf-following p{margin:0;font-size:12px;color:#74777c;flex-basis:100%;overflow-wrap:anywhere}.rf-following button{flex-shrink:0}.rf-history{margin-top:22px;color:#74777c;font-size:12px}.rf-history summary{cursor:pointer}.rf-history>div{padding:10px 0;border-bottom:1px solid #edf0f3}.rf-history b{color:#505762;margin-right:12px}.rf-history p{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.rf-editor-heading{display:flex;align-items:center;gap:22px;margin:0 0 16px}.rf-editor-heading h3{font-size:17px}.rf-editor-note{padding:11px 14px;background:#f6f8fb;border-radius:6px;color:#697383;font-size:12px;line-height:1.8;margin:0 0 20px}.rf-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 20px}.rf-field{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#4d535c;min-width:0}.rf-field>span{line-height:1.6}.rf-field i{font-style:normal;color:#ae4136}.rf-wide{grid-column:1/-1}.rf-dialog .rf-field input,.rf-dialog .rf-field select,.rf-dialog .rf-field textarea,.rf-dialog .rf-share-text{width:100%;font:inherit;font-size:14px;line-height:1.6;border:1px solid #dfe2e7;border-radius:6px;padding:9px 11px;min-height:40px;background:#fff;color:#30343b;box-shadow:none}.rf-dialog .rf-field textarea{resize:vertical;min-height:80px}.rf-dialog input:focus-visible,.rf-dialog select:focus-visible,.rf-dialog textarea:focus-visible{outline:2px solid #9bc2ff;outline-offset:1px}.rf-dialog input::placeholder{color:#9aa0a9;font-size:12px}.rf-draft-status{font-size:12px;color:#858990;margin:16px 0 0}.rf-form-actions{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #edf0f3;padding-top:18px;margin-top:18px;gap:16px}
.rf-message,.rf-live{border:1px solid #d4e4fc;background:#f4f8ff;border-radius:6px;padding:11px 14px;margin:0 0 16px;color:#345a8c;font-size:13px;line-height:1.7}.rf-message.is-error{background:#fff6f4;border-color:#efd0c6;color:#a24b36}.rf-message>button{margin-left:12px}.rf-live button{margin-left:8px}.rf-conflict{padding:14px 16px;background:#fffaf1;border:1px solid #edddbf;border-radius:7px;margin-bottom:20px;color:#765a30;font-size:12px}.rf-conflict p{margin:6px 0 10px}.rf-conflict-table>div{display:grid;grid-template-columns:1fr;gap:4px;border-top:1px solid #eadfc9;padding:10px 0;white-space:pre-wrap;overflow-wrap:anywhere}.rf-conflict-table button{justify-self:start}.rf-conflict details{margin:10px 0}.rf-conflict summary{cursor:pointer}.rf-ack{display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.7;margin:16px 0}.rf-dialog .rf-ack input{width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:3px 0 0;accent-color:#0066ff}
.rf-read-values{margin:14px 0}.rf-read-values>div{display:grid;grid-template-columns:190px minmax(0,1fr);gap:18px;border-bottom:1px solid #edf0f3;padding:11px 0}.rf-read-values dt{color:#858990}.rf-read-values dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.rf-dialog .rf-share-text{display:block;resize:vertical;min-height:320px;font-size:13px;white-space:pre-wrap;background:#fafbfc}.rf-share-actions{display:flex;gap:10px;justify-content:flex-end}.rf-image-downloads{display:flex;flex-direction:column;gap:14px;align-items:center;margin-top:20px}.rf-image-downloads img{width:min(100%,420px);height:auto;border:1px solid #e5e6e8;border-radius:6px}.rf-image-downloads a{text-decoration:none}
@media(max-width:760px){.rf-dialog{width:calc(100vw - 16px);max-height:96dvh;padding:0 17px 20px;border-radius:10px}.rf-dialog-heading{padding-top:18px;gap:10px}.rf-dialog-heading h2{font-size:22px}.rf-next{align-items:flex-start;gap:10px}.rf-next>div{align-items:flex-start;flex-direction:column;gap:7px}.rf-next strong{font-size:14px}.rf-next>button{font-size:12px;padding:8px 10px}.rf-steps{gap:7px;overflow:auto;padding:18px 0;scrollbar-width:thin}.rf-steps li{flex-direction:column;align-items:center;gap:5px;font-size:11px;flex:1;min-width:65px}.rf-overview{grid-template-columns:1fr 1fr;gap:12px}.rf-overview button{justify-self:start}.rf-check-grid{grid-template-columns:1fr}.rf-check{padding:13px 15px}.rf-check p{min-height:0;margin:7px 0 10px}.rf-check button{width:auto}.rf-fields{grid-template-columns:1fr;gap:16px}.rf-wide{grid-column:auto}.rf-read-values>div{grid-template-columns:1fr;gap:4px}.rf-list-heading{padding:16px;gap:12px}.rf-list-heading>button{font-size:12px;padding:7px 9px}.rf-list-heading p{font-size:12px}.rf-cases .rf-case-row{grid-template-columns:minmax(90px,1fr) auto 10px;gap:10px;padding:13px 16px}.rf-case-next{grid-column:1/-1;grid-row:2;font-size:12px}.rf-case-row small{max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rf-draft-tray{padding:11px 16px}.rf-list-empty{padding:0 16px 16px}.rf-following>section{gap:10px}.rf-following>section>div{gap:4px 9px}.rf-following button{font-size:12px!important}.rf-summary{margin-top:18px}}
@media(prefers-reduced-motion:reduce){.rf-dialog,.rf-cases,.rf-dialog *,.rf-cases *{scroll-behavior:auto!important;transition:none!important}}

.rw-refund-source{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #dce6f5;border-radius:7px;background:#f7faff;margin:12px 0;color:#5d6f85;font-size:12px;line-height:1.6}.rw-refund-source p{margin:0}.rw-refund-source button{flex-shrink:0;font-size:12px}.rf-dialog [readonly][data-fixed]{background:#f5f6f8;color:#74777c}.rf-dialog [data-fixed]:disabled{opacity:1}@media(max-width:600px){.rw-refund-source{align-items:flex-start;flex-direction:column;gap:8px}}

.rf-dialog .rf-next>.rf-next-actions{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:9px;flex-shrink:0}.rf-next-actions>button{flex-shrink:0}@media(max-width:760px){.rf-next{flex-wrap:wrap}.rf-dialog .rf-next>.rf-next-actions{width:100%;justify-content:flex-start;gap:8px}.rf-next-actions>button{font-size:12px!important;padding:8px 10px!important}}
/* Keep the sheet close action at the top right, including compact layouts. */
.rf-dialog .rf-dialog-heading{flex-direction:row}.rf-dialog-heading>div{min-width:0}.rf-dialog .rf-case-id{letter-spacing:.3px;line-height:1.5}
