/* Badge de red flags en el row principal */
.redflag-row-badge {
  display: inline-block;
  background: #fdeaea;
  color: #d32f2f;
  font-weight: 600;
  border-radius: 7px;
  padding: 0.12em 0.55em;
  font-size: 0.97em;
  margin: 0 2px;
  vertical-align: middle;
  box-shadow: none;
  letter-spacing: 0.2px;
}

/* Indicador discreto de red flags en la tabla */
.redflag-indicator {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #e53935;
  border-radius: 50%;
  box-shadow: 0 1px 4px #e5393533;
  vertical-align: middle;
  margin: 0 2px;
  border: 2px solid #fff;
  position: relative;
}

.redflag-indicator:after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 4px;
  opacity: 0.7;
}

/* --- Red Flags coloridas --- */
.tarea-details-redflags .redflag-badge {
  display: inline-block;
  background: #fdeaea;
  color: #d32f2f;
  font-weight: 500;
  border-radius: 7px;
  padding: 0.18em 0.6em;
  margin: 0.12em 0.22em 0.12em 0;
  font-size: 0.97em;
  box-shadow: none;
  letter-spacing: 0.2px;
}

/* --- Mejora UI detalles de tarea --- */
.tarea-details-ui {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px #0001;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 1.07rem;
}

.tarea-details-row {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.tarea-details-col {
  flex: 1 1 260px;
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px #0001;
  padding: 1rem 1.2rem;
  margin-bottom: 0.5rem;
}

.tarea-details-col h4 {
  font-size: 1.09rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.4em;
  color: #111;
}

.tarea-details-col .detail-label {
  font-weight: 600;
  color: #000;
  margin-right: 0.3em;
}

.tarea-details-col .detail-value {
  color: #000;
}

.tarea-details-desc p {
  margin: 0.5em 0 0 0;
  color: #000;
}

.tarea-details-fotos {
  text-align: center;
}

.tarea-photo-thumb {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
  margin: 8px;
  cursor: pointer;
  border: 3px solid #AEE67F;
  /* borde solicitado */
  box-shadow: none;
  /* sin sombra */
  transition: transform 0.16s ease;
}

.tarea-photo-thumb:hover {
  transform: scale(1.04);
}

.photo-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

@media (max-width: 900px) {
  .tarea-details-row {
    flex-direction: column;
    gap: 1.2rem;
  }

  .tarea-details-col {
    min-width: 0;
  }
}

/* CSS styles for Waitlist Viewer */
:root {
  --color-primary: #181C14;
  --color-accent: #AEE67F;
  --color-accent-light: rgba(174, 230, 127, 0.2);
  --color-accent-hover: #EDF0EA;
  --color-text: #000000;
  --color-bg: #f9f9f9;
  --color-border: #ddd;
  --font-family-base: Gilroy, sans-serif;
  --border-radius: 6px;
}

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

body {
  margin: 0;
  padding: 1rem;
  font-family: var(--font-family-base);
  color: var(--color-text);
  line-height: 1.6;
}

h1,
h2 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.logo {
  height: 50px;
  width: auto;
}

/* Menú de navegación */
.main-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0;
}

.nav-btn {
  background: transparent;
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-family-base);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  bottom: -2px;
}

.nav-btn:hover {
  background: var(--color-accent-hover);
  color: var(--color-primary);
}

.nav-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

/* Módulos */
.module {
  display: block;
}

.module.hidden {
  display: none;
}

/* Contenido CRM */
.crm-content {
  padding: 2rem;
  text-align: center;
  color: var(--color-text);
  font-size: 1.1rem;
}

/* Login CRM */
.crm-login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 2rem;
}

.crm-login-box {
  max-width: 400px;
  width: 100%;
  padding: 2rem;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.crm-login-box h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
}

.crm-login-box input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-family-base);
  font-size: 1rem;
}

.crm-login-box button {
  width: 100%;
  padding: 0.75rem;
  background: var(--color-primary);
  color: var(--color-accent);
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-family-base);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.crm-login-box button:hover {
  background: #0f120d;
}

.crm-login-box button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.crm-error {
  padding: 0.75rem;
  margin-bottom: 1rem;
  background: #fee;
  color: #c00;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  text-align: center;
}

/* Header actions CRM */
.crm-header-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-family-base);
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background: var(--color-primary);
  color: var(--color-accent);
  border-color: var(--color-primary);
}

/* Subnavegación CRM */
.crm-subnav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  background: var(--color-bg);
  border-radius: var(--border-radius);
}

.crm-subnav-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  font-family: var(--font-family-base);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.crm-subnav-btn:hover {
  background: #fff;
  color: var(--color-primary);
}

.crm-subnav-btn.active {
  background: var(--color-primary);
  color: var(--color-accent);
}

/* Submódulos CRM */
.crm-submodule {
  display: block;
}

.crm-submodule.hidden {
  display: none;
}


#loginForm {
  max-width: 400px;
  margin: 4rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#loginForm h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

#loginForm input {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}

#loginForm button {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--color-accent);
  border: none;
  border-radius: 12px;
  color: var(--color-primary);
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

#loginForm button:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-primary);
}

#loginForm button:active {
  background-color: var(--color-primary);
  color: var(--color-accent);
}

.filters {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.filters input,
.filters select,
.filters button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.3s ease;
}

.filters input::placeholder {
  color: #888;
}

.filters button {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
  border: none;
  border-radius: 12px;
  font-weight: bold;
}

.filters button:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-primary);
}

.filters button:active {
  background-color: var(--color-primary);
  color: var(--color-accent);
}

body {
  background: #f5f6fa;
}

.stats-charts {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 140px;
}

.stat {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 1.2rem 1rem 1rem 1rem;
  text-align: center;
  min-width: 120px;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat span {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--color-primary);
}

.charts {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: stretch;
}

.chart-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 1.2rem 1.5rem 1rem 1.5rem;
  min-width: 320px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.chart-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.5rem;
  text-align: center;
}

.charts canvas {
  width: 300px !important;
  height: 300px !important;
  max-width: 100%;
  cursor: pointer;
}

@media (max-width: 900px) {
  .stats-charts {
    flex-direction: column;
    align-items: stretch;
  }

  .charts {
    flex-direction: column;
    align-items: stretch;
  }
}

.stats {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
}

.stat {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat span {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--color-primary);
}

#loader {
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.table-container {
  overflow-x: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

th {
  background-color: var(--color-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}

tr:nth-child(even) td {
  background: var(--color-bg);
}

tr:hover td {
  background: var(--color-accent-hover);
}

.pagination {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pagination button,
.pagination select {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.3s ease;
}

.pagination button {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
  border: none;
  border-radius: 12px;
  font-weight: bold;
}

.pagination button:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-primary);
}

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

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

.filter-icon,
.btn-icon {
  margin-right: 0.25rem;
  vertical-align: middle;
}

.filters i.material-icons {
  font-size: 1.2rem;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  color: var(--color-accent);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  visibility: visible;
}

/* Estilos para ellipsis y tooltip en tabla */
.table-container td,
.table-container th {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
}

.table-container td.ellipsis {
  cursor: pointer;
}

.table-container td.ellipsis:hover::after {
  content: attr(data-fulltext);
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 10;
  background: #222;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  min-width: 120px;
  max-width: 400px;
  white-space: pre-line;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

/* ===== MÓDULO KYC ===== */
.kyc-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.kyc-header {
  margin-bottom: 2rem;
}

.kyc-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  color: var(--color-primary);
}

.kyc-subtitle {
  margin: 0;
  color: #666;
  font-size: 1rem;
}

/* Filtros KYC */
.kyc-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 180px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.filter-group label i {
  font-size: 1.1rem;
}

.filter-select {
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-family-base);
  font-size: 0.95rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.filter-select:hover {
  border-color: var(--color-accent);
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.btn-refresh {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: var(--color-accent);
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-family-base);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-refresh:hover {
  background: #0f120d;
}

/* Loader KYC */
.kyc-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1.5rem;
  background: #fff;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.kyc-loader p {
  color: #666;
  font-size: 1rem;
  font-weight: 500;
}

/* Lista de verificaciones */
.kyc-verifications-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.kyc-no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: #999;
}

.kyc-no-data i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.kyc-no-data p {
  font-size: 1.1rem;
}

/* Card de verificación */
.kyc-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.kyc-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.kyc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem;
  background: linear-gradient(to bottom, #f9f9f9, #fff);
  border-bottom: 1px solid #eee;
}

.kyc-user-info {
  flex: 1;
}

.kyc-user-name {
  margin: 0 0 0.25rem 0;
  font-size: 1.3rem;
  color: var(--color-primary);
}

.kyc-user-email {
  margin: 0 0 0.75rem 0;
  color: #666;
  font-size: 0.95rem;
}

.kyc-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.kyc-role,
.kyc-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.kyc-role i,
.kyc-date i {
  font-size: 1rem;
}

.kyc-role.role-cliente {
  background: #e3f2fd;
  color: #1976d2;
}

.kyc-role.role-jelper {
  background: #f3e5f5;
  color: #7b1fa2;
}

.kyc-date {
  background: #f5f5f5;
  color: #555;
}

.kyc-can-retry {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.kyc-can-retry i {
  font-size: 1rem;
}

.kyc-can-retry.can-retry-yes {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #66bb6a;
}

.kyc-can-retry.can-retry-no {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef5350;
}

/* Estado */
.kyc-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.kyc-status i {
  font-size: 1.3rem;
}

.status-pending {
  background: #fff3e0;
  color: #e65100;
}

.status-approved {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-rejected {
  background: #ffebee;
  color: #c62828;
}

/* Cuerpo de la card */
.kyc-card-body {
  padding: 1.5rem;
}

/* Imágenes */
.kyc-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.kyc-image-item {
  cursor: pointer;
}

.kyc-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%;
  background: #f5f5f5;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 2px solid #eee;
  transition: border-color 0.3s ease;
}

.kyc-image-item:hover .kyc-image-wrapper {
  border-color: var(--color-accent);
}

.kyc-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kyc-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kyc-image-item:hover .kyc-image-overlay {
  opacity: 1;
}

.kyc-image-overlay i {
  color: #fff;
  font-size: 2.5rem;
}

.kyc-image-label {
  display: block;
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
}

/* Razón de rechazo */
.kyc-rejection-reason {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #856404;
}

.kyc-rejection-reason i {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Acciones */
.kyc-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-family-base);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-action i {
  font-size: 1.2rem;
}

.btn-approve {
  background: #4caf50;
  color: #fff;
}

.btn-approve:hover {
  background: #45a049;
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.btn-reject {
  background: #f44336;
  color: #fff;
}

.btn-reject:hover {
  background: #e53935;
  box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

.btn-retry {
  background: #ff9800;
  color: #fff;
}

.btn-retry:hover {
  background: #fb8c00;
  box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
}

/* Modal de imagen */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.image-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  z-index: 10000;
}

.image-modal-content img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  border-radius: var(--border-radius);
}

.image-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.image-modal-close:hover {
  background: #fff;
}

.image-modal-close i {
  font-size: 1.5rem;
  color: var(--color-primary);
}

/* Modal de confirmación */
.confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.confirm-modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  z-index: 10000;
  padding: 2rem;
}

.confirm-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.confirm-icon {
  font-size: 3rem;
}

.confirm-icon.icon-approve {
  color: #4caf50;
}

.confirm-icon.icon-reject {
  color: #f44336;
}

.confirm-icon.icon-retry {
  color: #ff9800;
}

.confirm-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.confirm-modal-content p {
  margin: 0 0 2rem 0;
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

.confirm-modal-input {
  margin: 0 0 1.5rem 0;
}

.confirm-modal-input label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.confirm-modal-input textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-family-base);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.confirm-modal-input textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.input-error {
  margin-top: 0.5rem;
  color: #f44336;
  font-size: 0.85rem;
}

.confirm-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-secondary {
  padding: 0.75rem 1.5rem;
  background: #f5f5f5;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-family-base);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.btn-primary {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-family-base);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary.btn-approve {
  background: #4caf50;
}

.btn-primary.btn-approve:hover {
  background: #45a049;
}

.btn-primary.btn-reject {
  background: #f44336;
}

.btn-primary.btn-reject:hover {
  background: #e53935;
}

.btn-primary.btn-retry {
  background: #ff9800;
}

.btn-primary.btn-retry:hover {
  background: #fb8c00;
}

/* Responsive */
@media (max-width: 768px) {
  .kyc-filters {
    flex-direction: column;
  }

  .filter-group {
    min-width: 100%;
  }

  .kyc-card-header {
    flex-direction: column;
    gap: 1rem;
  }

  .kyc-images {
    grid-template-columns: 1fr;
  }

  .kyc-actions {
    flex-direction: column;
  }

  .btn-action {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   ESTILOS MÓDULO JELPERS
   ============================================ */

/* Estadísticas jelpers */
.jelpers-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filtros jelpers (mismo estilo que KYC) */
.jelpers-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

.jelpers-filters .filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 180px;
}

.jelpers-filters .filter-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.jelpers-filters .filter-group .material-icons {
  font-size: 1.1rem;
}

.jelpers-filters .filter-group input,
.jelpers-filters .filter-group select,
.jelpers-filters input.filter-select,
.jelpers-filters select.filter-select {
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-family-base);
  font-size: 0.95rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.3s ease;
  width: 100%;
}

.jelpers-filters .filter-group input:hover,
.jelpers-filters .filter-group select:hover,
.jelpers-filters input.filter-select:hover,
.jelpers-filters select.filter-select:hover {
  border-color: var(--color-accent);
}

.jelpers-filters .filter-group input:focus,
.jelpers-filters .filter-group select:focus,
.jelpers-filters input.filter-select:focus,
.jelpers-filters select.filter-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.jelpers-filters .filter-group input::placeholder,
.jelpers-filters input.filter-select::placeholder {
  color: #888;
}

.jelpers-filters .btn-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: #fff;
  font-family: var(--font-family-base);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.jelpers-filters .btn-filter:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent);
}

.jelpers-filters .btn-filter .material-icons {
  font-size: 1.1rem;
}

/* Tabla jelpers */
.jelpers-table-container {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.jelpers-table {
  width: 100%;
  border-collapse: collapse;
}

.jelpers-table thead {
  background: var(--color-primary);
  color: #fff;
}

.jelpers-table thead th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.jelpers-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s ease;
}

.jelpers-table tbody tr:hover {
  background: #f5f5f5;
}

.jelpers-table tbody td {
  padding: 1rem;
  font-size: 0.95rem;
}

/* Celda de nombre con avatar */
.jelper-name-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.jelper-name-cell:hover .jelper-name {
  color: var(--color-primary);
  text-decoration: underline;
}

.expand-icon {
  font-size: 1.2rem;
  color: #666;
  transition: transform 0.3s ease;
}

.expand-icon.expanded {
  transform: rotate(180deg);
}

.jelper-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.jelper-name {
  font-weight: 600;
  color: var(--color-primary);
}

.jelper-email {
  font-size: 0.85rem;
  color: #666;
}

/* Categorías preview */
.categories-preview {
  font-size: 0.9rem;
  color: #666;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-badge.active {
  background: #d4edda;
  color: #155724;
}

.status-badge.inactive {
  background: #f8d7da;
  color: #721c24;
}

/* Fila de detalles expandible */
.jelper-details-row {
  background: #fafafa;
  border-bottom: 2px solid var(--color-accent) !important;
}

.jelper-details-content {
  padding: 1.5rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.detail-section {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.2rem;
}

.detail-section h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.5rem;
}

.detail-section p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.detail-section strong {
  color: var(--color-primary);
  font-weight: 600;
}

.detail-section code {
  background: #f5f5f5;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #d63384;
}

/* Categorías en detalles */
.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.category-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
}

/* Verification status badges */
.verification-status {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.verification-status.not_verified {
  background: #e0e0e0;
  color: #666;
}

.verification-status.pending {
  background: #fff3cd;
  color: #856404;
}

.verification-status.verified {
  background: #d4edda;
  color: #155724;
}

.verification-status.rejected {
  background: #f8d7da;
  color: #721c24;
}

/* Paginación jelpers */
.jelpers-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}

.pagination-info {
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
}

.pagination-controls {
  display: flex;
  gap: 0.5rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--color-accent-hover);
  border-color: var(--color-accent);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-btn .material-icons {
  font-size: 1.3rem;
  color: var(--color-primary);
}

/* Skeleton loader */
.skeleton {
  animation: skeleton-loading 1.5s infinite ease-in-out;
  background: linear-gradient(90deg,
      #f0f0f0 25%,
      #e0e0e0 50%,
      #f0f0f0 75%);
  background-size: 200% 100%;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 16px;
  border-radius: 4px;
  margin: 0.5rem 0;
  background: linear-gradient(90deg,
      #f0f0f0 25%,
      #e0e0e0 50%,
      #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite ease-in-out;
}

.skeleton-title {
  height: 32px;
  width: 60%;
  margin: 0 auto 0.5rem;
}

.skeleton-label {
  height: 14px;
  width: 80%;
  margin: 0 auto;
}

.skeleton-row td {
  padding: 1rem;
}

.skeleton-row .skeleton-text {
  height: 20px;
  width: 80%;
}

/* Responsive jelpers */
@media (max-width: 968px) {
  .jelpers-filters {
    flex-direction: column;
  }

  .jelpers-filters .filter-group {
    min-width: 100%;
  }

  .jelpers-table {
    font-size: 0.85rem;
  }

  .jelpers-table thead th,
  .jelpers-table tbody td {
    padding: 0.75rem 0.5rem;
  }

  .jelper-avatar {
    width: 32px;
    height: 32px;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .jelpers-pagination {
    flex-direction: column;
    gap: 1rem;
  }

  .pagination-info {
    text-align: center;
  }
}

/* ============================================
   MEJORAS UX ESTILO APPLE
   ============================================ */

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 450px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15),
    0 0 1px rgba(0, 0, 0, 0.1);
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: all;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-primary);
}

.toast-success {
  border-left: 4px solid #34c759;
}

.toast-success .toast-icon {
  color: #34c759;
}

.toast-error {
  border-left: 4px solid #ff3b30;
}

.toast-error .toast-icon {
  color: #ff3b30;
}

.toast-warning {
  border-left: 4px solid #ff9500;
}

.toast-warning .toast-icon {
  color: #ff9500;
}

.toast-info {
  border-left: 4px solid #007aff;
}

.toast-info .toast-icon {
  color: #007aff;
}

/* Shake Animation para errores */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-10px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(10px);
  }
}

.shake {
  animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

/* Spinner elegante */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-large {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(174, 230, 127, 0.3);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Mejoras en login */
.crm-login-box {
  transition: transform 0.3s ease;
}

#crmLoginBtn.success {
  background: #34c759 !important;
  border-color: #34c759 !important;
}

#crmLoginBtn .material-icons {
  font-size: 18px;
  vertical-align: middle;
  margin-right: 4px;
}

/* Mejoras en error container */
.crm-error-container {
  text-align: center;
  padding: 3rem 2rem;
  background: #fff;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.crm-error-container p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.btn-retry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-family-base);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-retry:hover {
  background: #2a2f26;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-retry .material-icons {
  font-size: 20px;
}

/* Empty states */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
}

.empty-state .material-icons {
  font-size: 64px;
  color: #ddd;
  margin-bottom: 1rem;
}

.empty-state h3 {
  margin: 0 0 0.5rem 0;
  color: var(--color-primary);
  font-size: 1.25rem;
}

.empty-state p {
  margin: 0;
  font-size: 0.95rem;
  color: #999;
}

/* Mejoras en paginación */
.pagination-btn {
  position: relative;
  overflow: hidden;
}

.pagination-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(174, 230, 127, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.pagination-btn:active::before {
  width: 100%;
  height: 100%;
}

/* Transiciones suaves */
.crm-content {
  transition: opacity 0.3s ease;
}

/* Mejoras en inputs de login */
#crmEmail,
#crmPassword {
  transition: all 0.3s ease;
}

#crmEmail:focus,
#crmPassword:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

/* Responsive toasts */
@media (max-width: 768px) {
  .toast-container {
    left: 10px;
    right: 10px;
    top: 10px;
  }

  .toast {
    min-width: auto;
    width: 100%;
    transform: translateY(-100px);
  }

  .toast.show {
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {

  /* Layout general */
  body {
    padding: 0.5rem;
  }

  /* Header */
  .header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .logo {
    height: 40px;
  }

  h1 {
    font-size: 1.5rem;
    margin: 0;
  }

  /* Navegación principal */
  .main-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  /* Stats */
  .stats {
    flex-direction: row;
    gap: 0.35rem;
  }

  .stat {
    padding: 0.4rem 0.3rem;
    flex: 1;
    min-width: 0;
  }

  .stat span {
    font-size: 1.1rem;
  }

  /* Charts */
  .stats-charts {
    margin: 1rem 0;
  }

  .charts {
    gap: 1rem;
  }

  .chart-card {
    padding: 1rem;
  }

  /* Filtros */
  .filters {
    flex-direction: column;
    gap: 0.35rem;
    align-items: stretch;
  }

  .filters input,
  .filters select,
  .filters button {
    width: 100%;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .filter-icon {
    display: none;
  }

  .btn-icon {
    font-size: 16px !important;
  }

  /* Tabla */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    font-size: 0.85rem;
  }

  th,
  td {
    padding: 0.5rem;
    white-space: nowrap;
  }

  /* Paginación */
  .pagination {
    flex-direction: column;
    gap: 1rem;
  }

  .pagination span {
    order: -1;
  }

  /* CRM Subnav */
  .crm-subnav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .crm-subnav-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  /* Stats cards CRM */
  .jelpers-stats {
    flex-direction: row;
    gap: 0.35rem;
  }

  .stat-card {
    padding: 0.5rem 0.3rem;
    flex: 1;
    min-width: 0;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  /* Filtros CRM */
  .jelpers-filters {
    flex-direction: column;
    gap: 0.35rem;
  }

  .filter-group {
    width: 100%;
  }

  .filter-group input,
  .filter-group select {
    width: 100%;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .filter-group .material-icons {
    font-size: 16px;
  }

  .btn-filter {
    width: 100%;
    justify-content: center;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .btn-filter .material-icons {
    font-size: 16px;
  }

  .btn-refresh {
    width: 60%;
    margin: 0.5rem auto 0;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
  }

  .btn-refresh .material-icons {
    font-size: 20px;
  }

  /* Tabla CRM */
  .jelpers-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .jelpers-table {
    font-size: 0.85rem;
  }

  .jelpers-table th,
  .jelpers-table td {
    padding: 0.5rem;
    white-space: nowrap;
  }

  /* Detalles expandidos */
  .jelper-details,
  .client-details {
    padding: 0.75rem;
  }

  .detail-section {
    margin-bottom: 0.75rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  /* Paginación CRM */
  .jelpers-pagination {
    flex-direction: column;
    gap: 1rem;
  }

  .pagination-controls {
    justify-content: center;
  }

  /* KYC */
  .kyc-filters {
    flex-direction: column;
    gap: 0.35rem;
  }

  .kyc-filters .filter-group {
    width: 100%;
  }

  .kyc-filters label {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
  }

  .kyc-filters .material-icons {
    font-size: 16px;
  }

  .kyc-filters select,
  .kyc-filters .filter-select {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .btn-refresh {
    padding: 0.4rem 0.6rem;
    font-size: 1rem;
    width: 60%;
    margin: 0.5rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
  }

  .btn-refresh .material-icons {
    font-size: 20px;
  }

  .kyc-card {
    padding: 0.6rem;
  }

  .kyc-user-name {
    font-size: 0.95rem;
  }

  .kyc-user-email {
    font-size: 0.8rem;
  }

  .kyc-images {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .kyc-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-action {
    width: 100%;
    justify-content: center;
  }

  /* Modales */
  .confirm-modal-content,
  .image-modal-content {
    width: 95%;
    max-width: 95%;
    margin: 1rem;
    padding: 1.5rem;
  }

  .confirm-modal-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .confirm-modal-actions button {
    width: 100%;
  }

  /* Login */
  .crm-login-container {
    padding: 1rem;
  }

  .crm-login-box {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem;
  }

  /* Header actions */
  .crm-header-actions {
    margin-bottom: 1rem;
  }

  .btn-logout {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.15rem;
  }

  h2 {
    font-size: 1rem;
  }

  .nav-btn {
    padding: 0.4rem 0.6rem;
    font-size: 1.2rem;
  }

  .crm-subnav-btn {
    padding: 0.4rem 0.6rem;
    font-size: 1rem;
  }

  table {
    font-size: 0.7rem;
  }

  .jelpers-table {
    font-size: 0.7rem;
  }

  .stat-value {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .stat span {
    font-size: 1rem;
  }

  .stat-card {
    padding: 0.4rem 0.25rem;
  }

  .stat {
    padding: 0.35rem 0.25rem;
  }

  .filter-group input,
  .filter-group select,
  .filters input,
  .filters select,
  .filters button,
  .btn-filter {
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
  }
}