/* ===== TRAI PRICING BREAKDOWN PANEL (PR508) ===== */
.tpb-panel {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,26,46,0.6);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  overflow-y: auto;
}

.tpb-wrap {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 700px;
  padding: 28px 28px 20px;
  box-shadow: 0 12px 60px rgba(0,0,0,0.22);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-sizing: border-box;
}

.tpb-header {
  margin-bottom: 20px;
}
.tpb-title {
  font-size: 18px;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 2px;
}
.tpb-bid-ref {
  font-size: 13px;
  color: #7A7974;
  margin-bottom: 6px;
}
.tpb-disclaimer {
  font-size: 11px;
  color: #BAB9B4;
}

.tpb-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7A7974;
  margin: 18px 0 8px;
}

.tpb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 4px;
}
.tpb-table thead th {
  background: #F7F6F2;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7A7974;
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid #D4D1CA;
}
.tpb-table thead th:not(:first-child) { text-align: right; }
.tpb-td {
  padding: 7px 10px;
  border-bottom: 1px solid #F0EFEC;
  color: #28251D;
}
.tpb-num { text-align: right; font-variant-numeric: tabular-nums; }
.tpb-sub { font-weight: 600; }
.tpb-bold-row .tpb-td { font-weight: 700; background: #F7F6F2; }
.tpb-final-row .tpb-td {
  font-weight: 700;
  font-size: 15px;
  color: #1A1A2E;
  background: #1A1A2E;
  color: #fff;
}

/* Margin health */
.tpb-health {
  margin: 16px 0 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.tpb-health-ok   { background: #E8F5E2; color: #437A22; border: 1px solid #437A22; }
.tpb-health-warn { background: #FCE4EC; color: #A12C7B; border: 1px solid #A12C7B; }

.tpb-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.tpb-close-btn {
  background: none;
  border: 1px solid #D4D1CA;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  color: #28251D;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.tpb-close-btn:hover { background: #F0EFEC; }

@media print {
  .tpb-panel { position: static; background: none; padding: 0; }
  .tpb-wrap  { box-shadow: none; max-height: none; }
  .tpb-actions { display: none; }
}
