/* Billing / my account — match tenants & packages admin UI */

.ps-ba-page {
  margin: 0 0 32px;
}

.ps-ba-hero,
.ps-ba-card,
.ps-ba-pay {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 10px 28px rgba(14, 159, 110, 0.06);
}

.ps-ba-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 24px 22px 28px;
  margin-bottom: 16px;
  overflow: hidden;
}

.ps-ba-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: #0e9f6e;
}

.ps-ba-hero__left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.ps-ba-hero__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #0e9f6e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(14, 159, 110, 0.35);
}

.ps-ba-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0e9f6e;
  margin: 0 0 4px;
}

.ps-ba-hero__title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.ps-ba-hero__sub {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
}

.ps-ba-hero__sub a {
  color: #0e9f6e;
  font-weight: 600;
}

.ps-ba-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 18px;
  font-weight: 800;
}

.ps-ba-price small {
  font-size: 12px;
  font-weight: 600;
  color: #059669;
}

.ps-ba-pay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.ps-ba-pay__label {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px;
}

.ps-ba-pay__meta {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.ps-ba-pay .btn {
  border-radius: 10px;
  font-weight: 700;
}

.ps-ba-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

@media (max-width: 991px) {
  .ps-ba-layout {
    grid-template-columns: 1fr;
  }
}

.ps-ba-card {
  padding: 0;
  overflow: hidden;
}

.ps-ba-card__head {
  padding: 18px 22px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.ps-ba-card__head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.ps-ba-card__head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.ps-ba-table {
  margin: 0 !important;
  border: 0 !important;
}

.ps-ba-table > thead > tr > th {
  background: #f8fafc !important;
  color: #6a7282 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 0 !important;
  padding: 12px 16px !important;
  white-space: nowrap;
}

.ps-ba-table > tbody > tr > td {
  border-color: #f1f5f9 !important;
  padding: 14px 16px !important;
  vertical-align: middle !important;
  color: #0f172a;
  font-size: 13px;
}

.ps-ba-table > tbody > tr:hover > td {
  background: #f8fffb;
}

.ps-ba-section td {
  background: #ecfdf5 !important;
  border-color: #d1fae5 !important;
  padding: 14px 16px !important;
}

.ps-ba-section__title {
  font-size: 13px;
  font-weight: 800;
  color: #065f46;
  margin: 0;
}

.ps-ba-section__hint {
  margin: 2px 0 0;
  font-size: 12px;
  color: #047857;
  font-weight: 500;
}

.ps-ba-name {
  font-weight: 700;
  color: #0f172a;
}

.ps-ba-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
}

.ps-ba-table .form-control {
  height: 38px;
  border-radius: 10px;
  border-color: #e5e7eb;
  box-shadow: none;
}

.ps-ba-table .input-group-addon {
  border-radius: 0 10px 10px 0;
  border-color: #e5e7eb;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.ps-ba-table .input-group .form-control {
  border-radius: 10px 0 0 10px;
}

.ps-ba-add {
  font-weight: 800;
  color: #0e9f6e;
}

.ps-ba-summary {
  position: sticky;
  top: 16px;
  padding: 20px;
}

.ps-ba-summary h3 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.ps-ba-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  color: #64748b;
}

.ps-ba-summary__row span:last-child {
  font-weight: 700;
  color: #0f172a;
}

.ps-ba-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 14px 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #065f46;
}

.ps-ba-summary__total span:last-child {
  font-size: 16px;
  font-weight: 800;
  color: #047857;
}

.ps-ba-summary .btn-success {
  margin-top: 16px;
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #22c55e;
  font-weight: 800;
  font-size: 14px;
}

.ps-ba-summary .btn-success:hover,
.ps-ba-summary .btn-success:focus {
  background: #16a34a;
  filter: brightness(1);
}

.ps-ba-pending {
  margin-top: 24px;
}

.ps-ba-skip {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.ps-pkg-card--pending {
  outline: 2px solid #0e9f6e;
  outline-offset: 2px;
}
