/* TIAM v789 — Canonical Refund Core UI. Dense-safe RTL layout for square monitors and mobile. */
.t789-refund-form,.refund789-shell{display:grid;gap:14px;min-width:0}.t789-refund-loading{min-height:180px;display:grid;place-items:center;gap:10px}.t789-refund-identity,.refund789-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.t789-refund-identity>div,.refund789-kpis>div{min-width:0;border:1px solid #dce6ef;background:#f8fbfd;border-radius:13px;padding:10px 12px;display:grid;gap:4px}.t789-refund-identity small,.refund789-kpis small,.refund789-item-grid small{font-size:10.5px;color:#718598}.t789-refund-identity b,.refund789-kpis b,.refund789-item-grid b{font-size:12.5px;color:#173653;overflow-wrap:anywhere;word-break:break-word}.t789-refund-section,.refund789-summary,.refund789-lines,.refund789-history{min-width:0;border:1px solid #dbe5ef;background:#fff;border-radius:16px;padding:14px}.t789-refund-section>header,.refund789-lines>header,.refund789-history>header{margin-bottom:10px}.t789-refund-section h3,.refund789-lines h3,.refund789-history h3{margin:0;font-size:14px;color:#173653}.t789-refund-section p,.refund789-lines p{margin:3px 0 0;font-size:10.8px;line-height:1.8;color:#718598}.t789-refund-sources{display:grid;gap:8px}.t789-refund-source{min-width:0;display:grid;grid-template-columns:24px minmax(150px,1.5fr) minmax(130px,1fr) minmax(130px,1fr);gap:10px;align-items:center;border:1px solid #dce6ef;border-radius:13px;padding:10px;background:#fff;cursor:pointer}.t789-refund-source:has(input:checked){border-color:#77a9d6;background:#f4f9ff}.t789-refund-source.is-disabled{opacity:.55;cursor:not-allowed}.t789-refund-source input{width:17px;height:17px}.t789-refund-source span{min-width:0;display:grid;gap:3px}.t789-refund-source b{font-size:11.5px;overflow-wrap:anywhere}.t789-refund-source small{font-size:10px;color:#718598;overflow-wrap:anywhere}.t789-match{min-height:40px;padding:9px 11px;border-radius:11px;font-size:11px;line-height:1.8;font-weight:750}.t789-match.is-ok{background:#ecfdf5;color:#166534;border:1px solid #bbf7d0}.t789-match.is-danger{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.t789-match.is-unknown{background:#fffbeb;color:#92400e;border:1px solid #fde68a}.refund789-summary>header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}.refund789-summary>header>div:first-child{display:grid;gap:5px}.refund789-actions{display:flex;flex-wrap:wrap;gap:7px}.refund789-kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:12px}.refund789-reason{margin-top:10px;border-top:1px solid #edf1f5;padding-top:10px}.refund789-reason p{margin:3px 0;line-height:1.9;overflow-wrap:anywhere}.refund789-warning{margin-top:8px;border:1px solid #f6d69c;background:#fff8e8;border-radius:11px;padding:9px 11px;display:grid;gap:3px;color:#7c5313}.refund789-warning b{font-size:11px}.refund789-warning span{font-size:10.5px;line-height:1.8}.refund789-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:12px}.refund789-flow span{min-width:0;padding:8px;border-radius:9px;background:#f1f5f9;color:#64748b;font-size:10.5px;text-align:center;font-weight:800;overflow-wrap:anywhere}.refund789-flow span.is-current{background:#e9f4ff;color:#245e91}.refund789-item{border:1px solid #e0e7ef;border-radius:13px;padding:11px;margin-top:8px;min-width:0}.refund789-item>header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;flex-wrap:wrap}.refund789-item>header div{min-width:0;display:grid;gap:3px}.refund789-item>header b,.refund789-item>header small{overflow-wrap:anywhere}.refund789-match{display:inline-flex;align-items:center;min-height:26px;padding:4px 8px;border-radius:999px;font-size:9.8px;font-weight:850}.refund789-match.is-success{background:#ecfdf5;color:#166534}.refund789-match.is-danger{background:#fef2f2;color:#991b1b}.refund789-match.is-warning{background:#fffbeb;color:#92400e}.refund789-match.is-muted{background:#f1f5f9;color:#64748b}.refund789-item-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:9px}.refund789-item-grid>span{min-width:0;padding:8px;border-radius:9px;background:#f8fafc;display:grid;gap:3px}.refund789-history ol{list-style:none;margin:0;padding:0;display:grid;gap:8px}.refund789-history li{display:grid;grid-template-columns:10px 1fr;gap:8px}.refund789-history li>span{width:8px;height:8px;margin-top:7px;border-radius:50%;background:#4f86b5}.refund789-history li div{min-width:0;border-bottom:1px solid #edf1f5;padding-bottom:8px}.refund789-history p{margin:4px 0 0;line-height:1.8;overflow-wrap:anywhere}.refund789-empty{border:1px dashed #cbd5e1;border-radius:16px;padding:24px;text-align:center;background:#fff}.refund789-edit-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.refund789-edit-form .full,.refund789-edit-list,.refund789-edit-form .refund789-warning{grid-column:1/-1}.refund789-edit-list{display:grid;gap:7px}.refund789-edit-source{display:flex;gap:9px;align-items:center;border:1px solid #dce6ef;border-radius:10px;padding:9px}.refund789-edit-source span{min-width:0;display:grid}.refund789-edit-source b,.refund789-edit-source small{overflow-wrap:anywhere}
@media(max-width:1050px){.t789-refund-source{grid-template-columns:24px minmax(0,1fr) minmax(120px,.8fr)}.t789-source-origin{grid-column:2/-1}.refund789-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.refund789-item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.t789-refund-identity,.refund789-kpis,.refund789-item-grid,.refund789-flow,.refund789-edit-form{grid-template-columns:1fr}.t789-refund-source{grid-template-columns:24px minmax(0,1fr)}.t789-source-money,.t789-source-origin{grid-column:2}.refund789-edit-form .full,.refund789-edit-list,.refund789-edit-form .refund789-warning{grid-column:1}.t789-refund-section,.refund789-summary,.refund789-lines,.refund789-history{padding:11px}.refund789-actions{width:100%}.refund789-actions .btn{flex:1 1 140px}.refund789-flow span{text-align:right}}
