.elementor-29424 .elementor-element.elementor-element-2f6e161f{--display:flex;--margin-top:30px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;}.elementor-widget-heading .elementor-heading-title{font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-primary );}.elementor-29424 .elementor-element.elementor-element-8cf008c{text-align:center;}.elementor-29424 .elementor-element.elementor-element-8cf008c .elementor-heading-title{font-size:24px;font-weight:600;}.elementor-widget-text-editor{font-weight:var( --e-global-typography-text-font-weight );color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-29424 .elementor-element.elementor-element-7483dc3{font-size:18px;font-weight:400;}:root{--page-title-display:none;}/* Start custom CSS for text-editor, class: .elementor-element-bc94fd9 *//* =========================
   WRAPPER
========================= */
.xp-results-table-wrap {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  overflow-x: auto;
  font-family: system-ui, -apple-system, sans-serif;
}
.xp-results-table tr{color: black;}

.xp-results-table td{text-align: left !important;}
.xp-results-table a{text-decoration: none; color:#cc0a49 !important;font-weight:500 !important}
/* =========================
   TABLE BASE
========================= */
.xp-results-table {
  width: 100%;
  border-collapse: collapse;
}
/* Top header (section labels) */
.xp-results-table thead tr:first-child th {
  background: linear-gradient(180deg, #e2e8f0, #f8fafc);
  font-weight: 600;
}

/* Sub header (columns) */
.xp-results-table thead tr:last-child th {
  background: #ffffff;
  border-bottom: 2px solid #e5e7eb;
}
/* =========================
   HEADER BACKGROUND (FIX)
========================= */

/* First header row */
.xp-results-table thead tr:first-child th {
  background: #073664; /* light grey */
  color: #ffffff !important;
    padding: 10px !important;
}

/* Second header row */
.xp-results-table thead tr:last-child th {
  background: #073664; /* slightly lighter */
  color: #fff !important;
    padding: 10px;
}

/* Optional: subtle divider between rows */
.xp-results-table thead tr:first-child th {
  border-bottom: 1px solid #e5e7eb;
}
/* =========================
   HEADER
========================= */
.xp-results-table th {
  font-size: 12px;
  color: #777;
  font-weight: 500;
  padding: 6px 5px;
  border-bottom: 1px solid #eee;
  text-align: center;
  white-space: nowrap;
}

/* Top header row */
.xp-results-table thead tr:first-child th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #000;
}

/* Sub header row */
.xp-results-table thead tr:last-child th {
  font-size: 12px;
  color: #666;
}

/* =========================
   BODY
========================= */
.xp-results-table td {
  padding: 6px 5px;
  font-size: 13px;
  border-bottom: 1px solid #f2f2f2;
  vertical-align: middle;
}

/* Zebra */
.xp-results-table tbody tr:nth-child(even) {
  background: #fafafa;
}

/* Hover */
.xp-results-table tbody tr:hover {
  background: #f5f7fa;
}

/* =========================
   COLUMN STRUCTURE
========================= */

/* District */
.xp-results-table td[rowspan] {
  font-weight: 600;
  color: #444;
  background: #f7f7f7;
  text-align: center;
  white-space: nowrap;
}

/* Constituency No */
.xp-results-table td:nth-child(2) {
  width: 40px;
  text-align: center;
  color: #666;
}

/* Constituency Name */
.xp-results-table td:nth-child(3) {
  white-space: nowrap;
}

.xp-results-table td:nth-child(3) a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

/* Candidate names */
.xp-results-table td:nth-child(4),
.xp-results-table td:nth-child(9) {
  white-space: nowrap;
}

.xp-results-table td:nth-child(4) a,
.xp-results-table td:nth-child(9) a {
  text-decoration: none;
  color: #111;
}

/* Alliance + Party */
.xp-results-table td:nth-child(5),
.xp-results-table td:nth-child(6),
.xp-results-table td:nth-child(10),
.xp-results-table td:nth-child(11) {
  white-space: nowrap;
  color: #666;
}

/* Numeric columns */
.xp-results-table td:nth-child(7),
.xp-results-table td:nth-child(8),
.xp-results-table td:nth-child(12),
.xp-results-table td:nth-child(13),
.xp-results-table td:nth-child(14) {
  text-align: center;
  white-space: nowrap;
  width: 1%;
  font-weight: 500;
}

/* Margin highlight */
.xp-results-table td:nth-child(14) {
  font-weight: 600;
}

/* =========================
   GROUP VISUAL SEPARATION
========================= */

/* Divider between Winner & Runner-up */
.xp-results-table td:nth-child(9),
.xp-results-table th:nth-child(9) {
  border-left: 2px solid #eee;
}

/* Subtle column grouping header */
.xp-results-table thead th[colspan="5"] {
  background: #fafafa;
}

/* =========================
   HEADER WRAP FIX
========================= */
.xp-results-table th {
  white-space: normal;
  line-height: 1.2;
}

/* =========================
   MOBILE (SCROLL BASED)
========================= */
@media (max-width: 480px) {

  .xp-results-table-wrap {
    padding: 4px;
  }

  .xp-results-table th,
  .xp-results-table td {
    font-size: 11px;
    padding: 4px;
  }

  /* Truncate long names */
  .xp-results-table td:nth-child(3) a,
  .xp-results-table td:nth-child(4) a,
  .xp-results-table td:nth-child(9) a {
    display: inline-block;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

}/* End custom CSS */