/* ============================================
   MVC Legislative - Advocacy Platform Styles
   ============================================ */

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

:root {
  --primary: #1E3A5F;
  --primary-light: #2D5A8E;
  --accent: #FFD700;
  --accent-dark: #D4A800;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --bg: #F0F4F8;
  --card: #FFFFFF;
  --text: #1F2937;
  --text-light: #6B7280;
  --border: #E5E7EB;
  --sidebar-w: 240px;
  --republican: #E81B23;
  --democratic: #0015BC;
  --independent: #808080;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* LOGIN */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.login-card {
  background: white;
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.logo-icon { font-size: 48px; display: block; margin-bottom: 8px; }

.login-logo h1 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 4px;
}

.login-logo p { color: var(--text-light); font-size: 14px; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.error-text { color: var(--danger); font-size: 13px; margin-top: 12px; text-align: center; }

/* BUTTONS */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); }
.btn-accent { background: var(--accent); color: var(--primary); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-light); }
.btn-outline:hover { background: var(--bg); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-full { width: 100%; padding: 14px; font-size: 16px; }

/* LAYOUT */
#main-app {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-w);
  background: var(--primary);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-icon-sm { font-size: 28px; }
.sidebar-title { font-size: 16px; font-weight: 700; }

.nav-menu {
  list-style: none;
  padding: 12px 0;
  flex: 1;
}

.nav-item {
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  transition: background 0.2s;
  border-left: 3px solid transparent;
}

.nav-item:hover { background: rgba(255,255,255,0.08); }

.nav-item.active {
  background: rgba(255,255,255,0.12);
  border-left-color: var(--accent);
  font-weight: 600;
}

.nav-icon { font-size: 18px; width: 24px; text-align: center; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.user-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.user-info .btn-outline { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.3); }

/* CONTENT */
.content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 32px;
  max-width: 1200px;
}

.section { display: none; }
.section.active { display: block; }

.section h2 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border-left: 4px solid var(--primary);
}

.stat-card.gold { border-left-color: var(--accent); }
.stat-card.green { border-left-color: var(--success); }
.stat-card.red { border-left-color: var(--danger); }

.stat-value { font-size: 32px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* CARDS */
.card {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}

.card h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* TOOLBAR */
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.input-search, .input-select {
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: white;
}

.input-search { flex: 1; min-width: 200px; }
.input-search:focus, .input-select:focus { outline: none; border-color: var(--primary); }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

/* TABLES */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.data-table th {
  background: var(--primary);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.data-table tr:hover td { background: #F8FAFC; }
.data-table tr:last-child td { border-bottom: none; }

/* PARTY BADGES */
.party-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.party-R { background: var(--republican); }
.party-D { background: var(--democratic); }
.party-I { background: var(--independent); }

/* CONTACT COUNT BADGE */
.contact-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.contact-badge.has { background: #D1FAE5; color: #065F46; }
.contact-badge.none { background: #FEE2E2; color: #991B1B; }

/* ZIP SEARCH */
.zip-search-box {
  background: var(--card);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 24px;
  text-align: center;
}

.zip-input-group {
  display: flex;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto 12px;
}

.input-zip {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 24px;
  text-align: center;
  letter-spacing: 4px;
  font-weight: 700;
}

.input-zip:focus { outline: none; border-color: var(--primary); }
.help-text { color: var(--text-light); font-size: 13px; }

/* ZIP RESULT CARDS */
.zip-result-card {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 16px;
  border-left: 4px solid var(--primary);
}

.zip-result-card .district-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.zip-result-card .rep-name {
  font-size: 16px;
  margin: 8px 0;
}

.zip-result-card .rep-details {
  color: var(--text-light);
  font-size: 14px;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.pagination button {
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.pagination button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }

/* PROGRESS BAR */
.progress-container {
  background: #E5E7EB;
  border-radius: 12px;
  height: 24px;
  overflow: hidden;
  margin: 12px 0;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #F59E0B 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  transition: width 0.5s;
}

/* VAA PROJECT */
.vaa-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
}

.vaa-header h3 { color: var(--accent); border: none; margin-bottom: 8px; font-size: 20px; }
.vaa-header p { opacity: 0.9; }

.vaa-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.vaa-meta-item { text-align: center; }
.vaa-meta-value { font-size: 28px; font-weight: 800; color: var(--accent); }
.vaa-meta-label { font-size: 12px; opacity: 0.8; }

/* ESTADO LIST */
.estado-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.estado-row:last-child { border-bottom: none; }

.estado-bar {
  flex: 1;
  margin: 0 12px;
  height: 6px;
  background: #E5E7EB;
  border-radius: 3px;
  overflow: hidden;
}

.estado-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
}

/* TOP DISTRITO ROW */
.top-distrito {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.top-distrito:last-child { border-bottom: none; }
.top-distrito-name { font-weight: 600; font-size: 14px; }
.top-distrito-rep { font-size: 13px; color: var(--text-light); }
.top-distrito-count { font-weight: 700; color: var(--success); }

/* NOT FOUND */
.not-found {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
}

.not-found-icon { font-size: 48px; margin-bottom: 12px; }

/* LOADING */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
}

.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* SHEET TABLE STYLES */
.sheet-table th.num, .sheet-table td.num { text-align: right; }
.sheet-table td.zip-unico { color: #2563EB; font-weight: 600; }
.sheet-table td.zip-comp { color: #D97706; font-weight: 600; }

.total-row td { background: var(--primary) !important; color: white !important; font-size: 14px; }
.total-row td strong { color: white; }

.pct-badge {
  display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 600;
}
.pct-badge.low { background: #D1FAE5; color: #065F46; }
.pct-badge.mid { background: #FEF3C7; color: #92400E; }
.pct-badge.high { background: #FEE2E2; color: #991B1B; }

/* ZIP CHIPS */
.zip-grid {
  display: flex; flex-wrap: wrap; gap: 6px; max-height: 300px; overflow-y: auto; padding: 8px 0;
}

.zip-chip {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  font-size: 13px; font-family: monospace; font-weight: 600;
}

.zip-unique { background: #DBEAFE; color: #1D4ED8; }
.zip-shared { background: #FEF3C7; color: #92400E; }

.zip-type-badge {
  display: inline-block; padding: 2px 8px; border-radius: 8px;
  font-size: 11px; font-weight: 700; margin-left: 8px; text-transform: uppercase;
}
.zip-type-badge.unique { background: #D1FAE5; color: #065F46; }
.zip-type-badge.shared { background: #FEF3C7; color: #92400E; }

/* DETAIL VIEW */
.detail-header {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white; border-radius: 12px; padding: 24px 32px; margin-bottom: 24px;
}
.detail-header h3 { font-size: 32px; margin: 0; }
.detail-rep { font-size: 18px; margin: 8px 0 4px; }
.detail-state { opacity: 0.8; font-size: 14px; }
.detail-header .link { color: var(--accent); }

.detail-stat { text-align: center; }
.detail-stat-val { font-size: 48px; font-weight: 800; color: var(--accent); display: block; }
.detail-stat-lbl { font-size: 13px; opacity: 0.8; }

.senators-row { display: flex; gap: 16px; flex-wrap: wrap; }
.senator-card {
  background: var(--bg); border-radius: 8px; padding: 12px 16px;
  display: flex; align-items: center; gap: 8px; font-size: 14px;
}

.distrito-link {
  color: var(--primary); font-weight: 600; cursor: pointer;
  text-decoration: underline; text-decoration-style: dotted;
}
.distrito-link:hover { color: var(--primary-light); }

.link { color: var(--primary); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

/* MOBILE HEADER (hidden on desktop) */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--primary);
  color: white;
  align-items: center;
  padding: 0 16px;
  z-index: 200;
  gap: 12px;
}

.btn-hamburger {
  background: none; border: none; color: white;
  font-size: 24px; cursor: pointer; padding: 4px 8px;
}

.mobile-title { font-weight: 700; font-size: 16px; flex: 1; display: none; }
.mobile-user { font-size: 12px; opacity: 0.8; }

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

.sidebar-overlay.open { display: block; }

/* TABLE SCROLL WRAPPER */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* RESPONSIVE */
@media (max-width: 768px) {
  /* Mobile header visible */
  .mobile-header { display: flex; }

  /* Sidebar as drawer */
  .sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 150;
  }
  .sidebar.open { transform: translateX(0); }

  /* Content full width */
  .content {
    margin-left: 0;
    padding: 16px;
    padding-top: 72px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Layout */
  .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-value { font-size: 24px; }
  .stat-label { font-size: 11px; }
  .stat-card { padding: 14px; }

  /* Section headers */
  .section h2 { font-size: 18px; margin-bottom: 16px; }

  /* VAA */
  .vaa-header { padding: 20px; }
  .vaa-header h3 { font-size: 16px; }
  .vaa-meta { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .vaa-meta-value { font-size: 20px; }

  /* Tables — horizontal scroll */
  .data-table { font-size: 12px; min-width: 600px; }
  .data-table th, .data-table td { padding: 8px 10px; white-space: nowrap; }
  .sheet-table { min-width: 800px; }
  #por-estado-table, #distritos-table-container, #congresistas-table-container {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }

  /* Toolbar stack */
  .toolbar { flex-direction: column; gap: 8px; }
  .input-search { min-width: 100%; }
  .input-select { width: 100%; }

  /* Detail view */
  .detail-header { flex-direction: column; text-align: center; padding: 20px; gap: 16px; }
  .detail-header h3 { font-size: 22px; }
  .detail-stat-val { font-size: 36px; }
  .senators-row { flex-direction: column; }

  /* ZIP search */
  .zip-search-box { padding: 20px; }
  .zip-input-group { flex-direction: column; max-width: 100%; }
  .input-zip { font-size: 20px; }

  /* Cards */
  .card { padding: 16px; }
  .card h3 { font-size: 14px; margin-bottom: 12px; }

  /* ZIP grid */
  .zip-grid { max-height: 200px; }
  .zip-chip { font-size: 11px; padding: 3px 8px; }

  /* Sync area */
  #dashboard-sync .card { padding: 14px; }
  #dashboard-sync input[type="text"] { width: 100% !important; }

  /* Pagination */
  .pagination { flex-wrap: wrap; }
  .pagination button { padding: 6px 10px; font-size: 12px; }

  /* Login */
  .login-card { padding: 32px 24px; margin: 16px; }

  /* Top distrito list */
  .top-distrito { font-size: 13px; }
  .top-distrito-name { font-size: 13px; }
  .top-distrito-rep { font-size: 11px; }

  /* Estado coverage bars */
  .estado-row { font-size: 12px; }

  /* Hide non-essential columns on very small screens */
  body, .content { overflow-x: hidden !important; max-width: 100vw !important; }
}

/* NAV SEPARATOR */
.nav-separator {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.35);
  padding: 16px 16px 6px;
  list-style: none;
}

/* CONGRESS CARDS */
.congress-timeline {
  position: relative;
  padding-left: 24px;
}

.congress-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 12px 0 12px 16px;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child { border-bottom: none; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid white;
}

.timeline-date {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}

.timeline-text {
  font-size: 14px;
  margin-top: 4px;
}

.timeline-chamber {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

.chamber-house { background: #DBEAFE; color: #1D4ED8; }
.chamber-senate { background: #FEE2E2; color: #991B1B; }

.cosponsor-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.cosponsor-card:last-child { border-bottom: none; }

.cosponsor-date { font-size: 12px; color: var(--text-light); }

.committee-card {
  background: var(--bg);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 12px;
  border-left: 4px solid var(--primary);
}

.committee-card h4 { margin: 0 0 8px; color: var(--primary); }
.committee-activities { font-size: 13px; color: var(--text-light); margin-top: 8px; }

/* PASSWORD TOGGLE */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  flex: 1;
  padding-right: 44px;
}

.btn-eye {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.5;
  padding: 4px;
  line-height: 1;
}
.btn-eye:hover { opacity: 1; }

/* ============================================
   USUARIOS & PERMISOS
   ============================================ */

/* Role badges */
.role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.role-admin { background: #DC2626; color: white; }
.role-director { background: #7C3AED; color: white; }
.role-coordinador { background: #2563EB; color: white; }
.role-voluntario { background: #059669; color: white; }
.role-viewer { background: #6B7280; color: white; }

.user-role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  margin-left: 4px;
}

.perm-count {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: #EFF6FF;
  color: #2563EB;
}

.btn-danger {
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
}
.btn-danger:hover { background: #DC2626; }

.btn-success {
  background: var(--success);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
}
.btn-success:hover { background: #059669; }

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 20px;
  color: var(--primary);
  border: none;
  margin: 0;
  padding: 0;
}

.btn-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}
.btn-close:hover { color: var(--danger); }

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Permisos toggles */
.permisos-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.permiso-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.permiso-toggle:hover { background: #E0E7FF; }

.permiso-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.permiso-label {
  display: flex;
  flex-direction: column;
}

.permiso-label strong {
  font-size: 14px;
  color: var(--text);
}

.permiso-label small {
  font-size: 12px;
  color: var(--text-light);
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
  .vaa-meta { grid-template-columns: 1fr; }
  .stat-value { font-size: 22px; }
}

/* Usuarios responsive */
@media (max-width: 768px) {
  .modal-content { padding: 20px; max-width: 100%; }
  #usuarios-list { overflow-x: auto; }
  #usuarios-list .data-table { min-width: 700px; }
}
