html.transaction-modal-open,html.transaction-modal-open body{overflow:hidden}
.customer-records-drawer.is-suspended{display:none!important}
#modalMask[data-modal-presentation^="transaction-"]{z-index:130;overflow:hidden}
#modalMask[data-modal-presentation^="transaction-"]>.modal{display:flex;flex-direction:column;max-height:calc(100dvh - 32px);overflow:hidden}
#modalMask[data-modal-presentation^="transaction-"] .modal-head,#modalMask[data-modal-presentation^="transaction-"] .modal-foot{flex:0 0 auto;background:#fff}
#modalMask[data-modal-presentation^="transaction-"] .modal-body{min-height:0;overflow:auto;overscroll-behavior:contain}
#modalMask[data-modal-presentation="transaction-history"]>.modal{width:min(980px,calc(100vw - 32px))}
#modalMask[data-modal-presentation="transaction-queue"]>.modal{width:min(920px,calc(100vw - 32px));height:min(720px,calc(100dvh - 32px));border-radius:16px;box-shadow:0 20px 56px rgba(15,23,42,.24)}
#modalMask[data-modal-presentation="transaction-queue"] .modal-body{display:flex;flex:1 1 auto;overflow:hidden}
#modalMask[data-modal-presentation="transaction-void"]>.modal{width:min(560px,calc(100vw - 32px));border-radius:16px;box-shadow:0 20px 56px rgba(15,23,42,.24)}
.customer-records-order-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}
.customer-records-order-actions .btn{margin:0}
.tx-history-layout{display:grid;gap:14px}
.tx-history-section{border:1px solid var(--line);border-radius:12px;background:#fff;padding:14px}
.tx-history-section>h4{margin:0 0 11px;color:#243a63;font-size:13px}
.tx-summary-grid,.tx-void-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:9px}
.tx-summary-card{min-width:0;border:1px solid #dce4f2;border-radius:9px;background:#f8faff;padding:10px 12px}
.tx-summary-card small,.tx-summary-card b{display:block;overflow-wrap:anywhere}
.tx-summary-card small{margin-bottom:5px;color:var(--muted);font-size:9px}
.tx-summary-card b{font-size:12px;line-height:1.55}
.tx-history-state{margin-top:10px;line-height:1.7}
.tx-history-events{display:grid;gap:8px}
.tx-history-event{display:grid;grid-template-columns:minmax(145px,.8fr) minmax(110px,.6fr) minmax(140px,.8fr) minmax(220px,1.8fr);gap:9px;border-left:3px solid #b8c9ef;border-radius:7px;background:#f8fafc;padding:10px 12px}
.tx-history-event>div{min-width:0}
.tx-history-event small,.tx-history-event b,.tx-history-event span{display:block;overflow-wrap:anywhere}
.tx-history-event small{margin-bottom:4px;color:var(--muted);font-size:9px}
.tx-history-event b,.tx-history-event span{font-size:11px;line-height:1.55}
.tx-change-groups{display:grid;gap:9px}
.tx-change-group{border:1px solid #e2e7f0;border-radius:9px;background:#fbfcff;padding:10px 12px}
.tx-change-group header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:7px}
.tx-change-group header b{font-size:11px}.tx-change-group header small{color:var(--muted);font-size:9px;text-align:right}
.tx-change-row{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(0,1.3fr);gap:10px;padding:7px 0;border-top:1px solid #edf0f5}
.tx-change-row b,.tx-change-row span{font-size:10px;line-height:1.6;overflow-wrap:anywhere}
.tx-change-row span{color:#4d5b70}
.tx-history-section details{margin-top:10px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:9px 11px}
.tx-history-section details>summary{cursor:pointer;color:#315bea;font-size:10px;font-weight:750}
.tx-history-snapshot{margin-top:9px;padding-top:9px;border-top:1px solid #edf0f5}
.tx-history-snapshot:first-of-type{border-top:0}
.tx-history-snapshot>header{display:flex;justify-content:space-between;gap:8px;margin-bottom:8px}
.tx-history-snapshot>header b,.tx-history-snapshot>header small{font-size:10px;overflow-wrap:anywhere}
.tx-history-snapshot>header small{color:var(--muted);text-align:right}
.tx-history-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0}
.tx-history-fields .customer-records-detail-cell{min-width:0;border:1px solid var(--line);border-radius:8px;background:#fbfcff;padding:8px 10px}
.tx-history-fields dt{margin:0 0 4px;color:var(--muted);font-size:9px}.tx-history-fields dd{margin:0;font-size:10px;line-height:1.55;overflow-wrap:anywhere;white-space:pre-wrap}
.tx-history-empty{margin:0;color:var(--muted);font-size:10px;line-height:1.7}
.tx-queue-layout{display:flex;flex:1 1 auto;flex-direction:column;width:100%;min-height:0}
.tx-queue-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;flex:0 0 auto;padding:0 0 12px;border-bottom:1px solid var(--line)}
.tx-queue-tab{display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border:1px solid #d7deea;border-radius:10px;background:#f8fafc;color:#4d5b70;font:inherit;cursor:pointer}
.tx-queue-tab:hover{border-color:#aebbd0;background:#fff}.tx-queue-tab:focus-visible{outline:3px solid rgba(49,91,234,.2);outline-offset:2px}
.tx-queue-tab.is-active{border-color:#315bea;background:#eef3ff;color:#203f9d;box-shadow:inset 0 0 0 1px rgba(49,91,234,.08)}
.tx-queue-tab span{font-size:12px;font-weight:750}.tx-queue-tab b{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 7px;border-radius:999px;background:#fff;font-size:11px}
.tx-queue-records{display:grid;align-content:start;gap:10px;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 4px 2px 0}
.tx-queue-card{border:1px solid #dfe4ec;border-radius:12px;background:#fff;padding:13px 14px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.tx-queue-card>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.tx-queue-kind{font-size:13px;font-weight:800;color:#243a63}
.tx-queue-status{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:999px;padding:4px 9px;font-size:10px;font-weight:750;white-space:nowrap}
.tx-queue-status.is-pending{border-color:#f1bd6b;background:#fff4df;color:#9a5700}.tx-queue-status.is-approved{border-color:#9dd5b3;background:#eaf8ef;color:#176b37}
.tx-queue-status.is-rejected{border-color:#efaaaa;background:#fff0f0;color:#a12626}.tx-queue-status.is-muted{border-color:#d4d9e1;background:#f3f4f6;color:#5e6878}
.tx-queue-status.is-voided{border-color:#e6b4b4;background:#fbeeee;color:#8b3c3c}
.tx-queue-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tx-queue-fact{min-width:0;border:1px solid #edf0f4;border-radius:8px;background:#fbfcfd;padding:8px 10px}
.tx-queue-fact small,.tx-queue-fact span{display:block;overflow-wrap:anywhere}.tx-queue-fact small{margin-bottom:4px;color:var(--muted);font-size:9px}.tx-queue-fact span{font-size:11px;line-height:1.55;color:#2d3748}
.tx-queue-actions{display:flex;justify-content:flex-end;margin-top:10px}.tx-queue-actions .btn{margin:0}
.tx-queue-empty{margin:0;border:1px dashed #cfd6e2;border-radius:12px;background:#f8fafc;padding:28px 18px;text-align:center;color:var(--muted);font-size:12px}
.tx-request-extra{margin:12px 0;border:1px solid #dfe4ec;border-radius:12px;background:#fff;padding:13px}
.tx-request-extra>h4{margin:0 0 10px;color:#243a63;font-size:12px}
.tx-void-summary{margin-bottom:12px}
.tx-void-reminder{margin:0 0 12px;line-height:1.75}
#modalMask[data-modal-presentation="transaction-void"] #transactionVoidForm{gap:11px}
#modalMask[data-modal-presentation="transaction-void"] #transactionVoidForm textarea{min-height:96px;resize:vertical}
@media(max-width:760px){
  #modalMask[data-modal-presentation^="transaction-"]{padding:10px}
  #modalMask[data-modal-presentation^="transaction-"]>.modal{width:100%;max-height:calc(100dvh - 20px)}
  #modalMask[data-modal-presentation="transaction-queue"]>.modal{height:calc(100dvh - 20px)}
  .tx-queue-tabs{gap:5px}.tx-queue-tab{min-height:40px;padding:5px}.tx-queue-tab span{font-size:10px}.tx-queue-tab b{min-width:20px;height:20px;padding:0 5px;font-size:9px}
  .tx-queue-facts{grid-template-columns:1fr 1fr}.tx-queue-fact:last-child:nth-child(odd){grid-column:1/-1}
  .tx-history-event{grid-template-columns:1fr 1fr}.tx-history-event>div:last-child{grid-column:1/-1}
  .tx-history-fields{grid-template-columns:1fr}.tx-change-row{grid-template-columns:1fr;gap:2px}
}
