@charset "UTF-8";
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-ExtraLight.ttf");
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-Light.ttf");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-Regular.ttf");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-Medium.ttf");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-Bold.ttf");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-ExtraBold.ttf");
  font-weight: 900;
  font-style: normal;
}
@media print {
  body * {
    visibility: hidden;
  }
  #print,
  #print * {
    visibility: visible;
  }
  #print {
    position: absolute;
    left: 0;
    top: 0;
  }
  .content {
    padding: 0px !important;
  }
  .navbar-fixed ~ .main {
    padding-top: 0px !important;
  }
  header,
  aside,
  .page-header,
  .flash,
  .no-print,
  .footer {
    display: none !important;
  }
  aside {
    padding-left: unset !important;
  }
  .justify-content-lg-center {
    justify-content: unset !important;
  }
  .content-wrap {
    position: static;
  }
  .content {
    margin: 0;
    padding: 0;
  }
  .table,
  .table td,
  .table th {
    background: #fff !important;
    border: none !important;
  }
  .table td {
    border-top: 1px solid whitesmoke !important;
  }
  .hidden-print {
    display: none !important;
  }
  .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
  }
  .col-print-1 {
    flex: 0 0 auto;
    width: 8.33333333%;
  }
  .col-print-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
  }
  .col-print-3 {
    flex: 0 0 auto;
    width: 25%;
  }
  .col-print-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }
  .col-print-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }
  .col-print-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  .col-print-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }
  .col-print-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
  }
  .col-print-9 {
    flex: 0 0 auto;
    width: 75%;
  }
  .col-print-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
  }
  .col-print-11 {
    flex: 0 0 auto;
    width: 91.66666667%;
  }
  .col-print-12 {
    flex: 0 0 auto;
    width: 100%;
  }
}
html,
body {
  font-family: "Montserrat", sans-serif !important;
}

/* .fab-btn-primary {
    color: #fff;
    background-color: $primary-color;
    border-color: $primary-color;
}
.fab-btn-primary:hover {
    color: #ccc;
} */
.nav-link-title {
  font-weight: 600 !important;
}

.navbar-brand-logo {
  width: auto;
  height: 60px; /* Taille légèrement plus grande */
  image-rendering: -webkit-optimize-contrast; /* Amélioration de la qualité */
  image-rendering: crisp-edges; /* Bords nets */
  -o-object-fit: contain;
     object-fit: contain; /* Maintient les proportions */
  filter: contrast(1.1) brightness(1.05); /* Améliore la netteté */
}

/* Modification du navbar-brand */
.navbar-vertical-aside .navbar-brand {
  margin: auto;
  display: flex;
  align-items: center;
  height: auto;
  width: -moz-fit-content;
  width: fit-content;
  padding: 1rem;
}

.bold {
  font-weight: bold;
}

.form-group {
  margin-bottom: 1.5rem;
}

.select2-selection--single {
  height: 42px !important;
  display: block;
  width: 100% !important;
  padding: 0.4rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: #1e2022;
  background-color: #fff;
  background-clip: padding-box;
  border: 0.0625rem solid rgba(231, 234, 243, 0.7) !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0.3125rem;
}

.select2-selection__rendered {
  color: #787777 !important;
}

.select2-selection__arrow {
  top: 10px !important;
}

.avatar-img {
  max-width: unset !important;
}

.select2-container {
  width: 100% !important;
}

.invalid-feedback {
  display: block !important;
}

.pagination {
  margin-top: 20px;
  margin-bottom: 20px;
}

.invalid-feedback-custom {
  margin-top: 5px;
  margin-left: 5px;
  font-size: 12px;
  font-style: italic;
  color: red;
}

.needed {
  font-size: 12px;
  color: red;
}

.page-header {
  padding-bottom: 1rem !important;
  margin-bottom: 1rem !important;
}

.text-truncate-2 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.text-truncate-3 {
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.toast-container.bottom-right {
  position: absolute;
  bottom: 60px;
  right: 20px;
}

.toast-container.bottom-left {
  position: absolute;
  bottom: 50px;
  left: 20px;
}

.toast-container.top-right {
  position: absolute;
  top: 80px;
  right: 20px;
}

.toast-container.top-left {
  position: absolute;
  top: 20px;
  left: 20px;
}

.toast-container {
  z-index: 1 !important;
}

.toast {
  z-index: 1000;
}

.toast-header {
  display: block !important;
}

.needed .bi-asterisk {
  font-size: 5px !important;
}

.tab-editing-icon {
  margin-left: 12px;
}

[contenteditable] {
  border: solid 1px orange;
  padding: 5px;
  border-radius: 3px;
}

.tab-remove-icon {
  margin-left: 8px;
}

.tab-editing-icon:hover,
.tab-remove-icon:hover {
  color: #08386e;
}

.component-form label {
  margin-bottom: 10px;
  font-weight: 600 !important;
}
.component-form .form-group {
  margin-bottom: 0.5em !important;
}

.steps-container .card-body .form-group {
  margin-bottom: 0px !important;
}
.steps-container .card-footer {
  padding: 1rem !important;
}

.text-right {
  text-align: right;
}

.step-form .card-body {
  padding: 1rem !important;
}

.required-mark {
  color: red;
}

/* Styles pour les onglets d'élection */
.election-tabs-container {
  background-color: #f8f9fa;
  border-radius: 14px;
  padding: 0;
  margin: 0;
  width: -moz-fit-content;
  width: fit-content;
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
}

.election-tabs {
  margin: 0;
  display: flex;
}

.election-tabs .nav-item {
  margin: 0;
  border-radius: 12px;
  border: none !important;
}

.election-tabs .nav-link {
  margin-right: 0;
  color: #6c757d;
  transition: all 0.2s ease;
  text-align: center;
  width: 100%;
  font-size: 12px;
  font-weight: 500;
  position: relative;
  display: block;
  border: none !important;
}

.election-tabs .nav-link.active {
  background-color: #0d693d;
  color: #fff;
  border: none !important;
  font-weight: 600;
  border-radius: 12px;
  z-index: 1;
}

.election-tabs .nav-link.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Override des styles Bootstrap pour les onglets d'élection */
.election-tabs .nav-link {
  border-top-color: transparent !important;
  border-left-color: transparent !important;
  border-right-color: transparent !important;
  margin-bottom: 0 !important;
}

.nav-tabs {
  border: none !important;
}

/* Styles pour le graphique des voix - fond noir comme l'image */
.votes-chart-container {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  min-height: 450px;
  border: 1px solid #e0e0e0;
  margin-bottom: 0;
}

.votes-chart-title {
  background-color: #ffffff;
  color: #000000;
  padding: 12px 20px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  z-index: 10;
}

/* Styles pour le graphique des sièges */
.seats-chart-container {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  min-height: 450px;
  border: 1px solid #e0e0e0;
}

.seats-chart-title {
  background-color: #ffffff;
  color: #000000;
  padding: 12px 20px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  z-index: 10;
}

#votesChart,
#seatsChart {
  background-color: #ffffff !important;
  border-radius: 8px;
  height: 400px !important;
  padding: 15px;
}

/* Assurer que le canvas a le bon fond */
#votesChart canvas,
#seatsChart canvas {
  background-color: #ffffff !important;
  border-radius: 8px;
}

/* Style pour les barres du graphique */
.chartjs-render-monitor {
  background-color: #ffffff !important;
}

/* Suppression forcée de toutes les grilles */
#votesChart canvas,
#seatsChart canvas {
  background-color: #ffffff !important;
}

/* Suppression de toutes les grilles Chart.js */
.chartjs-render-monitor * {
  stroke: none !important;
  stroke-width: 0 !important;
}

/* Suppression des lignes de grille */
.chartjs-render-monitor line {
  display: none !important;
  stroke: none !important;
  stroke-width: 0 !important;
}

/* Suppression des axes */
.chartjs-render-monitor .chartjs-grid-line {
  display: none !important;
  stroke: none !important;
}

/* Suppression des bordures */
.chartjs-render-monitor .chartjs-border-line {
  display: none !important;
  stroke: none !important;
}

/* Suppression agressive de toutes les grilles */
#votesChart *,
#seatsChart * {
  stroke: none !important;
  stroke-width: 0 !important;
}
#votesChart line,
#seatsChart line {
  display: none !important;
  stroke: none !important;
  stroke-width: 0 !important;
}
#votesChart .chartjs-grid-line,
#votesChart .chartjs-border-line,
#votesChart .chartjs-tick-line,
#seatsChart .chartjs-grid-line,
#seatsChart .chartjs-border-line,
#seatsChart .chartjs-tick-line {
  display: none !important;
  stroke: none !important;
  stroke-width: 0 !important;
}

.constituency-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.constituency-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.constituency-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
  padding: 14px 8px 14px 8px;
}

.constituency-title {
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  margin: 0;
}

.constituency-seats {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #666666;
  font-size: 12px;
  font-weight: 500;
}

.seats-icon {
  color: #4caf50;
  font-size: 16px;
}

.constituency-stats {
  padding: 6px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.stat-item {
  flex: 1;
  text-align: left;
}

.stat-item-right {
  text-align: right;
}

.stat-label {
  font-size: 12px;
  color: #999999;
  margin-bottom: 5px;
  font-weight: 500;
}

.stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  margin: 0;
}

.constituency-divider {
  height: 1px;
  background-color: #e0e0e0;
  margin: 15px 0;
}

.top-parties-section {
  padding: 10px;
  margin-top: 15px;
}

.top-parties-title {
  font-size: 12px;
  color: #999999;
  margin-bottom: 10px;
  font-weight: 500;
}

.top-parties-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.party-badge {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  color: #666666;
  font-weight: 500;
  white-space: nowrap;
}

.party-name {
  color: #999999;
  margin-right: 5px;
}

.party-votes {
  color: #000000;
  font-weight: 600;
}
