/* Temel yardımcı sınıflar ve ortak durum stilleri. */

.filters > * {
  position: relative;
  z-index: 1;
}
.party-mini-table {
  max-height: none;
  overflow: visible;
}
.scope-link {
  color: #1d4ed8;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
tr:hover td {
  background: #f8fafc;
}
.status.ok {
  background: var(--greenbg);
  color: var(--green);
}
.status.wait {
  background: var(--amberbg);
  color: var(--amber);
}
.status.info {
  background: var(--bluebg);
  color: var(--blue);
}
.status.bad {
  background: var(--redbg);
  color: var(--red);
}
.party-color {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: middle;
}
.top-party-cell {
  font-size: 10.5px;
  line-height: 1.15;
}
.top-party-cell b {
  font-size: 12px;
}
.top-party-with-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.top-party-with-detail .top-party-cell {
  flex: 1;
}
.wide-name {
  width: 16%;
}
.narrow {
  width: 9%;
}
.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.hidden {
  display: none !important;
}
.notice {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  margin-top: 12px;
}
.notice.ok {
  background: var(--greenbg);
  color: var(--green);
}
.notice.warn {
  background: var(--amberbg);
  color: var(--amber);
}
.notice.err {
  background: var(--redbg);
  color: var(--red);
}
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.clickable {
  cursor: pointer;
}
.clickable td:first-child {
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.settings-panel.active {
  display: block;
}
.mapping-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}
.mapping-table th,
.mapping-table td {
  border-bottom: 1px solid #f1f5f9;
  padding: 10px;
}
.format-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.format-card b {
  display: block;
  margin-bottom: 4px;
}
.template-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.quick-election-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.active-election-warning {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}
.detail-cell {
  min-width: 90px;
}
.detail-btn.wide {
  width: 100%;
  padding: 8px 10px;
  font-size: 12px;
}
@media (max-width: 800px) {
  .format-list {
    grid-template-columns: 1fr;
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.validation-card {
  padding: 0;
}
.modal-header h2 {
  margin: 0 0 4px;
}
.validation-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 22px;
}
.validation-summary .metric {
  background: #f8fafc;
}
.validation-status-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 22px 14px;
}
.validation-table-wrap {
  padding: 0 22px 22px;
}
.validation-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
.validation-table th,
.validation-table td {
  font-size: 12px;
  padding: 9px 8px;
}
.validation-level {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 900;
  font-size: 11px;
}
.validation-level.error {
  background: var(--redbg);
  color: var(--red);
}
.validation-level.warn {
  background: var(--amberbg);
  color: var(--amber);
}
.validation-empty {
  margin: 18px 22px;
  padding: 16px;
  border-radius: 16px;
  background: var(--greenbg);
  color: var(--green);
  font-weight: 900;
}
.validation-note.danger {
  background: var(--redbg);
  color: var(--red);
  border-color: #fecaca;
}
@media (max-width: 760px) {
  .validation-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .modal {
    padding: 8px;
  }
  .validation-table-wrap {
    padding: 0 14px 14px;
  }
}
.wizard-body {
  padding: 20px 22px;
}
.wizard-hero h3 {
  margin: 0 0 8px;
}
.wizard-hero p {
  margin: 0 0 16px;
  color: #475569;
}
.wizard-file-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.wizard-map-table {
  width: 100%;
  table-layout: auto;
}
.wizard-map-table select {
  min-width: 190px;
}
.wizard-confidence {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}
.wizard-confidence.ok {
  background: var(--greenbg);
  color: var(--green);
}
.wizard-confidence.wait {
  background: var(--amberbg);
  color: var(--amber);
}
.wizard-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.wizard-preview-table {
  table-layout: auto;
  min-width: 760px;
}
.wizard-preview-table th,
.wizard-preview-table td {
  font-size: 12px;
  padding: 8px 9px;
  white-space: nowrap;
}
.wizard-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}
.wizard-section-title h3 {
  margin: 0;
}
.wizard-small-note {
  font-size: 12px;
  color: #64748b;
  font-weight: 800;
}
.wizard-mapping-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.wizard-final h3 {
  margin: 0 0 8px;
}
.wizard-final p {
  margin: 0;
  color: #475569;
}
@media (max-width: 760px) {
  .wizard-file-meta {
    grid-template-columns: 1fr;
  }
  .wizard-body {
    padding: 14px;
  }
  .wizard-map-table select {
    min-width: 140px;
  }
}
.manual-ballot-toggle input {
  width: auto;
  margin: 0;
  accent-color: #2563eb;
}
.election-definition-toggle {
  margin-top: 14px;
}
.validation-details summary {
  cursor: pointer;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}
.validation-details div {
  white-space: normal;
}

/* Yardım sayfası */
.help-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}
.help-step-content h4 {
  margin: 0 0 8px;
  font-size: 17px;
}
.help-step-content ol {
  margin: 10px 0 12px 18px;
  padding: 0;
}
.help-map-table-wrap.small {
  max-width: 520px;
}
.help-map-table {
  table-layout: auto;
}
.help-map-table th,
.help-map-table td {
  font-size: 13px;
  padding: 10px 12px;
}
@media (max-width: 640px) {
  .help-hero {
    flex-direction: column;
  }
}

/* Karşılaştırma ekranı */
.comparison-shell .comparison-controls select {
  min-width: 0;
}
.comparison-metric .value {
  font-size: 18px;
  line-height: 1.35;
}
.delta {
  font-weight: 800;
  margin-top: 6px;
  font-size: 13px;
}
#comparisonPage .table-wrap table td,
#comparisonPage .table-wrap table th {
  vertical-align: top;
}
#comparisonPage .party-color {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
#compareNeighborhood:disabled {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}
