.elementor-29786 .elementor-element.elementor-element-569fbdaa{--display:flex;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--flex-wrap:wrap;}.elementor-29786 .elementor-element.elementor-element-569fbdaa:not(.elementor-motion-effects-element-type-background), .elementor-29786 .elementor-element.elementor-element-569fbdaa > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:var( --e-global-color-primary );}.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-29786 .elementor-element.elementor-element-00a3425{text-align:center;color:var( --e-global-color-kadence8 );}.elementor-29786 .elementor-element.elementor-element-7385faa{--display:flex;--flex-wrap:wrap;}.elementor-29786 .elementor-element.elementor-element-5aa7be1{--display:flex;}.elementor-29786 .elementor-element.elementor-element-b8c96ee{--display:flex;--min-height:202px;}.elementor-29786 .elementor-element.elementor-element-41648ec{padding:5px 5px 5px 5px;width:var( --container-widget-width, 400% );max-width:400%;--container-widget-width:400%;--container-widget-flex-grow:0;background-color:var( --e-global-color-kadence3 );border-style:none;border-radius:10px 10px 10px 10px;}.elementor-29786 .elementor-element.elementor-element-87b9f58{--display:flex;}.elementor-29786 .elementor-element.elementor-element-317a632{width:var( --container-widget-width, 400% );max-width:400%;--container-widget-width:400%;--container-widget-flex-grow:0;background-color:var( --e-global-color-kadence8 );border-style:solid;border-width:1px 1px 1px 1px;border-color:var( --e-global-color-kadence5 );border-radius:10px 10px 10px 10px;}:root{--page-title-display:none;}@media(min-width:768px){.elementor-29786 .elementor-element.elementor-element-7385faa{--width:100%;}.elementor-29786 .elementor-element.elementor-element-5aa7be1{--width:50%;}.elementor-29786 .elementor-element.elementor-element-b8c96ee{--width:48%;}.elementor-29786 .elementor-element.elementor-element-87b9f58{--width:100%;}}@media(max-width:767px){.elementor-29786 .elementor-element.elementor-element-569fbdaa{--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-29786 .elementor-element.elementor-element-00a3425{padding:10px 10px 10px 10px;}.elementor-29786 .elementor-element.elementor-element-00a3425.elementor-element{--order:-99999 /* order start hack */;}.elementor-29786 .elementor-element.elementor-element-7385faa{--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-29786 .elementor-element.elementor-element-7385faa.e-con{--order:-99999 /* order start hack */;}.elementor-29786 .elementor-element.elementor-element-5aa7be1{--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-29786 .elementor-element.elementor-element-b8c96ee.e-con{--order:-99999 /* order start hack */;}}/* Start custom CSS for text-editor, class: .elementor-element-de21045 *//* =========================
   WRAPPER PANEL
========================= */
.xp-winning-party-table-panel {
  background: #ffffff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  overflow-x: auto;
  font-family: system-ui, -apple-system, sans-serif;
}

/* =========================
   TABLE BASE
========================= */
.xp-winning-party-table {
  width: auto !important;
  table-layout: auto !important;
  border-collapse: collapse;
}

/* =========================
   HEADER
========================= */
.xp-winning-party-table thead th {
  background: #0f172a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

/* Center numeric column */
.xp-winning-party-table th:last-child,
.xp-winning-party-table td:last-child {
  text-align: center !IMPORTANT;
}

/* =========================
   ROWS
========================= */
.xp-winning-party-table td {
  padding: 10px !important;
  font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  white-space: nowrap;
}

/* Zebra */
.xp-winning-party-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

/* Hover */
.xp-winning-party-table tbody tr:hover {
  background: #eef2ff;
  transition: 0.2s ease;
}

/* =========================
   COLOR SWATCH
========================= */
.xp-winning-party-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  vertical-align: middle;
}

/* Center swatch column */
.xp-winning-party-table td:first-child {
  text-align: center;
  width: 40px;
}

/* =========================
   PARTY BUTTON
========================= */
.xp-winning-party-button {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: #2563eb;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: all 0.2s ease;
}

.xp-winning-party-button:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

/* =========================
   ACTIVE ROW (IMPORTANT)
========================= */
.xp-winning-party-row.active {
  background: #e0e7ff !important;
}

.xp-winning-party-row.active .xp-winning-party-button {
  font-weight: 600;
  color: #1e40af;
}

/* =========================
   SEATS COLUMN EMPHASIS
========================= */
.xp-winning-party-table td:last-child {
  font-weight: 600;
  color: #16a34a;
}

/* =========================
   COMPACT COLUMN SPACING
========================= */
.xp-winning-party-table td:nth-child(2) {
  padding-left: 6px;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

  .xp-winning-party-table {
    font-size: 12px;
  }

  .xp-winning-party-table th,
  .xp-winning-party-table td {
    padding: 6px;
  }

  .xp-winning-party-table-panel {
    overflow-x: auto;
  }
  .xp-winning-party-table th:nth-child(2), .xp-winning-party-table td:nth-child(2) {
    width: 250pc !important;
}
}/* End custom CSS */
/* Start custom CSS for text-editor, class: .elementor-element-1d256075 *//* =========================
   WRAPPER
========================= */
.xp-constituency-overview-wrap {
  background: #ffffff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  overflow-x: auto;
  font-family: system-ui, -apple-system, sans-serif;
}

/* =========================
   TABLE BASE (KEY CHANGE)
========================= */
.xp-constituency-overview-table {
  width: auto !important;          /* content-based width */
  table-layout: auto !important;   /* let content control */
  border-collapse: collapse;
}

/* =========================
   HEADER
========================= */
.xp-constituency-overview-table thead th {
  background: #0f172a;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  padding: 10px 12px;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}

/* =========================
   BODY CELLS
========================= */
.xp-constituency-overview-table td {
  padding: 4px 5px;
  font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  white-space: nowrap; /* keep inline sizing */
}

/* Allow wrapping only for constituency name */
.xp-constituency-overview-table td:first-child,
.xp-constituency-overview-table th:first-child {
  white-space: normal;
}

/* Alternate row */
.xp-constituency-overview-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

/* Hover */
.xp-constituency-overview-table tbody tr:hover {
  background: #eef2ff;
  transition: 0.2s ease;
}

/* =========================
   LINKS
========================= */
.xp-constituency-overview-table a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.xp-constituency-overview-table a:hover {
  text-decoration: underline;
}

/* =========================
   ALIGNMENT
========================= */
.xp-constituency-overview-table td:nth-child(n+2),
.xp-constituency-overview-table th:nth-child(n+2) {
  text-align: center;
}

/* =========================
   DATA EMPHASIS
========================= */
.xp-constituency-overview-table td:nth-child(4) {
  font-weight: 600; /* Total Votes */
}

.xp-constituency-overview-table td:last-child {
  font-weight: 600;
  color: #16a34a;
}

/* =========================
   FOOTER (TOTAL ROW)
========================= */
.xp-constituency-overview-table tfoot th {
  background: #1e293b;
  color: #fff;
  padding: 12px;
  font-size: 14px;
  text-align: center;
  border-top: 2px solid #0f172a;
}

/* =========================
   MOBILE OPTIMIZATION
========================= */
@media (max-width: 768px) {

  .xp-constituency-overview-table {
    font-size: 12px;
  }

  .xp-constituency-overview-table th,
  .xp-constituency-overview-table td {
    padding: 8px;
  }

  /* Keep table usable on small screens */
  .xp-constituency-overview-wrap {
    overflow-x: auto;
  }
}/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-41648ec */.map-inside {
    font-size: 12px;
    color: #aefecb;
    padding: 10px;
    position: absolute;
}
/* Disable interaction on dimmed seats */
.map-seat.xp-dim {
  pointer-events: none;
  cursor: default;
}/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-3a1ffdd */.xp-last-updated {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-top: 4px;
}
.xp-panel-header {
  position: relative;
  padding-top: 30px; /* space for logo */
}

/* LOGO TOP CENTER */
.xp-site-logo {
position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 38px !important;
    width: auto;
    background: white;
    border-radius: 10px !important;
    padding: 0 20px;
    margin-bottom: 5px !important;
}

/* KEEP EXISTING ELEMENTS IN PLACE */
#xp-panel-close {
  position: absolute;
  right: 10px;
  top: 10px;
}

#xp-download-btn {
position: absolute;
    left: 5px;
    top: 0px;
    background: none;
}

#xp-panel-title {
  text-align: center;
  margin-top: 10px;
}/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-317a632 */.xp-const-header {
  text-align: center;
  margin-bottom: 20px;
}

.xp-const-title {
  font-size: 28px;
  font-weight: 700;
}

.xp-const-meta {
  font-size: 14px;
  color: #666;
  margin-top: 6px;
}
/* =========================
   WRAPPER
========================= */
.xp-party-alliance-vote-wrap {
  background: #ffffff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  overflow-x: auto;
  font-family: system-ui, -apple-system, sans-serif;
}

/* =========================
   TABLE BASE (CONTENT WIDTH)
========================= */
.xp-party-alliance-vote-table {
  width: auto !important;
  table-layout: auto !important;
  border-collapse: collapse;
}

/* =========================
   HEADER
========================= */
.xp-party-alliance-vote-table thead th {
  background: #0f172a !important;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px !important;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid #1e293b;
}

/* Top header spacing */
.xp-party-alliance-vote-table thead tr:first-child th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================
   BODY CELLS
========================= */
.xp-party-alliance-vote-table td {
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  white-space: nowrap;
}

/* =========================
   ALLIANCE COLUMN
========================= */
.xp-party-alliance-name-cell {
  font-weight: 600;
  vertical-align: middle;
  background: #f8fafc;
}

/* Color bar */
.xp-party-alliance-colorbar {
  display: inline-block;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}

/* Alliance name */
.xp-party-alliance-name a {
  color: #0f172a;
  text-decoration: none;
}

.xp-party-alliance-name a:hover {
  text-decoration: underline;
}

/* =========================
   PARTY COLUMN
========================= */
.xp-party-alliance-party-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Party color */
.xp-party-alliance-party-swatch {
  width: 12px !important;
  height: 12px !important;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Party name */
.xp-party-alliance-party-name a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.xp-party-alliance-party-name a:hover {
  text-decoration: underline;
}

/* =========================
   ALIGNMENT
========================= */
.xp-party-alliance-vote-table td:nth-child(n+3),
.xp-party-alliance-vote-table th:nth-child(n+3) {
  text-align: center;
}

/* =========================
   DATA EMPHASIS
========================= */
/* Votes column */
.xp-party-alliance-vote-table td:nth-child(3) {
  font-weight: 600;
}

/* Won seats */
.xp-party-alliance-vote-table td:last-child {
  font-weight: 600;
  color: #16a34a;
}

/* =========================
   GROUP SEPARATION
========================= */
.xp-party-alliance-name-cell {
  border-right: 1px solid #e2e8f0;
}

/* Add spacing between alliances */
.xp-party-alliance-total-row {
  background: #eef2ff;
  font-weight: 600;
}

/* Total label styling */
.xp-party-alliance-total-label {
  color: #1e40af;
}

/* =========================
   FOOTER TOTAL
========================= */
.xp-party-alliance-vote-table tfoot th {
  background: #1e293b;
  color: #ffffff;
  padding: 12px;
  font-size: 14px;
  text-align: center;
  border-top: 2px solid #0f172a;
}

/* =========================
   ROW HOVER
========================= */
.xp-party-alliance-vote-table tbody tr:hover {
  background: #f1f5ff;
  transition: 0.2s ease;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

  .xp-party-alliance-vote-table {
    font-size: 12px;
  }

  .xp-party-alliance-vote-table th,
  .xp-party-alliance-vote-table td {
    padding: 8px;
  }

  .xp-party-alliance-vote-wrap {
    overflow-x: auto;
  }

  /* Prevent breaking layout */
  .xp-party-alliance-party-cell {
    gap: 6px;
  }
}/* End custom CSS */