/* =========================================================
   PHUMC REGION RALLY – NATIONALS VISUAL MATCH
   Scoped to .phumc-rrm
   ========================================================= */

body .phumc-rrm {
  background: #ffffff !important;
  border-radius: 8px;
  padding: 20px 24px;
  max-width: 1100px;
  margin: 20px auto;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  color: #1f2328;
  font-family: "Segoe UI", Roboto, sans-serif;
}

/* Headings */
body .phumc-rrm h2 {
  font-size: 1.6rem;
  color: #6a2b00;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #d2a679;
  padding-bottom: 4px;
  margin-bottom: 6px;
}

body .phumc-rrm h3,
body .phumc-rrm h4 {
  color: #8b4513;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 700;
}

/* Labels */
body .phumc-rrm label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #3b2a1a;
}

/* Inputs */
body .phumc-rrm input,
body .phumc-rrm select,
body .phumc-rrm textarea {
  width: 100%;
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  background: #ffffff;
  color: #111;
  box-sizing: border-box;
}

/* Accordion styling */
body .phumc-rrm details {
  border: 1px solid #d2a679;
  border-radius: 6px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}

body .phumc-rrm summary {
  background: #f3e8e2;
  padding: 10px 14px;
  font-weight: 700;
  color: #6a2b00;
  cursor: pointer;
  border-bottom: 1px solid #d2a679;
}

body .phumc-rrm details[open] summary {
  background: #e7d4c6;
}

/* Inner block */
body .phumc-rrm .phumc-rrm-block {
  padding: 14px;
}

/* Notices */
body .phumc-rrm .phumc-rrm-msg {
  background: #ecfdf5;
  border-left: 4px solid #166534;
  padding: 10px 12px;
  margin-bottom: 12px;
  color: #065f46;
  border-radius: 4px;
}

body .phumc-rrm .phumc-rrm-err {
  background: #fef2f2;
  border-left: 4px solid #7f1d1d;
  padding: 10px 12px;
  margin-bottom: 12px;
  color: #7f1d1d;
  border-radius: 4px;
}

/* Payment block */
body .phumc-rrm .phumc-rrm-qr {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

body .phumc-rrm .phumc-rrm-qrimg img {
  max-width: 220px;
  border-radius: 6px;
  border: 1px solid #d2a679;
}

/* Buttons */
body .phumc-rrm button {
  background: #6a2b00;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

body .phumc-rrm button:hover {
  background: #8b4513;
}

/* Responsive */
@media (max-width: 800px) {
  body .phumc-rrm {
    padding: 16px;
  }
}
/* =========================================================
   RALLY ADMIN TABS (FORCE WP STYLE OUTSIDE ADMIN)
   ========================================================= */

.phumc-rrm .nav-tab-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid #d2a679;
}

.phumc-rrm .nav-tab {
  background: #6b4a2d;
  color: #f5f5f5;
  border: 1px solid #8b5e3c;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 8px 14px;
  font-weight: 600;
  text-decoration: none;
}

.phumc-rrm .nav-tab:hover {
  background: #8b5e3c;
  color: #ffffff;
}

.phumc-rrm .nav-tab-active {
  background: #c9a27e;
  color: #1f2328;
  border-color: #c9a27e;
}

/* =========================================================
   FIX: Registrations table not visually showing
   ========================================================= */

.phumc-rrm .phumc-rrm-tablewrap {
  overflow-x: auto;
  margin-top: 10px;
}

.phumc-rrm table.phumc-rrm-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.phumc-rrm table.phumc-rrm-table th,
.phumc-rrm table.phumc-rrm-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  color: #111 !important;
  background: #ffffff;
}

.phumc-rrm table.phumc-rrm-table th {
  background: #f0ece9;
  color: #3b2a1a !important;
  font-weight: 700;
}

/* Make the “Registration Window / Export / Actions” line behave */
.phumc-rrm .phumc-rrm-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.phumc-rrm .phumc-rrm-inline {
  display: inline-block;
  margin: 0;
}

/* Optional: keep action buttons from blowing up row height */
.phumc-rrm .phumc-rrm-btn,
.phumc-rrm .phumc-rrm-btn-secondary {
  white-space: nowrap;
}

.phumc-rrm-radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 6px;
    margin-bottom: 12px;
}

.phumc-rrm-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
}

.phumc-rrm-radio input[type="radio"] {
    margin: 0;
    transform: scale(1.1);
}