/* De Mol theme - minimal styling */
body, body {
  background-color: #f7f7f6; /* lighter, neutral background for readability */
  color: #10261a; /* dark green text for contrast */
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial;
  font-size: 16px;
  line-height: 1.45;
}
/* Prevent iOS from automatically resizing text */
html, body { -webkit-text-size-adjust: 100%; }
.navbar {
  background-color: #2b7a5a !important;
}
.btn-primary {
  background-color: #2b7a5a;
  border-color: #1c5b44;
}
.candidate-photo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 8px;
}
.candidate-eliminated {
  text-decoration: line-through;
  opacity: 0.6;
}
.table-matrix td, .table-matrix th {
  vertical-align: middle;
  text-align: center;
  min-width: 120px;
  word-break: break-word;
}
.table-matrix thead th {
  background-color: #dff6ea; /* very light green to match theme */
}
/* Mol logo styling in matrix cells */
.mol-logo-cell { text-align: center; }
.mol-logo { width: 28px; height: auto; opacity: 0.95; }

/* Chart container responsive sizing */
.chart-container {
  position: relative;
  height: 220px; /* default height for desktop */
}
@media (max-width: 576px) {
  .chart-container { height: 160px; }
}

.user-euro {
  display: inline-block;
  width: 26px;
  height: 26px;
  background-color: #f0d9a8;
  color: #3b2a16;
  border-radius: 4px;
  text-align: center;
  line-height: 26px;
  font-weight: bold;
  margin-left: 6px;
  cursor: pointer;
}

/* Mobile responsive improvements */
@media (max-width: 576px) {
  body { font-size: 15px; }
  .container { padding-left: 8px; padding-right: 8px; }
  .candidate-photo { width: 36px; height: 36px; }
  .btn { padding: .5rem .75rem; font-size: 1rem; }
  .table-matrix td, .table-matrix th { min-width: 80px; padding: .35rem; }
  table.table { font-size: 14px; }
  .table-matrix thead th { font-size: .9rem; }
  /* Show mobile card view and hide wide table for matrix/userweek */
  .mobile-only { display: block !important; }
  .desktop-only { display: none !important; }
  .user-euro { width: 28px; height: 28px; line-height: 28px; }
  .list-group-item input[type='radio'] { transform: scale(1.18); margin-right: 10px; }
  .mol-logo { width: 22px; }
}

/* Desktop: hide mobile-only by default */
@media (min-width: 577px) {
  .mobile-only { display: none !important; }
}

/* Improve accessibility of touch targets */
button, .btn, input[type='button'], input[type='submit'] { min-height: 44px; }
/* Ensure elements are touchable without inadvertent pan/zoom */
a, button, .user-euro { touch-action: manipulation; }

/* Eliminated candidate column styling: light red background */
.table-matrix th.eliminated-column, .table-matrix td.eliminated-column {
  background-color: #fdecea; /* light red/pink */
  color: #5b1b1b; /* readable dark red text */
}

.table-matrix th.eliminated-column span.candidate-eliminated,
.table-matrix td.eliminated-column span.candidate-eliminated {
  text-decoration: line-through;
}
```