/* BHA ERP V277 - unified rental income and transaction visibility */
.v277-status{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:4px 9px;
  border-radius:999px;
  font-size:10px;
  font-weight:850;
  background:#edf3fa;
  color:#38536f;
  white-space:nowrap;
}
.v277-status.ok{background:#e7f7ee;color:#207447}
.v277-status.warn{background:#fff4df;color:#93621b}
.v277-status.bad{background:#fff0f0;color:#a93f3f}
.v277-status.info{background:#eef3ff;color:#315fc6}
.v277-tx-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:0 0 12px;
}
.v277-tx-kpis article{
  border:1px solid #dfe7f0;
  border-radius:10px;
  background:#fff;
  padding:12px 13px;
  min-width:0;
}
.v277-tx-kpis span{
  display:block;
  color:#7a8ca1;
  font-size:9px;
  font-weight:850;
  text-transform:uppercase;
}
.v277-tx-kpis b{
  display:block;
  margin-top:4px;
  color:#183657;
  font-size:16px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.v277-tx-filter{
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(180px,.8fr) minmax(180px,.8fr) minmax(190px,.8fr);
  gap:9px;
  align-items:end;
  margin:0 0 12px;
  padding:12px;
  border:1px solid #dfe7f0;
  border-radius:11px;
  background:#f8fbff;
}
.v277-tx-filter label{
  display:grid;
  gap:5px;
  color:#657a92;
  font-size:9px;
  font-weight:850;
}
.v277-tx-filter input,
.v277-tx-filter select{
  height:36px;
  border:1px solid #ccd9e8;
  border-radius:8px;
  background:#fff;
  color:#183657;
  padding:0 9px;
}
.v277-link-cell small,
.v277-muted{
  display:block;
  color:#8191a5;
  font-size:10px;
  margin-top:3px;
}
.v277-money-in{color:#21774b;font-weight:850}
.v277-money-out{color:#b83e43;font-weight:850}
.v277-missing{
  background:#fff9f0!important;
}
@media(max-width:1050px){
  .v277-tx-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v277-tx-filter{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  .v277-tx-kpis,.v277-tx-filter{grid-template-columns:1fr}
}

/* Role / new-user modal alignment repair */
#v272-new-user fieldset{
  grid-column:1 / -1;
  margin:0;
  padding:14px;
  border:1px solid #d8e3ef;
  border-radius:10px;
  background:#f8fbff;
}
#v272-new-user fieldset legend{
  padding:0 6px;
  color:#51677f;
  font-size:11px;
  font-weight:850;
}
#v272-new-user fieldset label{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  min-height:34px;
  margin:4px 0;
  color:#2d4662;
  font-size:12px;
  font-weight:800;
}
#v272-new-user fieldset input[type="checkbox"],
.v272-company-check input[type="checkbox"]{
  width:16px;
  height:16px;
  margin:0;
  flex:0 0 auto;
}
.v272-company-check{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  margin:3px 0!important;
  white-space:normal!important;
}
