/* Small RTL tweaks layered on top of Tailwind. */

html, body { direction: rtl; }

/* Tables: right-align every cell, give them a subtle hover. */
table th, table td {
  text-align: right;
  vertical-align: middle;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
}

table tbody tr:nth-child(odd) { background-color: #fafafa; }
table tbody tr:hover { background-color: #eef2ff; }

table thead th {
  position: sticky;
  top: 0;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  z-index: 1;
}

/* Keep code/pre blocks visually LTR (logs, raw markdown) */
pre, code { font-variant-numeric: tabular-nums; }

/* Drag-over hint for the file dropzone. */
#dropzone.is-dragging {
  border-color: #6366f1;
  background-color: #eef2ff;
}

/* Tab buttons for districts. */
.district-tab {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 9999px;
  background-color: #f1f5f9;
  color: #334155;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
}
.district-tab:hover { background-color: #e2e8f0; }
.district-tab.active {
  background-color: #4f46e5;
  color: white;
  border-color: #4338ca;
}
.district-tab .badge {
  display: inline-block;
  margin-inline-start: 0.4rem;
  background: rgba(255,255,255,0.4);
  border-radius: 9999px;
  padding: 0 0.4rem;
  font-size: 0.7rem;
}
.district-tab:not(.active) .badge {
  background: rgba(0,0,0,0.08);
}
