/* v0.29 — payment semantics + hard layout containment */
#app,.workspace,.view,.v27-payments-page,.cpg-page,.cpg-body,.cpg-grid,.cpg-section{
  min-width:0!important;
}
.workspace,.view{
  max-width:100%!important;
}
.view{
  overflow-x:clip!important;
}
.sidebar{
  position:sticky!important;
  z-index:40!important;
  background:var(--sidebar)!important;
}
#mainNav{
  min-width:0!important;
  overflow-x:hidden!important;
}
#mainNav .nav-item{
  max-width:100%!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
#mainNav .nav-item>span:last-child{
  display:block!important;
  max-width:calc(100% - 26px)!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

.v27-payment-table-wrap,
.cpg-page .table-wrap{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  overscroll-behavior-x:contain;
  position:relative;
  z-index:0;
}
.v27-payment-table,.cpg-payments-table{
  width:max-content!important;
  max-width:none!important;
}
.v27-payments-page>*,
.cpg-body>*{
  max-width:100%!important;
}
.v29-account{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:3px 7px;
  border:1px solid var(--notion-border);
  border-radius:999px;
  font-size:9.5px;
  font-weight:700;
  line-height:1.35;
  white-space:nowrap;
}

.v29-account.full{
  background:#edf6f1;
  color:#2f6f53;
  border-color:#cfe5da;
}
.v29-account.partial{
  background:#f7f3e8;
  color:#7b6125;
  border-color:#e8dcc0;
}
.v29-account.pending-transfer{
  background:#eef3fa;
  color:#355f8a;
  border-color:#d5e0ee;
}
.v29-account.unpaid{
  background:#f8eded;
  color:#984b50;
  border-color:#eccfd1;
}
.v29-account.unlinked{
  background:var(--notion-bg);
  color:var(--notion-muted);
}
.v28-stage.dp-received{
  background:#edf6f1!important;
  color:#2f6f53!important;
  border-color:#cfe5da!important;
}
.v28-stage.dp-pending{
  background:#eef3fa!important;
  color:#355f8a!important;
  border-color:#d5e0ee!important;
}
.v28-stage.no-dp{
  background:#f8eded!important;
  color:#984b50!important;
  border-color:#eccfd1!important;
}

.v28-stage.dp-unknown{
  background:var(--notion-bg)!important;
  color:var(--notion-muted)!important;
  border-color:var(--notion-border)!important;
}
.v28-sea.arrived{
  background:#edf6f1!important;
  color:#2f6f53!important;
  border-color:#cfe5da!important;
}
