/* v0.28 — payment semantics + sidebar stability */
#mainNav .nav-item{
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
}
#mainNav .nav-item .nav-icon{
  flex:0 0 20px!important;
  width:20px!important;
  text-align:center!important;
}
#mainNav .nav-item>span:last-child{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  line-height:1.55!important;
}
#mainNav [data-route="payments"]{
  position:relative!important;
  transform:none!important;
}

.v27-payment-table{min-width:1800px!important}
.cpg-payments-table{min-width:1750px!important}
.v28-payment-type,.v28-stage,.v28-sea{
  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;
}
.v28-payment-type.down-payment{background:#edf6f1;color:#2f6f53;border-color:#cfe5da}
.v28-payment-type.balance{background:#f7f3e8;color:#7b6125;border-color:#e8dcc0}
.v28-payment-type.full-payment{background:#eef3fa;color:#355f8a;border-color:#d5e0ee}
.v28-payment-type.other{background:var(--notion-bg);color:var(--notion-muted)}

.v28-stage.dp-received,.v28-stage.full{background:#edf6f1;color:#2f6f53;border-color:#cfe5da}
.v28-stage.dp-pending,.v28-stage.no-dp,.v28-stage.payment-no-dp{background:#fbf4e8;color:#825e22;border-color:#ead8b8}
.v28-stage.unlinked{background:var(--notion-bg);color:var(--notion-muted)}
.v28-sea.yes{background:#edf6f1;color:#2f6f53;border-color:#cfe5da}
.v28-sea.no{background:#f8eded;color:#984b50;border-color:#eccfd1}
.v27-payment-note strong{font-weight:800}
.v27-payment-note b{font-weight:800;color:var(--notion-text)}
@media(max-width:900px){
  #mainNav .nav-item>span:last-child{font-size:12px!important}
  .v27-payment-table,.cpg-payments-table{min-width:1600px!important}
}

.v28-dp-tracker{padding:12px!important}
.v28-dp-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-bottom:9px
}
.v28-dp-head>div{display:grid;gap:2px}
.v28-dp-head strong{font-size:12px}
.v28-dp-head span{font-size:9.5px;color:var(--notion-muted)}
.v28-dp-table{width:100%;min-width:760px;border-collapse:collapse}
.v28-dp-table th,.v28-dp-table td{
  padding:8px 10px!important;border-bottom:1px solid var(--notion-border);
  font-size:10.5px!important;text-align:right
}
.v28-dp-table th{font-size:9.5px!important;color:var(--notion-muted)}
.v28-dp-table tbody tr:last-child td{border-bottom:0}
