/* BHA Exchange V17. Compact desktop, proportional fonts, quiet focus, one-row toolbar. */
body.bha-exchange-app #app{--v17-text:clamp(11px,.70vw,13px);--v17-label:clamp(10px,.64vw,12px)}
body.bha-exchange-app #app .topbar-title strong{font-size:clamp(12px,.85vw,15px)!important}
body.bha-exchange-app #app .exchange-nav-parent strong,body.bha-exchange-app #app #nav button{font-size:clamp(11px,.76vw,13px)!important}
body.bha-exchange-app #app .exchange-nav-parent,body.bha-exchange-app #app #nav button{min-height:35px!important;padding-block:6px!important}
body.bha-exchange-app #app.is-transactions form.report-filter#exchange-filter.compact-filter-bar{
  display:grid!important;
  grid-template-columns:minmax(70px,.65fr) minmax(70px,.65fr) minmax(120px,1fr) minmax(120px,1fr) minmax(100px,.85fr) minmax(108px,.95fr) minmax(250px,2.1fr)!important;
  gap:6px!important;align-items:end!important;padding:8px 10px!important;margin-bottom:6px!important;
}
body.bha-exchange-app #app.is-transactions #exchange-filter.compact-filter-bar>label{font-size:var(--v17-label)!important;min-width:0!important}
body.bha-exchange-app #app.is-transactions #exchange-filter.compact-filter-bar :is(input,select){min-height:34px!important;height:34px!important;font-size:var(--v17-text)!important;font-weight:600!important}
body.bha-exchange-app #app.is-transactions #exchange-filter.compact-filter-bar .exchange-filter-actions{grid-column:auto!important;align-self:end!important;display:flex!important;flex-direction:row!important;gap:6px!important;justify-content:flex-end!important;min-width:0!important}
body.bha-exchange-app #app.is-transactions #exchange-filter.compact-filter-bar .exchange-filter-actions button{min-height:34px!important;height:34px!important;padding:5px 9px!important;font-size:clamp(10px,.66vw,12px)!important;white-space:nowrap!important;border-radius:7px!important;min-width:0!important}
body.bha-exchange-app #app.is-transactions #exchange-result>.panel{min-height:0!important}
body.bha-exchange-app #app.is-transactions .exchange-table th{font-size:clamp(10px,.7vw,12px)!important;padding:6px 8px!important}
body.bha-exchange-app #app.is-transactions .exchange-table td{font-size:var(--v17-text)!important;font-weight:500!important;padding:6px 8px!important;line-height:1.3!important}
body.bha-exchange-app #app.is-transactions .exchange-table th:first-child,body.bha-exchange-app #app.is-transactions .exchange-table td:first-child{min-width:108px!important;width:108px!important;max-width:108px!important;box-sizing:border-box!important}
body.bha-exchange-app #app.is-transactions .v5-demo-serial{font-size:11px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;white-space:nowrap!important}
body.bha-exchange-app #app.is-transactions .v5-demo-serial b{font-size:8px!important;padding:2px 4px!important;letter-spacing:0!important;white-space:nowrap!important}
body.bha-exchange-app #app.is-transactions .exchange-row-actions button{font-size:10px!important;padding:4px 7px!important;min-height:27px!important}
body.bha-exchange-app #app .exchange-table tr.v17-saved-record td{background:#f1f9f6!important;box-shadow:none!important;border-top:0!important;border-bottom:1px solid #dcece6!important;outline:0!important}
body.bha-exchange-app #app .exchange-table tr.v17-saved-record td:first-child{border-left:3px solid #299c80!important}
body.bha-exchange-app #app .exchange-table tr.v17-saved-record td:not(:first-child){border-left:0!important}
body.bha-exchange-app #app tr.v15-recent-record,body.bha-exchange-app #app tr.v15-recent-record td{box-shadow:none!important;border-left-color:transparent!important}
body.bha-exchange-app #app .v17-recent-chip{font-size:10px;font-weight:800;color:#267a62;background:#eaf8f2;border-radius:6px;padding:4px 7px;margin-left:8px;white-space:nowrap}
body.bha-exchange-app #app.is-transactions .exchange-totals-bar{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important;padding:7px!important}
body.bha-exchange-app #app.is-transactions .exchange-total-card{min-width:0!important;padding:8px 9px!important;border-radius:8px!important;overflow:hidden!important}
body.bha-exchange-app #app.is-transactions .exchange-total-card small{font-size:10px!important;line-height:1.2!important;letter-spacing:0!important}
body.bha-exchange-app #app.is-transactions .exchange-total-card strong{font-size:clamp(12px,.9vw,15px)!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:break-word!important;margin-top:4px!important}
body.bha-exchange-app dialog.v5-demo-dialog .v5-modal-actions{justify-content:flex-end!important}
body.bha-exchange-app dialog.v5-demo-dialog .v5-modal-actions-right{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;margin-left:auto!important;flex-wrap:nowrap!important}
body.bha-exchange-app dialog.v5-demo-dialog .v5-modal-actions-right button{font-size:clamp(11px,.8vw,13px)!important;padding:8px 12px!important;min-height:36px!important;white-space:nowrap!important}
@media(max-width:1150px){
 body.bha-exchange-app #app.is-transactions form.report-filter#exchange-filter.compact-filter-bar{grid-template-columns:repeat(4,minmax(120px,1fr))!important}
 body.bha-exchange-app #app.is-transactions .exchange-filter-actions{grid-column:span 2!important}
 body.bha-exchange-app #app.is-transactions .exchange-totals-bar{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:780px){
 body.bha-exchange-app #app.is-transactions form.report-filter#exchange-filter.compact-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.bha-exchange-app #app.is-transactions .exchange-filter-actions{grid-column:1/-1!important;justify-content:stretch!important}
 body.bha-exchange-app #app.is-transactions .exchange-filter-actions button{flex:1!important}
 body.bha-exchange-app #app.is-transactions .exchange-totals-bar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.bha-exchange-app dialog.v5-demo-dialog .v5-modal-actions-right{gap:5px!important}
 body.bha-exchange-app dialog.v5-demo-dialog .v5-modal-actions-right button{padding:7px 8px!important;font-size:10px!important}
}
@media print{body.bha-exchange-app #print-area :is(table,th,td){font-size:inherit}}
