
/* MKS GRE RC Dashboard Contrast Fix v4 */
.mks-gre-rc-dash,
.mks-gre-rc-admin {
  font-family: Inter, Arial, sans-serif;
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.mks-gre-rc-dash *,
.mks-gre-rc-admin * {
  box-sizing: border-box;
}

.mks-gre-rc-dash h1,
.mks-gre-rc-dash h2,
.mks-gre-rc-dash h3,
.mks-gre-rc-dash h4,
.mks-gre-rc-dash p,
.mks-gre-rc-dash span,
.mks-gre-rc-dash td,
.mks-gre-rc-dash th,
.mks-gre-rc-admin h1,
.mks-gre-rc-admin h2,
.mks-gre-rc-admin h3,
.mks-gre-rc-admin h4,
.mks-gre-rc-admin p,
.mks-gre-rc-admin span,
.mks-gre-rc-admin td,
.mks-gre-rc-admin th {
  color: inherit;
}

.mks-gre-rc-dash h2,
.mks-gre-rc-admin h1,
.mks-gre-rc-admin h2 {
  color: #4c00a8 !important;
  font-weight: 800;
}

.mks-dash-cards,
.mks-admin-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.mks-dash-card,
.mks-admin-card {
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.mks-dash-card strong,
.mks-admin-card h2 {
  display: block;
  font-size: 30px;
  line-height: 1;
  color: #7f00c4 !important;
  margin: 0 0 8px;
  font-weight: 900;
}

.mks-dash-card span,
.mks-admin-card p {
  color: #475569 !important;
  font-size: 14px;
  margin: 0;
}

.mks-table-wrap {
  overflow-x: auto;
  background: #ffffff !important;
  border-radius: 14px;
}

.mks-dash-table,
.mks-gre-rc-admin table.widefat {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
}

.mks-dash-table th,
.mks-dash-table td,
.mks-gre-rc-admin table.widefat th,
.mks-gre-rc-admin table.widefat td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  color: #111827 !important;
  background: #ffffff !important;
  vertical-align: top;
}

.mks-dash-table th,
.mks-gre-rc-admin table.widefat th {
  background: #f3e8ff !important;
  color: #4c00a8 !important;
  font-weight: 800;
}

.mks-dash-table tr:nth-child(even) td,
.mks-gre-rc-admin table.widefat tr:nth-child(even) td {
  background: #fafafa !important;
}

.mks-dash-table td:nth-child(2),
.mks-dash-table th:nth-child(2) {
  min-width: 220px;
}

.mks-dash-table td:nth-child(3),
.mks-dash-table th:nth-child(3) {
  min-width: 180px;
}

.mks-dash-note {
  margin-top: 16px;
  padding: 14px;
  border-left: 4px solid #7f00c4;
  background: #faf5ff !important;
  color: #334155 !important;
  border-radius: 10px;
}

.mks-filter-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0 20px;
}

.mks-filter-form select,
.mks-filter-form input {
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #cbd5e1 !important;
}

.mks-gre-rc-dash a,
.mks-gre-rc-admin a {
  color: #6d28d9 !important;
}

@media (max-width: 800px) {
  .mks-dash-cards,
  .mks-admin-cards {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 560px) {
  .mks-dash-cards,
  .mks-admin-cards {
    grid-template-columns: 1fr;
  }

  .mks-gre-rc-dash,
  .mks-gre-rc-admin {
    padding: 14px;
  }
}




/* MKS GRE RC Dashboard HTML Page Classes v5 */
.mks-gre-dashboard-page {
  font-family: Inter, Arial, sans-serif;
  color: #111827 !important;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
}

.mks-gre-dashboard-page *,
.mks-gre-dashboard-page *::before,
.mks-gre-dashboard-page *::after {
  box-sizing: border-box;
}

.mks-gre-dashboard-page h1,
.mks-gre-dashboard-page h2,
.mks-gre-dashboard-page h3,
.mks-gre-dashboard-page p,
.mks-gre-dashboard-page span,
.mks-gre-dashboard-page td,
.mks-gre-dashboard-page th,
.mks-gre-dashboard-page a {
  font-family: inherit;
}

.mks-gre-dash-hero {
  background: linear-gradient(135deg, #4c00a8, #8222ee) !important;
  color: #ffffff !important;
  border-radius: 24px;
  padding: 34px 36px;
  margin: 0 0 24px;
  box-shadow: 0 12px 34px rgba(76, 0, 168, 0.22);
}

.mks-gre-dash-hero h1 {
  color: #ffffff !important;
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 900;
}

.mks-gre-dash-hero p {
  color: rgba(255,255,255,0.94) !important;
  max-width: 980px;
  margin: 0;
  font-size: 17px;
}

.mks-gre-dash-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18) !important;
  color: #ffffff !important;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.mks-gre-dash-section {
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 24px;
  margin: 22px 0;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}

.mks-gre-dash-section h2 {
  color: #4c00a8 !important;
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 900;
}

.mks-gre-dash-section p {
  color: #334155 !important;
  margin: 0 0 12px;
}

.mks-gre-dash-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.mks-gre-dash-stat-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.mks-gre-dash-stat {
  background: #faf5ff !important;
  color: #111827 !important;
  border: 1px solid #eadcff;
  border-radius: 16px;
  padding: 18px;
}

.mks-gre-dash-stat strong {
  display: block;
  color: #7f00c4 !important;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.mks-gre-dash-stat span {
  display: block;
  color: #475569 !important;
  margin-top: 6px;
  font-size: 14px;
}

.mks-gre-dash-section-link {
  display: block;
  text-decoration: none !important;
  color: #111827 !important;
  background: #f8fafc !important;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  transition: 0.2s ease;
}

.mks-gre-dash-section-link:hover {
  transform: translateY(-2px);
  border-color: #8222ee;
  background: #faf5ff !important;
}

.mks-gre-dash-section-link strong {
  display: block;
  color: #4c00a8 !important;
  font-size: 16px;
  font-weight: 900;
}

.mks-gre-dash-section-link span {
  color: #64748b !important;
  font-size: 13px;
}

.mks-gre-dash-unit-card {
  display: block;
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 17px;
  box-shadow: 0 6px 18px rgba(15,23,42,0.05);
}

.mks-gre-dash-unit-no {
  display: inline-block;
  background: #f3e8ff !important;
  color: #6b21a8 !important;
  font-weight: 900;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  margin-bottom: 9px;
}

.mks-gre-dash-unit-card h3 {
  color: #111827 !important;
  font-size: 18px;
  margin: 4px 0 8px;
  line-height: 1.35;
  font-weight: 900;
}

.mks-gre-dash-unit-card p {
  color: #64748b !important;
  font-size: 14px;
  margin: 0 0 13px;
}

.mks-gre-dash-btn {
  display: inline-block;
  background: #8222ee !important;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 10px;
  padding: 8px 13px;
  font-weight: 800;
  font-size: 13px;
}

.mks-gre-dash-shortcode-box {
  background: #0f172a !important;
  color: #e5e7eb !important;
  border-radius: 16px;
  padding: 18px;
  margin-top: 16px;
  overflow: auto;
}

.mks-gre-dash-shortcode-box code {
  color: #ffffff !important;
  background: transparent !important;
  font-size: 15px;
}

.mks-gre-map-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  background: #ffffff !important;
}

.mks-gre-map-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
}

.mks-gre-map-table th,
.mks-gre-map-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  color: #111827 !important;
  background: #ffffff !important;
}

.mks-gre-map-table th {
  background: #f3e8ff !important;
  color: #4c00a8 !important;
  font-weight: 900;
}

.mks-gre-map-table tr:nth-child(even) td {
  background: #fafafa !important;
}

.mks-gre-map-table a {
  color: #6d28d9 !important;
  font-weight: 700;
}

.mks-gre-note {
  border-left: 4px solid #8222ee;
  background: #faf5ff !important;
  color: #334155 !important;
  padding: 14px;
  border-radius: 12px;
  margin-top: 16px;
}

@media (max-width: 980px) {
  .mks-gre-dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mks-gre-dash-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .mks-gre-dash-grid,
  .mks-gre-dash-stat-grid {
    grid-template-columns: 1fr;
  }
  .mks-gre-dash-hero {
    padding: 26px 20px;
    border-radius: 18px;
  }
  .mks-gre-dash-hero h1 {
    font-size: 28px;
  }
  .mks-gre-dash-section {
    padding: 18px;
  }
}


/* v6 shortcode dashboard force styles */
body .mks-gre-dashboard-page,
.entry-content .mks-gre-dashboard-page,
.vibe_editor .mks-gre-dashboard-page,
.content .mks-gre-dashboard-page {
  display: block !important;
  width: 100% !important;
}

body .mks-gre-dashboard-page .mks-gre-dash-grid {
  display: grid !important;
}

body .mks-gre-dashboard-page .mks-gre-dash-unit-card {
  display: block !important;
}

body .mks-gre-dashboard-page .mks-gre-dash-hero,
body .mks-gre-dashboard-page .mks-gre-dash-section,
body .mks-gre-dashboard-page .mks-gre-dash-unit-card,
body .mks-gre-dashboard-page .mks-gre-dash-stat,
body .mks-gre-dashboard-page .mks-gre-dash-section-link {
  visibility: visible !important;
}
