/* base.css — unified design system */

/* ── Local fonts ──────────────────────────────────────── */
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pt-sans-400-cyrext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pt-sans-400-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pt-sans-400-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/pt-sans-700-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/pt-sans-700-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pt-sans-400i-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pt-sans-400i-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/pt-sans-700i-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/pt-sans-700i-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* === Required design tokens === */
  --blue:        #0d4ea6;
  --blue-light:  #1a67cc;
  --bg:          #f4f6f9;
  --white:       #ffffff;
  --border:      #c8d3e0;
  --text:        #1a2030;
  --muted:       #5a6478;
  --success:     #1a7a3c;
  --error:       #c0392b;
  --stripe:      #eef2f8;

  /* === Derived / utility tokens === */
  --blue-border:  #093a7a;
  --navbar-h:     48px;
  --focus-ring:   rgba(13,78,166,0.10);
  --overlay:      rgba(0,0,0,0.52);
  --row-hover:    #fafbfd;
  --warn:         #92400e;
  --warn-bg:      #fef3cd;
  --success-bg:   #e8f5ed;
  --error-bg:     #fde9e8;
  --info-bg:      #dbeafe;
  --info:         #1e3a8a;

  /* === Progress bar tier colors (flat) === */
  --prog-low:     #93c5fd;
  --prog-mid:     #fbbf24;
  --prog-high:    #4ade80;
}

html { height: 100%; }
body {
  font-family: 'PT Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100%;
}

/* ══════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════ */
.nav-toggle-input { display: none; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--navbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 8px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}
.brand-link:hover { color: var(--blue-light); }

.brand-district {
  font-size: 11px;
  color: var(--muted);
  background: var(--stripe);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 3px;
  white-space: nowrap;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--muted);
  transition: .2s;
}
.nav-burger:hover span { background: var(--blue); }

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-link:hover  { background: var(--stripe); color: var(--blue); }
.nav-link.active { background: var(--stripe); color: var(--blue); }

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-username {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.nav-logout {
  color: var(--text);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 11px;
  font-family: 'PT Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background .15s;
}
.nav-logout:hover { background: var(--stripe); }

/* Role badges */
.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--stripe);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.role-superadmin     { border-color: var(--blue);       color: var(--blue); }
.role-district_admin { border-color: var(--blue-light); color: var(--blue-light); }
.role-operator       { color: var(--text); }
.role-viewer         { color: var(--muted); }

/* ══════════════════════════════════════════════════
   FLASH MESSAGES
══════════════════════════════════════════════════ */
.flash-container { padding: 0; }

.flash {
  padding: 10px 24px;
  font-size: 14px;
  border-left: 4px solid transparent;
}
.flash-success { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.flash-error   { background: var(--error-bg);   border-color: var(--error);   color: var(--error); }
.flash-warning { background: var(--warn-bg);     border-color: var(--warn);    color: var(--warn); }
.flash-info    { background: var(--info-bg);     border-color: var(--blue);    color: var(--info); }

/* ══════════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════════ */
.login-body    { background: var(--bg); min-height: 100vh; }

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
  width: 100%;
  max-width: 360px;
}

.login-logo     { text-align: center; font-size: 32px; margin-bottom: 8px; }
.login-title    { text-align: center; font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.login-subtitle { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 24px; }

/* ══════════════════════════════════════════════════
   ADMIN LAYOUT
══════════════════════════════════════════════════ */
.admin-container {
  width: 100%;
  padding: 32px 24px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

/* Page title block with left blue bar */
.page-title {
  border-left: 4px solid var(--blue);
  padding-left: 14px;
}
.page-title h1       { font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.2; }
.page-title .subtitle { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Fallback for pages using plain h1 inside page-header */
.page-header > h1 {
  font-size: 22px;
  font-weight: 700;
  border-left: 4px solid var(--blue);
  padding-left: 14px;
}

.header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Admin section nav bar */
.admin-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

/* Nav buttons in admin header */
.btn-nav {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 7px 18px;
  font-family: 'PT Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background .15s;
}
.btn-nav:hover { background: var(--stripe); }
.btn-nav.active, .btn-nav-active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-nav.active:hover, .btn-nav-active:hover { background: var(--blue-light); border-color: var(--blue-light); }

/* Metric cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  align-items: stretch;
}

.metric-card {
  background: var(--white);
  border-radius: 4px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.metric-header {
  background: var(--stripe);
  border-bottom: 1px solid var(--border);
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metric-header h3 { font-size: 14px; font-weight: 700; color: var(--text); }

.badge-schema {
  font-size: 11px;
  color: var(--muted);
  background: var(--white);
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.metric-stats {
  display: flex;
  flex-direction: column;
  padding: 6px 18px 14px;
  flex: 1;
}
.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--stripe);
}
.metric-row:last-child { border-bottom: none; }
.metric-label { font-size: 13px; color: var(--muted); }
.metric-value { font-weight: 700; font-size: 14px; }
.metric-value.accent { color: var(--blue); }

.metric-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 11px 18px;
  background: var(--stripe);
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════
   TABLE CARD
══════════════════════════════════════════════════ */
.table-card {
  background: var(--white);
  border-radius: 4px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 16px;
}

.table-header {
  padding: 11px 18px;
  background: var(--stripe);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--stripe);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
.admin-table tr:last-child td        { border-bottom: none; }
.admin-table tbody tr:hover          { background: var(--row-hover); }
.admin-table tfoot tr td             { background: var(--stripe); font-weight: 700; border-top: 2px solid var(--border); border-bottom: none; }
.row-inactive td                     { opacity: .55; }

/* ══════════════════════════════════════════════════
   FILTER BAR
══════════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════════════ */
.form-card {
  background: var(--white);
  border-radius: 4px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 16px;
}

.form-card-header {
  background: var(--stripe);
  border-bottom: 1px solid var(--border);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
}

.form-card-body { padding: 20px 24px; }

.form-group   { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.form-label   { font-size: 13px; font-weight: 700; color: var(--text); }
.required     { color: var(--error); }

.form-input,
.form-select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: 'PT Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.form-input:focus,
.form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-input-inline {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 5px 9px;
  font-size: 13px;
  font-family: 'PT Sans', sans-serif;
  outline: none;
  width: 160px;
}
.form-input-inline:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--focus-ring); }

.form-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.help-text    { font-size: 12px; color: var(--muted); margin-top: 3px; }
.import-row   { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form  { display: flex; gap: 8px; align-items: center; }

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue-border);
  cursor: pointer;
  padding: 9px 24px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'PT Sans', sans-serif;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background .15s;
}
.btn-primary:hover { background: var(--blue-light); border-color: var(--blue); }
.btn-full { width: 100%; text-align: center; margin-top: 8px; }

/* Secondary / ghost / outline — unified flat style */
.btn-secondary,
.btn-outline,
.btn-ghost {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 9px 24px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'PT Sans', sans-serif;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background .15s;
}
.btn-secondary:hover,
.btn-outline:hover,
.btn-ghost:hover { background: var(--stripe); }

/* Small variant */
.btn-sm {
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue-border);
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'PT Sans', sans-serif;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background .15s;
}
.btn-sm:hover        { background: var(--blue-light); }
.btn-sm-outline {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-sm-outline:hover { background: var(--stripe); }
.btn-sm-danger        { background: var(--error);   border-color: #8b1c1c; color: var(--white); }
.btn-sm-danger:hover  { background: #a93226; }
.btn-sm-success       { background: var(--success); border-color: #0f4f25; color: var(--white); }
.btn-sm-success:hover { background: #1a6b34; }
/* legacy aliases */
.btn-danger-sm        { background: var(--error);   border-color: #8b1c1c; color: var(--white); }
.btn-danger-sm:hover  { background: #a93226; }
.btn-success-sm       { background: var(--success); border-color: #0f4f25; color: var(--white); }
.btn-success-sm:hover { background: #1a6b34; }

.actions-cell { white-space: nowrap; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════
   STATUS / ACTION BADGES
══════════════════════════════════════════════════ */
.status-active   { color: var(--success); font-weight: 700; }
.status-inactive { color: var(--error); font-weight: 700; }

.page-subtitle { font-size: 13px; color: var(--muted); margin-top: 2px; }

.form-static { font-size: 14px; color: var(--text); padding: 8px 0; font-weight: 700; }
.form-hint   { font-size: 12px; color: var(--muted); font-weight: 400; }

.badge-action { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: 700; }
.badge-vote   { background: var(--success-bg); color: var(--success); }
.badge-cancel { background: var(--error-bg);   color: var(--error); }

/* ══════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════ */
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; gap: 8px; font-size: 13px; flex-wrap: wrap;
}
.pagination-info  { color: var(--muted); }
.pagination-pages { display: flex; gap: 4px; flex-wrap: wrap; }

.page-btn {
  display: inline-block; padding: 5px 10px; border-radius: 3px;
  border: 1px solid var(--border); color: var(--text); text-decoration: none;
  font-size: 13px; background: var(--white); cursor: pointer;
  transition: background .15s;
}
.page-btn:hover  { background: var(--stripe); }
.page-btn.active { background: var(--blue); color: var(--white); border-color: var(--blue-border); }

/* ══════════════════════════════════════════════════
   MISC
══════════════════════════════════════════════════ */
.empty-state { text-align: center; color: var(--muted); padding: 24px; }

/* ══════════════════════════════════════════════════
   RESPONSIVE / BURGER MENU
══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .navbar       { height: auto; }
  .navbar-inner { flex-wrap: wrap; height: auto; padding: 0 16px; align-items: center; }
  .navbar-brand { min-height: var(--navbar-h); display: flex; align-items: center; flex: 1; }
  .nav-burger   { display: flex; min-height: var(--navbar-h); }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 8px 0 12px;
    border-top: 1px solid var(--border);
    gap: 4px;
  }
  .nav-toggle-input:checked ~ .nav-menu { display: flex; }

  .nav-toggle-input:checked ~ .nav-burger span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
  .nav-toggle-input:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle-input:checked ~ .nav-burger span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

  .nav-links { flex-direction: column; align-items: flex-start; width: 100%; gap: 0; }
  .nav-link  { width: 100%; border-radius: 3px; }
  .nav-user  { flex-direction: row; flex-wrap: wrap; gap: 8px; width: 100%; padding-top: 8px; border-top: 1px solid var(--border); }

  .admin-container { padding: 16px; }
  .metrics-grid    { grid-template-columns: 1fr; }
  .filter-bar      { flex-direction: column; align-items: stretch; }
  .form-grid       { grid-template-columns: 1fr; }
  .page-header     { flex-direction: column; align-items: flex-start; }
  .admin-table           { font-size: 14px; }
  .admin-table th,
  .admin-table td        { padding: 10px 12px; }
}

/* ── Table scroll wrapper ── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .admin-table { min-width: 600px; }

/* ── Wider breakpoint grid ── */
@media (max-width: 1024px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .admin-container { padding: 12px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .form-grid { grid-template-columns: 1fr; }
  .form-input, .form-select { min-height: 42px; }
  .btn-primary, .btn-secondary, .btn-outline { min-height: 42px; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .admin-table { font-size: 14px; }
  .admin-table th, .admin-table td { padding: 10px 12px; }
  .pagination { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════
   THEME TOGGLE BUTTON
══════════════════════════════════════════════════ */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.theme-toggle:hover { background: var(--stripe); color: var(--blue); }

/* ══════════════════════════════════════════════════
   VOTE CHECKBOX (visual only, no interaction)
══════════════════════════════════════════════════ */
.vote-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 2px;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  position: relative;
  background: var(--white);
  border: 2px solid #cbd5e0;
}
.vote-box--checked {
  background: #dcfce7;
  border: 2px solid #16a34a;
}
.vote-box--checked::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 12px;
  border-right: 2.5px solid #16a34a;
  border-bottom: 2.5px solid #16a34a;
  transform: rotate(45deg);
  top: 4px;
  left: 9px;
}
.vote-col-header {
  text-align: center !important;
}
td.vote-col {
  text-align: center;
  white-space: nowrap;
  width: 1%;
}

/* ══════════════════════════════════════════════════
   DARK THEME
══════════════════════════════════════════════════ */
[data-theme="dark"] {
  --bg:         #0f1117;
  --white:      #1a1d27;
  --border:     #2e3347;
  --text:       #e2e8f0;
  --muted:      #8892a4;
  --stripe:     #1e2235;
  --blue:       #3b82f6;
  --blue-light: #60a5fa;
  --success:    #34d399;
  --error:      #f87171;
  --blue-border: #2563eb;
  --focus-ring:  rgba(59,130,246,0.15);
  --row-hover:   #1e2235;
  --warn:        #fbbf24;
  --warn-bg:     #2d2000;
  --success-bg:  #052e16;
  --error-bg:    #2d0a0a;
  --info-bg:     #1e3a5f;
  --info:        #93c5fd;
  --prog-low:    #1d4ed8;
  --prog-mid:    #d97706;
  --prog-high:   #16a34a;
  --overlay:     rgba(0,0,0,0.7);
}

[data-theme="dark"] .vote-box--checked {
  background: rgba(22, 163, 74, 0.15);
  border-color: #4ade80;
}
[data-theme="dark"] .vote-box--checked::after {
  border-color: #4ade80;
}

[data-theme="dark"] .admin-table tbody tr:hover { background: var(--row-hover); }
