/* =========================================
   USER DASHBOARD – SIRPI FRIENDLY STYLES
========================================= */

.tb-user-dashboard {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0; /* Let Sirpi handle spacing */
    background: transparent;
}

/* Header */
.tb-user-dashboard h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e1e1e;
}

.tb-user-dashboard > p {
    margin-bottom: 40px;
    font-size: 15px;
    color: #666;
    max-width: 600px;
}

/* =========================
   TABLE – SIRPI STYLE
========================= */

.tb-user-dashboard table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

/* Table head */
.tb-user-dashboard thead th {
    background: #b00064; /* Sirpi primary */
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 14px 12px;
    border: none;
}

/* Table body */
.tb-user-dashboard tbody td {
    padding: 18px 12px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.tb-user-dashboard tbody tr:last-child td {
    border-bottom: none;
}

/* Subtle row hover (Sirpi-like) */
.tb-user-dashboard tbody tr:hover {
    background: #fff6fa;
}

/* =========================
   STATUS / PAYMENT TEXT
========================= */

.tb-user-dashboard td span {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
}

/* Failed */
.tb-user-dashboard span[style*="b42318"] {
    color: #b42318;
    background: transparent;
}

/* Pending */
.tb-user-dashboard span[style*="92400e"] {
    color: #92400e;
    background: transparent;
}

/* =========================
   ACTION COLUMN
========================= */

.tb-user-dashboard td:last-child {
    font-size: 13px;
}

.tb-user-dashboard td:last-child a.button {
    margin-top: 6px;
    padding: 6px 16px;
    font-size: 13px;
    background: transparent;
    border: 1px solid #b00064;
    color: #b00064;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.tb-user-dashboard td:last-child a.button:hover {
    background: #b00064;
    color: #ffffff;
}

/* =========================
   NOTE TEXT
========================= */

.tb-user-dashboard p strong {
    color: #b00064;
}
/* =========================================
   FIX LARGE TABLE ROW HEIGHT / GAPS
========================================= */

/* Force compact rows */
.tb-user-dashboard table td,
.tb-user-dashboard table th {
    line-height: 1.4;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* Prevent tall cells from stretching rows */
.tb-user-dashboard table td span,
.tb-user-dashboard table td a,
.tb-user-dashboard table td button {
    display: inline-block;
    line-height: 1.3;
    margin: 0;
}

/* Action column should not grow */
.tb-user-dashboard table td:last-child {
    white-space: nowrap;
    width: 160px;
}

/* Payment column compact */
.tb-user-dashboard table td:nth-child(7) {
    white-space: nowrap;
}

/* Remove any accidental min-height */
.tb-user-dashboard table td {
    min-height: unset !important;
}

/* Reduce excessive row height on hover */
.tb-user-dashboard tbody tr {
    height: auto !important;
}
/* =========================================
   DASHBOARD SPACING REFINEMENT
========================================= */

/* Reduce space above dashboard */
.tb-user-dashboard {
    margin-top: 20px;
}

/* Welcome heading spacing */
.tb-user-dashboard h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Subtitle text spacing */
.tb-user-dashboard > p {
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Space before table */
.tb-user-dashboard table {
    margin-top: 10px;
}

/* Space after table */
.tb-user-dashboard table + p {
    margin-top: 18px;
}

/* Optional: slightly tighten page container if theme adds too much */
.page .tb-user-dashboard {
    padding-top: 0;
}
.wp-block-preformatted{
        white-space: normal !important;
}

.tb-payment-success {
  color: #15803d;
  font-weight: 600;
}

.tb-payment-pending {
  color: #b45309;
  font-weight: 600;
}

.tb-payment-failed {
  color: #b42318;
  font-weight: 600;
}

.tb-dashboard-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tb-primary-btn {
  background: #b0006d;
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

/* =========================
   MOBILE – KEEP IT SIMPLE
========================= */

@media (max-width: 768px) {

    .tb-user-dashboard {
        margin: 30px 15px 60px;
    }

    .tb-user-dashboard h2 {
        font-size: 26px;
    }

    .tb-user-dashboard table,
    .tb-user-dashboard thead,
    .tb-user-dashboard tbody,
    .tb-user-dashboard tr,
    .tb-user-dashboard td,
    .tb-user-dashboard th {
        display: block;
    }

    .tb-user-dashboard thead {
        display: none;
    }

    .tb-user-dashboard tbody tr {
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
    }

    .tb-user-dashboard tbody td {
        padding: 6px 0;
        border: none;
        font-size: 14px;
    }
}
