.dorrdb-transaction-management{max-width:100%;margin:0 auto}
.dorrdb-transaction-management .dorrdb-txn-search{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:18px 0}
.dorrdb-txn-search label{display:flex;flex-direction:column;gap:5px;font-weight:600;min-width:145px;flex:1 1 155px}
.dorrdb-txn-search input,.dorrdb-txn-search select{width:100%;min-height:39px;padding:7px;border:1px solid #aaa;border-radius:4px;background:#fff;color:#111}
.dorrdb-txn-search button,.dorrdb-txn-action button{background:#1765a3;border:0;border-radius:4px;padding:10px 15px;color:#fff;cursor:pointer;font-weight:700}
.dorrdb-txn-table-wrap{overflow:auto;max-width:100%}
.dorrdb-txn-table{border-collapse:collapse;width:100%;min-width:1080px;font-size:13px;background:#fff}
/* v0.1.43.3: the header and row lines match the My Caging Transactions table (.dorrdb-report in staff-ui.css): light blue-grey header, the theme's text colour, a line under each row. */
.dorrdb-txn-table th{background:#eef2f6;text-align:left;white-space:nowrap}
.dorrdb-txn-table th,.dorrdb-txn-table td{padding:9px 7px;border-bottom:1px solid #dde4ec;vertical-align:top}
.dorrdb-txn-table small{display:block;color:#555;line-height:1.4;margin-top:5px;font-size:12px}
.dorrdb-txn-table code{word-break:break-all;white-space:normal;font-size:11px}
.dorrdb-txn-action{min-width:150px;padding:5px 0;border-bottom:1px solid #ddd}
.dorrdb-txn-action summary{color:#17598c;font-weight:700;cursor:pointer}
.dorrdb-txn-action-form{margin-top:12px;display:flex;flex-direction:column;gap:10px}
.dorrdb-txn-action-form label{display:flex;flex-direction:column;gap:5px;font-weight:600}
.dorrdb-txn-action-form label.dorrdb-txn-confirm{display:block;font-weight:400}
.dorrdb-txn-action-form input[type=number],.dorrdb-txn-action-form textarea{width:100%;background:#fff;border:1px solid #888;border-radius:3px;color:#222;padding:7px}
.dorrdb-txn-action-form button{background:#a02121}
@media print{.dorrdb-txn-action,.dorrdb-txn-search{display:none!important}}

.dorrdb-txn-search label.dorrdb-txn-search-option{min-width:260px;flex:1 1 280px;display:flex;align-items:center;flex-direction:row;font-size:13px}
.dorrdb-txn-search-option input[type=checkbox]{width:auto;min-height:auto;margin-right:8px}
.dorrdb-txn-modal-backdrop{position:fixed;inset:0;z-index:999999;background:rgba(0,0,0,.55);display:flex;justify-content:center;align-items:center;padding:24px}
.dorrdb-txn-modal{max-width:600px;width:100%;background:white;color:#191919;border-radius:8px;box-shadow:0 12px 50px rgba(0,0,0,.3);padding:28px}
.dorrdb-txn-modal h2{margin:0 0 15px;color:#161616}
.dorrdb-txn-modal a.dorrdb-txn-webtrx-link{display:inline-block;background:#1964a2;color:#fff;padding:12px 18px;margin:8px 12px 0 0;text-decoration:none;border-radius:4px;font-weight:bold}
.dorrdb-txn-modal button{padding:10px;background:#f4f4f4;border:1px solid #999;border-radius:4px;cursor:pointer}
@media print{.dorrdb-txn-modal-backdrop{display:none!important}}

/* Clearly separate transaction sources while retaining the compact tables. */
.dorrdb-transaction-management .dorrdb-txn-section-heading{margin:42px 0 18px!important;padding-top:4px;line-height:1.3}

/* Quiet, compact transaction search: search terms on row one, options + dates + action on row two. */
.dorrdb-txn-search .dorrdb-txn-search-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;width:100%}
.dorrdb-txn-search .dorrdb-txn-search-toggles{display:flex;flex-direction:column;justify-content:center;gap:9px;flex:1 1 235px;min-width:235px;padding:5px 0}
.dorrdb-txn-search .dorrdb-txn-search-toggles label.dorrdb-txn-search-option{min-width:0;display:flex;flex-direction:row;align-items:center;gap:9px;flex:none;font-weight:500;margin:0}
.dorrdb-txn-search .dorrdb-txn-search-toggles input[type=checkbox]{margin:0;width:17px;height:17px;accent-color:#1765a3}
.dorrdb-txn-search .dorrdb-txn-search-filters>label{flex:0 1 158px;min-width:142px}
.dorrdb-txn-search .dorrdb-txn-search-filters>button{flex:0 0 auto;min-height:39px}
.dorrdb-txn-table .dorrdb-txn-source-label{font-size:11px;font-weight:700;letter-spacing:.01em;color:#365c80}
@media(max-width:700px){.dorrdb-txn-search .dorrdb-txn-search-filters>label{flex:1 1 140px}.dorrdb-txn-search .dorrdb-txn-search-filters>button{flex:1 1 100%}}

/* High-visibility, group-specific instruction for manual WebTRX reconciliation. */
.dorrdb-txn-manual-warning,.dorrdb-txn-modal .dorrdb-txn-manual-warning{color:#b91c1c!important;font-weight:700;line-height:1.5;margin:12px 0!important}

/* Cumulative partial refunds stay visible under the original charge. */
.dorrdb-txn-table small.dorrdb-txn-refunded{color:#b91c1c!important;font-weight:700;margin-top:3px;white-space:nowrap}

/* v0.1.42.1: ten columns without a sideways scroll bar. Donor / contact is about a fifth narrower and long emails wrap; Actions is narrower. */
.dorrdb-txn-table th:nth-child(3),.dorrdb-txn-table td:nth-child(3){width:182px;overflow-wrap:anywhere}
