.apr-heading{display:flex;justify-content:space-between;align-items:start;gap:8px}.apr-heading strong{font-size:12px}.apr-heading small{display:block;color:var(--muted,#756f68);font-size:10px;margin-top:2px}.apr-note{margin:5px 0;color:var(--muted,#756f68);font-size:10px;line-height:1.3}.apr-badge{display:inline-block;flex-shrink:0;padding:3px 6px;border-radius:4px;font-size:10px;font-weight:700;background:#fff3da;color:#87560f}.apr-badge.apr-ok{background:#e6f4ec;color:#147348}.apr-badge.apr-danger{background:#ffe9e5;color:#a83120}.apr-lines{margin:6px 0;font-size:11px}.apr-lines>div{display:grid;grid-template-columns:minmax(110px,30%) minmax(0,1fr);gap:6px;padding:3px 0;border-bottom:1px solid var(--line,#e4dbd1)}.apr-lines dt{color:var(--muted,#756f68)}.apr-lines dd{margin:0;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.apr-lines dd strong{overflow-wrap:anywhere;font-weight:600;user-select:text}.apr-lines [data-apr-copy]{flex-shrink:0;min-height:24px!important;height:24px;padding:1px 5px!important;font-size:10px!important}.apr-buttons{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0}.apr-buttons button,.apr-confirm button,.apr-edit button{min-height:30px;padding:4px 7px;font-size:11px}.apr-alert{font-size:11px;line-height:1.3;padding:6px 8px;margin:6px 0;border-left:3px solid #d18423;background:#fff5e6;color:#875114}.apr-current summary{font-size:11px;cursor:pointer}.apr-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px}.apr-confirm label{display:flex!important;align-items:center;gap:5px;font-size:11px}.apr-confirm input{min-height:0!important;width:auto!important}.apr-confirm p{flex-basis:100%;margin:0}.apr-edit{border-top:1px solid var(--line,#e4dbd1);padding-top:5px;margin-top:6px}.apr-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.apr-form-grid label{display:grid;gap:3px;font-size:10px;color:var(--muted,#756f68)}.apr-form-grid input,.apr-form-grid select{box-sizing:border-box;width:100%;min-width:0;min-height:30px;height:30px;padding:3px 6px;font:inherit;font-size:11px;border:1px solid var(--line,#dfd2c8);border-radius:5px;background:var(--paper,#fff);color:var(--ink,#29241f)}.apr-form-grid .apr-reason{grid-column:1/-1}.apr-form-grid [hidden]{display:none!important}.apr-profile{padding:12px!important}.apr-profile button{border:1px solid var(--line,#dfd2c8);border-radius:5px;color:inherit;background:var(--paper,#fff);cursor:pointer}.apr-profile .apr-lines{font-size:12px}.apr-profile .apr-note{font-size:11px}.apr-profile .apr-heading strong{font-size:14px}.bank-card[hidden]{display:none!important}html[data-theme="dark"] .apr-badge{background:#46351f;color:#f1c47c}html[data-theme="dark"] .apr-badge.apr-ok{background:#163e2c;color:#93d5ae}html[data-theme="dark"] .apr-badge.apr-danger{background:#48261f;color:#f3ac9d}html[data-theme="dark"] .apr-alert{background:#392d1e;color:#ecc68d}@media(max-width:680px){.apr-heading{flex-wrap:wrap}.apr-lines>div{grid-template-columns:100px minmax(0,1fr);gap:5px}.apr-lines dd{flex-wrap:wrap;gap:3px}.apr-form-grid{grid-template-columns:1fr}.apr-form-grid input,.apr-form-grid select{font-size:16px;min-height:44px;height:44px}.apr-buttons button,.apr-confirm button,.apr-edit button,.apr-lines [data-apr-copy]{min-height:40px!important;height:auto!important;font-size:12px!important}.apr-confirm label{font-size:12px}.apr-confirm input{min-width:20px;min-height:20px!important}.apr-note{font-size:11px}}

/* The legacy report dialog lays out bare dt/dd pairs as a two-column dl.
   Recipient lists contain complete div rows instead: never split those rows
   into the legacy 170px column or let copy labels shrink to single letters. */
:is(dialog,.apr-profile) dl.apr-lines{display:block;grid-template-columns:none;gap:0;width:100%;max-width:100%;min-width:0;padding:0}
:is(dialog,.apr-profile) .apr-lines>div{width:100%;min-width:0;grid-template-columns:minmax(110px,28%) minmax(0,1fr);align-items:center}
:is(dialog,.apr-profile) .apr-lines dd{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;gap:6px;width:100%;max-width:100%;min-width:0;margin:0;overflow-wrap:normal}
:is(dialog,.apr-profile) .apr-lines dd>strong{min-width:0;line-height:1.3;white-space:normal;word-break:normal;overflow-wrap:anywhere}
:is(dialog,.apr-profile) .apr-lines [data-apr-copy]{display:inline-flex;align-items:center;justify-content:center;justify-self:end;flex:0 0 auto;width:auto;min-width:max-content;max-width:none;white-space:nowrap;word-break:normal;overflow-wrap:normal}
@media(max-width:680px){
 :is(dialog,.apr-profile) .apr-lines>div{grid-template-columns:minmax(80px,28%) minmax(0,1fr);gap:5px;padding:3px 0}
 :is(dialog,.apr-profile) .apr-lines dt{font-size:10px;line-height:1.25;overflow-wrap:normal}
 :is(dialog,.apr-profile) .apr-lines dd{gap:5px}
}
@media(max-width:360px){
 :is(dialog,.apr-profile) .apr-lines>div{grid-template-columns:minmax(0,1fr);gap:1px}
}

.accounting-recipient-name{display:block;white-space:normal;overflow-wrap:anywhere;font-weight:500}
