@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
/* Layout compartido tipo página Contratos (dashboard) */
.page-main {
    padding: 24px;
    padding-top: 1rem;
    max-width: 1240px;
    margin: 0 auto;
    animation: pageFadeIn 0.5s ease-out;
}
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.page-header {
    margin-bottom: 32px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    color: #1a1a1a;
    box-shadow: none;
    border-bottom: 2px solid #f1f3f5;
    padding-bottom: 16px;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}
.page-header p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}
/* Botón principal de acción (mismo estilo que Crear Contrato) */
.btn-page-primary {
    background-color: var(--activa-verde);
    color: white;
    border: none;
    padding: 0 20px;
    height: 44px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 175, 79, 0.2);
}
.btn-page-primary:hover {
    background-color: var(--activa-azul);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 175, 79, 0.3);
    color: white;
}
.btn-page-primary i {
    font-size: 20px;
}
.btn-page-primary span {
    white-space: nowrap;
}
/* Zona de filtros debajo del header */
.page-filters {
    margin-bottom: 24px;
}
/* Filtros + toggle vista (tabla/lista/cards) */
.page-filters-with-toggle {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}
/* En mobile: que el toggle se vaya debajo para que no se corte */
@media (max-width: 768px) {
    .page-filters-with-toggle {
        flex-direction: column;
        gap: 12px;
    }
}
/* Contenedor tabla + paginación */
.table-pagination-anchor {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
[data-theme="dark"] .page-header {
    color: var(--texto-principal);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .page-header h1 {
    color: var(--texto-principal);
}
[data-theme="dark"] .page-header p {
    color: #94a3b8;
}
/* ============================================
   ESTILO DE TABLA COMPARTIDO (igual que Contratos)
   ============================================ */
.data-table-wrapper {
  background: white;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  overflow: hidden;
  margin-top: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.data-table-wrapper .table-pagination-top {
  padding: 8px 16px;
  border-bottom: 1px solid #f1f3f5;
  background: #fdfdfd;
}
.data-table-wrapper .table-pagination-top .pagination-container,
.data-table-wrapper .table-pagination-bottom .pagination-container {
  margin: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  background: transparent;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.data-table-wrapper .table-pagination-bottom {
  padding: 8px 16px;
  border-top: 1px solid #f1f3f5;
  background: #fdfdfd;
}
/* Tabla: layout fijo para que los textos largos hagan salto de línea (no sobrescribir en admin) */
.data-table-wrapper .data-table {
  width: 100%;
  table-layout: fixed !important;
  min-width: 0 !important;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 13px;
}
.data-table-wrapper .data-table thead {
  background-color: white;
}
.data-table-wrapper .data-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  color: #495057;
  border-bottom: 2px solid #e9ecef;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.6px;
  white-space: nowrap;
}
.data-table-wrapper .data-table th.col-acciones {
  text-align: right;
  padding-right: 20px;
}
.data-table-wrapper .data-table tbody tr {
  border-bottom: 1px solid #f1f3f5;
  background-color: white;
  transition: all 0.2s ease;
}
.data-table-wrapper .data-table tbody tr:hover {
  background-color: #f8fafc;
  box-shadow: inset 4px 0 0 var(--activa-verde);
}
.data-table-wrapper .data-table td {
  padding: 12px 16px;
  vertical-align: middle;
  color: #212529;
  font-size: 13px;
  line-height: 1.4;
}
/* Salto de línea en textos largos (Proveedores, Usuarios de proveedores) para no dañar el layout */
.data-table-wrapper .data-table td:not(.col-acciones) {
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: break-word;
}
.data-table-wrapper .data-table th.col-acciones,
.data-table-wrapper .data-table td.col-acciones {
  text-align: right;
  padding-right: 20px;
  width: 140px; /* ancho fijo para no comprimir la columna de acciones */
}
/* Badges de estado (mismo estilo que Contratos) */
.data-table-wrapper .status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.data-table-wrapper .status-badge.status-sent,
.data-table-wrapper .status-badge.status-default {
  background-color: #bfdbfe;
  color: #1e3a8a;
}
.data-table-wrapper .status-badge.status-approved,
.data-table-wrapper .status-badge.active {
  background-color: #e0f2e9;
  color: #0f5132;
}
.data-table-wrapper .status-badge.status-error,
.data-table-wrapper .status-badge.inactive {
  background-color: #ffebee;
  color: #d32f2f;
}
/* Botones de acción (mismo estilo que Contratos: cuadrados, azul/rojo) */
.data-table-wrapper .action-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}
.data-table-wrapper .action-btn {
  padding: 0;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  outline: none;
  margin: 0;
}
.data-table-wrapper .action-btn.edit {
  background-color: #007bff;
  color: white;
}
.data-table-wrapper .action-btn.edit:hover {
  background-color: #0056b3;
  opacity: 0.9;
}
.data-table-wrapper .action-btn.delete {
  background-color: #dc3545;
  color: white;
}
.data-table-wrapper .action-btn.delete:hover {
  background-color: #c82333;
  opacity: 0.9;
}
.data-table-wrapper .action-btn i {
  font-size: 13px;
  line-height: 1;
}
/* Estados de carga y vacío dentro del wrapper */
.data-table-wrapper .loading-spinner,
.data-table-wrapper .empty-state {
  padding: 40px 24px;
  text-align: center;
  background: white;
}
.data-table-wrapper .empty-state p {
  color: #64748b;
  margin: 0;
  font-size: 14px;
}
/* ============================================
   MODO OSCURO - evitar secciones blancas
   ============================================ */
[data-theme="dark"] .data-table-wrapper {
  background: #1e293b;
  border-color: #334155;
  box-shadow: none;
}
[data-theme="dark"] .data-table-wrapper .table-pagination-top,
[data-theme="dark"] .data-table-wrapper .table-pagination-bottom {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .data-table-wrapper .data-table thead {
  background: #0f172a;
  border-bottom-color: #334155;
}
[data-theme="dark"] .data-table-wrapper .data-table th {
  color: #e2e8f0;
  border-bottom-color: #334155;
}
[data-theme="dark"] .data-table-wrapper .data-table tbody tr {
  background-color: #1e293b;
  border-bottom-color: #334155;
}
[data-theme="dark"] .data-table-wrapper .data-table tbody tr:hover {
  background-color: #334155;
  box-shadow: inset 4px 0 0 var(--activa-verde);
}
[data-theme="dark"] .data-table-wrapper .data-table td {
  color: #e2e8f0;
}
[data-theme="dark"] .data-table-wrapper .loading-spinner,
[data-theme="dark"] .data-table-wrapper .empty-state {
  background: #1e293b;
  color: #e2e8f0;
}
[data-theme="dark"] .data-table-wrapper .empty-state p {
  color: #94a3b8;
}
/* ============================================
   VISTA LISTA (tabla compacta tipo lista)
   ============================================ */
.entity-list-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 10px;
}
.entity-list-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 12px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}
.entity-list-item:hover {
  background: #f8f9fa;
  border-color: #dee2e6;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
}
.entity-list-main {
  flex: 1;
  min-width: 0;
}
.entity-list-title {
  font-weight: 800;
  color: #212529;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.entity-list-sub {
  color: #334155;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px 12px;
}
.entity-list-sub span strong {
  color: #64748b;
  font-weight: 700;
}
.entity-list-actions {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.entity-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}
.entity-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 12px;
  margin-right: 10px;
}
/* Override para cards visibles en modo toggle */
.mobile-cards--visible {
  display: grid !important;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
  padding: 0 12px !important;
}
.mobile-cards--visible .admin-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
  padding: 16px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  min-height: unset;
}
@media (min-width: 481px) and (max-width: 1024px) {
  .mobile-cards--visible {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .mobile-cards--visible .admin-card {
    padding: 16px;
    margin-bottom: 0;
    min-height: unset;
  }
}
@media (max-width: 360px) {
  .mobile-cards--visible .admin-card {
    padding: 14px;
    margin-bottom: 0;
    min-height: unset;
  }
}
.mobile-cards--visible .admin-card:last-child {
  margin-bottom: 0;
}
.mobile-cards--visible .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e9ecef;
}
.mobile-cards--visible .avatar-image,
.mobile-cards--visible .avatar-placeholder,
.mobile-cards--visible .admin-avatar .avatar-image,
.mobile-cards--visible .admin-avatar .avatar-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.mobile-cards--visible .avatar-placeholder,
.mobile-cards--visible .admin-avatar .avatar-placeholder {
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 20px;
}
.mobile-cards--visible .card-content {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  text-align: left;
}
.mobile-cards--visible .card-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  align-items: flex-start;
  text-align: left;
}
.mobile-cards--visible .card-field:last-child {
  margin-bottom: 0;
}
.mobile-cards--visible .card-field label {
  font-weight: 700;
  color: #64748b;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
}
.mobile-cards--visible .card-field span {
  color: #212529;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
}
.mobile-cards--visible .card-actions,
.mobile-cards--visible .admin-card .card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.mobile-cards--visible .admin-action-btn {
  width: 38px;
  height: 38px;
}
/* ============================================
   Overrides - Vista Lista
   ============================================ */
.entity-list-item,
.entity-list-title,
.entity-list-sub {
  text-align: left !important;
}
[data-theme="dark"] .entity-list-item {
  background: #1e293b !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .entity-list-title {
  color: #e2e8f0 !important;
}
[data-theme="dark"] .entity-list-sub {
  color: #94a3b8 !important;
}
/* Botones de acción en modo lista */
.entity-list-actions .action-btn {
  padding: 0 !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 6px !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease;
}
.entity-list-actions .action-btn.edit {
  background-color: #007bff !important;
  color: white !important;
}
.entity-list-actions .action-btn.delete {
  background-color: #dc3545 !important;
  color: white !important;
}
.entity-avatar-placeholder {
  background-color: #e9ecef;
}
[data-theme="dark"] .entity-avatar-placeholder {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}
/* Modo oscuro - cards (alineación + colores) */
[data-theme="dark"] .mobile-cards--visible .admin-card {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: none !important;
}
[data-theme="dark"] .mobile-cards--visible .card-header {
  border-bottom-color: #334155 !important;
}
[data-theme="dark"] .mobile-cards--visible .card-field label {
  color: #94a3b8 !important;
}
[data-theme="dark"] .mobile-cards--visible .card-field span {
  color: #e2e8f0 !important;
}
[data-theme="dark"] .mobile-cards--visible .card-actions {
  border-top-color: #334155 !important;
}
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Ubuntu', sans-serif;
}
html, body {
  height: 100%;
  min-height: 100vh;
  max-width: 100%;
}
body {
  display: flex;
  flex-direction: column;
}
#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: 100%;
}
:root {
  --activa-verde: #00AF4F;
  --activa-verde-transparente: #00af4f21;
  --activa-azul: #00AEEF;
  --activa-verde-claro: #e9f7f0;
  --texto-principal: #444444;
  --fondo-general: #f0f4f0;
  --texto-footer: #888888;
}
/* Modo oscuro */
[data-theme="dark"] {
  --activa-verde: #00AF4F;
  --activa-verde-transparente: #00af4f21;
  --activa-azul: #00AEEF;
  --activa-verde-claro: #1a2e1a;
  --texto-principal: #e2e8f0;
  --fondo-general: #1a202c;
  --texto-footer: #a0aec0;
}
[data-theme="dark"] body {
  background-color: var(--fondo-general);
  color: var(--texto-principal);
}
[data-theme="dark"] main {
  background-color: var(--fondo-general);
}
/* Evitar secciones blancas en modo oscuro: tablas, cards y contenedores comunes */
[data-theme="dark"] .project-filters-container,
[data-theme="dark"] .reports-table-wrapper,
[data-theme="dark"] .data-table-wrapper,
[data-theme="dark"] .reports-table thead,
[data-theme="dark"] .table-pagination-top,
[data-theme="dark"] .table-pagination-bottom {
  background-color: #1e293b !important;
  border-color: #334155;
}
[data-theme="dark"] .data-table-wrapper .data-table tbody tr,
[data-theme="dark"] .data-table-wrapper .data-table tbody td {
  background-color: #1e293b !important;
}
[data-theme="dark"] .data-table-wrapper .data-table tbody tr:hover {
  background-color: #334155 !important;
}
[data-theme="dark"] .data-table-wrapper .data-table thead,
[data-theme="dark"] .data-table-wrapper .data-table th {
  background-color: #0f172a !important;
  border-color: #334155;
}
[data-theme="dark"] .reports-filters .filters-main,
[data-theme="dark"] .reports-filters .filters-advanced {
  background-color: #1e293b;
  border-color: #334155;
}
p, span, label, input, textarea, select, button{
  font-size: 1rem;
}
h1, h2, h3, h4, h5, h6{
  font-family: 'Ubuntu', sans-serif;
}
a{
  text-decoration: none;
}
main {
  padding-top: 65px;
  padding-left: calc(10% - 100px);
  padding-right: calc(10% - 100px);
  padding-bottom: 100px;
  flex: 0 0 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
}
main.account-main {
  padding-bottom: 1.5rem;
}
@media (max-width: 768px) {
  /*
    En mobile hay paginaciones/cards que terminan muy cerca del footer.
    Dejamos espacio extra para que el footer aparezca al final del scroll
    (y no “tape” contenido).
  */
  main {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 120px;
  }

  /* Ajuste global de layout mobile para adaptar contenido al ancho disponible */
  .page-main,
  .documents-container,
  .reports-container,
  .admin-table-container,
  .clientes-table-container,
  .data-table-wrapper,
  .table-pagination-anchor,
  .mobile-cards,
  .mobile-cards--visible,
  .entity-list-view,
  .entity-list-item,
  .project-card,
  .admin-card,
  .document-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
}
.button {
  width: 100%;
  padding: 15px;
  background: var(--activa-verde);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--activa-verde-transparente);
}
.button:active {
  transform: translateY(0);
}
.button:disabled {
  background: var(--activa-verde-transparente);
  cursor: not-allowed;
}
/* ============================================
   SCROLLBAR GENERAL (estilo consistente)
   ============================================ */
html,
body {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 174, 239, 0.55) rgba(0, 0, 0, 0.10);
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.10);
  border-radius: 999px;
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(0, 174, 239, 0.70) 0%,
    rgba(0, 175, 79, 0.70) 100%
  );
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(0, 174, 239, 0.85) 0%,
    rgba(0, 175, 79, 0.85) 100%
  );
}
[data-theme="dark"] html,
[data-theme="dark"] body {
  scrollbar-color: rgba(56, 189, 248, 0.70) rgba(255, 255, 255, 0.18);
}
[data-theme="dark"] html::-webkit-scrollbar-track,
[data-theme="dark"] body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.18);
}
[data-theme="dark"] html::-webkit-scrollbar-thumb,
[data-theme="dark"] body::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(56, 189, 248, 0.80) 0%,
    rgba(34, 197, 94, 0.78) 100%
  );
  border-color: rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] html::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(56, 189, 248, 0.95) 0%,
    rgba(34, 197, 94, 0.92) 100%
  );
}
/* Cuando hay modal lateral abierto, ocultar scrollbar general de página */
body.side-panel-open {
  scrollbar-width: none;
}
body.side-panel-open::-webkit-scrollbar {
  width: 0;
  height: 0;
}#home-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--activa-verde-transparente);
    width: 100%;
    max-width: 600px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--activa-verde) 0%, var(--activa-azul) 100%);
}

.login-container h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 600;
}

.login-tabs{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.login-tabs button{
    width: 50%;
    padding: 15px 20px;
    border: none;
    border: 1px solid var(--activa-verde);
    background: none;
    cursor: pointer;
}

.login-tabs button:first-child {
    border-radius: 50px 0 0 50px;
}

.login-tabs button:last-child {
    border-radius: 0 50px 50px 0;
}

.login-tabs button:hover{
    background: var(--activa-verde-transparente);
}

.login-tabs button.login-tab-active{
    background: var(--activa-verde);
    color: white;
}

.login-tabs button.login-tab-active:hover{
    background: var(--activa-verde);
}




.login-form {
    margin-top: 30px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #666;
    font-size: 18px;
    z-index: 1;
}

.login-form input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-form input.error {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.login-form input.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #667eea;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}



.forgot-password {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    margin-top: 20px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .login-container h1 {
        font-size: 24px;
    }
}

.alert {
    margin: 16px 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: left;
}

.alert-info {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #90caf9;
}

/* Modo oscuro para la página de inicio de sesión */
[data-theme="dark"] #home-main {
    background: var(--fondo-general);
}

[data-theme="dark"] .login-container {
    background: #2d3748;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .login-container h1 {
    color: white;
}

[data-theme="dark"] .login-tabs button {
    background: #4a5568;
    color: #e2e8f0;
    border-color: #718096;
}

[data-theme="dark"] .login-tabs button:hover {
    background: #718096;
}

[data-theme="dark"] .login-tabs button.login-tab-active {
    background: var(--activa-verde);
    color: white;
    border-color: var(--activa-verde);
}

[data-theme="dark"] .login-tabs button.login-tab-active:hover {
    background: var(--activa-verde);
}

[data-theme="dark"] .input-icon {
    color: #a0aec0;
}

[data-theme="dark"] .login-form input {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .login-form input:focus {
    border-color: #667eea;
    background: #374151;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

[data-theme="dark"] .login-form input.error {
    border-color: #e74c3c;
    background: #742a2a;
}

[data-theme="dark"] .login-form input.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

[data-theme="dark"] .password-toggle {
    color: #a0aec0;
}

[data-theme="dark"] .password-toggle:hover {
    color: #667eea;
}

[data-theme="dark"] .error-message {
    color: #feb2b2;
}

[data-theme="dark"] .forgot-password {
    color: #90cdf4;
}

[data-theme="dark"] .forgot-password:hover {
    color: #63b3ed;
}

[data-theme="dark"] .alert-info {
    background: #2c5282;
    color: #90cdf4;
    border-color: #3182ce;
}
/* ============================================
   DARK MODE TOGGLE - INTEGRADO EN HEADER
   ============================================ */

.dark-mode-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.dark-mode-toggle:active {
    transform: scale(0.95);
}

.dark-mode-toggle i {
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover i {
    transform: rotate(15deg);
}

/* Modo oscuro específico */
[data-theme="dark"] .dark-mode-toggle {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dark-mode-toggle {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .dark-mode-toggle {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}
header {
  width: 100%;
  height: auto;
  min-height: 65px;
  max-height: 65px;
  background: linear-gradient(
    135deg,
    var(--activa-verde) 0%,
    var(--activa-azul) 100%
  );
  padding: 5px calc(10% - 100px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 15;
  box-sizing: border-box;
}

/* Header con muchas opciones: todo en una sola línea (admin / ejecutivo) */
header.header-single-row-many {
  padding-left: max(24px, 5%);
}

header.header-single-row-many .nav-container {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  max-width: 1400px;
}

header.header-single-row-many .nav-container .logo {
  flex-shrink: 0;
  margin-right: 24px;
  z-index: 1;
}

header.header-single-row-many .menu {
  flex: 1;
  min-width: 0;
}

/* Una sola fila, sin wrap, estilo compacto */
header.header-single-row-many .menu > ul.nav-single-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

header.header-single-row-many .menu > ul.nav-single-row > li {
  list-style: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

header.header-single-row-many .menu > ul.nav-single-row > li > a,
header.header-single-row-many .menu > ul.nav-single-row > li > .logout-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  font-size: 0.8rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  color: white;
  white-space: nowrap;
}

header.header-single-row-many .menu > ul.nav-single-row > li > a:hover,
header.header-single-row-many
  .menu
  > ul.nav-single-row
  > li
  > .logout-link:hover {
  background-color: var(--activa-verde);
  color: #fff;
}

.nav-row > li > .logout-link {
  width: auto;
  text-align: center;
}

.nav-separator {
  width: 100%;
  height: 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  margin: 6px 0 8px;
}

/* Contenido pegado al header */
body:has(header.header-single-row-many) main {
  padding-top: 65px;
}

/* Reducir padding en portátiles */
@media (min-width: 1025px) and (max-width: 1400px) {
  header {
    padding: 5px 20px;
  }
}

.nav-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  height: 100%;
  box-sizing: border-box;
}

.logo {
  width: auto;
  height: 50px;
  max-height: 50px;
  display: flex;
  align-items: center;
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  box-sizing: border-box;
  margin-left: -60px;
}


.logo img {
  width: auto;
  height: 100%;
  max-width: 150px;
  max-height: 50px;
  object-fit: contain;
  display: block;
}

/* Contenedor para controles móviles */
.mobile-controls {
  display: none;
  align-items: center;
  gap: 10px;
}

/* Botón hamburguesa para móviles */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background-color: var(--activa-verde);
  color: #fff;
}

/* Círculo de perfil para móvil */
.mobile-profile-circle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.mobile-profile-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mobile-profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.mobile-profile-circle i {
  color: #fff;
  font-size: 1rem;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex-shrink: 1;
}

.menu > ul {
  display: flex;
  gap: 0px;
}

.menu > ul > li {
  list-style: none;
  display: flex;
  align-items: center;
}

.menu > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
  color: white;
}

.menu > ul > li > a > i {
  font-size: 1rem;
}

.menu > ul > li > a:hover {
  background-color: var(--activa-verde);
  color: #fff;
}

.logout-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 10px 20px;
  border-radius: 5px;
  transition: all 0.3s ease;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-size: inherit;
}

.logout-link:hover {
  background-color: var(--activa-verde);
  color: #fff;
}

.logout-link i {
  font-size: 1.2rem;
}

.nav-theme-toggle-container {
  display: flex;
  align-items: center;
}

.nav-theme-toggle-container .dark-mode-toggle {
  margin-left: 0.5rem;
}

.burble-menu {
  position: absolute;
  min-width: 200px;
  padding: 10px;
  top: 100%;
  right: 0;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.burble-menu > ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.burble-menu > ul > li {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.burble-menu > ul > li > a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 5px;
  transition: all 0.3s ease;
  color: var(--texto-principal);
}

.burble-menu > ul > li > a:hover {
  background-color: var(--activa-verde);
  color: #fff;
}

.burble-menu > ul > li > a > i {
  font-size: 1.2rem;
}

/* Ocultar Contacto y perfil en el menú móvil (ya están en header / no duplicar) */
@media (max-width: 768px) {
  .menu .nav-item-contacto,
  .menu .profile-circle-container {
    display: none !important;
  }
}

/* Estilos responsive para móviles */
@media (max-width: 768px) {
  header {
    padding: 8px 16px;
  }

  .nav-container {
    justify-content: space-between;
    gap: 12px;
  }

  .nav-logo-activa {
    margin-left: 0;
    margin-right: auto;
    order: 0;
  }

  header.header-single-row-many .nav-container {
    flex-direction: row;
  }

  .mobile-controls {
    display: flex;
    order: 1;
  }

  .menu {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - 65px);
    background-color: var(--activa-verde-transparente);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 1.25rem 1rem;
    padding-top: 1.75rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1002;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .menu.mobile-menu-open {
    transform: translateX(0);
    background-color: white;
    z-index: 2001;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  }

  .menu.mobile-menu-open > ul > li > a {
    color: var(--texto-principal) !important;
  }

  .menu.mobile-menu-open > ul > li > a:hover {
    background-color: var(--activa-verde) !important;
    color: white !important;
  }

  .menu.mobile-menu-open .logout-link {
    color: var(--texto-principal) !important;
  }

  .menu.mobile-menu-open .logout-link:hover {
    background-color: var(--activa-verde) !important;
    color: white !important;
  }

  .menu > ul,
  .menu > ul.nav-single-row {
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    gap: 0.25rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
    list-style: none;
  }

  .menu > ul > li {
    width: 100%;
    box-sizing: border-box;
  }

  .menu > ul > li > a,
  .menu > ul > li > .logout-link {
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border-radius: 12px;
    box-sizing: border-box;
    gap: 0.75rem;
    min-height: 48px;
  }

  .menu > ul > li > a i,
  .menu > ul > li > .logout-link i {
    font-size: 1.25rem;
    opacity: 0.9;
    flex-shrink: 0;
  }

  .account-burble-menu {
    margin-top: auto;
    min-width: 100px !important;
    max-width: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
  }

  .account-burble-menu button {
    min-width: 100px !important;
    max-width: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
  }

  .account-burble-menu .account-burble-menu-img > img {
    min-width: 100px !important;
    max-width: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
  }

  .burble-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    right: auto;
    min-width: 250px;
    z-index: 1003;
  }
}

/* Estilos para tablets medianos - Surface Pro 7, iPad Pro */
@media (min-width: 769px) and (max-width: 912px) {
  header {
    padding: 5px 25px;
  }

  .mobile-controls {
    display: none;
  }

  .menu {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    transform: none;
    background: none;
    backdrop-filter: none;
    height: auto;
    width: auto;
    padding: 0;
  }

  .menu > ul {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: auto;
    margin: 0;
  }

  .menu > ul > li {
    width: auto;
  }

  .menu > ul > li > a {
    width: auto;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.9rem;
    min-width: auto;
  }

  .menu > ul > li > a i {
    font-size: 1rem;
  }

  .menu > ul > li > a span {
    display: none;
  }

  .account-burble-menu {
    margin-top: 0;
    min-width: auto !important;
    max-width: auto !important;
    min-height: auto !important;
    max-height: auto !important;
  }

  .account-burble-menu button {
    min-width: auto !important;
    max-width: auto !important;
    min-height: auto !important;
    max-height: auto !important;
    width: 40px;
    height: 40px;
  }

  .account-burble-menu .account-burble-menu-img > img {
    min-width: auto !important;
    max-width: auto !important;
    min-height: auto !important;
    max-height: auto !important;
    width: 100%;
    height: 100%;
  }

  .burble-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    transform: none;
    min-width: 200px;
    z-index: 1003;
  }
}

/* Estilos para tablets */
@media (min-width: 913px) and (max-width: 1024px) {
  header {
    padding: 5px 30px;
  }

  .mobile-controls {
    display: none;
  }

  .menu {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    transform: none;
    background: none;
    backdrop-filter: none;
    height: auto;
    width: auto;
    padding: 0;
  }

  .menu > ul {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: auto;
    margin: 0;
  }

  .menu > ul > li {
    width: auto;
  }

  .menu > ul > li > a {
    width: auto;
    justify-content: center;
    padding: 10px 15px;
    font-size: 0.95rem;
    min-width: auto;
  }

  .menu > ul > li > a i {
    font-size: 1.1rem;
  }

  .menu > ul > li > a span {
    display: inline;
    margin-left: 6px;
  }

  .account-burble-menu {
    margin-top: 0;
    min-width: auto !important;
    max-width: auto !important;
    min-height: auto !important;
    max-height: auto !important;
  }

  .account-burble-menu button {
    min-width: auto !important;
    max-width: auto !important;
    min-height: auto !important;
    max-height: auto !important;
    width: 45px;
    height: 45px;
  }

  .account-burble-menu .account-burble-menu-img > img {
    min-width: auto !important;
    max-width: auto !important;
    min-height: auto !important;
    max-height: auto !important;
    width: 100%;
    height: 100%;
  }

  .burble-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    transform: none;
    min-width: 220px;
    z-index: 1003;
  }
}

/* Estilos para portátiles pequeños - Laptops 13" y 14" */
@media (min-width: 1025px) and (max-width: 1200px) {
  header {
    padding: 5px 20px;
    max-height: 65px;
    overflow: visible;
  }

  .nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .logo {
    flex-shrink: 0;
    min-width: 80px;
    max-width: 130px;
    padding: 6px 10px;
    height: 45px;
  }

  .logo img {
    max-width: 110px;
    max-height: 45px;
  }

  .mobile-controls {
    display: none;
  }

  .menu {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    transform: none;
    background: none;
    backdrop-filter: none;
    height: auto;
    width: auto;
    padding: 0;
    flex: 1;
    min-width: 0;
  }

  .menu > ul {
    display: flex;
    flex-direction: row;
    gap: 4px;
    width: 100%;
    margin: 0;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: visible;
  }

  .menu > ul > li {
    width: auto;
    flex-shrink: 0;
  }

  .menu > ul > li > a {
    width: auto;
    justify-content: center;
    padding: 6px 8px;
    font-size: 0.8rem;
    min-width: auto;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .menu > ul > li > a i {
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .menu > ul > li > a span {
    display: inline;
    margin-left: 0;
    font-size: 0.75rem;
    line-height: 1;
  }

  .account-burble-menu {
    margin-top: 0;
    min-width: auto !important;
    max-width: auto !important;
    min-height: auto !important;
    max-height: auto !important;
    flex-shrink: 0;
  }

  .account-burble-menu button {
    min-width: auto !important;
    max-width: auto !important;
    min-height: auto !important;
    max-height: auto !important;
    width: 40px;
    height: 40px;
  }

  .account-burble-menu .account-burble-menu-img > img {
    min-width: auto !important;
    max-width: auto !important;
    min-height: auto !important;
    max-height: auto !important;
    width: 100%;
    height: 100%;
  }

  .burble-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    transform: none;
    min-width: 200px;
    z-index: 1003;
  }
}

/* Estilos para portátiles medianos - Laptops 15" y 17" */
@media (min-width: 1201px) and (max-width: 1366px) {
  header {
    padding: 5px 25px;
    max-height: 65px;
    overflow: visible;
  }

  .nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }

  .logo {
    flex-shrink: 0;
    min-width: 80px;
    max-width: 150px;
    padding: 6px 12px;
  }

  .logo img {
    max-width: 130px;
  }

  .mobile-controls {
    display: none;
  }

  .menu {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    transform: none;
    background: none;
    backdrop-filter: none;
    height: auto;
    width: auto;
    padding: 0;
    flex: 1;
    min-width: 0;
  }

  .menu > ul {
    display: flex;
    flex-direction: row;
    gap: 6px;
    width: 100%;
    margin: 0;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: visible;
  }

  .menu > ul > li {
    width: auto;
    flex-shrink: 0;
  }

  .menu > ul > li > a {
    width: auto;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.85rem;
    min-width: auto;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .menu > ul > li > a i {
    font-size: 1rem;
    flex-shrink: 0;
  }

  .menu > ul > li > a span {
    display: inline;
    margin-left: 0;
    font-size: 0.8rem;
    line-height: 1;
  }

  .account-burble-menu {
    margin-top: 0;
    min-width: auto !important;
    max-width: auto !important;
    min-height: auto !important;
    max-height: auto !important;
    flex-shrink: 0;
  }

  .account-burble-menu button {
    min-width: auto !important;
    max-width: auto !important;
    min-height: auto !important;
    max-height: auto !important;
    width: 45px;
    height: 45px;
  }

  .account-burble-menu .account-burble-menu-img > img {
    min-width: auto !important;
    max-width: auto !important;
    min-height: auto !important;
    max-height: auto !important;
    width: 100%;
    height: 100%;
  }

  .burble-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    transform: none;
    min-width: 220px;
    z-index: 1003;
  }
}

/* Estilos para el círculo de perfil */
.profile-circle-container {
  list-style: none;
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.profile-menu-wrap {
  position: relative;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 6px 0;
  z-index: 1004;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
  color: var(--texto-principal);
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

.profile-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.06);
}

.profile-dropdown-item i {
  font-size: 1.2rem;
  opacity: 0.9;
}

.profile-dropdown-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-dropdown-mode .dark-mode-toggle {
  margin-left: auto;
  width: 36px;
  height: 36px;
  color: var(--texto-principal);
  background: rgba(0, 0, 0, 0.06);
}

.profile-dropdown-mode .dark-mode-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}

.profile-dropdown-logout {
  color: #b91c1c;
}

.profile-dropdown-logout:hover {
  background: rgba(185, 28, 28, 0.08) !important;
}

.profile-dropdown-logout i {
  color: #b91c1c;
}

/* Modo oscuro: submenú de perfil */
[data-theme="dark"] .profile-dropdown {
  background: #2d3748;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .profile-dropdown-item {
  color: var(--texto-principal);
}

[data-theme="dark"] .profile-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .profile-dropdown-mode .dark-mode-toggle {
  background: rgba(255, 255, 255, 0.1);
  color: var(--texto-principal);
}

[data-theme="dark"] .profile-dropdown-mode .dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .profile-dropdown-logout {
  color: #f87171;
}

[data-theme="dark"] .profile-dropdown-logout:hover {
  background: rgba(248, 113, 113, 0.15) !important;
}

[data-theme="dark"] .profile-dropdown-logout i {
  color: #f87171;
}

.profile-dropdown-mobile {
  right: 0;
  left: auto;
}

@media (max-width: 768px) {
  .profile-circle-container .profile-dropdown {
    display: none;
  }
}

.dark-mode-toggle-container {
  list-style: none;
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.profile-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.profile-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.profile-circle i {
  color: #fff;
  font-size: 1.2rem;
}

/* Estilos responsive para el círculo de perfil */
@media (max-width: 768px) {
  .profile-circle-container {
    margin-left: 0;
    margin-top: 15px;
    justify-content: center;
  }

  .profile-circle {
    width: 60px;
    height: 60px;
  }

  .profile-circle i {
    font-size: 1.5rem;
  }

  .dark-mode-toggle-container {
    margin-left: 0;
    margin-top: 10px;
    justify-content: center;
  }
}

/* =====================================================
   Nav groups con dropdown (hover en desktop, click en móvil)
   ===================================================== */
.nav-group {
  position: relative;
  list-style: none;
  display: flex;
  align-items: center;
}

.nav-group-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px;
  border: none;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-group-trigger i {
  font-size: 1rem;
}

.nav-group-caret {
  font-size: 1rem !important;
  transition: transform 0.25s ease;
  opacity: 0.85;
}

.nav-group:hover .nav-group-trigger,
.nav-group-active .nav-group-trigger {
  background-color: var(--activa-verde);
  color: #fff;
}

.nav-group:hover .nav-group-caret {
  transform: rotate(180deg);
}

/* Dropdown (desktop) */
.nav-group-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 6px 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1005;
}

/* Puente invisible entre trigger y dropdown para evitar que se cierre */
.nav-group-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-group:hover .nav-group-dropdown,
.nav-group:focus-within .nav-group-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-group-dropdown > li {
  list-style: none;
  width: 100%;
}

.nav-group-dropdown > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--texto-principal);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.nav-group-dropdown > li > a:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--texto-principal);
}

.nav-group-dropdown > li > a i {
  font-size: 1.05rem;
  opacity: 0.9;
}

/* Header compacto: el trigger imita el tamaño de los links */
header.header-single-row-many .menu > ul.nav-single-row > li.nav-group > .nav-group-trigger {
  padding: 6px 8px;
  font-size: 0.8rem;
  gap: 4px;
}

header.header-single-row-many .menu > ul.nav-single-row > li.nav-group > .nav-group-trigger i {
  font-size: 0.9rem;
}

/* Modo oscuro: dropdown */
[data-theme="dark"] .nav-group-dropdown {
  background: #2d3748;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .nav-group-dropdown > li > a {
  color: var(--texto-principal);
}

[data-theme="dark"] .nav-group-dropdown > li > a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Móvil: convertir dropdown en acordeón */
@media (max-width: 768px) {
  .nav-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .menu.mobile-menu-open .nav-group-trigger {
    width: 100%;
    justify-content: flex-start;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border-radius: 12px;
    min-height: 48px;
    color: var(--texto-principal);
    gap: 0.75rem;
  }

  .menu.mobile-menu-open .nav-group-trigger i {
    font-size: 1.25rem;
    opacity: 0.9;
    flex-shrink: 0;
  }

  .menu.mobile-menu-open .nav-group-trigger .nav-group-caret {
    margin-left: auto;
  }

  .menu.mobile-menu-open .nav-group-trigger:hover {
    background-color: var(--activa-verde);
    color: #fff;
  }

  .nav-group-dropdown {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    opacity: 1;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: max-height 0.25s ease, visibility 0.25s ease;
  }

  .nav-group-dropdown::before {
    display: none;
  }

  .nav-group.nav-group-open .nav-group-dropdown {
    visibility: visible;
    max-height: 600px;
  }

  .nav-group.nav-group-open .nav-group-caret {
    transform: rotate(180deg);
  }

  /* En móvil desactivamos el hover y usamos el estado abierto */
  .nav-group:hover .nav-group-dropdown {
    visibility: hidden;
    max-height: 0;
  }

  .nav-group.nav-group-open:hover .nav-group-dropdown {
    visibility: visible;
    max-height: 600px;
  }

  .nav-group-dropdown > li > a {
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    color: var(--texto-principal);
    border-radius: 10px;
  }

  [data-theme="dark"] .menu.mobile-menu-open .nav-group-trigger {
    color: var(--texto-principal);
  }
}

/* Tablets medianos: ocultar texto y mantener dropdown por hover */
@media (min-width: 769px) and (max-width: 912px) {
  .nav-group-trigger span {
    display: none;
  }
}

/* Portátiles pequeños: reducir padding del trigger */
@media (min-width: 1025px) and (max-width: 1200px) {
  .nav-group-trigger {
    padding: 6px 8px;
    font-size: 0.8rem;
    gap: 3px;
  }

  .nav-group-trigger i {
    font-size: 0.9rem;
  }

  .nav-group-trigger span {
    font-size: 0.75rem;
    line-height: 1;
  }
}

@media (min-width: 1201px) and (max-width: 1366px) {
  .nav-group-trigger {
    padding: 8px 10px;
    font-size: 0.85rem;
    gap: 4px;
  }

  .nav-group-trigger span {
    font-size: 0.8rem;
  }
}

/* Modo oscuro para el menú móvil */
[data-theme="dark"] .menu.mobile-menu-open {
  background-color: #2d3748 !important;
  border-top: 1px solid #4a5568 !important;
}

[data-theme="dark"] .menu.mobile-menu-open > ul > li > a {
  color: var(--texto-principal) !important;
}

[data-theme="dark"] .menu.mobile-menu-open > ul > li > a:hover {
  background-color: var(--activa-verde) !important;
  color: white !important;
}

[data-theme="dark"] .menu.mobile-menu-open .logout-link {
  color: var(--texto-principal) !important;
}

[data-theme="dark"] .menu.mobile-menu-open .logout-link:hover {
  background-color: var(--activa-verde) !important;
  color: white !important;
}
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f5f5f5;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e3e3e3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-text {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} /* Contratos (dashboard) - mismo estilo que administradores */
.page-main {
    padding-top: 1rem;
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
    min-height: calc(100vh - 160px);
}

.dashboard-main {
    padding: 24px;
    padding-top: 1rem;
    max-width: 1800px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-out;
}

.dashboard-filters.page-filters {
    margin-bottom: 24px;
}

.dashboard-filters-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.dashboard-filters-row > .project-filters-container {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .dashboard-filters-row {
        flex-direction: column;
        gap: 12px;
    }
}

.page-main .data-table-wrapper {
    background: transparent;
    border-radius: 12px;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-header,
.page-header {
    margin-bottom: 32px;
    padding: 0 0 1rem 0;
    background: transparent;
    border-radius: 0;
    color: #1a1a1a;
    box-shadow: none;
    border-bottom: 2px solid #e2e8f0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.dashboard-header h1 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.dashboard-header p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

.btn-create-project {
    background-color: var(--activa-verde);
    color: white;
    border: none;
    padding: 0 20px;
    height: 44px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 175, 79, 0.2);
}

.btn-create-project:hover {
    background-color: var(--activa-azul);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 175, 79, 0.3);
    color: white;
}

.btn-create-project i {
    font-size: 20px;
}

.btn-create-project span {
    white-space: nowrap;
}

/* Buscador */
.dashboard-search {
    margin-bottom: 24px;
}

.search-container {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 600px;
    margin: 0;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    max-width: 650px;
}

.search-icon {
    position: absolute;
    left: 16px;
    font-size: 18px;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 10px 48px 10px 44px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: var(--activa-verde);
    box-shadow: 0 0 0 3px var(--activa-verde-transparente);
}

.search-input::placeholder {
    color: #94a3b8;
}

.clear-search-btn {
    position: absolute;
    right: 8px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 6px;
    padding: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    z-index: 1;
}

.clear-search-btn:hover {
    background: #e2e8f0;
    color: #dc3545;
}

.search-results-count {
    position: absolute;
    right: 40px;
    background: var(--activa-verde-claro);
    color: var(--activa-verde);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    border: 1px solid var(--activa-verde-transparente);
}

.btn-create-project:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.btn-create-project i {
    font-size: 16px;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.reports-cards {
    margin-top: 24px;
}

/* Pagination styles cleaner */
.pagination-container.contratos-pagination {
    margin: 12px 0 12px auto; /* Aligned to the right */
}

/* Responsive design */
/* Tablet */
@media (max-width: 1024px) {
    .dashboard-main {
        padding: 20px;
    }

    /* Pagination styles cleaner inherited from base */
    .pagination-container {
        padding: 8px 0;
        align-items: flex-end;
    }

    .pagination-page,
    .pagination-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .dashboard-header h1 {
        font-size: 2.2rem;
    }

    .header-content {
        gap: 16px;
    }

    .btn-create-project {
        padding: 0 16px;
        font-size: 13px;
    }

    .search-container {
        max-width: 100%;
        margin: 0;
    }

    .search-input {
        padding: 10px 48px 10px 48px;
        font-size: 15px;
    }

    .search-icon {
        font-size: 18px;
    }

    .clear-search-btn {
        right: 6px;
        padding: 5px 8px;
        font-size: 14px;
    }

    .search-results-count {
        right: 44px;
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .dashboard-main {
        padding: 20px;
        padding-bottom: 30px;
    }

    .dashboard-header {
        margin-bottom: 20px;
    }

    .reports-cards {
        margin-top: 16px;
        margin-bottom: 0;
    }

    .pagination-container.contratos-pagination {
        flex-direction: column;
        gap: 10px;
        padding: 12px 0;
        margin: 16px 0 16px auto !important;
        align-items: flex-end;
        justify-content: flex-end;
        background: transparent;
        border: none;
        box-shadow: none;
        width: auto;
    }

    .pagination-info {
        order: 2;
        text-align: right;
        font-size: 0.8rem;
    }

    .pagination-controls {
        order: 1;
        justify-content: flex-end;
    }

    .pagination-page,
    .pagination-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .dashboard-search {
        margin-bottom: 20px;
    }

    .search-container {
        max-width: 100%;
        margin: 0;
    }

    .search-input {
        padding: 12px 48px 12px 44px;
        font-size: 15px;
    }

    .search-icon {
        left: 14px;
        font-size: 18px;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .dashboard-main {
        padding: 16px;
        padding-bottom: 30px;
    }

    .dashboard-header {
        margin-bottom: 20px;
    }

    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .btn-create-project {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }

    .dashboard-header h1 {
        font-size: 2rem;
    }

    .dashboard-header p {
        font-size: 1rem;
    }

    .reports-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
        margin-bottom: 20px;
    }

    .reports-cards {
        margin-top: 16px;
        margin-bottom: 0;
    }

    .pagination-container.contratos-pagination {
        flex-direction: column;
        gap: 15px;
        padding: 20px 15px;
        margin: 20px 0 20px auto !important;
        align-items: flex-end;
        justify-content: flex-end;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border: 1px solid #e9ecef;
        width: 100%;
        box-sizing: border-box;
    }

    .pagination-info {
        order: 2;
        text-align: right;
        font-size: 0.75rem;
        width: 100%;
    }

    .pagination-controls {
        order: 1;
        justify-content: flex-end;
        width: 100%;
    }

    .pagination-pages {
        gap: 2px;
    }

    .pagination-page {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .pagination-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .dashboard-search {
        margin-bottom: 20px;
    }

    .search-container {
        max-width: 100%;
        margin: 0;
    }

    .search-input {
        padding: 10px 44px 10px 40px;
        font-size: 14px;
    }

    .search-icon {
        left: 12px;
        font-size: 16px;
    }

    .clear-search-btn {
        right: 6px;
        padding: 4px 7px;
        font-size: 14px;
    }

    .search-results-count {
        right: 40px;
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* Mobile Medium */
@media (max-width: 480px) {
    .dashboard-main {
        padding: 12px;
        padding-bottom: 30px;
    }

    .pagination-container {
        padding: 20px 15px;
        gap: 12px;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border: 1px solid #e9ecef;
    }

    .pagination-info {
        font-size: 0.75rem;
    }

    .pagination-pages {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 1px;
    }

    .pagination-page {
        min-width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .pagination-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .dashboard-header h1 {
        font-size: 1.8rem;
    }

    .dashboard-header p {
        font-size: 0.9rem;
    }

    .btn-create-project {
        padding: 10px 16px;
        font-size: 13px;
    }

    .reports-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .dashboard-search {
        margin-bottom: 16px;
    }

    .search-input {
        padding: 8px 40px 8px 36px;
        font-size: 13px;
    }

    .search-icon {
        left: 10px;
        font-size: 14px;
    }

    .clear-search-btn {
        right: 5px;
        padding: 3px 6px;
        font-size: 12px;
    }

    .search-results-count {
        display: none; /* Ocultamos el contador en pantallas muy pequeñas */
    }
}

/* Mobile Small */
@media (max-width: 360px) {
    .dashboard-main {
        padding: 8px;
    }

    .pagination-container {
        padding: 8px 0;
        gap: 10px;
    }

    .pagination-info {
        font-size: 0.7rem;
    }

    .pagination-page {
        min-width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    .pagination-btn {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }

    .dashboard-header h1 {
        font-size: 1.6rem;
    }

    .dashboard-header p {
        font-size: 0.85rem;
    }

    .btn-create-project {
        padding: 8px 12px;
        font-size: 12px;
    }

    .btn-create-project i {
        font-size: 14px;
    }

    .dashboard-search {
        margin-bottom: 12px;
    }

    .search-input {
        padding: 6px 36px 6px 32px;
        font-size: 12px;
    }

    .search-icon {
        left: 8px;
        font-size: 12px;
    }

    .clear-search-btn {
        right: 4px;
        padding: 2px 5px;
        font-size: 11px;
    }
}

/* Modal de eliminación de Contrato */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: modalOverlayFadeIn 0.3s ease-out;
}

@keyframes modalOverlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(4px);
    }
}

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.delete-project-modal {
    max-width: 600px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border-radius: 16px 16px 0 0;
    position: relative;
}

.modal-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #ff6b6b, #dc3545);
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: #dc3545;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.modal-close {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.2);
    font-size: 1.25rem;
    cursor: pointer;
    color: #dc3545;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: #dc3545;
    color: white;
    transform: scale(1.05);
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.modal-close:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-body {
    padding: 2.5rem;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.warning-message h3 {
    color: #dc3545;
    margin: 0 0 16px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.warning-message p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #1a1a1a;
}

.warning-message ul {
    margin: 16px 0;
    padding-left: 20px;
}

.warning-message li {
    margin: 8px 0;
    color: #1a1a1a;
    line-height: 1.5;
}

.warning-text {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 12px;
    border-left: 4px solid #dc3545;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 2.5rem;
    border-top: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 0 0 16px 16px;
}

.btn-cancel {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.btn-cancel:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.btn-delete:hover:not(:disabled) {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-cancel:disabled,
.btn-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal responsive */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 16px;
    }

    .modal-content {
        max-width: 100%;
        margin: 0;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .modal-body {
        padding: 20px;
    }

    .warning-message h3 {
        font-size: 1.1rem;
    }

    .modal-actions {
        flex-direction: column;
        padding: 16px 20px;
    }

    .btn-cancel,
    .btn-delete {
        width: 100%;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 12px;
    }

    .modal-header {
        padding: 12px 16px;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 16px;
    }

    .warning-message h3 {
        font-size: 1rem;
    }

    .warning-message p {
        font-size: 0.9rem;
    }

    .modal-actions {
        padding: 12px 16px;
    }

    .btn-cancel,
    .btn-delete {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Modo oscuro para el dashboard de contratos */
[data-theme="dark"] .dashboard-main {
    background: var(--fondo-general);
}

[data-theme="dark"] .dashboard-header h1 {
    color: white;
}

[data-theme="dark"] .dashboard-header p {
    color: #a0aec0;
}

[data-theme="dark"] .btn-create-project {
    background-color: #28a745 !important;
    color: white !important;
}

[data-theme="dark"] .btn-create-project:hover {
    background-color: #218838 !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

[data-theme="dark"] .search-icon {
    color: #a0aec0;
}

[data-theme="dark"] .search-input {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

[data-theme="dark"] .search-input::placeholder {
    color: #a0aec0;
}

[data-theme="dark"] .clear-search-btn {
    background: #e53e3e;
    color: white;
}

[data-theme="dark"] .clear-search-btn:hover {
    background: #c53030;
}

[data-theme="dark"] .search-results-count {
    background: var(--activa-azul);
    color: white;
}

[data-theme="dark"] .modal-overlay {
    background-color: rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .modal-content {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .modal-header {
    background: linear-gradient(135deg, #2d3748 0%, #374151 100%);
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .modal-header h2 {
    color: #e53e3e;
}

[data-theme="dark"] .modal-close {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
    color: #feb2b2;
}

[data-theme="dark"] .modal-close:hover:not(:disabled) {
    background-color: #e53e3e;
    color: white;
    border-color: #e53e3e;
}

[data-theme="dark"] .modal-body {
    background: linear-gradient(135deg, #2d3748 0%, #374151 100%);
}

[data-theme="dark"] .warning-message h3 {
    color: #e53e3e;
}

[data-theme="dark"] .warning-message p {
    color: #e2e8f0;
}

[data-theme="dark"] .warning-message li {
    color: #e2e8f0;
}

[data-theme="dark"] .warning-text {
    background-color: #742a2a;
    color: #feb2b2;
    border-left-color: #e53e3e;
}

[data-theme="dark"] .modal-actions {
    background: linear-gradient(135deg, #2d3748 0%, #374151 100%);
    border-top-color: #4a5568;
}

[data-theme="dark"] .btn-cancel {
    background: linear-gradient(135deg, #4a5568, #718096);
    color: #e2e8f0;
}

[data-theme="dark"] .btn-cancel:hover:not(:disabled) {
    background: linear-gradient(135deg, #718096, #a0aec0);
    color: #2d3748;
}

[data-theme="dark"] .btn-delete {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
}

[data-theme="dark"] .btn-delete:hover:not(:disabled) {
    background: linear-gradient(135deg, #c53030, #9b2c2c);
}
/* ============================================
   TABLA DE PROYECTOS - DISEÑO MODERNO Y LIMPIO
   Reconstruida desde cero con alineación perfecta
   ============================================ */

.projects-table-wrapper {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    margin-top: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.table-pagination-top {
    padding: 8px 16px;
    border-bottom: 1px solid #f1f3f5;
    background: #fdfdfd;
}

.table-pagination-bottom {
    padding: 8px 16px;
    border-top: 1px solid #f1f3f5;
    background: #fdfdfd;
}

.table-pagination-top .pagination-container,
.table-pagination-bottom .pagination-container {
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* ============================================
   TABLA PRINCIPAL
   ============================================ */

.projects-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* ============================================
   ENCABEZADOS (THEAD)
   ============================================ */

.projects-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.projects-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Columna Consecutivo - Ancho fijo, centrado */
.projects-table th.col-consecutivo {
    width: 100px;
    text-align: center;
    padding-left: 8px;
    padding-right: 8px;
}

/* Columna Precio - Alineada a la derecha */
.projects-table th.col-precio {
    text-align: center;
}

/* Columna Acciones - Alineada a la derecha */
.projects-table th.col-acciones {
    text-align: center;
}

/* ============================================
   FILAS (TBODY)
   ============================================ */

.projects-table tbody tr {
    border-bottom: 1px solid #f1f3f5;
    background-color: white;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.projects-table tbody tr:hover {
    background-color: #f8fafc;
    box-shadow: inset 4px 0 0 var(--activa-verde);
    transform: scale(1.002);
    z-index: 1;
}

.projects-table tbody tr:active {
    background-color: #f1f3f5;
}

.projects-table td {
    padding: 10px 12px;
    vertical-align: middle;
    color: #212529;
    font-size: 13px;
    line-height: 1.4;
}

/* Salto de línea en nombres y textos largos */
.projects-table-wrapper .projects-table td.col-nombre,
.projects-table-wrapper .projects-table td.col-ejecutivo,
.projects-table-wrapper .projects-table td.col-secretaria {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Columna Consecutivo - Mismo ancho y padding que el header */
.projects-table td.col-consecutivo {
    width: 100px;
    text-align: center;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-weight: 600;
    font-size: 13px;
    color: #495057;
}

/* Columna Precio - Alineada a la derecha */
.projects-table td.col-precio {
    text-align: center;
    font-weight: 500;
}

/* Columna Acciones - Alineada a la derecha */
.projects-table td.col-acciones {
    text-align: right;
    padding-right: 20px;
}

/* ============================================
   BADGES DE ESTADO
   ============================================ */

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.status-sent {
    background-color: #bfdbfe;
    color: #1e3a8a;
}

.status-approved {
    background-color: #e0f2e9;
    color: #0f5132;
}

.status-approved-client {
    background-color: #a7f3d0;
    color: #064e3b;
}

.status-draft {
    background-color: #f5f5f5;
    color: #757575;
}

.status-correction {
    background-color: #fff9c4;
    color: #f9a825;
}

.status-error {
    background-color: #ffebee;
    color: #d32f2f;
}

.status-default {
    background-color: #f5f5f5;
    color: #757575;
}

/* ============================================
   BOTONES DE ACCIÓN - Estilo Moderno Squircle
   ============================================ */

.action-buttons {
    display: flex !important;
    gap: 8px !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

.action-btn {
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    outline: none !important;
    margin: 0 !important;
}

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

.action-btn.edit {
    background: #34C759 !important;
    color: white !important;
}

.action-btn.edit:hover:not(:disabled) {
    background: #2db84e !important;
    box-shadow: 0 4px 8px rgba(52, 199, 89, 0.35) !important;
}

.action-btn.edit:active:not(:disabled) {
    transform: scale(0.98) !important;
}

.action-btn.download {
    background: #34C759 !important;
    color: white !important;
}

.action-btn.download:hover:not(:disabled) {
    background: #2db84e !important;
    box-shadow: 0 4px 8px rgba(52, 199, 89, 0.35) !important;
}

.action-btn.download:active:not(:disabled) {
    transform: scale(0.98) !important;
}

.action-btn.download i.loading {
    animation: spin 1s linear infinite !important;
}

.action-btn.delete {
    background: #dc3545 !important;
    color: white !important;
}

.action-btn.delete:hover:not(:disabled) {
    background: #c82333 !important;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.35) !important;
}

.action-btn.delete:active:not(:disabled) {
    transform: scale(0.98) !important;
}

.action-btn i {
    font-size: 13px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   ESTADOS DE CARGA Y VACÍO
   ============================================ */

.projects-table-loading,
.projects-table-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f1f3f5;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.projects-table-loading p,
.projects-table-empty p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.table-row-animate {
    animation: fadeIn 0.3s ease-out forwards;
}

/* ============================================
   CARDS MÓVILES
   ============================================ */

.mobile-cards {
    display: none;
}

/* ============================================
   CARDS (modo cards)
   Nota: estos estilos se aplican también en desktop
   para que funcione el toggle "cards" (no dependen solo de @media).
   ============================================ */

/* Se muestra solo cuando el toggle está en modo cards */
.mobile-cards--visible {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    align-items: stretch;
}

.mobile-cards--visible .project-card {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .mobile-cards--visible {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .mobile-cards--visible {
        grid-template-columns: 1fr;
    }

    .mobile-cards--visible {
        padding: 12px;
        gap: 12px;
    }

    .mobile-cards--visible .project-card {
        padding: 14px;
    }
}

.project-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-bottom: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.project-card:last-child {
    margin-bottom: 0;
}

.project-card:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
    gap: 12px;
}

.card-consecutive {
    font-size: 18px;
    font-weight: 700;
    color: #495057;
    letter-spacing: 0.2px;
}

/* Scoped: evita colisiones con otras .card-content globales */
.projects-table-wrapper .project-card .card-content {
    margin-bottom: 16px;
    display: grid;
    gap: 10px;
    align-items: start;
}

/* Scoped: evita colisiones con otras .card-field globales */
.projects-table-wrapper .project-card .card-field {
    margin-bottom: 0;
    padding: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    text-align: left !important;
}

.card-field:last-child {
    margin-bottom: 0;
}

.projects-table-wrapper .project-card .card-field label {
    font-weight: 700;
    color: #64748b;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
    text-align: left;
}

.projects-table-wrapper .project-card .card-field span {
    color: #212529;
    font-size: 14px;
    line-height: 1.35;
    display: block;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: left !important;
}

.card-field .price {
    font-weight: 800;
    color: #28a745;
}

.projects-table-wrapper .project-card .card-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #e9ecef;
}

/* ============================================
   LISTA (tabla compacta / modo lista)
   ============================================ */

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

.project-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-list-item:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
}

.project-list-main {
    flex: 1;
    min-width: 0;
}

.project-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.project-list-consecutive {
    font-size: 18px;
    font-weight: 800;
    color: #495057;
    letter-spacing: 0.2px;
}

.project-list-name {
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #334155;
}

.project-list-meta strong {
    color: #64748b;
    font-weight: 600;
}

.project-list-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

[data-theme="dark"] .project-list-item {
    background: #2d3748;
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .project-list-name {
    color: #e2e8f0;
}

[data-theme="dark"] .project-list-meta {
    color: #cbd5e1;
}

/* ============================================
   RESPONSIVE - TABLET Y MÓVIL
   ============================================ */

@media (max-width: 1024px) {
    .projects-table-wrapper {
        margin-top: 20px;
    }

    .projects-table {
        display: none;
    }

    .mobile-cards {
        display: none;
        padding: 0;
    }

    .mobile-cards.mobile-cards--visible {
        display: grid !important;
        padding: 16px;
    }

    .project-card {
        background: white;
        border-radius: 12px;
        border: 1px solid #e9ecef;
        margin-bottom: 16px;
        padding: 16px;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    }

    .project-card:last-child {
        margin-bottom: 0;
    }

    .project-card:hover {
        background-color: #f8f9fa;
        border-color: #dee2e6;
        box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
    }

    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid #e9ecef;
        gap: 12px;
    }

    .card-consecutive {
        font-size: 18px;
        font-weight: 700;
        color: #495057;
        letter-spacing: 0.2px;
    }

    /* Scoped: evita colisiones con otras .card-content globales */
    .projects-table-wrapper .project-card .card-content {
        margin-bottom: 16px;
        display: grid;
        gap: 10px;
        align-items: start;
    }

    /* Scoped: evita colisiones con otras .card-field globales */
    .projects-table-wrapper .project-card .card-field {
        margin-bottom: 0;
        padding: 0;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        text-align: left !important;
    }

    .card-field:last-child {
        margin-bottom: 0;
    }

    .projects-table-wrapper .project-card .card-field label {
        font-weight: 700;
        color: #64748b;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 6px;
        display: block;
        text-align: left;
    }

    .projects-table-wrapper .project-card .card-field span {
        color: #212529;
        font-size: 14px;
        line-height: 1.35;
        display: block;
        word-break: break-word;
        overflow-wrap: anywhere;
        text-align: left !important;
    }

    .card-field .price {
        font-weight: 800;
        color: #28a745;
    }

    .projects-table-wrapper .project-card .card-actions {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding-top: 14px;
        border-top: 1px solid #e9ecef;
    }
}

@media (max-width: 768px) {
    .mobile-cards.mobile-cards--visible {
        padding: 12px;
    }

    .project-card {
        padding: 14px;
        margin-bottom: 12px;
    }

    .card-header {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .card-consecutive {
        font-size: 16px;
    }

    .card-content {
        margin-bottom: 12px;
    }

    .card-field label {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .card-field span {
        font-size: 13px;
    }

    .card-actions {
        padding-top: 12px;
        gap: 8px;
    }

    .action-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 10px;
    }

    .action-btn i {
        font-size: 16px;
    }
}

/* ============================================
   MODO OSCURO
   ============================================ */

[data-theme="dark"] .projects-table-wrapper {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .projects-table th {
    background-color: #2d3748;
    color: #a0aec0;
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .projects-table tbody tr {
    background-color: #2d3748;
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .projects-table tbody tr:hover {
    background-color: #374151;
}

[data-theme="dark"] .projects-table tbody tr:active {
    background-color: #4a5568;
}

[data-theme="dark"] .projects-table td {
    color: #e2e8f0;
}

[data-theme="dark"] .projects-table td.col-consecutivo {
    color: #e2e8f0;
}

[data-theme="dark"] .projects-table-loading,
[data-theme="dark"] .projects-table-empty {
    background: #2d3748;
}

[data-theme="dark"] .projects-table-loading p,
[data-theme="dark"] .projects-table-empty p {
    color: #a0aec0;
}

[data-theme="dark"] .loading-spinner {
    border-color: #4a5568;
    border-top-color: #007bff;
}

/* Badges en modo oscuro - Mismo estilo que modo claro (sin cambios) */
[data-theme="dark"] .status-badge {
    border: 1px solid transparent !important;
}

[data-theme="dark"] .status-sent {
    background-color: #1e3a8a !important;
    color: #93c5fd !important;
}

[data-theme="dark"] .status-approved {
    background-color: #1a4d2e !important;
    color: #86efac !important;
}

[data-theme="dark"] .status-approved-client {
    background-color: #065f46 !important;
    color: #6ee7b7 !important;
}

[data-theme="dark"] .status-draft {
    background-color: #f5f5f5 !important;
    color: #757575 !important;
}

[data-theme="dark"] .status-correction {
    background-color: #fff9c4 !important;
    color: #f9a825 !important;
}

[data-theme="dark"] .status-error {
    background-color: #ffebee !important;
    color: #d32f2f !important;
}

[data-theme="dark"] .status-default {
    background-color: #f5f5f5 !important;
    color: #757575 !important;
}

/* Cards móviles en modo oscuro */
[data-theme="dark"] .project-card {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .project-card:hover {
    background-color: #374151;
    border-color: #718096;
}

[data-theme="dark"] .card-header {
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .card-consecutive {
    color: #e2e8f0;
}

[data-theme="dark"] .projects-table-wrapper .project-card .card-field label {
    color: #e2e8f0;
}

[data-theme="dark"] .projects-table-wrapper .project-card .card-field span {
    color: #f8fafc;
}

[data-theme="dark"] .projects-table-wrapper .project-card .card-field .price {
    color: #6ee7b7;
}

[data-theme="dark"] .card-actions {
    border-top-color: #4a5568;
}

/* Modo oscuro para botones de acción */
[data-theme="dark"] .action-btn.edit {
    background-color: #007bff;
    color: white;
}

[data-theme="dark"] .action-btn.edit:hover:not(:disabled) {
    background-color: #0056b3;
    opacity: 0.9;
}

[data-theme="dark"] .action-btn.edit:active:not(:disabled) {
    opacity: 0.8;
    transform: scale(0.95);
}

[data-theme="dark"] .action-btn.download {
    background-color: #28a745;
    color: white;
}

[data-theme="dark"] .action-btn.download:hover:not(:disabled) {
    background-color: #218838;
    opacity: 0.9;
}

[data-theme="dark"] .action-btn.download:active:not(:disabled) {
    opacity: 0.8;
    transform: scale(0.95);
}

[data-theme="dark"] .action-btn.delete {
    background-color: #dc3545;
    color: white;
}

[data-theme="dark"] .action-btn.delete:hover:not(:disabled) {
    background-color: #c82333;
    opacity: 0.9;
}

[data-theme="dark"] .action-btn.delete:active:not(:disabled) {
    opacity: 0.8;
    transform: scale(0.95);
}

/* ============================================
   DARK MODE - Tabla de Proyectos y Wrappers
   ============================================ */

[data-theme="dark"] .projects-table-wrapper {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

[data-theme="dark"] .table-pagination-top,
[data-theme="dark"] .table-pagination-bottom {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .projects-table thead {
    background-color: transparent;
}

[data-theme="dark"] .projects-table th {
    background: rgba(255, 255, 255, 0.05); /* Header oscuro sutil */
    color: #e2e8f0;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .projects-table td {
    border-bottom-color: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
}

[data-theme="dark"] .projects-table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.04);
}

/* Scrollbar para la tabla en modo oscuro */
[data-theme="dark"] .table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}.table-loading-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 2rem;
    width: 100%;
}

.table-loading-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.table-loading-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.table-loading-text {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.table-loading-bar-wrap {
    width: 160px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.table-loading-bar {
    height: 100%;
    width: 40%;
    background: var(--activa-verde, #34C759);
    border-radius: 3px;
    animation: tableLoadingBar 1.2s ease-in-out infinite;
}

@keyframes tableLoadingBar {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(150%); }
    100% { transform: translateX(-100%); }
}

[data-theme="dark"] .table-loading-box {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .table-loading-text {
    color: #e2e8f0;
}

[data-theme="dark"] .table-loading-bar-wrap {
    background: #4a5568;
}
/* Formulario del panel lateral */
.side-panel-form {
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Secciones del formulario */
.form-section {
    margin-bottom: 32px;
    padding: 24px;
    background: #fafbfc;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    width: 100%;
    box-sizing: border-box;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title::before {
    content: "";
    width: 20px;
    height: 20px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c757d'%3E%3Cpath d='M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
}

.form-section.basic-info .form-section-title::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c757d'%3E%3Cpath d='M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z'/%3E%3C/svg%3E");
}

.form-section.team .form-section-title::before {
    display: none;
}

.form-section.pricing .form-section-title::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c757d'%3E%3Cpath d='M5,6H23V18H5V6M7,8V16H21V8H7M9,10H19V12H9V10M9,13H19V14H9V13Z'/%3E%3C/svg%3E");
}

.form-group {
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background-color: #ffffff;
    max-width: 100%;
    position: relative;
    font-family: inherit;
    line-height: 1.5;
    color: #2c3e50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    min-width: 0;
    flex: 1;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow:
        0 0 0 4px rgba(0, 123, 255, 0.1),
        0 4px 12px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
    background-color: #fafbff;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.08);
}

.form-group input:invalid,
.form-group textarea:invalid,
.form-group select:invalid {
    border-color: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown),
.form-group select:valid:not(:placeholder-shown) {
    border-color: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
    font-family: inherit;
    padding-top: 18px;
    padding-bottom: 18px;
}

.form-group textarea::placeholder {
    color: #6c757d;
    font-style: italic;
    opacity: 0.8;
}

/* Character count styling */
.character-count {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
}

.character-count.warning {
    color: #ffc107;
}

.character-count.error {
    color: #dc3545;
}

.character-count.success {
    color: #28a745;
}

/* Number input specific styling */
.side-panel-form .form-group input[type="number"] {
    text-align: right;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.side-panel-form .form-group input[type="number"]::-webkit-outer-spin-button,
.side-panel-form .form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.side-panel-form .form-group input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Currency input wrapper */
.currency-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 20px;
    color: #6c757d;
    font-weight: 600;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.currency-input-wrapper input[type="number"] {
    padding-left: 50px;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

/* Form row layout */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Input icons */
.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

/* Icon styles */
.input-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.form-group:focus-within .input-icon {
    color: #007bff;
}

/* Loading states */
.input-loading {
    position: relative;
    overflow: hidden;
}

.input-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Error states */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
}

.form-group.error .input-icon {
    color: #28a745;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.error-message::before {
    content: "⚠";
    font-size: 12px;
}

/* Success states */
.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
}

.form-group.success .input-icon {
    color: #28a745;
}

.form-group .success-message {
    color: #28a745;
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
}

.form-group .success-message::before {
    content: "✓";
    font-size: 12px;
    font-weight: bold;
}

.loading-text {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #007bff;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 6px;
}

.loading-text::before {
    content: "⏳";
    font-size: 12px;
}

/* Acciones del panel */
.side-panel-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 2px solid #e9ecef;
    background: #fafbfc;
    padding: 24px 32px;
    margin: 32px -32px -32px -32px;
}

/* ============================================
   ACCIONES DEL PANEL - estilos scoped al form
   ============================================ */

.side-panel-form .btn-cancel,
.side-panel-form .btn-create {
    padding: 14px 28px;
    border-radius: 50px !important; /* pill redondeado */
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Cancelar: transparente con borde y texto verde */
.side-panel-form .btn-cancel {
    background-color: transparent !important;
    color: var(--activa-verde) !important;
    border: 2px solid var(--activa-verde) !important;
    box-shadow: none !important;
}

.side-panel-form .btn-cancel:hover {
    background-color: rgba(0, 175, 79, 0.08) !important;
    color: var(--activa-verde) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 175, 79, 0.15) !important;
}

/* Crear contrato: fondo verde sólido */
.side-panel-form .btn-create {
    background: var(--activa-verde) !important;
    color: white !important;
    border: 2px solid var(--activa-verde) !important;
    box-shadow: 0 4px 14px rgba(0, 175, 79, 0.3) !important;
}

.side-panel-form .btn-create:hover:not(:disabled) {
    background: #009641 !important;
    border-color: #009641 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 175, 79, 0.4) !important;
}

.side-panel-form .btn-create:disabled {
    background: #a8d5bc !important;
    border-color: #a8d5bc !important;
    color: white !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none !important;
}

/* Selector de proveedores con autocompletado */
.proveedor-selector {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
}

.proveedor-selector input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
    background-color: white;
    margin-bottom: 0;
}

.proveedor-selector input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
}

.proveedor-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 2px;
    background: white;
    border: 2px solid #007bff;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 10000;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.proveedor-option {
    padding: 14px 18px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s;
}

.proveedor-option:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
}

.proveedor-option:last-child {
    border-bottom: none;
}

.proveedor-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    word-break: break-word;
    line-height: 1.3;
    margin-bottom: 2px;
}

.proveedor-email {
    font-size: 13px;
    color: #6c757d;
    margin-top: 4px;
    word-break: break-all;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.no-results {
    padding: 16px 18px;
    color: #6c757d;
    font-style: italic;
    text-align: center;
    background: #f8f9fa;
}

.selected-proveedors {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
    box-sizing: border-box;
    max-height: 120px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fafbfc;
}

.selected-proveedors-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    min-height: 40px;
}

.selected-proveedor {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #1976d2;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    color: #1976d2;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(25, 118, 210, 0.2);
    transition: all 0.2s;
    box-sizing: border-box;
    min-height: 36px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 200px;
    max-width: 300px;
}

.selected-proveedor:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.selected-proveedor span {
    margin-right: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-proveedor {
    background: none;
    border: none;
    color: #1976d2;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
}

.remove-proveedor:hover {
    background-color: #1976d2;
    color: white;
    transform: scale(1.1);
}

/* Lista completa de proveedores */
.proveedor-list {
    margin-top: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: auto;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    max-height: 220px;
}

/* Botones para seleccionar/deseleccionar todos */
.proveedor-actions {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-select-all,
.btn-deselect-all {
    padding: 10px 20px;
    border-radius: 50px; /* Redondeados igual que los de acciones */
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    flex: 1;
    min-width: 130px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Seleccionar todos: fondo verde sólido */
.btn-select-all {
    background: var(--activa-verde);
    color: white;
    border: 2px solid var(--activa-verde);
    box-shadow: 0 2px 8px rgba(0, 175, 79, 0.25);
}

.btn-select-all:hover {
    background: #009641;
    border-color: #009641;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 175, 79, 0.35);
}

/* Deseleccionar: transparente con borde verde */
.btn-deselect-all {
    background: transparent;
    color: var(--activa-verde);
    border: 2px solid var(--activa-verde);
    box-shadow: none;
}

.btn-deselect-all:hover {
    background: rgba(0, 175, 79, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 175, 79, 0.15);
}

.proveedor-list-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px 20px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.proveedor-list-header span {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.proveedor-list-header small {
    color: #6c757d;
    font-size: 12px;
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.proveedor-list-content {
    max-height: none;
    overflow-x: hidden;
}

.proveedor-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 60px;
    box-sizing: border-box;
}

.proveedor-list-item:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
}

.proveedor-list-item.selected {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #1976d2;
}

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

.proveedor-item-info {
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.proveedor-item-checkbox {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 2px solid #ddd;
    background-color: white;
    transition: all 0.2s;
}

.checkbox-checked {
    color: #1976d2;
    font-weight: bold;
    font-size: 16px;
}

.checkbox-unchecked {
    width: 100%;
    height: 100%;
}

.proveedor-list-item.selected .proveedor-item-checkbox {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    border-color: #1976d2;
    transform: scale(1.1);
}

.proveedor-list-item.selected .checkbox-checked {
    color: white;
}

/* Responsive design para form-row */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

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

/* Responsive design para selected-proveedors */
@media (max-width: 1024px) {
    .selected-proveedors {
        max-height: 100px;
    }

    .selected-proveedor {
        font-size: 11px;
        padding: 5px 10px;
        min-height: 32px;
        min-width: 180px;
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .selected-proveedors {
        max-height: 90px;
        gap: 6px;
    }

    .selected-proveedor {
        font-size: 10px;
        padding: 4px 8px;
        min-height: 28px;
        min-width: 160px;
        max-width: 220px;
    }

    .selected-proveedors-row {
        gap: 6px;
    }
}

/* Responsive design */
/* Tablet */
@media (max-width: 1024px) {
    .side-panel-form {
        padding: 28px;
    }

    .form-section {
        padding: 20px;
        margin-bottom: 28px;
    }

    .form-section-title {
        font-size: 1rem;
    }

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

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 16px;
        font-size: 14px;
    }

    .proveedor-list-content {
        max-height: none;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .side-panel-form {
        padding: 24px;
    }

    .form-section {
        padding: 16px;
        margin-bottom: 24px;
    }

    .form-section-title {
        font-size: 0.95rem;
    }

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

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 14px;
        font-size: 14px;
    }

    .side-panel-actions {
        flex-direction: column;
        padding: 20px 24px;
        margin: 24px -24px -24px -24px;
    }

    .btn-cancel,
    .btn-create {
        width: 100%;
        min-width: auto;
        padding: 12px 24px;
        font-size: 14px;
    }

    .proveedor-list-content {
        max-height: none;
    }

    .proveedor-actions {
        flex-direction: column;
        gap: 8px;
    }

    .btn-select-all,
    .btn-deselect-all {
        width: 100%;
        min-width: auto;
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Mobile Medium */
@media (max-width: 480px) {
    .side-panel-form {
        padding: 20px;
    }

    .form-section {
        padding: 12px;
        margin-bottom: 20px;
    }

    .form-section-title {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

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

    .form-group label {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 12px;
        font-size: 13px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .side-panel-actions {
        padding: 16px 20px;
        margin: 20px -20px -20px -20px;
    }

    .btn-cancel,
    .btn-create {
        padding: 10px 20px;
        font-size: 13px;
    }

    .proveedor-list-content {
        max-height: none;
    }

    .proveedor-list-item {
        padding: 12px 16px;
    }

    .proveedor-name {
        font-size: 13px;
    }

    .proveedor-email {
        font-size: 12px;
    }
}

/* Mobile Small */
@media (max-width: 360px) {
    .side-panel-form {
        padding: 16px;
    }

    .form-section {
        padding: 10px;
        margin-bottom: 16px;
    }

    .form-section-title {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

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

    .form-group label {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 8px 10px;
        font-size: 12px;
    }

    .form-group textarea {
        min-height: 80px;
    }

    .side-panel-actions {
        padding: 12px 16px;
        margin: 16px -16px -16px -16px;
    }

    .btn-cancel,
    .btn-create {
        padding: 8px 16px;
        font-size: 12px;
    }

    .proveedor-list-content {
        max-height: none;
    }

    .proveedor-list-item {
        padding: 10px 12px;
    }

    .proveedor-name {
        font-size: 12px;
    }

    .proveedor-email {
        font-size: 11px;
    }

    .selected-proveedor {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Modo oscuro para el modal de crear contrato */
[data-theme="dark"] .side-panel-form {
    background: #2d3748;
}

[data-theme="dark"] .form-section {
    background: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .form-section-title {
    color: #e2e8f0;
    border-bottom-color: #718096;
}

[data-theme="dark"] .form-group label {
    color: #e2e8f0;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background-color: #2d3748;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
    border-color: #007bff;
    box-shadow:
        0 0 0 4px rgba(0, 123, 255, 0.1),
        0 4px 12px rgba(0, 123, 255, 0.15);
    background-color: #374151;
}

[data-theme="dark"] .form-group input:hover,
[data-theme="dark"] .form-group textarea:hover,
[data-theme="dark"] .form-group select:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.08);
}

[data-theme="dark"] .form-group textarea::placeholder {
    color: #a0aec0;
}

[data-theme="dark"] .character-count {
    color: #a0aec0;
}

[data-theme="dark"] .character-count.warning {
    color: #fbd38d;
}

[data-theme="dark"] .character-count.error {
    color: #feb2b2;
}

[data-theme="dark"] .character-count.success {
    color: #9ae6b4;
}

[data-theme="dark"] .currency-symbol {
    color: #a0aec0;
}

[data-theme="dark"] .form-group small {
    color: #a0aec0;
}

[data-theme="dark"] .input-icon {
    color: #a0aec0;
}

[data-theme="dark"] .form-group:focus-within .input-icon {
    color: #007bff;
}

[data-theme="dark"] .error-message {
    color: #feb2b2;
}

[data-theme="dark"] .form-group .success-message {
    color: #9ae6b4;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

[data-theme="dark"] .loading-text {
    color: #90cdf4;
}

[data-theme="dark"] .side-panel-actions {
    background: #4a5568;
    border-top-color: #718096;
}

[data-theme="dark"] .btn-cancel {
    background-color: #4a5568;
    color: #e2e8f0;
    border-color: #718096;
}

[data-theme="dark"] .btn-cancel:hover {
    background-color: #718096;
    color: #2d3748;
}

[data-theme="dark"] .btn-create {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

[data-theme="dark"] .btn-create:hover:not(:disabled) {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

[data-theme="dark"] .btn-create:disabled {
    background: #4a5568;
    color: #a0aec0;
}

[data-theme="dark"] .proveedor-selector input {
    background-color: #2d3748;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .proveedor-selector input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

[data-theme="dark"] .proveedor-dropdown {
    background: #2d3748;
    border-color: #007bff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .proveedor-option {
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .proveedor-option:hover {
    background-color: #4a5568;
}

[data-theme="dark"] .proveedor-name {
    color: #e2e8f0;
}

[data-theme="dark"] .proveedor-email {
    color: #a0aec0;
}

[data-theme="dark"] .no-results {
    color: #a0aec0;
    background: #4a5568;
}

[data-theme="dark"] .selected-proveedors {
    border-color: #718096;
    background: #4a5568;
}

[data-theme="dark"] .selected-proveedor {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    border-color: #90cdf4;
    color: #90cdf4;
    box-shadow: 0 2px 6px rgba(144, 205, 244, 0.2);
}

[data-theme="dark"] .selected-proveedor:hover {
    box-shadow: 0 4px 12px rgba(144, 205, 244, 0.3);
}

[data-theme="dark"] .remove-proveedor {
    color: #90cdf4;
}

[data-theme="dark"] .remove-proveedor:hover {
    background-color: #90cdf4;
    color: #2d3748;
}

[data-theme="dark"] .proveedor-list {
    border-color: #718096;
    background: #2d3748;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .btn-select-all {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

[data-theme="dark"] .btn-select-all:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
}

[data-theme="dark"] .btn-deselect-all {
    background: transparent !important;
    color: var(--activa-verde) !important;
    border-color: var(--activa-verde) !important;
}

[data-theme="dark"] .btn-deselect-all:hover {
    background: rgba(0, 175, 79, 0.1) !important;
}

[data-theme="dark"] .proveedor-list-header {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    border-bottom-color: #718096;
}

[data-theme="dark"] .proveedor-list-header span {
    color: #e2e8f0;
}

[data-theme="dark"] .proveedor-list-header small {
    background: #007bff;
    color: white;
}

[data-theme="dark"] .proveedor-list-item {
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .proveedor-list-item:hover {
    background-color: #4a5568;
}

[data-theme="dark"] .proveedor-list-item.selected {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    border-left-color: #90cdf4;
}

/* ============================================
   BOTÓN "AGREGAR" EMAIL - scoped al form
   ============================================ */
.side-panel-form .btn-add-email {
    padding: 10px 20px;
    background: var(--activa-verde) !important;
    color: white !important;
    border: 2px solid var(--activa-verde) !important;
    border-radius: 50px !important; /* Redondeado */
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 175, 79, 0.25) !important;
}

.side-panel-form .btn-add-email:hover {
    background: #009641 !important;
    border-color: #009641 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 175, 79, 0.35) !important;
}

.side-panel-form .btn-add-email:active {
    transform: translateY(0);
}

[data-theme="dark"] .proveedor-item-checkbox {
    border-color: #a0aec0;
    background-color: #2d3748;
}

[data-theme="dark"] .checkbox-checked {
    color: #90cdf4;
}

[data-theme="dark"] .proveedor-list-item.selected .proveedor-item-checkbox {
    background: linear-gradient(135deg, #90cdf4 0%, #63b3ed 100%);
    border-color: #90cdf4;
}

[data-theme="dark"] .proveedor-list-item.selected .checkbox-checked {
    color: #2d3748;
}

/* ============================================
   DARK MODE - Overrides de alta especificidad
   para botones del side-panel-form
   ============================================ */

[data-theme="dark"] .side-panel-form .btn-cancel {
    background-color: transparent !important;
    color: var(--activa-verde) !important;
    border: 2px solid var(--activa-verde) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .side-panel-form .btn-cancel:hover {
    background-color: rgba(0, 175, 79, 0.1) !important;
    color: var(--activa-verde) !important;
}

[data-theme="dark"] .side-panel-form .btn-add-email {
    background: var(--activa-verde) !important;
    color: white !important;
    border-color: var(--activa-verde) !important;
}

/* ============================================
   DARK MODE - Secciones blancas del panel
   ============================================ */

/* Sección header formula */
[data-theme="dark"] .form-section {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .side-panel-actions {
    background: rgba(255, 255, 255, 0.03);
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* Selected proveedors chip */
[data-theme="dark"] .selected-proveedors {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Lista proveedores */
[data-theme="dark"] .proveedor-list {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .proveedor-list-item {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .proveedor-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .proveedor-list-header {
    background: rgba(255, 255, 255, 0.04);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Dropdown */
[data-theme="dark"] .proveedor-dropdown {
    background: #1e293b;
    border-color: var(--activa-verde);
}

[data-theme="dark"] .proveedor-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Inputs dentro del form */
[data-theme="dark"] .proveedor-selector input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}
/* Overlay */
.side-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    animation: fadeIn 0.3s ease-out;
}

/* Panel principal */
.side-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease-out;
    overflow: hidden;
}

/* Header del panel */
.side-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    background-color: var(--activa-verde-transparente);
    backdrop-filter: blur(200px);
    flex-shrink: 0;
}

.side-panel-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--texto-principal);
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-panel-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--texto-principal);
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.side-panel-close:hover {
    background-color: var(--activa-verde);
    color: #fff;
    transform: scale(1.1);
}

/* Contenido del panel */
.side-panel-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.side-panel-content.is-dragging {
    cursor: grabbing;
    user-select: none;
    touch-action: none;
}

/* Scrollbar visible y delgado (Chrome/Edge/Safari) */
.side-panel-content::-webkit-scrollbar {
    width: 6px;
}

.side-panel-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 999px;
}

.side-panel-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 174, 239, 0.7) 0%, rgba(0, 175, 79, 0.7) 100%);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.side-panel-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0, 174, 239, 0.85) 0%, rgba(0, 175, 79, 0.85) 100%);
}

/* Soporte para paneles laterales con contenido custom */
.delete-project-content,
.delete-report-content,
.confirmation-content {
    scrollbar-gutter: stable both-edges;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 174, 239, 0.55) rgba(0, 0, 0, 0.1);
}

.delete-project-content::-webkit-scrollbar,
.delete-report-content::-webkit-scrollbar,
.confirmation-content::-webkit-scrollbar {
    width: 6px;
}

.delete-project-content::-webkit-scrollbar-track,
.delete-report-content::-webkit-scrollbar-track,
.confirmation-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 999px;
}

.delete-project-content::-webkit-scrollbar-thumb,
.delete-report-content::-webkit-scrollbar-thumb,
.confirmation-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 174, 239, 0.7) 0%, rgba(0, 175, 79, 0.7) 100%);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.delete-project-content::-webkit-scrollbar-thumb:hover,
.delete-report-content::-webkit-scrollbar-thumb:hover,
.confirmation-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0, 174, 239, 0.85) 0%, rgba(0, 175, 79, 0.85) 100%);
}

/* Animaciones */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
/* Tablet */
@media (max-width: 1024px) {
    .side-panel {
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw;
    }

    .side-panel-header {
        padding: 22px 28px;
    }

    .side-panel-title {
        font-size: 1.4rem;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .side-panel {
        left: auto !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw;
    }

    .side-panel-header {
        padding: 20px 24px;
    }

    .side-panel-title {
        font-size: 1.3rem;
    }

    .side-panel-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* Mobile Medium */
@media (max-width: 480px) {
    .side-panel-header {
        padding: 16px 20px;
    }

    .side-panel-title {
        font-size: 1.2rem;
    }

    .side-panel-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* Mobile Small */
@media (max-width: 360px) {
    .side-panel-header {
        padding: 14px 16px;
    }

    .side-panel-title {
        font-size: 1.1rem;
    }

    .side-panel-close {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* Modo oscuro para el SidePanel */
[data-theme="dark"] .side-panel {
    background: #2d3748;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .side-panel-header {
    background-color: #4a5568;
    border-bottom-color: #718096;
}

[data-theme="dark"] .side-panel-title {
    color: #e2e8f0;
}

[data-theme="dark"] .side-panel-close {
    color: #e2e8f0;
}

[data-theme="dark"] .side-panel-close:hover {
    background-color: var(--activa-verde);
    color: #fff;
}

[data-theme="dark"] .side-panel-content {
    background: #2d3748;
    scrollbar-color: rgba(56, 189, 248, 0.7) rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .side-panel-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .side-panel-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.8) 0%, rgba(34, 197, 94, 0.78) 100%);
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .side-panel-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.95) 0%, rgba(34, 197, 94, 0.92) 100%);
}

[data-theme="dark"] .delete-project-content,
[data-theme="dark"] .delete-report-content,
[data-theme="dark"] .confirmation-content {
    scrollbar-color: rgba(56, 189, 248, 0.7) rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .delete-project-content::-webkit-scrollbar-track,
[data-theme="dark"] .delete-report-content::-webkit-scrollbar-track,
[data-theme="dark"] .confirmation-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .delete-project-content::-webkit-scrollbar-thumb,
[data-theme="dark"] .delete-report-content::-webkit-scrollbar-thumb,
[data-theme="dark"] .confirmation-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.8) 0%, rgba(34, 197, 94, 0.78) 100%);
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .delete-project-content::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] .delete-report-content::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] .confirmation-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.95) 0%, rgba(34, 197, 94, 0.92) 100%);
}

/* ============================================
   Botones Crear / Actualizar / Cancelar (mismo estilo que Contratos)
   ============================================ */

.side-panel form .btn-cancel,
.side-panel form .btn-create,
.side-panel .form-actions .btn-cancel,
.side-panel .form-actions .btn-create,
.side-panel form .btn-page-primary {
    padding: 14px 28px;
    border-radius: 50px !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.side-panel form .btn-cancel,
.side-panel .form-actions .btn-cancel {
    background-color: transparent !important;
    color: var(--activa-verde) !important;
    border: 2px solid var(--activa-verde) !important;
    box-shadow: none !important;
}

.side-panel form .btn-cancel:hover,
.side-panel .form-actions .btn-cancel:hover {
    background-color: rgba(0, 175, 79, 0.08) !important;
    color: var(--activa-verde) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 175, 79, 0.15) !important;
}

.side-panel form .btn-create,
.side-panel .form-actions .btn-create,
.side-panel form .btn-page-primary {
    background: var(--activa-verde) !important;
    color: white !important;
    border: 2px solid var(--activa-verde) !important;
    box-shadow: 0 4px 14px rgba(0, 175, 79, 0.3) !important;
}

.side-panel form .btn-create:hover:not(:disabled),
.side-panel .form-actions .btn-create:hover:not(:disabled),
.side-panel form .btn-page-primary:hover:not(:disabled) {
    background: #009641 !important;
    border-color: #009641 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 175, 79, 0.4) !important;
}

.side-panel form .btn-create:disabled,
.side-panel .form-actions .btn-create:disabled {
    background: #a8d5bc !important;
    border-color: #a8d5bc !important;
    color: white !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .side-panel form .btn-cancel,
    .side-panel form .btn-create,
    .side-panel .form-actions .btn-cancel,
    .side-panel .form-actions .btn-create,
    .side-panel form .btn-page-primary {
        width: 100%;
        min-width: auto;
    }
}

[data-theme="dark"] .side-panel form .btn-cancel,
[data-theme="dark"] .side-panel .form-actions .btn-cancel {
    background-color: transparent !important;
    color: var(--activa-verde) !important;
    border-color: var(--activa-verde) !important;
}

[data-theme="dark"] .side-panel form .btn-cancel:hover,
[data-theme="dark"] .side-panel .form-actions .btn-cancel:hover {
    background-color: rgba(0, 175, 79, 0.1) !important;
    color: var(--activa-verde) !important;
}

[data-theme="dark"] .side-panel form .btn-create,
[data-theme="dark"] .side-panel .form-actions .btn-create,
[data-theme="dark"] .side-panel form .btn-page-primary {
    background: var(--activa-verde) !important;
    color: white !important;
    border-color: var(--activa-verde) !important;
}

[data-theme="dark"] .side-panel form .btn-create:hover:not(:disabled),
[data-theme="dark"] .side-panel .form-actions .btn-create:hover:not(:disabled),
[data-theme="dark"] .side-panel form .btn-page-primary:hover:not(:disabled) {
    background: #009641 !important;
    border-color: #009641 !important;
}

[data-theme="dark"] .side-panel form .btn-create:disabled,
[data-theme="dark"] .side-panel .form-actions .btn-create:disabled {
    background: #4a5568 !important;
    border-color: #4a5568 !important;
    color: #a0aec0 !important;
}
/* Forzar el comportamiento del SidePanel */
.delete-project-panel {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: 500px !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  transform: none !important;
  animation: slideInRight 0.3s ease-out !important;
}

/* Header del panel de eliminación */
.delete-project-panel .side-panel-header {
  background-color: #ffebee !important;
  border-bottom: 2px solid #e57373;
}

.delete-project-panel .side-panel-title {
  color: #c62828 !important;
}

.delete-project-panel .side-panel-close:hover {
  background-color: #dc3545 !important;
  color: #fff !important;
  transform: scale(1.1);
}

/* Contenido del panel de eliminación */
.delete-project-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  text-align: left;
  min-height: 100%;
}

/* Icono de advertencia */
.warning-icon {
  text-align: center;
  margin-bottom: 24px;
}

.warning-icon i {
  font-size: 4rem;
  color: #dc3545;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Mensaje de advertencia */
.warning-message {
  background: #fff5f5;
  border: 2px solid #fed7d7;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: left;
}

.warning-message h3 {
  color: #dc3545;
  margin: 0 0 16px 0;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.warning-message p {
  margin: 0 0 12px 0;
  line-height: 1.6;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.warning-message ul {
  margin: 16px 0;
  padding-left: 20px;
}

.warning-message li {
  margin: 8px 0;
  color: #1a1a1a;
  line-height: 1.5;
  font-size: 0.9rem;
}

.warning-text {
  background-color: #f8d7da;
  color: #721c24;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #dc3545;
  font-weight: 600;
  margin-top: 16px;
  text-align: center;
  font-size: 1rem;
}

/* Información del proyecto */
.project-info {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.project-info h4 {
  margin: 0 0 16px 0;
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 8px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

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

.info-item .label {
  font-weight: 600;
  color: #6c757d;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item .value {
  color: #2c3e50;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: right;
  max-width: 100%;
  word-break: break-word;
}

/* Acciones del panel */
.side-panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: auto;
  padding: 24px 32px;
  margin-left: -32px;
  margin-right: -32px;
  margin-bottom: -32px;
  border-top: 2px solid #e9ecef;
  background: #fafbfc;
}

.btn-cancel,
.btn-delete {
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 140px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.btn-cancel {
  background-color: #f8f9fa;
  color: #6c757d;
  border: 2px solid #e9ecef;
}

.btn-cancel:hover:not(:disabled) {
  background-color: #e9ecef;
  color: #495057;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-delete {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
  width: 100% !important;
}

.btn-delete:hover:not(:disabled) {
  background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-cancel:disabled,
.btn-delete:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive design */
/* Tablet */
@media (max-width: 1024px) {
  .delete-project-content {
    padding: 28px;
  }

  .warning-icon i {
    font-size: 3.5rem;
  }

  .warning-message {
    padding: 22px;
    margin-bottom: 22px;
  }

  .warning-message h3 {
    font-size: 1.25rem;
  }

  .project-info {
    padding: 18px;
    margin-bottom: 22px;
  }

  .project-info h4 {
    font-size: 1.05rem;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  .delete-project-panel {
    left: auto !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .delete-project-content {
    padding: 24px;
  }

  .warning-icon i {
    font-size: 3rem;
  }

  .warning-message {
    padding: 20px;
    margin-bottom: 20px;
  }

  .warning-message h3 {
    font-size: 1.2rem;
  }

  .warning-message p {
    font-size: 0.9rem;
  }

  .warning-message li {
    font-size: 0.85rem;
  }

  .project-info {
    padding: 16px;
    margin-bottom: 20px;
  }

  .project-info h4 {
    font-size: 1rem;
  }

  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .info-item .value {
    text-align: left;
    max-width: 100%;
  }

  .side-panel-actions {
    flex-direction: column;
    padding: 20px 24px;
    margin: 24px -24px -24px -24px;
  }

  .btn-cancel,
  .btn-delete {
    width: 100%;
    min-width: auto;
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* Mobile Medium */
@media (max-width: 480px) {
  .delete-project-content {
    padding: 20px;
  }

  .warning-icon i {
    font-size: 2.5rem;
  }

  .warning-message {
    padding: 16px;
    margin-bottom: 16px;
  }

  .warning-message h3 {
    font-size: 1.1rem;
  }

  .warning-message p {
    font-size: 0.85rem;
  }

  .warning-message li {
    font-size: 0.8rem;
  }

  .warning-text {
    padding: 12px;
    font-size: 0.9rem;
  }

  .project-info {
    padding: 12px;
    margin-bottom: 16px;
  }

  .project-info h4 {
    font-size: 0.95rem;
  }

  .info-item .label {
    font-size: 0.8rem;
  }

  .info-item .value {
    font-size: 0.8rem;
  }

  .side-panel-actions {
    padding: 16px 20px;
    margin: 20px -20px -20px -20px;
  }

  .btn-cancel,
  .btn-delete {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* Mobile Small */
@media (max-width: 360px) {
  .delete-project-content {
    padding: 16px;
  }

  .warning-icon i {
    font-size: 2rem;
  }

  .warning-message {
    padding: 12px;
    margin-bottom: 14px;
  }

  .warning-message h3 {
    font-size: 1rem;
  }

  .warning-message p {
    font-size: 0.8rem;
  }

  .warning-message li {
    font-size: 0.75rem;
  }

  .warning-text {
    padding: 10px;
    font-size: 0.85rem;
  }

  .project-info {
    padding: 10px;
    margin-bottom: 14px;
  }

  .project-info h4 {
    font-size: 0.9rem;
  }

  .info-item {
    padding: 6px 0;
  }

  .info-item .label {
    font-size: 0.75rem;
  }

  .info-item .value {
    font-size: 0.75rem;
  }

  .side-panel-actions {
    padding: 12px 16px;
    margin: 16px -16px -16px -16px;
  }

  .btn-cancel,
  .btn-delete {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* Modo oscuro para el modal de eliminar contrato */
[data-theme="dark"] .delete-project-panel .side-panel-header {
  background-color: #742a2a !important;
  border-bottom-color: #e53e3e;
}

[data-theme="dark"] .delete-project-panel .side-panel-title {
  color: #feb2b2 !important;
}

[data-theme="dark"] .delete-project-panel .side-panel-close:hover {
  background-color: #e53e3e !important;
  color: #fff !important;
}

[data-theme="dark"] .delete-project-content {
  background: #2d3748;
}

[data-theme="dark"] .warning-icon i {
  color: #e53e3e;
}

[data-theme="dark"] .warning-message {
  background: #742a2a;
  border-color: #e53e3e;
}

[data-theme="dark"] .warning-message h3 {
  color: #feb2b2;
}

[data-theme="dark"] .warning-message p {
  color: #e2e8f0;
}

[data-theme="dark"] .warning-message li {
  color: #e2e8f0;
}

[data-theme="dark"] .warning-text {
  background-color: #4a1a1a;
  color: #feb2b2;
  border-left-color: #e53e3e;
}

[data-theme="dark"] .project-info {
  background: #4a5568 !important;
  border-color: #718096 !important;
}

[data-theme="dark"] .project-info h4 {
  color: #e2e8f0;
  border-bottom-color: #718096;
}

[data-theme="dark"] .info-item {
  border-bottom-color: #718096;
  background: transparent !important;
}

[data-theme="dark"] .info-item .label {
  color: #a0aec0;
}

[data-theme="dark"] .info-item .value {
  color: #e2e8f0 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

[data-theme="dark"] .side-panel-actions {
  background: #4a5568;
  border-top-color: #718096;
}

[data-theme="dark"] .btn-cancel {
  background-color: #4a5568;
  color: #e2e8f0;
  border-color: #718096;
}

[data-theme="dark"] .btn-cancel:hover:not(:disabled) {
  background-color: #718096;
  color: #2d3748;
}

[data-theme="dark"] .btn-delete {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

[data-theme="dark"] .btn-delete:hover:not(:disabled) {
  background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%);
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

/* Animación y overlay específicos para el panel de eliminar proyecto */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Overlay específico para el panel de eliminar proyecto - asegurar que no interfiera el CSS global */
.delete-project-panel + .side-panel-overlay,
.delete-project-panel ~ .side-panel-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  z-index: 9998 !important;
  display: block !important;
  justify-content: unset !important;
  align-items: unset !important;
}
/* ============================================
   PAGINACIÓN MODERNA - ENTERPRISE GRADE
   ============================================ */

.pagination-container {
    display: flex;
    justify-content: space-between; /* Info izquierda, botones al final derecho */
    align-items: center;
    gap: 8px; /* Gap más pequeño */
    margin: 12px 0;
    padding: 6px 0;
    background: transparent;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.pagination-info {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.2;
    flex-wrap: wrap;
}

.pagination-info > span {
    display: flex;
    align-items: center;
}

.pagination-limit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    border-left: 1px solid #e2e8f0;
}

.pagination-limit label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.limit-select {
    height: 30px;
    padding: 0 10px;
    vertical-align: middle;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: white;
    font-size: 13px;
    color: #1e293b;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex: 1;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    border-radius: 50% !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--activa-verde);
    color: #ffffff;
    border-color: var(--activa-verde);
    transform: translateY(-1px);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
    color: #cbd5e1;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex-shrink: 0;
    overflow: hidden;
}

.pagination-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    border-radius: 50% !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
}

.pagination-page:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--activa-verde);
    transform: translateY(-1px);
}

.pagination-page.active {
    background: var(--activa-verde) !important;
    color: #ffffff !important;
    border-color: var(--activa-verde) !important;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 175, 79, 0.3) !important;
    transform: scale(1.1);
}

.pagination-page.ellipsis {
    cursor: default;
    border: none;
    background: transparent;
    color: #94a3b8;
    box-shadow: none;
    width: 16px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    letter-spacing: 1px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .pagination-container {
        flex-direction: column;
        gap: 12px;
        padding: 12px 0;
        align-items: flex-end; /* A la derecha */
    }
    
    .pagination-info {
        font-size: 11px;
        order: 2;
        width: auto;
        justify-content: flex-end;
    }
    
    .pagination-controls {
        order: 1;
        width: auto;
        justify-content: flex-end;
    }
    
    .pagination-page {
        width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0;
    }
    
    .pagination-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .pagination-pages {
        gap: 4px;
    }
}

@media (max-width: 768px) {
    .pagination-container {
        padding: 12px 8px;
        margin: 16px 0;
        gap: 12px;
        align-items: stretch;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
        /* separación normal para no romper el flujo con el footer */
        margin-bottom: 16px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }
    
    .pagination-info {
        font-size: 11px;
        padding: 4px 0;
        justify-content: flex-start;
        width: 100%;
    }
    
    .pagination-controls {
        gap: 6px;
        justify-content: flex-start;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .pagination-pages {
        gap: 4px;
        flex-wrap: wrap;
        overflow: hidden;
        padding: 0 4px;
        width: 100%;
        max-width: 100%;
    }
    
    .pagination-page {
        width: 32px;
        height: 32px;
        font-size: 11px;
        padding: 0;
        flex-shrink: 0;
    }
    
    .pagination-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
        flex-shrink: 0;
    }
}

/* No mostrar scrollbar dentro de la paginación */
.pagination-pages::-webkit-scrollbar {
    width: 0;
    height: 0;
}

@media (max-width: 480px) {
    .pagination-container {
        padding: 8px 0;
        margin: 12px 0;
        gap: 10px;
        align-items: stretch;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }
    
    .pagination-info {
        font-size: 10px;
        padding: 4px 0;
    }
    
    .pagination-pages {
        gap: 3px;
        padding: 0;
        justify-content: flex-end;
    }
    
    .pagination-page {
        width: 32px;
        height: 32px;
        font-size: 10px;
        padding: 0;
    }
    
    .pagination-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .pagination-container {
        padding: 10px 12px;
        margin: 16px 0;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }
    
    .pagination-info {
        font-size: 10px;
        padding: 5px 8px;
    }
    
    .pagination-page {
        min-width: 32px;
        height: 32px;
        font-size: 10px;
        padding: 0 4px;
    }

    .pagination-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .pagination-pages {
        gap: 2px;
    }
}

/* ============================================
   MODO OSCURO - Paginación
   ============================================ */

[data-theme="dark"] .pagination-container {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

[data-theme="dark"] .pagination-info {
    background: transparent;
    border-color: transparent;
    color: #94a3b8;
}

[data-theme="dark"] .pagination-btn {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
}

[data-theme="dark"] .pagination-btn:hover:not(:disabled) {
    background: var(--activa-verde);
    border-color: var(--activa-verde);
    color: #ffffff;
}

[data-theme="dark"] .pagination-btn:disabled {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.07);
    color: #475569;
}

[data-theme="dark"] .pagination-page {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
}

[data-theme="dark"] .pagination-page:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .pagination-page.active {
    background: var(--activa-verde);
    border-color: var(--activa-verde);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 175, 79, 0.35);
}

[data-theme="dark"] .pagination-page.ellipsis {
    background: transparent;
    color: #64748b;
    border: none;
}

[data-theme="dark"] .pagination-page.ellipsis:hover {
    background: transparent;
    color: #64748b;
}

[data-theme="dark"] .pagination-pages::-webkit-scrollbar-track {
    background: transparent;
}

[data-theme="dark"] .pagination-pages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .pagination-limit {
    border-left-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .pagination-limit label {
    color: #94a3b8;
}

[data-theme="dark"] .limit-select {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
}

[data-theme="dark"] .limit-select option {
    background: #1e293b;
    color: #e2e8f0;
}

[data-theme="dark"] .pagination-info > span {
    color: #94a3b8;
}
.project-filters-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
    background: #fdfdfd;
    transition: background 0.2s ease;
    gap: 12px;
}

.filters-header:hover {
    background: #f8fafc;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 0;
}

.header-left span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-icon {
    font-size: 1.2rem;
    color: var(--activa-verde);
}

.active-dot {
    width: 8px;
    height: 8px;
    background-color: var(--activa-verde);
    border-radius: 50%;
    margin-left: 4px;
    box-shadow: 0 0 0 3px rgba(0, 175, 79, 0.1);
}

.arrow-icon {
    font-size: 1.2rem;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.filters-content {
    padding: 24px;
    border-top: 1px solid #f1f3f5;
    animation: slideDown 0.3s ease-out;
}

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

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group input,
.filter-group select {
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1e293b;
    background: white;
    transition: all 0.2s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--activa-verde);
    box-shadow: 0 0 0 3px var(--activa-verde-transparente);
}

.filter-group input::placeholder {
    color: #94a3b8;
}

.filters-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f3f5;
    display: flex;
    justify-content: flex-end;
}

.btn-clear-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-filters:hover:not(:disabled) {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc3545;
}

.btn-clear-filters:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .filters-header {
        padding: 12px 14px;
    }

    .filters-content {
        padding: 16px;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .filters-footer {
        justify-content: stretch;
    }

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

@media (min-width: 769px) and (max-width: 1024px) {
    .filters-content {
        padding: 18px;
    }

    .filters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .header-left {
        font-size: 0.9rem;
    }

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

    .filter-group input,
    .filter-group select {
        font-size: 0.95rem;
    }
}

/* ============================================
   MODO OSCURO - Filtros
   ============================================ */

[data-theme="dark"] .project-filters-container {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

[data-theme="dark"] .filters-header {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .filters-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .header-left {
    color: #cbd5e1;
}

[data-theme="dark"] .arrow-icon {
    color: #64748b;
}

[data-theme="dark"] .filters-content {
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .filter-group label {
    color: #94a3b8;
}

[data-theme="dark"] .filter-group input,
[data-theme="dark"] .filter-group select {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

[data-theme="dark"] .filter-group input::placeholder {
    color: #64748b;
}

[data-theme="dark"] .filter-group input:focus,
[data-theme="dark"] .filter-group select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--activa-verde);
    box-shadow: 0 0 0 3px rgba(0, 175, 79, 0.15);
}

[data-theme="dark"] .filters-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .btn-clear-filters {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.15);
    color: #94a3b8;
}

[data-theme="dark"] .btn-clear-filters:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}
.table-view-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: transparent;
}

.table-view-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  background: #ffffff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.table-view-btn i {
  font-size: 18px;
}

.table-view-btn:hover:not(:disabled) {
  border-color: var(--activa-verde);
  transform: translateY(-1px);
}

.table-view-btn.active {
  border-color: var(--activa-verde) !important;
  background: rgba(0, 175, 79, 0.08) !important;
  color: var(--activa-verde) !important;
}

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

[data-theme="dark"] .table-view-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

[data-theme="dark"] .table-view-btn.active {
  border-color: var(--activa-verde) !important;
  background: rgba(0, 175, 79, 0.15) !important;
  color: #34d399 !important;
}

/* En celular no mostrar el toggle */
@media (max-width: 1024px) {
  .table-view-toggle {
    display: none !important;
  }
}

.account-main {
    padding-top: 1rem;
    margin-top: 0.75rem;
    min-height: 70vh;
}

.account-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
    min-height: calc(100vh - 80px);
}

@media (min-width: 640px) {
    .account-container {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .account-container {
        padding: 2rem;
    }
}

.account-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.account-header h1 {
    font-size: 1.75rem;
    color: var(--texto-principal, #1e293b);
    margin: 0 0 0.35rem 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.account-header p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

@media (min-width: 640px) {
    .account-header h1 {
        font-size: 2rem;
    }
}

.account-loading,
.account-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--activa-verde, #34C759);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.account-error i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.account-error h2 {
    color: #dc3545;
    margin-bottom: 1rem;
}

.account-error button {
    background: #34C759;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.35);
}

.account-error button:hover {
    background: #2db84e;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.4);
}

.account-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.account-profile {
    display: flex;
    flex-wrap: wrap;
    padding: 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
}

@media (min-width: 640px) {
    .account-profile {
        padding: 2rem;
        gap: 2rem;
    }
}

@media (max-width: 639px) {
    .account-profile {
        flex-direction: column;
        text-align: center;
    }

    .account-profile .profile-info {
        align-items: center;
    }

    .account-profile .info-group {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .account-profile .info-group label {
        min-width: 0;
    }
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--activa-verde-claro, #e9f7f0);
    box-shadow: 0 4px 12px rgba(0, 175, 79, 0.15);
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-group:last-child {
    border-bottom: none;
}

.info-group label {
    font-weight: 600;
    color: #475569;
    min-width: 140px;
    font-size: 0.9rem;
}

.info-group span {
    color: var(--texto-principal, #1e293b);
    flex: 1;
    font-size: 1rem;
}

.role-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.role-badge.admin {
    background: linear-gradient(135deg, var(--activa-verde) 0%, #009641 100%);
    color: white;
}

.role-badge.ejecutivo {
    background: linear-gradient(135deg, var(--activa-azul, #00AEEF) 0%, #0284c7 100%);
    color: white;
}

.role-badge.proveedor {
    background: #fef3c7;
    color: #92400e;
}

.role-badge.user {
    background: #e2e8f0;
    color: #475569;
}

.account-actions {
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    background: #f8fafc;
}

.account-actions button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.25s ease;
    min-width: 180px;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-edit {
    background: var(--activa-verde);
    color: white;
}

.btn-edit:hover {
    background: #009641;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 175, 79, 0.3);
}

.btn-change-password {
    background: #28a745;
    color: white;
}

.btn-change-password:hover {
    background: #1e7e34;
    transform: translateY(-2px);
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Form styles for SidePanel */
.edit-form {
    padding: 0;
}

.edit-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.edit-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edit-form .form-group.full-width {
    flex: 1 1 100%;
}

.edit-form label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.edit-form input {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fff;
}

.edit-form input:focus {
    outline: none;
    border-color: var(--activa-verde);
    box-shadow: 0 0 0 3px var(--activa-verde-transparente);
}

.edit-form input::placeholder {
    color: #6c757d;
    font-style: italic;
}

.file-input-container {
    position: relative;
    margin-bottom: 1rem;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #495057;
}

.file-input-label:hover {
    background: #e9ecef;
    border-color: var(--activa-verde);
    color: var(--activa-verde);
}

.image-preview {
    margin-top: 1rem;
    text-align: center;
}

.image-preview img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
    margin-bottom: 0.5rem;
}

.image-preview-text {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.btn-cancel {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-primary {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: #34C759;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.35);
}

.btn-primary:hover:not(:disabled) {
    background: #2db84e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.4);
}

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

.loading-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive design */
@media (min-width: 1400px) {
    .account-container {
        max-width: 1300px;
        padding: 3rem;
    }
    
    .account-header h1 {
        font-size: 3rem;
    }
    
    .account-header p {
        font-size: 1.25rem;
    }
    
    .account-profile {
        padding: 3rem;
        gap: 3rem;
    }
    
    .profile-image img {
        width: 180px;
        height: 180px;
    }
    
    .info-group {
        padding: 1rem 0;
    }
    
    .info-group label {
        font-size: 1.1rem;
        min-width: 180px;
    }
    
    .info-group span {
        font-size: 1.1rem;
    }
    
    .account-actions {
        padding: 3rem;
    }
    
    .account-actions button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-width: 250px;
    }
}

@media (max-width: 1200px) {
    .account-container {
        max-width: 1000px;
        padding: 1.5rem;
    }
    
    .account-header h1 {
        font-size: 2.25rem;
    }
    
    .account-profile {
        padding: 1.75rem;
    }
    
    .profile-image img {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 1024px) {
    .account-container {
        padding: 1.25rem;
    }
    
    .account-header h1 {
        font-size: 2rem;
    }
    
    .account-header p {
        font-size: 1rem;
    }
    
    .account-profile {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .profile-image img {
        width: 130px;
        height: 130px;
    }
    
    .info-group {
        padding: 0.625rem 0;
    }
    
    .info-group label {
        min-width: 120px;
        font-size: 0.95rem;
    }
    
    .account-actions {
        padding: 1.5rem;
    }
    
    .account-actions button {
        min-width: 180px;
        padding: 0.625rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .account-container {
        padding: 1rem;
        min-height: auto;
        margin-top: 80px;
    }
    
    .account-header {
        margin-bottom: 1rem;
    }
    
    .account-header h1 {
        font-size: 1.875rem;
    }
    
    .account-header p {
        font-size: 0.95rem;
    }
    
    .account-profile {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .profile-image img {
        width: 120px;
        height: 120px;
    }
    
    .profile-info {
        width: 100%;
    }
    
    .info-group {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 0;
        text-align: center;
    }
    
    .info-group label {
        min-width: auto;
        font-weight: 700;
        color: #333;
    }
    
    .info-group span {
        font-size: 0.95rem;
    }
    
    .role-badge {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .account-actions {
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.75rem;
        align-items: center;
    }
    
    .account-actions button {
        min-width: auto;
        width: 100%;
        max-width: 300px;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .edit-form .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-cancel,
    .btn-primary {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .account-container {
        padding: 0.75rem;
        min-height: auto;
        margin-top: 70px;
    }
    
    .account-header {
        margin-bottom: 0.75rem;
    }
    
    .account-header h1 {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }
    
    .account-header p {
        font-size: 0.9rem;
    }
    
    .account-profile {
        padding: 1rem;
        gap: 1rem;
    }
    
    .profile-image img {
        width: 100px;
        height: 100px;
    }
    
    .info-group {
        padding: 0.5rem 0;
        gap: 0.25rem;
    }
    
    .info-group label {
        font-size: 0.9rem;
    }
    
    .info-group span {
        font-size: 0.9rem;
    }
    
    .role-badge {
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
    }
    
    .account-actions {
        padding: 1rem;
        gap: 0.5rem;
        align-items: center;
    }
    
    .account-actions button {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
        max-width: 280px;
    }
    
    .edit-form input {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
    
    .file-input-label {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .btn-cancel,
    .btn-primary {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .account-container {
        padding: 0.5rem;
        min-height: auto;
        margin-top: 60px;
    }
    
    .account-header {
        margin-bottom: 0.5rem;
    }
    
    .account-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .account-header p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .account-profile {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .profile-image img {
        width: 80px;
        height: 80px;
    }
    
    .info-group {
        padding: 0.375rem 0;
        gap: 0.25rem;
    }
    
    .info-group label {
        font-size: 0.85rem;
        font-weight: 600;
    }
    
    .info-group span {
        font-size: 0.85rem;
        word-break: break-word;
    }
    
    .role-badge {
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
    }
    
    .account-actions {
        padding: 0.75rem;
        gap: 0.5rem;
        align-items: center;
    }
    
    .account-actions button {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
        max-width: 260px;
    }
    
    .edit-form input {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .file-input-label {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .image-preview img {
        width: 80px;
        height: 80px;
    }
    
    .btn-cancel,
    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .account-container {
        padding: 0.25rem;
        min-height: auto;
        margin-top: 50px;
    }
    
    .account-header {
        margin-bottom: 0.5rem;
    }
    
    .account-header h1 {
        font-size: 1.25rem;
        margin-bottom: 0.125rem;
    }
    
    .account-header p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .account-profile {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .profile-image img {
        width: 70px;
        height: 70px;
    }
    
    .info-group {
        padding: 0.25rem 0;
        gap: 0.125rem;
    }
    
    .info-group label {
        font-size: 0.8rem;
        font-weight: 600;
    }
    
    .info-group span {
        font-size: 0.8rem;
        word-break: break-word;
    }
    
    .role-badge {
        font-size: 0.65rem;
        padding: 0.075rem 0.3rem;
    }
    
    .account-actions {
        padding: 0.5rem;
        gap: 0.375rem;
        align-items: center;
    }
    
    .account-actions button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        max-width: 240px;
    }
    
    .edit-form input {
        padding: 0.375rem;
        font-size: 0.8rem;
    }
    
    .file-input-label {
        padding: 0.375rem 0.625rem;
        font-size: 0.8rem;
    }
    
    .image-preview img {
        width: 70px;
        height: 70px;
    }
    
    .btn-cancel,
    .btn-primary {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
} 

/* Modo oscuro para la página de Mi Cuenta */
[data-theme="dark"] .account-main {
    background: var(--fondo-general);
}

[data-theme="dark"] .account-container {
    background: transparent;
}

[data-theme="dark"] .account-header {
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .account-header h1 {
    color: var(--texto-principal);
}

[data-theme="dark"] .account-header p {
    color: #94a3b8;
}

[data-theme="dark"] .account-loading,
[data-theme="dark"] .account-error {
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .loading-spinner {
    border-color: #4a5568;
    border-top-color: #34C759;
}

[data-theme="dark"] .account-error i {
    color: #e53e3e;
}

[data-theme="dark"] .account-error h2 {
    color: #e2e8f0;
}

[data-theme="dark"] .account-error button {
    background: #007bff;
    color: white;
}

[data-theme="dark"] .account-error button:hover {
    background: #0056b3;
}

[data-theme="dark"] .account-content {
    background: #2d3748;
    border: 1px solid #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .account-profile {
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .profile-image img {
    border-color: #4a5568;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .info-group {
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .info-group label {
    color: #e2e8f0;
}

[data-theme="dark"] .info-group span {
    color: #a0aec0;
}

[data-theme="dark"] .role-badge.admin {
    background: #28a745;
    color: white;
}

[data-theme="dark"] .role-badge.proveedor {
    background: #ffc107;
    color: #212529;
}

[data-theme="dark"] .role-badge.ejecutivo {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
}

[data-theme="dark"] .role-badge.user {
    background: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .account-actions {
    background: #1e293b;
}

[data-theme="dark"] .btn-edit {
    background: var(--activa-verde);
    color: white;
}

[data-theme="dark"] .btn-edit:hover {
    background: #009641;
}

[data-theme="dark"] .btn-change-password {
    background: #28a745;
    color: white;
}

[data-theme="dark"] .btn-change-password:hover {
    background: #1e7e34;
}

[data-theme="dark"] .btn-delete {
    background: #dc3545;
    color: white;
}

[data-theme="dark"] .btn-delete:hover {
    background: #c82333;
}

[data-theme="dark"] .edit-form label {
    color: #e2e8f0;
}

[data-theme="dark"] .edit-form input {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .edit-form input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

[data-theme="dark"] .edit-form input::placeholder {
    color: #a0aec0;
}

[data-theme="dark"] .file-input-label {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .file-input-label:hover {
    background: #718096;
    border-color: #007bff;
    color: #007bff;
}

[data-theme="dark"] .image-preview img {
    border-color: #718096;
}

[data-theme="dark"] .image-preview-text {
    color: #a0aec0;
}

[data-theme="dark"] .form-actions {
    border-top-color: #4a5568;
}

[data-theme="dark"] .btn-cancel {
    background: #6c757d;
    color: white;
}

[data-theme="dark"] .btn-cancel:hover:not(:disabled) {
    background: #5a6268;
}

[data-theme="dark"] .btn-primary {
    background: #007bff;
    color: white;
}

[data-theme="dark"] .btn-primary:hover:not(:disabled) {
    background: #0056b3;
} .field-approval-container {
    /* border: 1px solid #e9ecef; */
    border-radius: 6px;
    background-color: #f8f9fa;
}

.field-approval-container.provider-view {
    background-color: #fff;
    border-color: #dee2e6;
}

.approval-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.approval-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.approval-btn.approve {
    background-color: #28a745;
    color: white;
}

.approval-btn.approve:hover {
    background-color: #218838;
}

.approval-btn.approve.approved {
    background-color: #155724;
    cursor: default;
}

.approval-btn.reject {
    background-color: #dc3545;
    color: white;
}

.approval-btn.reject:hover {
    background-color: #c82333;
}

.approval-btn.reject.rejected {
    background-color: #721c24;
    cursor: default;
}

.approval-btn i {
    font-size: 1rem;
}

/* Estilos para el modo vista de proveedores */
.approval-status {
    display: flex;
    justify-content: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-indicator.approved {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-indicator.rejected {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-indicator.pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-indicator.locked {
    background-color: #e2e3e5;
    color: #495057;
    border: 1px solid #ced4da;
    font-weight: 600;
}

.status-indicator i {
    font-size: 1rem;
}

.justification-container {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.justification-textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 80px;
}

.justification-textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.justification-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.justification-actions button {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.justification-actions .btn-primary {
    background-color: #007bff;
    color: white;
}

.justification-actions .btn-primary:hover:not(:disabled) {
    background-color: #0056b3;
}

.justification-actions .btn-primary:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.justification-actions .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.justification-actions .btn-secondary:hover {
    background-color: #545b62;
}

.rejection-justification {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

.rejection-justification.provider-view {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* Dark mode: evitar fondos blancos */
[data-theme="dark"] .field-approval-container {
    background-color: #2d3748;
}

[data-theme="dark"] .field-approval-container.provider-view {
    background-color: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .justification-container {
    background-color: #1f2937;
    border-color: #4a5568;
}

[data-theme="dark"] .justification-textarea {
    background-color: #111827;
    border-color: #4a5568;
    color: #e5e7eb;
}

[data-theme="dark"] .justification-textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.25);
}

[data-theme="dark"] .status-indicator.approved {
    background-color: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.28);
}

[data-theme="dark"] .status-indicator.rejected {
    background-color: rgba(239, 68, 68, 0.18);
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.28);
}

[data-theme="dark"] .status-indicator.pending {
    background-color: rgba(245, 158, 11, 0.18);
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.28);
}

[data-theme="dark"] .status-indicator.locked {
    background-color: rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.28);
}

[data-theme="dark"] .rejection-justification {
    background-color: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.28);
    color: #fecaca;
}

[data-theme="dark"] .rejection-justification.provider-view {
    background-color: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.28);
    color: #fde68a;
}

.rejection-justification strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.rejection-justification p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .approval-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }

    .approval-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .justification-actions {
        flex-direction: column;
        gap: 0.25rem;
    }

    .justification-actions button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .field-approval-container {
        padding: 0.5rem;
    }

    .approval-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .status-indicator {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .justification-container {
        padding: 0.5rem;
    }

    .rejection-justification {
        padding: 0.5rem;
    }
} /* Estilos para el mensaje de "No se subió evidencia" */
.no-evidence-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px dashed #e74c3c;
    border-radius: 8px;
    background-color: #fdf2f2;
    min-height: 120px;
    gap: 12px;
}

.no-evidence-icon {
    color: #e74c3c;
    font-size: 24px;
}

.no-evidence-text p {
    margin: 0;
    color: #e74c3c;
    font-weight: 500;
    font-size: 14px;
}

/* Modo oscuro para Step 2 - Documentos */
[data-theme="dark"] .no-evidence-message {
    background-color: #742a2a;
    border-color: #e53e3e;
}

[data-theme="dark"] .no-evidence-icon {
    color: #feb2b2;
}

[data-theme="dark"] .no-evidence-text p {
    color: #feb2b2;
} .evidence-grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.evidence-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.evidence-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.evidence-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.evidence-number {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.number-badge {
    background-color: #4f46e5;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.evidence-number h3 {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.evidence-card .file-upload-area {
    margin-bottom: 1rem;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    padding: 1rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evidence-card .file-upload-area.file-upload-area--has-file {
    border: none;
    border-radius: 0;
    background-color: transparent;
    padding: 0;
    min-height: auto;
}

.evidence-card .file-upload-area.file-upload-area--has-file .upload-zone {
    display: none;
}

.upload-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: left;
    color: #6b7280;
    cursor: pointer;
    width: 100%;
}

.upload-icon {
    font-size: 2.5rem;
    color: #9ca3af;
}

.upload-text p {
    font-weight: 600;
    color: #4b5563;
    margin: 0;
}

.upload-text .file-types {
    font-size: 0.8rem;
    color: #9ca3af;
}

.file-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
}

.file-info {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.file-info i {
    font-size: 2rem;
    color: #4f46e5;
}

.file-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    align-items: center;
}

.file-name {
    font-weight: 500;
    color: #374151;
    width: 100%;
    text-align: center;
    word-break: break-word;
}

.file-size {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
}

.btn-remove-file {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.btn-remove-file:hover {
    color: #dc2626;
}

.form-group-description {
    margin-top: 1.5rem;
}

.form-group-description label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

.form-group-description textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

.form-group-description textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.summary-grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-summary.centered {
    text-align: center;
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid #e5e7eb;
}

.summary-title {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.form-summary.centered .summary-item {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.form-summary.centered .label {
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.25rem;
    display: block;
}

.form-summary.centered .value {
    font-weight: 600;
    font-size: 1.1rem;
    color: #374151;
}

.evidence-count {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.evidence-count p {
    color: #374151;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .evidence-grid-2-cols {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .evidence-card {
        padding: 1rem;
    }
    
    .evidence-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .btn-remove-file {
        align-self: flex-end;
    }
    
    .summary-grid-2-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .evidence-card {
        padding: 0.75rem;
    }
    
    .evidence-number {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .upload-zone {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .file-preview {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .file-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Estilos para el mensaje de "No se subió evidencia" */
.no-evidence-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px dashed #e74c3c;
    border-radius: 8px;
    background-color: #fdf2f2;
    min-height: 120px;
    gap: 12px;
}

.no-evidence-icon {
    color: #e74c3c;
    font-size: 24px;
}

.no-evidence-text p {
    margin: 0;
    color: #e74c3c;
    font-weight: 500;
    font-size: 14px;
}

/* Modo oscuro para Step 3 - Evidencias */
[data-theme="dark"] .toggle-section {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .toggle-label {
    color: #e2e8f0;
}

[data-theme="dark"] .evidence-card {
    background-color: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .evidence-card:hover {
    border-color: #718096;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .evidence-number h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .evidence-card .file-upload-area {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .evidence-card .file-upload-area.file-upload-area--has-file {
    background-color: transparent;
    border-color: transparent;
}

[data-theme="dark"] .upload-text p {
    color: #e2e8f0;
}

[data-theme="dark"] .upload-text .file-types {
    color: #a0aec0;
}

[data-theme="dark"] .file-preview {
    background-color: transparent;
}

[data-theme="dark"] .file-name {
    color: #e2e8f0;
}

[data-theme="dark"] .file-size {
    color: #a0aec0;
}

[data-theme="dark"] .form-group-description label {
    color: #e2e8f0;
}

[data-theme="dark"] .form-group-description textarea {
    background-color: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .form-group-description textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

[data-theme="dark"] .form-summary.centered {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .summary-title {
    color: #e2e8f0;
}

[data-theme="dark"] .form-summary.centered .summary-item {
    background-color: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .form-summary.centered .label {
    color: #a0aec0;
}

[data-theme="dark"] .form-summary.centered .value {
    color: #e2e8f0;
}

[data-theme="dark"] .evidence-count {
    border-top-color: #4a5568;
}

[data-theme="dark"] .evidence-count p {
    color: #e2e8f0;
}

[data-theme="dark"] .no-evidence-message {
    background-color: #742a2a;
    border-color: #e53e3e;
}

[data-theme="dark"] .no-evidence-icon {
    color: #feb2b2;
}

[data-theme="dark"] .no-evidence-text p {
    color: #feb2b2;
} 

/* Estilos para el botón de agregar más evidencias */
.add-more-evidence-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.btn-add-more-evidence {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.btn-add-more-evidence:hover {
    background-color: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}

.btn-add-more-evidence:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-add-more-evidence i {
    font-size: 1.1rem;
}

/* Responsive para el botón */
@media (max-width: 768px) {
    .btn-add-more-evidence {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
} /* Toggle Section Styles */
.toggle-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.toggle-container {
    display: flex;
    justify-content: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    font-size: 1.1rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4f46e5;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Transport Content */
.transport-content {
    animation: fadeIn 0.3s ease-in;
}

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

.transport-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
}

.transport-section h3 {
    color: #111827;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.transport-section p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Evidence Grid */
.evidence-grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.evidence-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.evidence-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.evidence-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.evidence-number {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.number-badge {
    background-color: #4f46e5;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.evidence-number h4 {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.evidence-card .file-upload-area {
    margin-bottom: 1rem;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    padding: 1rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: left;
    color: #6b7280;
    cursor: pointer;
    width: 100%;
}

.upload-icon {
    font-size: 2.5rem;
    color: #9ca3af;
}

.upload-text p {
    font-weight: 600;
    color: #4b5563;
    margin: 0;
}

.upload-text .file-types {
    font-size: 0.8rem;
    color: #9ca3af;
}

.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: #f3f4f6;
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-info .ri-file-text-line {
    font-size: 1.8rem;
    color: #4f46e5;
}

.file-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #374151;
    width: 100%;
    word-break: break-word;
}

.file-size {
    font-size: 0.8rem;
    color: #6b7280;
}

.btn-remove-file {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.btn-remove-file:hover {
    color: #dc2626;
}

.form-group-description {
    margin-top: 0;
}

.form-group-description label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

.form-group-description textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

.form-group-description textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.btn-add-evidence {
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
    width: fit-content;
}

.btn-add-evidence:hover {
    background-color: #4338ca;
}

.btn-add-evidence i {
    font-size: 1.1rem;
}

/* Documents Grid */
.documents-grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.document-group {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.document-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.document-group .file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    padding: 1rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Summary Styles */
.summary-grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-summary.centered {
    text-align: center;
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid #e5e7eb;
}

.summary-title {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.form-summary.centered .summary-item {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.form-summary.centered .label {
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.25rem;
    display: block;
}

.form-summary.centered .value {
    font-weight: 600;
    font-size: 1.1rem;
    color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
    .evidence-grid-2-cols,
    .documents-grid-2-cols {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .evidence-card,
    .document-group {
        padding: 1rem;
    }
    
    .evidence-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .btn-remove-file {
        align-self: flex-end;
    }
    
    .summary-grid-2-cols {
        grid-template-columns: 1fr;
    }
    
    .toggle-label {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .evidence-card,
    .document-group {
        padding: 0.75rem;
    }
    
    .evidence-number {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .upload-zone {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .file-preview {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .file-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Estilos para el mensaje de "No se subió evidencia" */
.no-evidence-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px dashed #e74c3c;
    border-radius: 8px;
    background-color: #fdf2f2;
    min-height: 120px;
    gap: 12px;
}

.no-evidence-icon {
    color: #e74c3c;
    font-size: 24px;
}

.no-evidence-text p {
    margin: 0;
    color: #e74c3c;
    font-weight: 500;
    font-size: 14px;
}

/* Modo oscuro para Step 4 - Servicio de Transporte */
[data-theme="dark"] .toggle-section {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .toggle-label {
    color: #e2e8f0;
}

[data-theme="dark"] .transport-section {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .transport-section h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .transport-section p {
    color: #a0aec0;
}

[data-theme="dark"] .evidence-card {
    background-color: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .evidence-card:hover {
    border-color: #718096;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .evidence-number h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .evidence-card .file-upload-area {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .upload-text p {
    color: #e2e8f0;
}

[data-theme="dark"] .upload-text .file-types {
    color: #a0aec0;
}

[data-theme="dark"] .file-preview {
    background-color: #4a5568;
}

[data-theme="dark"] .file-name {
    color: #e2e8f0;
}

[data-theme="dark"] .file-size {
    color: #a0aec0;
}

[data-theme="dark"] .form-group-description label {
    color: #e2e8f0;
}

[data-theme="dark"] .form-group-description textarea {
    background-color: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .form-group-description textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

[data-theme="dark"] .document-group {
    background-color: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .document-group label {
    color: #e2e8f0;
}

[data-theme="dark"] .document-group .file-upload-area {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .form-summary.centered {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .summary-title {
    color: #e2e8f0;
}

[data-theme="dark"] .form-summary.centered .summary-item {
    background-color: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .form-summary.centered .label {
    color: #a0aec0;
}

[data-theme="dark"] .form-summary.centered .value {
    color: #e2e8f0;
}

[data-theme="dark"] .no-evidence-message {
    background-color: #742a2a;
    border-color: #e53e3e;
}

[data-theme="dark"] .no-evidence-icon {
    color: #feb2b2;
}

[data-theme="dark"] .no-evidence-text p {
    color: #feb2b2;
} /* Toggle Section Styles */
.toggle-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.toggle-container {
    display: flex;
    justify-content: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    font-size: 1.1rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4f46e5;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Lodging Content */
.lodging-content {
    animation: fadeIn 0.3s ease-in;
}

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

.lodging-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
}

.lodging-section h3 {
    color: #111827;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.lodging-section p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Evidence Grid */
.evidence-grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.evidence-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.evidence-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.evidence-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.evidence-number {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.number-badge {
    background-color: #4f46e5;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.evidence-number h4 {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.evidence-card .file-upload-area {
    margin-bottom: 1rem;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    padding: 1rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: left;
    color: #6b7280;
    cursor: pointer;
    width: 100%;
}

.upload-icon {
    font-size: 2.5rem;
    color: #9ca3af;
}

.upload-text p {
    font-weight: 600;
    color: #4b5563;
    margin: 0;
}

.upload-text .file-types {
    font-size: 0.8rem;
    color: #9ca3af;
}

.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: #f3f4f6;
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-info .ri-file-text-line {
    font-size: 1.8rem;
    color: #4f46e5;
}

.file-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #374151;
    width: 100%;
    word-break: break-word;
}

.file-size {
    font-size: 0.8rem;
    color: #6b7280;
}

.btn-remove-file {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.btn-remove-file:hover {
    color: #dc2626;
}

.btn-add-evidence {
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
    width: fit-content;
}

.btn-add-evidence:hover {
    background-color: #4338ca;
}

.btn-add-evidence i {
    font-size: 1.1rem;
}

/* Document Group */
.document-group {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.document-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.document-group .file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    padding: 1rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Summary Styles */
.summary-grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-summary.centered {
    text-align: center;
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid #e5e7eb;
}

.summary-title {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.form-summary.centered .summary-item {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.form-summary.centered .label {
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.25rem;
    display: block;
}

.form-summary.centered .value {
    font-weight: 600;
    font-size: 1.1rem;
    color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
    .evidence-grid-2-cols {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .evidence-card,
    .document-group {
        padding: 1rem;
    }
    
    .evidence-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .btn-remove-file {
        align-self: flex-end;
    }
    
    .summary-grid-2-cols {
        grid-template-columns: 1fr;
    }
    
    .toggle-label {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .evidence-card,
    .document-group {
        padding: 0.75rem;
    }
    
    .evidence-number {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .upload-zone {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .file-preview {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .file-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Estilos para el mensaje de "No se subió evidencia" */
.no-evidence-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px dashed #e74c3c;
    border-radius: 8px;
    background-color: #fdf2f2;
    min-height: 120px;
    gap: 12px;
}

.no-evidence-icon {
    color: #e74c3c;
    font-size: 24px;
}

.no-evidence-text p {
    margin: 0;
    color: #e74c3c;
    font-weight: 500;
    font-size: 14px;
}

/* Modo oscuro para Step 5 - Servicio de Alojamiento */
[data-theme="dark"] .toggle-section {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .toggle-label {
    color: #e2e8f0;
}

[data-theme="dark"] .lodging-section {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .lodging-section h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .lodging-section p {
    color: #a0aec0;
}

[data-theme="dark"] .evidence-card {
    background-color: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .evidence-card:hover {
    border-color: #718096;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .evidence-number h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .evidence-card .file-upload-area {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .upload-text p {
    color: #e2e8f0;
}

[data-theme="dark"] .upload-text .file-types {
    color: #a0aec0;
}

[data-theme="dark"] .file-preview {
    background-color: #4a5568;
}

[data-theme="dark"] .file-name {
    color: #e2e8f0;
}

[data-theme="dark"] .file-size {
    color: #a0aec0;
}

[data-theme="dark"] .document-group {
    background-color: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .document-group label {
    color: #e2e8f0;
}

[data-theme="dark"] .document-group .file-upload-area {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .form-summary.centered {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .summary-title {
    color: #e2e8f0;
}

[data-theme="dark"] .form-summary.centered .summary-item {
    background-color: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .form-summary.centered .label {
    color: #a0aec0;
}

[data-theme="dark"] .form-summary.centered .value {
    color: #e2e8f0;
}

[data-theme="dark"] .no-evidence-message {
    background-color: #742a2a;
    border-color: #e53e3e;
}

[data-theme="dark"] .no-evidence-icon {
    color: #feb2b2;
}

[data-theme="dark"] .no-evidence-text p {
    color: #feb2b2;
} /* Toggle Section Styles */
.toggle-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.toggle-container {
    display: flex;
    justify-content: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    font-size: 1.1rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4f46e5;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Third Party Content */
.third-party-content {
    animation: fadeIn 0.3s ease-in;
}

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

.third-party-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
}

.third-party-section h3 {
    color: #111827;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.third-party-section p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Evidence Grid */
.evidence-grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.evidence-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.evidence-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.evidence-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.evidence-number {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.number-badge {
    background-color: #4f46e5;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.evidence-number h4 {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.evidence-card .file-upload-area {
    margin-bottom: 1rem;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    padding: 1rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: left;
    color: #6b7280;
    cursor: pointer;
    width: 100%;
}

.upload-icon {
    font-size: 2.5rem;
    color: #9ca3af;
}

.upload-text p {
    font-weight: 600;
    color: #4b5563;
    margin: 0;
}

.upload-text .file-types {
    font-size: 0.8rem;
    color: #9ca3af;
}

.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: #f3f4f6;
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-info .ri-file-text-line {
    font-size: 1.8rem;
    color: #4f46e5;
}

.file-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #374151;
    width: 100%;
    word-break: break-word;
}

.file-size {
    font-size: 0.8rem;
    color: #6b7280;
}

.btn-remove-file {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.btn-remove-file:hover {
    color: #dc2626;
}

.btn-add-evidence {
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
    width: fit-content;
}

.btn-add-evidence:hover {
    background-color: #4338ca;
}

.btn-add-evidence i {
    font-size: 1.1rem;
}

/* Documents Grid */
.documents-grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.document-group {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.document-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.document-group .file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    padding: 1rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Summary Styles */
.summary-grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-summary.centered {
    text-align: center;
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid #e5e7eb;
}

.summary-title {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.form-summary.centered .summary-item {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.form-summary.centered .label {
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.25rem;
    display: block;
}

.form-summary.centered .value {
    font-weight: 600;
    font-size: 1.1rem;
    color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
    .evidence-grid-2-cols,
    .documents-grid-2-cols {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .evidence-card,
    .document-group {
        padding: 1rem;
    }
    
    .evidence-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .btn-remove-file {
        align-self: flex-end;
    }
    
    .summary-grid-2-cols {
        grid-template-columns: 1fr;
    }
    
    .toggle-label {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .evidence-card,
    .document-group {
        padding: 0.75rem;
    }
    
    .evidence-number {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .upload-zone {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .file-preview {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .file-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Estilos para el mensaje de "No se subió evidencia" */
.no-evidence-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px dashed #e74c3c;
    border-radius: 8px;
    background-color: #fdf2f2;
    min-height: 120px;
    gap: 12px;
}

.no-evidence-icon {
    color: #e74c3c;
    font-size: 24px;
}

.no-evidence-text p {
    margin: 0;
    color: #e74c3c;
    font-weight: 500;
    font-size: 14px;
}

/* Modo oscuro para Step 6 - Pago a Terceros */
[data-theme="dark"] .toggle-section {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .toggle-label {
    color: #e2e8f0;
}

[data-theme="dark"] .third-party-section {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .third-party-section h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .third-party-section p {
    color: #a0aec0;
}

[data-theme="dark"] .evidence-card {
    background-color: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .evidence-card:hover {
    border-color: #718096;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .evidence-number h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .evidence-card .file-upload-area {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .upload-text p {
    color: #e2e8f0;
}

[data-theme="dark"] .upload-text .file-types {
    color: #a0aec0;
}

[data-theme="dark"] .file-preview {
    background-color: #4a5568;
}

[data-theme="dark"] .file-name {
    color: #e2e8f0;
}

[data-theme="dark"] .file-size {
    color: #a0aec0;
}

[data-theme="dark"] .document-group {
    background-color: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .document-group label {
    color: #e2e8f0;
}

[data-theme="dark"] .document-group .file-upload-area {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .form-summary.centered {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .summary-title {
    color: #e2e8f0;
}

[data-theme="dark"] .form-summary.centered .summary-item {
    background-color: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .form-summary.centered .label {
    color: #a0aec0;
}

[data-theme="dark"] .form-summary.centered .value {
    color: #e2e8f0;
}

[data-theme="dark"] .no-evidence-message {
    background-color: #742a2a;
    border-color: #e53e3e;
}

[data-theme="dark"] .no-evidence-icon {
    color: #feb2b2;
}

[data-theme="dark"] .no-evidence-text p {
    color: #feb2b2;
} /* Toggle Section Styles */
.toggle-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.toggle-container {
    display: flex;
    justify-content: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    font-size: 1.1rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4f46e5;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Marketing Content */
.marketing-content {
    animation: fadeIn 0.3s ease-in;
}

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

.marketing-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
}

.marketing-section h3 {
    color: #111827;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.marketing-section p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Evidence Grid */
.evidence-grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.evidence-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.evidence-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.evidence-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.evidence-number {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.number-badge {
    background-color: #4f46e5;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.evidence-number h4 {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.evidence-card .file-upload-area {
    margin-bottom: 1rem;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    padding: 1rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: left;
    color: #6b7280;
    cursor: pointer;
    width: 100%;
}

.upload-icon {
    font-size: 2.5rem;
    color: #9ca3af;
}

.upload-text p {
    font-weight: 600;
    color: #4b5563;
    margin: 0;
}

.upload-text .file-types {
    font-size: 0.8rem;
    color: #9ca3af;
}

.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: #f3f4f6;
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-info .ri-file-text-line,
.file-info .ri-image-line {
    font-size: 1.8rem;
    color: #4f46e5;
}

.file-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #374151;
    width: 100%;
    word-break: break-word;
}

.file-size {
    font-size: 0.8rem;
    color: #6b7280;
}

.btn-remove-file {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.btn-remove-file:hover {
    color: #dc2626;
}

.btn-add-evidence {
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
    width: fit-content;
}

.btn-add-evidence:hover {
    background-color: #4338ca;
}

.btn-add-evidence i {
    font-size: 1.1rem;
}

/* Links Section */
.links-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.links-section h4 {
    color: #111827;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.links-list {
    margin-bottom: 1rem;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.link-url {
    color: #4f46e5;
    text-decoration: none;
    font-size: 0.9rem;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-url:hover {
    text-decoration: underline;
}

.btn-remove-link {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.btn-remove-link:hover {
    color: #dc2626;
}

.add-link-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.link-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #374151;
}

.link-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-add-link {
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}

.btn-add-link:hover {
    background-color: #4338ca;
}

/* Documents Grid */
.documents-grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.document-group {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.document-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.document-group .file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    padding: 1rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Summary Styles */
.summary-grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-summary.centered {
    text-align: center;
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid #e5e7eb;
}

.summary-title {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.form-summary.centered .summary-item {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.form-summary.centered .label {
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.25rem;
    display: block;
}

.form-summary.centered .value {
    font-weight: 600;
    font-size: 1.1rem;
    color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
    .evidence-grid-2-cols,
    .documents-grid-2-cols {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .evidence-card,
    .document-group {
        padding: 1rem;
    }
    
    .evidence-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .btn-remove-file {
        align-self: flex-end;
    }
    
    .summary-grid-2-cols {
        grid-template-columns: 1fr;
    }
    
    .toggle-label {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .add-link-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-add-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .evidence-card,
    .document-group {
        padding: 0.75rem;
    }
    
    .evidence-number {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .upload-zone {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .file-preview {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .file-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .link-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .link-url {
        max-width: 100%;
    }
}

/* Estilos para el mensaje de "No se subió evidencia" */
.no-evidence-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px dashed #e74c3c;
    border-radius: 8px;
    background-color: #fdf2f2;
    min-height: 120px;
    gap: 12px;
}

.no-evidence-icon {
    color: #e74c3c;
    font-size: 24px;
}

.no-evidence-text p {
    margin: 0;
    color: #e74c3c;
    font-weight: 500;
    font-size: 14px;
}

/* Modo oscuro para Step 7 - Medios de Comunicación */
[data-theme="dark"] .toggle-section {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .toggle-label {
    color: #e2e8f0;
}

[data-theme="dark"] .marketing-section {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .marketing-section h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .marketing-section p {
    color: #a0aec0;
}

[data-theme="dark"] .evidence-card {
    background-color: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .evidence-card:hover {
    border-color: #718096;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .evidence-number h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .evidence-card .file-upload-area {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .upload-text p {
    color: #e2e8f0;
}

[data-theme="dark"] .upload-text .file-types {
    color: #a0aec0;
}

[data-theme="dark"] .file-preview {
    background-color: #4a5568;
}

[data-theme="dark"] .file-name {
    color: #e2e8f0;
}

[data-theme="dark"] .file-size {
    color: #a0aec0;
}

[data-theme="dark"] .links-section {
    background-color: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .links-section h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .link-item {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .link-url {
    color: #90cdf4;
}

[data-theme="dark"] .link-input {
    background-color: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .link-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

[data-theme="dark"] .document-group {
    background-color: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .document-group label {
    color: #e2e8f0;
}

[data-theme="dark"] .document-group .file-upload-area {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .form-summary.centered {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .summary-title {
    color: #e2e8f0;
}

[data-theme="dark"] .form-summary.centered .summary-item {
    background-color: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .form-summary.centered .label {
    color: #a0aec0;
}

[data-theme="dark"] .form-summary.centered .value {
    color: #e2e8f0;
}

[data-theme="dark"] .no-evidence-message {
    background-color: #742a2a;
    border-color: #e53e3e;
}

[data-theme="dark"] .no-evidence-icon {
    color: #feb2b2;
}

[data-theme="dark"] .no-evidence-text p {
    color: #feb2b2;
} /* Step 8 - Documentos Finales */
.documents-section {
    margin-top: 2rem;
}

.documents-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.document-group {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.document-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.file-upload-area {
    position: relative;
    min-height: 120px;
}

.file-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.25rem 0;
    min-height: auto;
}

.file-info {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
}

.file-info i {
    font-size: 2rem;
    color: #6c757d;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
    align-items: center;
}

.file-name {
    font-weight: 500;
    color: #2c3e50;
    display: block;
}

.file-name-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
    min-width: 0;
}

.file-name-base {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: clip;
    text-align: center;
}

.file-name-ext {
    flex: 0 0 auto;
    font-weight: 700;
    opacity: 0.9;
    white-space: nowrap;
}

.file-name.clickable {
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
}

.file-name.clickable:hover {
    color: #0056b3;
}

.file-size {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
}

.btn-remove-file {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.btn-remove-file:hover {
    background: #c82333;
}

.btn-remove-file:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    min-height: 120px;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-zone:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.upload-icon {
    margin-bottom: 1rem;
}

.upload-icon i {
    font-size: 2rem;
    color: #6c757d;
}

.upload-text {
    text-align: center;
}

.upload-text p {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    color: #2c3e50;
}

.file-types {
    font-size: 0.875rem;
    color: #6c757d;
}

.no-evidence-message {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    min-height: 80px;
    gap: 0.75rem;
}

.no-evidence-icon i {
    font-size: 1.5rem;
    color: #856404;
}

.no-evidence-text p {
    margin: 0;
    color: #856404;
    font-weight: 500;
}

/* Responsive */
@media (min-width: 768px) {
    .documents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .document-group {
        padding: 1rem;
    }
    
    .upload-zone {
        padding: 1.5rem;
    }
    
    .file-preview {
        padding: 0.75rem;
    }
}

/* Modo oscuro para Step 8 - Documentos Finales */
[data-theme="dark"] .document-group {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .document-group label {
    color: #e2e8f0;
}

[data-theme="dark"] .file-preview {
    background: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .file-info i {
    color: #a0aec0;
}

[data-theme="dark"] .file-name {
    color: #e2e8f0;
}

[data-theme="dark"] .file-name.clickable {
    color: #90cdf4;
}

[data-theme="dark"] .file-name.clickable:hover {
    color: #63b3ed;
}

[data-theme="dark"] .file-size {
    color: #a0aec0;
}

[data-theme="dark"] .upload-zone {
    background: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .upload-zone:hover {
    border-color: #007bff;
    background: #374151;
}

[data-theme="dark"] .upload-icon i {
    color: #a0aec0;
}

[data-theme="dark"] .upload-text p {
    color: #e2e8f0;
}

[data-theme="dark"] .file-types {
    color: #a0aec0;
}

[data-theme="dark"] .no-evidence-message {
    background: #744210;
    border-color: #d69e2e;
}

[data-theme="dark"] .no-evidence-icon i {
    color: #fbd38d;
}

[data-theme="dark"] .no-evidence-text p {
    color: #fbd38d;
} /* Step 9 - Otros Servicios */
.other-services-content {
    margin-top: 2rem;
}

.other-services-section {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.other-services-section h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.other-services-section p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.evidence-grid-2-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.evidence-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
}

.evidence-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.evidence-number {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.number-badge {
    background: #007bff;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.evidence-number h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}



.file-upload-area {
    position: relative;
    min-height: 120px;
}

.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    min-height: 80px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.file-info i {
    font-size: 1.5rem;
    color: #6c757d;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #2c3e50;
    word-break: break-all;
}

.file-name.clickable {
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
}

.file-name.clickable:hover {
    color: #0056b3;
}

.file-size {
    font-size: 0.875rem;
    color: #6c757d;
}

.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    min-height: 120px;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-zone:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.upload-icon {
    margin-bottom: 1rem;
}

.upload-icon i {
    font-size: 2rem;
    color: #6c757d;
}

.upload-text {
    text-align: center;
}

.upload-text p {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    color: #2c3e50;
}

.file-types {
    font-size: 0.875rem;
    color: #6c757d;
}

.no-evidence-message {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    min-height: 80px;
    gap: 0.75rem;
}

.no-evidence-icon i {
    font-size: 1.5rem;
    color: #856404;
}

.no-evidence-text p {
    margin: 0;
    color: #856404;
    font-weight: 500;
}

.btn-remove-file {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-file:hover {
    background: #f8d7da;
    color: #721c24;
}

.btn-remove-file:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-remove-file i {
    font-size: 1rem;
}

.add-more-evidence-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.btn-add-more-evidence {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-add-more-evidence:hover:not(:disabled) {
    background: #218838;
}

.btn-add-more-evidence:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-add-more-evidence i {
    font-size: 1rem;
}

/* Responsive */
@media (min-width: 768px) {
    .evidence-grid-2-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .other-services-section {
        padding: 1rem;
    }
    
    .evidence-card {
        padding: 1rem;
    }
    
    .upload-zone {
        padding: 1.5rem;
    }
    
    .file-preview {
        padding: 0.75rem;
    }
    
    .add-link-container {
        flex-direction: column;
    }
}

/* Modo oscuro para Step 9 - Otros Servicios */
[data-theme="dark"] .other-services-section {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .other-services-section h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .other-services-section p {
    color: #a0aec0;
}

[data-theme="dark"] .evidence-card {
    background: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .evidence-number h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .file-preview {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .file-info i {
    color: #a0aec0;
}

[data-theme="dark"] .file-name {
    color: #e2e8f0;
}

[data-theme="dark"] .file-name.clickable {
    color: #90cdf4;
}

[data-theme="dark"] .file-name.clickable:hover {
    color: #63b3ed;
}

[data-theme="dark"] .file-size {
    color: #a0aec0;
}

[data-theme="dark"] .upload-zone {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .upload-zone:hover {
    border-color: #007bff;
    background: #374151;
}

[data-theme="dark"] .upload-icon i {
    color: #a0aec0;
}

[data-theme="dark"] .upload-text p {
    color: #e2e8f0;
}

[data-theme="dark"] .file-types {
    color: #a0aec0;
}

[data-theme="dark"] .no-evidence-message {
    background: #744210;
    border-color: #d69e2e;
}

[data-theme="dark"] .no-evidence-icon i {
    color: #fbd38d;
}

[data-theme="dark"] .no-evidence-text p {
    color: #fbd38d;
}

[data-theme="dark"] .add-more-evidence-container {
    border-top-color: #4a5568;
} .create-report-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 80px);
    position: relative;
}

.create-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    margin-bottom: 2rem;
}

/* Mejoras de responsive del header */
@media (max-width: 768px) {
    .create-report-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .create-report-header .header-title {
        flex: 1 1 100%;
        order: 2;
    }

    .create-report-header .nav-arrow,
    .create-report-header .btn-submit {
        order: 1;
        flex: 0 0 auto;
    }
}

.report-status-content {
    width: 100%;
    background-color: #ffc664;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.report-status-content .column {
    min-width: calc(100% / 2);
    max-width: calc(100% / 2);
    width: 100%;
}

.report-status-content .observations-line {
    min-width: calc(100% / 1);
    margin-top: 1rem;
}

.report-status-content .observations-line p {
    width: 100%;
    white-space: pre-wrap;
}

.report-status-content .observations-line .observations-textarea-text {
    overflow: auto;
    max-height: 200px;
}

.report-status-content .observations-textarea {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: white;
    resize: none;
}

.report-status-content .observations-save-button {
    width: 100%;
    justify-content: center;
}

.report-status-content .observations-save-button:disabled {
    background-color: #6c757d;
    color: white;
    cursor: not-allowed;
}

.report-status-content .states {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.report-status-content .states button {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    justify-content: center;
}

.report-status-content .states button:first-child {
    background-color: #dc3545;
    color: white;
}

.report-status-content .states button:last-child {
    background-color: #28a745;
    color: white;
}

.report-status-content .states button:disabled {
    background-color: #6c757d;
    color: white;
    cursor: not-allowed;
}

.report-status-content .states button:last-child:disabled {
    background-color: #6c757d;
    color: white;
    cursor: not-allowed;
}

.report-status-content .states button:last-child:disabled:hover {
    background-color: #6c757d;
    color: white;
    cursor: not-allowed;
}

.header-title h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.header-title p {
    font-size: 1.1rem;
    color: #666;
}

.header-title .create-report-op-banner {
    margin: 0.35rem 0 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #000000;
    letter-spacing: 0.02em;
}

.approved-client-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #e2e3e5;
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.approved-client-notice i {
    font-size: 1rem;
}

/* Tiempos del reporte (solo ejecutivo/admin) */
.create-report-tiempos {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #f0f4f8;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

.create-report-tiempos strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #334155;
}

.create-report-tiempos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.create-report-tiempos-grid span {
    white-space: nowrap;
}

.create-report-fechas {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.nav-arrow {
    background: transparent;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.nav-arrow i {
    font-size: 1.6rem;
}

.nav-arrow:not(:disabled):hover {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.nav-arrow:disabled,
.nav-arrow.disabled {
    border-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.nav-arrow.disabled {
    position: relative;
}

.nav-arrow.disabled::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #adb5bd;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0.5;
}

/* Barra de progreso */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

/* Barra de progreso en grid 3x3 para tablets y móviles */
@media (max-width: 1024px) {
    .progress-bar {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.75rem 1rem !important;
        align-items: stretch !important;
    }

    .progress-bar::before {
        display: none !important;
    }

    .progress-step {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.4rem !important;
        padding: 0.5rem !important;
    }

    .progress-step .step-label {
        max-width: none !important;
        text-align: center !important;
        font-size: 0.8rem !important;
    }
}

.progress-bar::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.progress-step.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.progress-step .step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #495057;
    transition: all 0.3s ease;
}

.progress-step .step-label {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
    transition: color 0.2s;
    font-weight: 500;
    max-width: 90px;
}

.progress-step.active .step-number {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.progress-step.active .step-label {
    color: #007bff;
    font-weight: 700;
}

.progress-step.completed .step-number {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.progress-step.completed .step-label {
    color: #28a745;
    font-weight: 600;
}

.progress-step.completed {
    cursor: pointer;
}

.progress-step.completed:hover:not(.disabled) .step-number {
    border-color: #007bff;
    background-color: #f0f8ff;
    color: #007bff;
}

.progress-step.completed:hover:not(.disabled) .step-label {
    color: #007bff;
}

.progress-step.disabled .step-number {
    border-color: #e9ecef;
    background-color: #f8f9fa;
    color: #adb5bd;
}

.progress-step.disabled .step-label {
    color: #adb5bd;
}

.create-report-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.create-report-step-warnings {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    margin: 1rem 1.25rem 0;
    background: #fff8e6;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    color: #92400e;
    font-size: 0.95rem;
}

.create-report-step-warnings i {
    flex-shrink: 0;
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

.create-report-step-warnings ul {
    margin: 0.35rem 0 0 0;
    padding-left: 1.25rem;
}

.create-report-step-warnings li {
    margin-bottom: 0.25rem;
}

.create-report-step-warnings li:last-child {
    margin-bottom: 0;
}

.step-content {
    padding: 3rem 2rem;
    text-align: center;
}

.step-content h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.step-content p {
    color: #666;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    justify-content: end !important;
    align-items: center;
    padding: 1rem 2rem;
    border-top: 1px solid #eee;
    gap: 1rem;
    width: 100% !important;
}

/* Acciones pegadas al fondo en móvil */
@media (max-width: 768px) {
    .form-actions {
        position: sticky;
        bottom: 0;
        background: #ffffff;
        padding: 1rem;
        z-index: 20;
    }

    .create-report-container {
        padding-bottom: 5rem;
    }
}

.btn-cancel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #6c757d;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-cancel:hover:not(.disabled) {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-cancel.disabled {
    background: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.step-buttons {
    display: flex;
    gap: 1rem;
}

.btn-previous {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #6c757d;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-previous:hover:not(:disabled):not(.disabled) {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-next {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 300px !important;
    max-width: 600px !important;
}

.btn-next:hover:not(:disabled):not(.disabled) {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-submit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #28a745;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover:not(:disabled):not(.disabled) {
    background: #1e7e34;
    transform: translateY(-1px);
}

.btn-previous:disabled,
.btn-previous.disabled,
.btn-next:disabled,
.btn-next.disabled,
.btn-submit:disabled,
.btn-submit.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-previous:disabled,
.btn-previous.disabled {
    background: #adb5bd;
}

.btn-next:disabled,
.btn-next.disabled {
    background: #adb5bd;
}

.btn-submit:disabled,
.btn-submit.disabled {
    background: #adb5bd;
}

.loading-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .create-report-container {
        padding: 1rem;
    }

    .create-report-header h1 {
        font-size: 2rem;
    }

    /* En móvil mantener 3 columnas; los items apilan número encima del texto */
    .progress-bar {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.75rem 1rem !important;
        align-items: stretch !important;
    }

    .progress-bar::before {
        display: none !important;
    }

    .progress-step {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.4rem !important;
        padding: 0.5rem !important;
    }

    .step-label {
        max-width: none !important;
        text-align: center !important;
    }

    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .step-buttons {
        width: 100%;
        justify-content: center;
    }

    .btn-cancel,
    .btn-previous,
    .btn-next,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .create-report-header h1 {
        font-size: 1.75rem;
    }

    .step-content {
        padding: 2rem 1rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* --- Estilos Generales de Formularios --- */
.step-form {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.step-description {
    text-align: center;
    margin-bottom: 2rem;
}

.step-description h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 0.4rem;
}

.step-description p {
    font-size: 0.95rem;
    color: #6c757d;
    max-width: 500px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.grid-col-span-2 {
    grid-column: span 2;
}

.grid-col-span-3 {
    grid-column: span 3;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.7rem !important;
    color: #495057;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
    box-sizing: border-box;
    transition:
        border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select {
    height: 44px;
}

.form-group select {
    padding-top: 0;
    padding-bottom: 0;
}

.form-group input[type="text"]:disabled,
.form-group input[type="number"]:disabled,
.form-group input[type="date"]:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    color: black !important;
    font-weight: bold;
    cursor: not-allowed;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group input::placeholder {
    color: #adb5bd;
}

.input-with-prefix {
    display: flex;
    width: 100%;
}

.input-with-prefix .prefix {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    gap: 0.8rem;
}

/* Resumen en una columna en pantallas pequeñas */
@media (max-width: 576px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

.summary-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    border-radius: 4px;
    background-color: #ffffff;
    text-align: center;
}

.summary-item .label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.summary-item .value {
    font-size: 0.95rem;
    color: #343a40;
    font-weight: 500;
}

/* Estilos para el paso 2 - Documentos */
.documents-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.document-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

/* Alerta de obligatoriedad (según diagrama de pasos del reporte) */
.field-required-alert {
    display: inline-block;
    margin-left: 2px;
    padding: 2px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #fff;
    background-color: #dc3545;
    border-radius: 4px;
    vertical-align: middle;
}

.field-required-alert.conditional {
    background-color: #fd7e14;
}

.field-optional-hint {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
    font-style: italic;
}

.step-required-note {
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
}

.file-upload-area {
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.file-upload-area:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

/* Cuando ya hay archivo cargado: sin recuadro */
.file-upload-area.file-upload-area--has-file {
    border: none;
    border-radius: 0;
    background: transparent;
}

.file-upload-area.file-upload-area--has-file:hover {
    border-color: transparent;
    background: transparent;
}

.upload-zone {
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    background: #f8f9ff;
}

.upload-zone i {
    font-size: 2.5rem;
    color: #6c757d;
    margin-bottom: 1rem;
    display: block;
}

.upload-zone p {
    color: #333;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.upload-zone .file-types {
    color: #6c757d;
    font-size: 0.8rem;
}

.file-preview {
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.file-info {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
}

.file-info i {
    font-size: 2rem;
    color: #007bff;
    flex-shrink: 0;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
    align-items: center;
}

.field-note {
    font-size: 0.7rem;
    text-align: center;
}

.file-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    width: 100%;
    display: block;
}

.file-name-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
    min-width: 0;
}

.file-name-base {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: clip;
    text-align: center;
}

.file-name-ext {
    flex: 0 0 auto;
    font-weight: 700;
    opacity: 0.9;
    white-space: nowrap;
}

.file-size {
    text-align: center;
}

.file-size {
    color: #6c757d;
    font-size: 0.8rem;
}

.btn-remove-file {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-file:hover {
    background: #c82333;
}

.btn-remove-file i {
    font-size: 1rem;
}

/* Responsive para documentos */
@media (max-width: 768px) {
    .documents-grid {
        gap: 1.5rem;
    }

    .upload-zone {
        padding: 1.5rem;
    }

    .upload-zone i {
        font-size: 2rem;
    }

    .file-preview {
        padding: 0.75rem;
        margin: 0.75rem;
    }

    .file-info {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .upload-zone {
        padding: 1rem;
    }

    .upload-zone i {
        font-size: 1.75rem;
    }

    .file-preview {
        padding: 0.5rem;
        margin: 0.5rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .file-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Estilos para el paso 3 - Evidencias */
.evidence-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.evidence-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    background: white;
}

.evidence-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.evidence-header h3 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.evidence-item .file-upload-area {
    margin-bottom: 1rem;
}

.evidence-item .form-group {
    margin-bottom: 0;
}

.evidence-count {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.evidence-count p {
    color: #333;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive para evidencias */
@media (max-width: 768px) {
    .evidence-grid {
        gap: 1.5rem;
    }

    .evidence-item {
        padding: 1rem;
    }

    .evidence-header h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .evidence-item {
        padding: 0.75rem;
    }

    .evidence-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .evidence-header .btn-remove-file {
        align-self: flex-end;
    }
}

/* Estilos para el paso 5 - Servicio de Alojamiento */
.toggle-section {
    margin-bottom: 2rem;
}

.toggle-container {
    display: flex;
    justify-content: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #007bff;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.lodging-content {
    animation: fadeIn 0.3s ease-in;
}

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

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

.lodging-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.lodging-section h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.lodging-section p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.evidence-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.evidence-list .evidence-item {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    background: #f8f9fa;
}

.evidence-list .evidence-header {
    margin-bottom: 0.75rem;
}

.evidence-list .evidence-header h4 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.btn-add-evidence {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    width: 100%;
    justify-content: center;
}

.btn-add-evidence:hover {
    background: #218838;
}

.btn-add-evidence i {
    font-size: 1.1rem;
}

/* Responsive para alojamiento */
@media (max-width: 768px) {
    .toggle-label {
        font-size: 1rem;
        gap: 0.75rem;
    }

    .toggle-switch {
        width: 50px;
        height: 28px;
    }

    .slider:before {
        height: 20px;
        width: 20px;
        left: 4px;
        bottom: 4px;
    }

    input:checked + .slider:before {
        transform: translateX(22px);
    }

    .lodging-section {
        padding: 1rem;
    }

    .evidence-list {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .toggle-label {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .lodging-section {
        padding: 0.75rem;
    }

    .evidence-list .evidence-item {
        padding: 0.75rem;
    }
}

/* Estilos para el paso 4 - Servicio de Transporte */
.transport-content {
    animation: fadeIn 0.3s ease-in;
}

.transport-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.transport-section h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.transport-section p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.transport-section .evidence-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.transport-section .evidence-item {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    background: #f8f9fa;
}

.transport-section .evidence-header {
    margin-bottom: 0.75rem;
}

.transport-section .evidence-header h4 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.transport-section .btn-add-evidence {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    width: 100%;
    justify-content: center;
}

.transport-section .btn-add-evidence:hover {
    background: #0056b3;
}

.transport-section .btn-add-evidence i {
    font-size: 1.1rem;
}

/* Responsive para transporte */
@media (max-width: 768px) {
    .transport-section {
        padding: 1rem;
    }

    .transport-section .evidence-list {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .transport-section {
        padding: 0.75rem;
    }

    .transport-section .evidence-item {
        padding: 0.75rem;
    }
}

/* Estilos para el mensaje de éxito */
.success-message {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    background: #2d3748;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a5568;
    display: flex;
    flex-direction: column;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: bounceIn 0.6s ease-out;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    position: relative;
}

.success-icon::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 2s infinite;
}

.success-icon i {
    font-size: 3rem;
    color: white;
    position: relative;
    z-index: 1;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }

    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}

.success-message h1 {
    color: #28a745;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.success-message p {
    color: #e2e8f0;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-weight: 400;
}

.success-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.1rem;
    min-width: 200px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #545b62 0%, #495057 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

/* Responsive para mensaje de éxito */
@media (max-width: 1024px) {
    .success-message {
        padding: 3.5rem 2rem;
        max-width: 550px;
    }

    .success-icon {
        width: 90px;
        height: 90px;
    }

    .success-icon::before {
        width: 110px;
        height: 110px;
    }

    .success-icon i {
        font-size: 2.8rem;
    }

    .success-message h1 {
        font-size: 2.2rem;
    }

    .success-message p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .success-message {
        padding: 3rem 1.5rem;
        max-width: 500px;
        margin: 1rem auto;
    }

    .success-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }

    .success-icon::before {
        width: 100px;
        height: 100px;
    }

    .success-icon i {
        font-size: 2.5rem;
    }

    .success-message h1 {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }

    .success-message p {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .success-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2.5rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .success-message {
        padding: 2.5rem 1rem;
        max-width: 100%;
        margin: 0.5rem;
        border-radius: 12px;
    }

    .success-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
    }

    .success-icon::before {
        width: 90px;
        height: 90px;
    }

    .success-icon i {
        font-size: 2.2rem;
    }

    .success-message h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .success-message p {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .success-actions {
        margin-top: 2rem;
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        min-width: auto;
        max-width: 280px;
    }
}

@media (max-width: 360px) {
    .success-message {
        padding: 2rem 0.75rem;
        margin: 0.25rem;
    }

    .success-icon {
        width: 60px;
        height: 60px;
    }

    .success-icon::before {
        width: 80px;
        height: 80px;
    }

    .success-icon i {
        font-size: 1.8rem;
    }

    .success-message h1 {
        font-size: 1.6rem;
    }

    .success-message p {
        font-size: 0.9rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        max-width: 260px;
    }
}

/* Modo oscuro para mensaje de éxito */
[data-theme="dark"] .success-message {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .success-message h1 {
    color: #28a745;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .success-message p {
    color: #e2e8f0;
}

[data-theme="dark"] .success-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

[data-theme="dark"] .success-icon::before {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

[data-theme="dark"] .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.5);
}

[data-theme="dark"] .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    color: white;
}

[data-theme="dark"] .btn-secondary:hover {
    background: linear-gradient(135deg, #545b62 0%, #495057 100%);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.5);
}

/* Responsive para el formulario */
@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-col-span-2,
    .grid-col-span-3 {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Ocultar las flechas de los inputs de tipo número */
.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-group input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Loading Overlay - usa TableLoading (mismo que tablas) */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.create-report-loading-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    width: 100%;
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

/* Logo en el modal de Procesando... */
.loading-content::before {
    content: "";
    display: block;
    width: 64px;
    height: 64px;
    background-image: url("/assets/activa-Dxm9gX3u.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

@media (max-width: 768px) {
    .loading-content::before {
        width: 52px;
        height: 52px;
    }
}

.loading-content p {
    color: #495057;
    font-weight: 500;
    margin: 0;
    font-size: 1rem;
}

.loading-spinner-large {
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Indicador de campo obligatorio para imágenes con descripción */
.required-indicator {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1em;
}

/* Modo oscuro para la página de crear reporte */
[data-theme="dark"] .header-title h1 {
    color: white;
}

[data-theme="dark"] .header-title p {
    color: #a0aec0;
}

[data-theme="dark"] .header-title .create-report-op-banner {
    color: #ffffff;
}

[data-theme="dark"] .create-report-content {
    background: #2d3748;
    border: 1px solid #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .create-report-step-warnings {
    background: #453411;
    border-color: #d97706;
    color: #fcd34d;
}

[data-theme="dark"] .step-content h2 {
    color: #e2e8f0;
}

[data-theme="dark"] .step-content p {
    color: #a0aec0;
}

[data-theme="dark"] .form-actions {
    background: #2d3748;
    border-top-color: #4a5568;
}

[data-theme="dark"] .step-form {
    background-color: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .step-description h2 {
    color: #e2e8f0;
}

[data-theme="dark"] .step-description p {
    color: #a0aec0;
}

[data-theme="dark"] .step-required-note {
    color: #b45309;
    background-color: #451a03;
    border-color: #78350f;
}

[data-theme="dark"] .field-required-alert {
    color: #fecaca;
    background-color: #b91c1c;
}

[data-theme="dark"] .field-required-alert.conditional {
    color: #fed7aa;
    background-color: #c2410c;
}

[data-theme="dark"] .field-optional-hint {
    color: #94a3b8;
}

[data-theme="dark"] .form-group label {
    color: #e2e8f0;
}

[data-theme="dark"] .form-group input[type="text"],
[data-theme="dark"] .form-group input[type="number"],
[data-theme="dark"] .form-group input[type="date"],
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background-color: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .form-group input[type="text"]:disabled,
[data-theme="dark"] .form-group input[type="number"]:disabled,
[data-theme="dark"] .form-group input[type="date"]:disabled,
[data-theme="dark"] .form-group select:disabled,
[data-theme="dark"] .form-group textarea:disabled {
    background-color: #4a5568;
    border-color: #718096;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .form-group input::placeholder {
    color: #a0aec0;
}

[data-theme="dark"] .input-with-prefix .prefix {
    background-color: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .form-summary {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .form-summary h3 {
    color: #e2e8f0;
    border-bottom-color: #718096;
}

[data-theme="dark"] .summary-item {
    background-color: #2d3748;
}

[data-theme="dark"] .summary-item .label {
    color: #a0aec0;
}

[data-theme="dark"] .summary-item .value {
    color: #e2e8f0;
}

[data-theme="dark"] .file-upload-area {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .file-upload-area:hover {
    background: #374151;
    border-color: #007bff;
}

[data-theme="dark"] .upload-zone p {
    color: #e2e8f0;
}

[data-theme="dark"] .upload-zone .file-types {
    color: #a0aec0;
}

[data-theme="dark"] .file-preview {
    background: #4a5568;
}

[data-theme="dark"] .file-name {
    color: #e2e8f0;
}

[data-theme="dark"] .file-size {
    color: #a0aec0;
}

[data-theme="dark"] .evidence-item {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .evidence-header h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .evidence-header h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .evidence-count p {
    color: #e2e8f0;
}

[data-theme="dark"] .evidence-list .evidence-item {
    background: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .lodging-section {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .lodging-section h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .lodging-section p {
    color: #a0aec0;
}

[data-theme="dark"] .transport-section {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .transport-section h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .transport-section p {
    color: #a0aec0;
}

[data-theme="dark"] .transport-section .evidence-item {
    background: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .transport-section .evidence-header h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .toggle-label {
    color: #e2e8f0;
}

[data-theme="dark"] .success-message h1 {
    color: #28a745;
}

[data-theme="dark"] .success-message p {
    color: #a0aec0;
}

[data-theme="dark"] .loading-content {
    background: #2d3748;
    color: #e2e8f0;
}

[data-theme="dark"] .loading-content p {
    color: #e2e8f0;
}

[data-theme="dark"] .report-status-content {
    background-color: #744210;
    color: #fbd38d;
}

[data-theme="dark"] .report-status-content .observations-textarea {
    background-color: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .approved-client-notice {
    background-color: #4a5568;
    color: #e2e8f0;
    border-color: #718096;
}

[data-theme="dark"] .create-report-tiempos {
    background-color: #334155;
    border-color: #475569;
}

[data-theme="dark"] .create-report-tiempos strong {
    color: #e2e8f0;
}

[data-theme="dark"] .create-report-fechas {
    border-top-color: #475569;
    color: #94a3b8;
}

[data-theme="dark"] .nav-arrow {
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .nav-arrow:not(:disabled):hover {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

[data-theme="dark"] .nav-arrow:disabled,
[data-theme="dark"] .nav-arrow.disabled {
    border-color: #4a5568;
    color: #718096;
}

[data-theme="dark"] .progress-step .step-number {
    background-color: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .progress-step .step-label {
    color: #a0aec0;
}

[data-theme="dark"] .progress-step.active .step-number {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

[data-theme="dark"] .progress-step.active .step-label {
    color: #007bff;
}

[data-theme="dark"] .progress-step.completed .step-number {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

[data-theme="dark"] .progress-step.completed .step-label {
    color: #28a745;
}

[data-theme="dark"] .progress-step.disabled .step-number {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #718096;
}

[data-theme="dark"] .progress-step.disabled .step-label {
    color: #718096;
}

[data-theme="dark"] .progress-bar::before {
    background-color: #4a5568;
}
.reports-container {
    padding: 2rem;
    padding-top: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Desktop: tabla visible, cards ocultas */
.reports-table-desktop {
    display: block;
}

.reports-cards-mobile {
    display: none;
}

.reports-list-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
}

/* Mobile: ocultar tabla, mostrar cards */
@media (max-width: 767px) {
    .reports-table-desktop {
        display: none;
    }

    .reports-cards-mobile {
        display: block;
    }

    .reports-cards-mobile .reports-list-mobile {
        margin-top: 0.5rem;
    }

    .reports-cards-mobile .table-pagination-top,
    .reports-cards-mobile .table-pagination-bottom {
        margin: 0.5rem 0;
    }
}

/* Contenedor tabla (alineado con Contratos/dashboard) */
.reports-container .admin-table-container {
    background: transparent;
    border-radius: 12px;
    overflow-x: auto;
    width: 100%;
}

.reports-container .data-table-wrapper {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reports-page-filters {
    margin-bottom: 24px;
}

.reports-header {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 50px;
}

.reports-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.reports-header p {
    font-size: 1.1rem;
    color: #666;
}

.reports-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn-create-report {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #007bff;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
}

.btn-create-report:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}

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

.reports-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
}

.no-results i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}


.report-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #e9ecef;
}

.report-card.empty {
    opacity: 0.7;
    background: #f8f9fa;
}

.report-card.empty:hover {
    opacity: 1;
    background: white;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon i {
    font-size: 1.5rem;
    color: #6c757d;
}

.card-info {
    flex: 1;
}

.card-info h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.card-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.card-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.empty {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-icon i {
    font-size: 2rem;
    color: #6c757d;
}

.empty-state h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.btn-create-first {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-create-first:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* Responsive design */

/* Tablet grande */
@media (max-width: 1024px) {
    .reports-container {
        padding: 1.5rem;
    }
    
    .reports-header h1 {
        font-size: 2.2rem;
    }
    
    .reports-header p {
        font-size: 1rem;
    }
    
    .btn-create-report {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
    
    .reports-list {
        gap: 0.875rem;
    }
}

/* Tablet medio - Surface Pro 7, iPad Pro */
@media (max-width: 912px) {
    .reports-container {
        padding: 1.25rem;
    }
    
    .reports-header h1 {
        font-size: 2rem;
    }
    
    .reports-header p {
        font-size: 0.95rem;
    }
    
    .btn-create-report {
        padding: 0.85rem 1.6rem;
        font-size: 0.9rem;
    }
    
    .reports-list {
        gap: 0.75rem;
    }
}

/* Tablet pequeño */
@media (max-width: 768px) {
    .reports-container {
        padding: 1rem;
    }
    
    .reports-header {
        margin-bottom: 2rem;
        margin-top: 40px;
    }
    
    .reports-header h1 {
        font-size: 1.8rem;
    }
    
    .reports-header p {
        font-size: 0.9rem;
    }
    
    .reports-actions {
        margin-bottom: 2rem;
    }
    
    .btn-create-report {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .reports-list {
        gap: 0.75rem;
    }
}

/* Móvil grande */
@media (max-width: 640px) {
    .reports-container {
        padding: 0.75rem;
    }
    
    .reports-header {
        margin-bottom: 1.5rem;
        margin-top: 30px;
    }
    
    .reports-header h1 {
        font-size: 1.6rem;
    }
    
    .reports-header p {
        font-size: 0.85rem;
    }
    
    .reports-actions {
        margin-bottom: 1.5rem;
    }
    
    .btn-create-report {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .btn-create-report i {
        font-size: 1rem;
    }
    
    .reports-list {
        gap: 0.625rem;
    }
}

/* Móvil mediano */
@media (max-width: 480px) {
    .reports-container {
        padding: 0.5rem;
    }
    
    .reports-header {
        margin-bottom: 1.25rem;
        margin-top: 25px;
    }
    
    .reports-header h1 {
        font-size: 1.4rem;
    }
    
    .reports-header p {
        font-size: 0.8rem;
    }
    
    .reports-actions {
        margin-bottom: 1.25rem;
    }
    
    .btn-create-report {
        padding: 0.7rem 1rem;
        font-size: 0.75rem;
        width: 100%;
        justify-content: center;
    }
    
    .btn-create-report i {
        font-size: 0.9rem;
    }
    
    .reports-list {
        gap: 0.5rem;
    }
}

/* Móvil pequeño */
@media (max-width: 360px) {
    .reports-container {
        padding: 0.375rem;
    }
    
    .reports-header {
        margin-bottom: 1rem;
        margin-top: 20px;
    }
    
    .reports-header h1 {
        font-size: 1.25rem;
    }
    
    .reports-header p {
        font-size: 0.75rem;
    }
    
    .reports-actions {
        margin-bottom: 1rem;
    }
    
    .btn-create-report {
        padding: 0.6rem 0.875rem;
        font-size: 0.7rem;
    }
    
    .btn-create-report i {
        font-size: 0.8rem;
    }
    
    .reports-list {
        gap: 0.375rem;
    }
}

/* Modo oscuro para la página de reportes */
[data-theme="dark"] .reports-header h1 {
    color: white;
}

[data-theme="dark"] .reports-header p {
    color: #a0aec0;
}

[data-theme="dark"] .report-card {
    background: #2d3748;
    border: 1px solid #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .report-card:hover {
    border-color: #718096;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .report-card.empty {
    background: #1a202c;
    opacity: 0.8;
}

[data-theme="dark"] .report-card.empty:hover {
    background: #2d3748;
    opacity: 1;
}

[data-theme="dark"] .card-icon {
    background: #4a5568;
}

[data-theme="dark"] .card-icon i {
    color: #a0aec0;
}

[data-theme="dark"] .card-info h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .card-info p {
    color: #a0aec0;
}

[data-theme="dark"] .status-badge.empty {
    background: #4a5568;
    color: #a0aec0;
    border-color: #718096;
}

[data-theme="dark"] .empty-state {
    background: #2d3748;
    border: 1px solid #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .empty-icon {
    background: #4a5568;
}

[data-theme="dark"] .empty-icon i {
    color: #a0aec0;
}

[data-theme="dark"] .empty-state h2 {
    color: #e2e8f0;
}

[data-theme="dark"] .empty-state p {
    color: #a0aec0;
}

[data-theme="dark"] .no-results {
    background: #2d3748;
    border: 1px solid #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .no-results i {
    color: #a0aec0;
}

[data-theme="dark"] .no-results p {
    color: #a0aec0;
}
.report-card-new {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: none;
    align-items: center;
    padding: 1.5rem;
    min-height: 80px;
    margin-bottom: 0;
}

.report-card-new:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Header */
.rc-header {
    display: flex;
    align-items: center;
    padding: 0 1.5rem 0 0;
    border: none;
    gap: 1rem;
    min-width: 350px;
    flex: 1;
}

.rc-title-group {
    flex: 1;
}

.rc-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.rc-radicado {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    margin-left: 0.5rem;
}

.rc-op-number {
    font-size: 0.9rem;
    color: #2563eb;
    font-weight: 600;
    margin-left: 0.5rem;
    background-color: #dbeafe;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Status Badge - Vuelve a ser un elemento separado */
.rc-status-badge {
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    border: 1px solid transparent;
    white-space: pre-line;
    min-width: 95px;
    max-width: 120px;
    text-align: center;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
}

.status-draft {
    background-color: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}
.status-approved {
    background-color: #e0f2e9;
    color: #0f5132;
    border-color: #badbcc;
}
.status-approved-client {
    background-color: #a7f3d0;
    color: #064e3b;
    border-color: #6ee7b7;
}
.status-sent {
    background-color: #bfdbfe;
    color: #1e3a8a;
    border-color: #93c5fd;
}
.status-rejected, .status-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}
.status-pending {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}
.status-correction {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.status-default {
    background-color: #e5e7eb;
    color: #4b5563;
}

/* Body */
.rc-body {
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    flex: 2;
    min-width: 0;
    gap: 1rem;
}

/* Columnas específicas que coinciden con los encabezados */
.rc-column-step {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.rc-column-date {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.rc-column-location {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.rc-column-client {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.rc-column-step i,
.rc-column-date i,
.rc-column-location i,
.rc-column-client i {
    font-size: 1rem;
    color: #6b7280;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.rc-detail-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.rc-label {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.rc-value {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer con botón de editar */
.rc-footer {
    padding: 0 1.5rem 0 0;
    border: none;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 80px;
}

.rc-edit-button {
    background-color: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
}

.rc-edit-button:hover {
    background-color: #f1f5f9;
    color: #1e293b;
    border-color: #94a3b8;
}

.rc-edit-button i {
    font-size: 1rem;
}

/* Delete Button */
.rc-delete-button {
    background-color: #ffffff;
    color: #dc2626;
    border: 1px solid #dc2626;
    border-radius: 6px;
    padding: 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
}

.rc-delete-button:hover {
    background-color: #dc2626;
    color: white;
    border-color: #dc2626;
    transform: translateY(-1px);
}

.rc-delete-button i {
    font-size: 1rem;
}

/* Download Button */
.rc-download-button {
    padding: 0.6rem;
    background-color: #dc2626;
    color: white;
    border: 1px solid #dc2626;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
}

.rc-download-button:hover:not(:disabled) {
    background-color: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-1px);
}

.rc-download-button:disabled {
    background-color: #6b7280;
    border-color: #6b7280;
    cursor: not-allowed;
    transform: none;
}

.rc-download-button i {
    font-size: 1rem;
}

.rc-download-button i.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 1024px) {
    .rc-column-step,
    .rc-column-date,
    .rc-column-location,
    .rc-column-client {
        min-width: 120px;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 768px) {
    .report-card-new {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        padding: 1.25rem;
    }
    
    .rc-header {
        padding: 0;
        margin-bottom: 1rem;
        min-width: auto;
    }
    
    .rc-status-badge {
        font-size: 0.65rem;
        padding: 0.5rem 0.6rem;
        min-width: 85px;
        max-width: 110px;
        line-height: 1.25;
    }
    
    .rc-body {
        padding: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .rc-column-step,
    .rc-column-date,
    .rc-column-location,
    .rc-column-client {
        min-width: auto;
        justify-content: flex-start;
        padding: 0.75rem;
        border-bottom: 1px solid #e9ecef;
        background-color: #ffffff;
    }
    
    .rc-column-step:last-child,
    .rc-column-date:last-child,
    .rc-column-location:last-child,
    .rc-column-client:last-child {
        border-bottom: none;
    }
    
    .rc-footer {
        padding: 0;
        margin-top: 1rem;
        min-width: auto;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .rc-title {
        max-width: 200px;
    }
    
    .rc-status-badge {
        font-size: 0.6rem;
        padding: 0.4rem 0.5rem;
        min-width: 75px;
        max-width: 100px;
        line-height: 1.2;
        letter-spacing: 0.02em;
    }
    
    .rc-body {
        gap: 0.5rem;
    }
    
    .rc-column-step,
    .rc-column-date,
    .rc-column-location,
    .rc-column-client {
        padding: 0.6rem;
    }
}

@media (max-width: 480px) {
    .report-card-header,
    .report-card-body {
        padding: 8px 10px;
    }
    
    .event-name {
        font-size: 14px;
    }
    
    .info-grid {
        gap: 4px;
    }
    
    .label {
        font-size: 9px;
    }
    
    .value {
        font-size: 12px;
    }
}

/* Modo oscuro para las tarjetas de reportes */
[data-theme="dark"] .report-card-new {
    background-color: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .report-card-new:hover {
    background-color: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .rc-title {
    color: #e2e8f0;
}

[data-theme="dark"] .rc-radicado {
    color: #a0aec0;
}

[data-theme="dark"] .rc-op-number {
    color: #93c5fd;
    background-color: #1e3a8a;
}

[data-theme="dark"] .rc-column-step,
[data-theme="dark"] .rc-column-date,
[data-theme="dark"] .rc-column-location,
[data-theme="dark"] .rc-column-client {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .rc-column-step i,
[data-theme="dark"] .rc-column-date i,
[data-theme="dark"] .rc-column-location i,
[data-theme="dark"] .rc-column-client i {
    color: #a0aec0;
}

[data-theme="dark"] .rc-label {
    color: #a0aec0;
}

[data-theme="dark"] .rc-value {
    color: #e2e8f0;
}

[data-theme="dark"] .rc-edit-button {
    background-color: #4a5568;
    color: #e2e8f0;
    border-color: #718096;
}

[data-theme="dark"] .rc-edit-button:hover {
    background-color: #718096;
    color: #ffffff;
}

[data-theme="dark"] .rc-delete-button {
    background-color: #4a5568;
    color: #e53e3e;
    border-color: #e53e3e;
}

[data-theme="dark"] .rc-delete-button:hover {
    background-color: #e53e3e;
    color: #ffffff;
    border-color: #c53030;
}

[data-theme="dark"] .rc-download-button {
    background-color: #e53e3e;
    color: #ffffff;
    border-color: #c53030;
}

[data-theme="dark"] .rc-download-button:hover {
    background-color: #c53030;
}

[data-theme="dark"] .rc-download-button:disabled {
    background-color: #4a5568;
    color: #a0aec0;
    border-color: #718096;
}

/* Modo oscuro para estados de las tarjetas */
[data-theme="dark"] .status-approved {
    background-color: #1a4d2e;
    color: #86efac;
    border-color: #4ade80;
}

[data-theme="dark"] .status-approved-client {
    background-color: #065f46;
    color: #6ee7b7;
    border-color: #10b981;
}

[data-theme="dark"] .status-sent {
    background-color: #1e3a8a;
    color: #93c5fd;
    border-color: #3b82f6;
}

[data-theme="dark"] .status-rejected,
[data-theme="dark"] .status-error {
    background-color: #742a2a;
    color: #feb2b2;
    border-color: #e53e3e;
}

[data-theme="dark"] .status-pending,
[data-theme="dark"] .status-correction {
    background-color: #744210;
    color: #fbd38d;
    border-color: #d69e2e;
}

[data-theme="dark"] .status-default {
    background-color: #4a5568;
    color: #a0aec0;
    border-color: #718096;
}

/* Forzar el comportamiento del SidePanel */
.delete-report-panel {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: 500px !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  transform: none !important;
  animation: slideInRight 0.3s ease-out !important;
}

/* Header del panel de eliminación de reportes */
.delete-report-panel .side-panel-header {
  background-color: #ffebee !important;
  border-bottom: 2px solid #e57373;
}

.delete-report-panel .side-panel-title {
  color: #c62828 !important;
}

.delete-report-panel .side-panel-close:hover {
  background-color: #dc3545 !important;
  color: #fff !important;
  transform: scale(1.1);
}

/* Contenido del panel de eliminación de reportes */
.delete-report-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  text-align: left;
  min-height: 100%;
}

/* Icono de advertencia */
.warning-icon {
  text-align: center;
  margin-bottom: 24px;
}

.warning-icon i {
  font-size: 4rem;
  color: #dc3545;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Mensaje de advertencia */
.warning-message {
  background: #fff5f5;
  border: 2px solid #fed7d7;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: left;
}

.warning-message h3 {
  color: #dc3545;
  margin: 0 0 16px 0;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.warning-message p {
  margin: 0 0 12px 0;
  line-height: 1.6;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.warning-message ul {
  margin: 16px 0;
  padding-left: 20px;
}

.warning-message li {
  margin: 8px 0;
  color: #1a1a1a;
  line-height: 1.5;
  font-size: 0.9rem;
}

.warning-text {
  background-color: #f8d7da;
  color: #721c24;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #dc3545;
  font-weight: 600;
  margin-top: 16px;
  text-align: center;
  font-size: 1rem;
}

/* Información del reporte */
.report-info {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.report-info h4 {
  margin: 0 0 16px 0;
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 8px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

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

.info-item .label {
  font-weight: 600;
  color: #6c757d;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item .value {
  color: #2c3e50;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

/* Acciones del panel */
.side-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
  padding: 24px 32px;
  margin-left: -32px;
  margin-right: -32px;
  margin-bottom: -32px;
  border-top: 2px solid #e9ecef;
  background: #fafbfc;
}

.btn-cancel,
.btn-delete {
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-cancel {
  background-color: #f8f9fa;
  color: #6c757d;
  border: 2px solid #e9ecef;
  order: 2;
}

.btn-cancel:hover:not(:disabled) {
  background-color: #e9ecef;
  color: #495057;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-delete {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
  order: 1;
}

.btn-delete:hover:not(:disabled) {
  background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-cancel:disabled,
.btn-delete:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Loading spinner */
.loading-spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Overlay específico para el panel de eliminar reporte - asegurar que no interfiera el CSS global */
.delete-report-panel + .side-panel-overlay,
.delete-report-panel ~ .side-panel-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  z-index: 9998 !important;
  display: block !important;
  justify-content: unset !important;
  align-items: unset !important;
}

/* Responsive design */
/* Tablet */
@media (max-width: 1024px) {
  .delete-report-content {
    padding: 28px;
  }

  .warning-icon i {
    font-size: 3.5rem;
  }

  .warning-message {
    padding: 22px;
    margin-bottom: 22px;
  }

  .warning-message h3 {
    font-size: 1.25rem;
  }

  .report-info {
    padding: 18px;
    margin-bottom: 22px;
  }

  .report-info h4 {
    font-size: 1.05rem;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  .delete-report-panel {
    left: auto !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .delete-report-content {
    padding: 24px;
  }

  .warning-icon i {
    font-size: 3rem;
  }

  .warning-message {
    padding: 20px;
    margin-bottom: 20px;
  }

  .warning-message h3 {
    font-size: 1.2rem;
  }

  .warning-message p {
    font-size: 0.9rem;
  }

  .warning-message li {
    font-size: 0.85rem;
  }

  .report-info {
    padding: 16px;
    margin-bottom: 20px;
  }

  .report-info h4 {
    font-size: 1rem;
  }

  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .info-item .value {
    text-align: left;
    max-width: 100%;
  }

  .side-panel-actions {
    padding: 20px 24px;
    margin: 24px -24px -24px -24px;
  }

  .btn-cancel,
  .btn-delete {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* Mobile Medium */
@media (max-width: 480px) {
  .delete-report-content {
    padding: 20px;
  }

  .warning-icon i {
    font-size: 2.5rem;
  }

  .warning-message {
    padding: 16px;
    margin-bottom: 16px;
  }

  .warning-message h3 {
    font-size: 1.1rem;
  }

  .warning-message p {
    font-size: 0.85rem;
  }

  .warning-message li {
    font-size: 0.8rem;
  }

  .warning-text {
    padding: 12px;
    font-size: 0.9rem;
  }

  .report-info {
    padding: 12px;
    margin-bottom: 16px;
  }

  .report-info h4 {
    font-size: 0.95rem;
  }

  .info-item .label {
    font-size: 0.8rem;
  }

  .info-item .value {
    font-size: 0.8rem;
  }

  .side-panel-actions {
    padding: 16px 20px;
    margin: 20px -20px -20px -20px;
  }

  .btn-cancel,
  .btn-delete {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* Mobile Small */
@media (max-width: 360px) {
  .delete-report-content {
    padding: 16px;
  }

  .warning-icon i {
    font-size: 2rem;
  }

  .warning-message {
    padding: 12px;
    margin-bottom: 14px;
  }

  .warning-message h3 {
    font-size: 1rem;
  }

  .warning-message p {
    font-size: 0.8rem;
  }

  .warning-message li {
    font-size: 0.75rem;
  }

  .warning-text {
    padding: 10px;
    font-size: 0.85rem;
  }

  .report-info {
    padding: 10px;
    margin-bottom: 14px;
  }

  .report-info h4 {
    font-size: 0.9rem;
  }

  .info-item {
    padding: 6px 0;
  }

  .info-item .label {
    font-size: 0.75rem;
  }

  .info-item .value {
    font-size: 0.75rem;
  }

  .side-panel-actions {
    padding: 12px 16px;
    margin: 16px -16px -16px -16px;
  }

  .btn-cancel,
  .btn-delete {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* Modo oscuro para el modal de eliminar reporte */
[data-theme="dark"] .delete-report-panel .side-panel-header {
  background-color: #742a2a !important;
  border-bottom-color: #e53e3e;
}

[data-theme="dark"] .delete-report-panel .side-panel-title {
  color: #feb2b2 !important;
}

[data-theme="dark"] .delete-report-panel .side-panel-close:hover {
  background-color: #e53e3e !important;
  color: #fff !important;
}

[data-theme="dark"] .delete-report-content {
  background: #2d3748;
}

[data-theme="dark"] .warning-icon i {
  color: #e53e3e;
}

[data-theme="dark"] .warning-message {
  background: #742a2a;
  border-color: #e53e3e;
}

[data-theme="dark"] .warning-message h3 {
  color: #feb2b2;
}

[data-theme="dark"] .warning-message p {
  color: #e2e8f0;
}

[data-theme="dark"] .warning-message li {
  color: #e2e8f0;
}

[data-theme="dark"] .warning-text {
  background-color: #4a1a1a;
  color: #feb2b2;
  border-left-color: #e53e3e;
}

[data-theme="dark"] .report-info {
  background: #4a5568 !important;
  border-color: #718096 !important;
}

[data-theme="dark"] .report-info h4 {
  color: #e2e8f0;
  border-bottom-color: #718096;
}

[data-theme="dark"] .info-item {
  border-bottom-color: #718096;
  background: transparent !important;
}

[data-theme="dark"] .info-item .label {
  color: #a0aec0;
}

[data-theme="dark"] .info-item .value {
  color: #e2e8f0 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

[data-theme="dark"] .side-panel-actions {
  background: #4a5568;
  border-top-color: #718096;
}

[data-theme="dark"] .btn-cancel {
  background-color: #4a5568;
  color: #e2e8f0;
  border-color: #718096;
}

[data-theme="dark"] .btn-cancel:hover:not(:disabled) {
  background-color: #718096;
  color: #2d3748;
}

[data-theme="dark"] .btn-delete {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

[data-theme="dark"] .btn-delete:hover:not(:disabled) {
  background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%);
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}
/* ============================================
   CONTENEDOR Y TABLA BASE
   ============================================ */

.reports-table-wrapper {
  width: 100%;
  background: white;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  overflow: hidden;
  margin-top: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.table-pagination-top {
  padding: 8px 16px;
  border-bottom: 1px solid #f1f3f5;
  background: #fdfdfd;
}

.table-pagination-bottom {
  padding: 8px 16px;
  border-top: 1px solid #f1f3f5;
  background: #fdfdfd;
}

.table-pagination-top .pagination-container,
.table-pagination-bottom .pagination-container {
  margin: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  background: transparent;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reports-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
}

/* ============================================
   ENCABEZADO
   ============================================ */

.reports-table thead {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reports-table th {
  padding: 6px 8px;
  color: #6c757d;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e9ecef;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

/* Alineación específica de encabezados */
.reports-table th.col-evento {
  width: 22%;
  min-width: 260px;
  text-align: left;
}

.reports-table th.col-radicado {
  width: 10%;
  min-width: 90px;
  text-align: left;
}

.reports-table th.col-op {
  width: 10%;
  min-width: 90px;
  text-align: left;
}

.reports-table th.col-estado {
  width: 18%;
  min-width: 160px;
  text-align: center;
}

.reports-table th.col-paso {
  width: 8%;
  min-width: 70px;
  text-align: center;
}

.reports-table th.col-actualizacion {
  width: 12%;
  min-width: 130px;
  text-align: left;
}

.reports-table th.col-ubicacion {
  width: 14%;
  min-width: 110px;
  text-align: left;
}

.reports-table th.col-creado-por {
  width: 12%;
  min-width: 120px;
  text-align: left;
}

.reports-table th.col-tiempos {
  width: 14%;
  min-width: 130px;
  text-align: left;
}

.reports-table th.col-acciones {
  width: 15%;
  min-width: 160px;
  text-align: center;
}

/* ============================================
   FILAS Y CELDAS
   ============================================ */

.reports-table tbody tr {
  border-bottom: 1px solid #f1f3f5;
  background-color: white;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.reports-table tbody tr:hover {
  background-color: #f8f9fa;
}

.reports-table tbody tr:last-child {
  border-bottom: none;
}

.reports-table td {
  padding: 6px 8px;
  color: #212529;
  vertical-align: middle;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

/* ============================================
   COLUMNAS ESPECÍFICAS
   ============================================ */

/* Columna Evento */
.reports-table td.col-evento {
  text-align: left;
  min-width: 0;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.event-info strong {
  font-size: 13px;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.event-date {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 400;
}

/* Columna Radicado */
.reports-table td.col-radicado {
  text-align: left;
  font-family: "SF Mono", "Monaco", "Courier New", monospace;
  font-weight: 700;
  color: #475569;
  font-size: 12px;
  min-width: 0;
}

/* Columna Número de OP */
.reports-table td.col-op {
  text-align: left;
  font-family: "SF Mono", "Monaco", "Courier New", monospace;
  font-weight: 700;
  color: #475569;
  font-size: 12px;
}

/* Columna Estado */
.reports-table td.col-estado {
  text-align: center;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.reports-table td.col-estado .status-badge {
  max-width: 100%;
  box-sizing: border-box;
}

.reports-status-select-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.reports-status-badge-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid transparent;
  cursor: pointer;
  padding-right: 26px; /* espacio para flecha */
  position: relative;
}

.reports-status-badge-select:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.reports-status-badge-select {
  background-image: linear-gradient(45deg, transparent 50%, rgba(0, 0, 0, 0.45) 50%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.45) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position: calc(100% - 14px) calc(50% - 2px),
    calc(100% - 9px) calc(50% - 2px),
    calc(100% - 2.2em) 0.25em;
  background-size: 5px 5px, 5px 5px, 1px 1.6em;
  background-repeat: no-repeat;
}

.reports-status-badge-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

[data-theme="dark"] .reports-status-badge-select {
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.6) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.6) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
}

.reports-table .status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  border: 1px solid transparent;
}

.status-sent {
  background-color: #bfdbfe;
  color: #1e3a8a;
}

.status-approved {
  background-color: #e0f2e9;
  color: #0f5132;
}

.status-approved-client {
  background-color: #a7f3d0;
  color: #064e3b;
}

.status-draft {
  background-color: #f5f5f5;
  color: #616161;
}

.status-correction {
  background-color: #fff3e0;
  color: #f57c00;
}

.status-error {
  background-color: #ffebee;
  color: #d32f2f;
}

.status-default {
  background-color: #f5f5f5;
  color: #616161;
}

/* Columna Último Paso */
.reports-table td.col-paso {
  text-align: center;
  font-weight: 700;
  color: #1e293b;
  font-size: 13px;
}

/* Columna Última Actualización */
.reports-table td.col-actualizacion {
  text-align: left;
  font-size: 11px;
  color: #475569;
  font-weight: 500;
}

/* Columna Ubicación */
.reports-table td.col-ubicacion {
  text-align: left;
  color: #475569;
  font-weight: 500;
  font-size: 11px;
  min-width: 0;
}

/* Columna Creado por */
.reports-table td.col-creado-por {
  text-align: left;
  font-weight: 600;
  color: #1e293b;
  font-size: 12px;
}

/* Columna Tiempos (solo ejecutivo/admin) */
.reports-table td.col-tiempos {
  text-align: left;
  font-size: 11px;
  color: #475569;
}

.report-tiempos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.report-tiempos span {
  white-space: nowrap;
}

/* Columna Acciones */
.reports-table td.col-acciones {
  text-align: center;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

.download-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4px;
  width: 100%;
}

.report-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 6px 10px !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: none !important;
  color: white !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 170px !important;
  height: auto !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Botones principales: angostos y centrados */
.report-actions .action-btn {
  width: 100% !important;
  max-width: 170px !important;
}

.action-btn:hover {
  opacity: 0.9;
  transform: scale(0.98);
}

.action-btn:active {
  transform: scale(0.95);
}

.action-btn.edit {
  background: #0ea5e9;
}

.action-btn.view {
  background-color: #28a745 !important;
  color: white !important;
}

.action-btn.delete {
  background-color: #dc3545 !important;
  color: white !important;
}

.action-btn.download {
  background-color: #007bff !important;
  color: white !important;
  padding: 6px 10px !important;
  font-size: 10px !important;
}

/* En la fila de descargas (PDF/ZIP), mantener 2 botones sin overflow */
.download-buttons .action-btn {
  flex: 1 1 0;
  max-width: 120px !important;
}

.download-buttons .action-btn.download {
  width: auto !important;
  min-width: 0 !important;
}

.action-btn i {
  font-size: 12px !important;
  color: white !important;
  margin: 0 !important;
  padding: 0 !important;
}

.action-btn i.loading {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ============================================
   ESTADOS DE CARGA Y VACÍO
   ============================================ */

.reports-table-loading,
.reports-table-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: #64748b;
  background: white;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  margin-top: 24px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1400px) {
  .reports-table-wrapper {
    overflow-x: auto;
  }

  .reports-table {
    min-width: 1200px;
  }
}

@media (max-width: 1024px) {
  .reports-table th,
  .reports-table td {
    padding: 18px 16px;
  }

  .reports-table th.col-evento {
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .reports-table-wrapper {
    border-radius: 12px;
    margin-top: 16px;
  }

  .reports-table th {
    padding: 16px 12px;
    font-size: 11px;
  }

  .reports-table td {
    padding: 16px 12px;
    font-size: 13px;
  }

  .action-btn {
    padding: 8px 12px;
    font-size: 11px;
  }

  .download-buttons {
    flex-direction: column;
    gap: 4px;
  }

  .action-buttons {
    max-width: 100%;
  }
}

/* ============================================
   MODO OSCURO
   ============================================ */

[data-theme="dark"] .reports-table-wrapper {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .reports-table thead {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .reports-table th {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .reports-table tbody tr {
  background: #1e293b;
  border-bottom-color: #334155;
}

[data-theme="dark"] .reports-table tbody tr:hover {
  background: #334155;
}

[data-theme="dark"] .reports-table td {
  color: #e2e8f0;
  border-bottom-color: #334155;
}

[data-theme="dark"] .event-info strong {
  color: #f1f5f9;
}

[data-theme="dark"] .event-date {
  color: #94a3b8;
}

[data-theme="dark"] .reports-table td.col-radicado,
[data-theme="dark"] .reports-table td.col-op {
  color: #cbd5e0;
}

[data-theme="dark"] .reports-table td.col-actualizacion,
[data-theme="dark"] .reports-table td.col-ubicacion {
  color: #cbd5e0;
}

[data-theme="dark"] .reports-table td.col-creado-por {
  color: #e2e8f0;
}

[data-theme="dark"] .status-badge {
  border: 1px solid transparent;
}

[data-theme="dark"] .status-sent {
  background-color: #1e3a8a;
  color: #93c5fd;
}

[data-theme="dark"] .status-approved {
  background-color: #1a4d2e;
  color: #86efac;
}

[data-theme="dark"] .status-approved-client {
  background-color: #065f46;
  color: #6ee7b7;
}

[data-theme="dark"] .status-draft {
  background-color: #f5f5f5;
  color: #616161;
}

[data-theme="dark"] .status-correction {
  background-color: #fff3e0;
  color: #f57c00;
}

[data-theme="dark"] .status-error {
  background-color: #ffebee;
  color: #d32f2f;
}

[data-theme="dark"] .status-default {
  background-color: #f5f5f5;
  color: #616161;
}

[data-theme="dark"] .reports-table-loading,
[data-theme="dark"] .reports-table-empty {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] .reports-table-wrapper {
  border-color: #334155;
  box-shadow: none;
}

[data-theme="dark"] .table-pagination-top,
[data-theme="dark"] .table-pagination-bottom {
  background: #1e293b;
  border-color: #334155;
}
.reports-filters {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin-bottom: 20px;
}

.filters-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Barra de búsqueda */
.search-container {
    position: relative;
    flex: 1;
}

.search-container i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 18px;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: #f8f9fa;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
    background: white;
}

.search-input:disabled {
    background: #e9ecef;
    cursor: not-allowed;
}

/* Fila de filtros */
.filters-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* Filtros de estado */
.status-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-filter {
    padding: 6px 10px;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    background: white;
    color: #495057;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
    max-width: 95px;
    text-align: center;
    white-space: normal;
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.15;
    min-height: 36px;
    justify-content: center;
    align-items: center;
}

.status-filter span {
    display: block;
    font-size: 10.5px;
}

.status-filter:hover:not(:disabled) {
    border-color: #007bff;
    color: #007bff;
}

.status-filter.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.status-filter:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Filtros de ordenamiento */
.sort-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sort-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.sort-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    background: white;
    color: #495057;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sort-button:hover:not(:disabled) {
    border-color: #28a745;
    color: #28a745;
}

.sort-button.active {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.sort-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sort-button i {
    font-size: 16px;
}

/* Acciones de filtros */
.filters-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.filters-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters-sort-label {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
}

.filters-sort-select {
    padding: 6px 10px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
    color: #495057;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filters-sort-select:hover:not(:disabled) {
    border-color: #007bff;
}

.toggle-filters-btn,
.clear-filters-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
    color: #495057;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-filters-btn:hover:not(:disabled),
.clear-filters-btn:hover:not(:disabled) {
    border-color: #007bff;
    color: #007bff;
}

.clear-filters-btn {
    border-color: #dc3545;
    color: #dc3545;
}

.clear-filters-btn:hover:not(:disabled) {
    background: #dc3545;
    color: white;
}

.toggle-filters-btn:disabled,
.clear-filters-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Filtros avanzados */
.filters-advanced {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.advanced-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.filter-group input,
.filter-group select {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: #f8f9fa;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #007bff;
    background: white;
}

.filter-group input:disabled,
.filter-group select:disabled {
    background: #e9ecef;
    cursor: not-allowed;
}

.filter-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.6);
}

.filter-group input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.filter-group input[type="number"]::-webkit-inner-spin-button,
.filter-group input[type="number"]::-webkit-outer-spin-button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .reports-filters {
        padding: 16px;
        margin-bottom: 16px;
    }

    .filters-main {
        gap: 16px;
    }

    .filters-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .status-filters {
        gap: 8px;
        justify-content: center;
    }

    .status-filter {
        padding: 5px 10px;
        font-size: 10.5px;
        min-width: 70px;
        max-width: 90px;
        min-height: 35px;
    }
    
    .status-filter span {
        font-size: 10px;
    }

    .sort-filters {
        justify-content: center;
        gap: 8px;
    }

    .sort-button {
        padding: 6px 12px;
        font-size: 13px;
    }

    .filters-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .toggle-filters-btn,
    .clear-filters-btn {
        justify-content: center;
        padding: 10px 16px;
    }

    .advanced-filters-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .search-input {
        font-size: 16px; /* Evita zoom en iOS */
    }
}

@media (max-width: 480px) {
    .status-filters {
        justify-content: center;
    }

    .status-filter {
        flex: 1;
        min-width: 65px;
        max-width: 85px;
        font-size: 10px;
        padding: 4px 7px;
        min-height: 38px;
    }
    
    .status-filter span {
        font-size: 9.5px;
    }

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

    .sort-button {
        justify-content: center;
    }
}

/* Modo oscuro para filtros */
[data-theme="dark"] .reports-filters {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .search-container i {
    color: #a0aec0;
}

[data-theme="dark"] .search-input {
    background: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .search-input::placeholder {
    color: #718096;
}

[data-theme="dark"] .search-input:focus {
    background: #2d3748;
    border-color: #007bff;
}

[data-theme="dark"] .search-input:disabled {
    background: #4a5568;
    color: #718096;
}

[data-theme="dark"] .status-filter {
    background: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .status-filter:hover:not(:disabled) {
    border-color: #3182ce;
    color: #63b3ed;
}

[data-theme="dark"] .status-filter.active {
    background: #3182ce;
    border-color: #3182ce;
    color: white;
}

[data-theme="dark"] .sort-label {
    color: #e2e8f0;
}

[data-theme="dark"] .sort-button {
    background: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .sort-button:hover:not(:disabled) {
    border-color: #48bb78;
    color: #68d391;
}

[data-theme="dark"] .sort-button.active {
    background: #48bb78;
    border-color: #48bb78;
    color: white;
}

[data-theme="dark"] .toggle-filters-btn,
[data-theme="dark"] .clear-filters-btn {
    background: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .toggle-filters-btn:hover:not(:disabled) {
    border-color: #3182ce;
    color: #63b3ed;
}

[data-theme="dark"] .clear-filters-btn {
    border-color: #e53e3e;
    color: #fc8181;
}

[data-theme="dark"] .clear-filters-btn:hover:not(:disabled) {
    background: #e53e3e;
    color: white;
}

[data-theme="dark"] .filters-advanced {
    border-top-color: #4a5568;
}

[data-theme="dark"] .filter-group label {
    color: #e2e8f0;
}

[data-theme="dark"] .filter-group input {
    background: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .filter-group input::placeholder {
    color: #718096;
}

[data-theme="dark"] .filter-group input:focus {
    background: #2d3748;
    border-color: #3182ce;
}

[data-theme="dark"] .filter-group input:disabled {
    background: #4a5568;
    color: #718096;
}

[data-theme="dark"] .filter-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.status-explain {
    margin-top: 1.5rem;
}

.status-explain-content {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.status-explain-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-explain-item {
    width: 100%;
    display: flex;
    align-items: stretch;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.status-explain-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.status-explain-item h3 {
    padding: 0.6rem 0.8rem;
    max-width: 200px;
    min-width: 200px;
    width: 200px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.3;
    white-space: pre-line;
    border-right: 2px solid rgba(0, 0, 0, 0.1);
}

.status-explain-item p {
    padding: 0.6rem 0.8rem;
    margin: 0;
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    flex: 1;
}

/* Estilos específicos para cada estado en la explicación */
.status-explain-item .status-draft {
    background-color: #f3f4f6;
    color: #374151;
    border-right-color: #d1d5db;
}

.status-explain-item .status-approved {
    background-color: #e0f2e9;
    color: #0f5132;
    border-right-color: #badbcc;
}

.status-explain-item .status-approved-client {
    background-color: #a7f3d0;
    color: #064e3b;
    border-right-color: #6ee7b7;
}

.status-explain-item .status-sent {
    background-color: #bfdbfe;
    color: #1e3a8a;
    border-right-color: #93c5fd;
}

.status-explain-item .status-rejected,
.status-explain-item .status-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-right-color: #fca5a5;
}

.status-explain-item .status-pending,
.status-explain-item .status-correction {
    background-color: #fef3c7;
    color: #92400e;
    border-right-color: #fcd34d;
}

/* Explicación compacta con bolas (click → recuadro abajo con X) */
.status-explain-dots {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.status-explain-dots-row {
    display: flex;
    align-items: center;
    gap: 0.5rem 1rem;
    flex-wrap: wrap;
}

.status-explain-dots-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary, #64748b);
}

.status-explain-dots-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-secondary, #64748b);
}

.status-explain-dots-hint i {
    font-size: 1rem;
    color: var(--primary, #16a34a);
}

.status-explain-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 0;
    transition: transform 0.15s, box-shadow 0.15s;
}

.status-explain-dot:hover {
    transform: scale(1.15);
}

.status-explain-dot.selected {
    box-shadow: 0 0 0 2px var(--text-primary, #1e293b);
}

/* Recuadro explicación (pastel + X) */
.status-explain-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.status-explain-box-content {
    flex: 1;
    min-width: 0;
}

.status-explain-box-title {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-explain-box-desc {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-secondary, #475569);
}

.status-explain-box-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    color: var(--text-primary, #1e293b);
    cursor: pointer;
    transition: background 0.2s;
}

.status-explain-box-close:hover {
    background: rgba(0, 0, 0, 0.12);
}

/* Colores pastel por estado en el recuadro */
.status-explain-box.status-draft {
    background-color: #e5e7eb;
}

.status-explain-box.status-sent {
    background-color: #dbeafe;
}

.status-explain-box.status-error {
    background-color: #fee2e2;
}

.status-explain-box.status-correction {
    background-color: #fef3c7;
}

.status-explain-box.status-approved {
    background-color: #dcfce7;
}

.status-explain-box.status-approved-client {
    background-color: #a7f3d0;
}

.status-explain-box.status-default {
    background-color: #f1f5f9;
}

.status-explain-dot.status-draft {
    background-color: #9ca3af;
}

.status-explain-dot.status-sent {
    background-color: #3b82f6;
}

.status-explain-dot.status-error {
    background-color: #ef4444;
}

.status-explain-dot.status-correction {
    background-color: #f59e0b;
}

.status-explain-dot.status-approved {
    background-color: #22c55e;
}

.status-explain-dot.status-approved-client {
    background-color: #10b981;
}

.status-explain-dot.status-default {
    background-color: #94a3b8;
}

.status-explain--compact {
    margin-top: 0.5rem;
}

/* Variante compacta (detalle contrato): filtros dentro de PageFilters */
.reports-filters--compact .filter-group label {
    font-size: 0.8rem;
}

.reports-filters--compact .sort-buttons-inline {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.reports-filters--compact .sort-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-secondary, #f8fafc);
    color: var(--text-primary, #1e293b);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.reports-filters--compact .sort-btn-inline:hover {
    background: var(--bg-hover, #f1f5f9);
}

.reports-filters--compact .sort-btn-inline.active {
    background: var(--primary, #16a34a);
    border-color: var(--primary, #16a34a);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .status-explain {
        margin-top: 1rem;
    }

    .status-explain-content {
        padding: 0.75rem;
    }

    .status-explain-list {
        gap: 0.4rem;
    }

    .status-explain-item {
        flex-direction: column;
    }

    .status-explain-item h3 {
        max-width: 100%;
        min-width: auto;
        width: 100%;
        border-right: none;
        border-bottom: 2px solid rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0.6rem;
        font-size: 0.6rem;
    }

    .status-explain-item p {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Modo oscuro */
[data-theme="dark"] .status-explain-content {
    background: linear-gradient(135deg, #1e293b 0%, #2d3748 100%);
    border-color: #4a5568;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .status-explain-item {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .status-explain-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .status-explain-item p {
    color: #cbd5e0;
}

[data-theme="dark"] .status-explain-item .status-draft {
    background-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .status-explain-item .status-approved {
    background-color: #1a4d2e;
    color: #86efac;
    border-right-color: #4ade80;
}

[data-theme="dark"] .status-explain-item .status-approved-client {
    background-color: #065f46;
    color: #6ee7b7;
    border-right-color: #10b981;
}

[data-theme="dark"] .status-explain-item .status-sent {
    background-color: #1e3a8a;
    color: #93c5fd;
    border-right-color: #3b82f6;
}

[data-theme="dark"] .status-explain-item .status-rejected,
[data-theme="dark"] .status-explain-item .status-error {
    background-color: #742a2a;
    color: #feb2b2;
    border-right-color: #e53e3e;
}

[data-theme="dark"] .status-explain-item .status-pending,
[data-theme="dark"] .status-explain-item .status-correction {
    background-color: #744210;
    color: #fbd38d;
    border-right-color: #d69e2e;
}
/* Side Panel de Confirmación */
.confirmation-side-panel .side-panel-header {
  position: relative;
}

.confirmation-side-panel .side-panel-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 12px 12px 0 0;
}

.confirmation-side-panel--delete .side-panel-header::before {
  background: linear-gradient(90deg, #dc3545, #ff6b6b, #dc3545);
}

.confirmation-side-panel--warning .side-panel-header::before {
  background: linear-gradient(90deg, #ffc107, #ffeb3b, #ffc107);
}

.confirmation-side-panel--info .side-panel-header::before {
  background: linear-gradient(90deg, #007bff, #0056b3, #007bff);
}

.confirmation-side-panel--activate .side-panel-header::before {
  background: linear-gradient(90deg, #28a745, #20c997, #28a745);
}

.confirmation-side-panel--deactivate .side-panel-header::before {
  background: linear-gradient(90deg, #dc3545, #ff6b6b, #dc3545);
}

.confirmation-side-panel--delete .side-panel-title {
  color: #dc3545 !important;
}

.confirmation-side-panel--warning .side-panel-title {
  color: #ffc107 !important;
}

.confirmation-side-panel--info .side-panel-title {
  color: #007bff !important;
}

.confirmation-side-panel--activate .side-panel-title {
  color: #28a745 !important;
}

.confirmation-side-panel--deactivate .side-panel-title {
  color: #dc3545 !important;
}

.confirmation-side-panel--delete .side-panel-header {
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%) !important;
}

.confirmation-side-panel--deactivate .side-panel-header {
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%) !important;
}

.confirmation-side-panel--delete .side-panel-close:hover {
  background-color: #dc3545 !important;
  color: white !important;
  transform: scale(1.05);
  border-color: #dc3545 !important;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.confirmation-side-panel--deactivate .side-panel-close:hover {
  background-color: #dc3545 !important;
  color: white !important;
  transform: scale(1.05);
  border-color: #dc3545 !important;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.confirmation-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.confirmation-icon {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 3rem;
  animation: warningPulse 2s ease-in-out infinite;
}

.confirmation-side-panel--delete .confirmation-icon {
  color: #dc3545;
}

.confirmation-side-panel--warning .confirmation-icon {
  color: #ffc107;
}

.confirmation-side-panel--info .confirmation-icon {
  color: #007bff;
}

.confirmation-side-panel--activate .confirmation-icon {
  color: #28a745;
}

.confirmation-side-panel--deactivate .confirmation-icon {
  color: #dc3545;
}

@keyframes warningPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.confirmation-message {
  flex: 1;
  text-align: center;
  margin-bottom: 2rem;
}

.confirmation-message p {
  color: #495057;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 1.2rem 0;
}

.confirmation-item {
  background: rgba(108, 117, 125, 0.1);
  padding: 0.75rem;
  border-radius: 8px;
  border-left: 4px solid #6c757d;
  margin: 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
}

.confirmation-side-panel--delete .confirmation-item {
  background: rgba(220, 53, 69, 0.1);
  border-left-color: #dc3545;
  color: #dc3545;
}

.confirmation-side-panel--warning .confirmation-item {
  background: rgba(255, 193, 7, 0.1);
  border-left-color: #ffc107;
  color: #ffc107;
}

.confirmation-side-panel--info .confirmation-item {
  background: rgba(0, 123, 255, 0.1);
  border-left-color: #007bff;
  color: #007bff;
}

.confirmation-side-panel--activate .confirmation-item {
  background: rgba(40, 167, 69, 0.1);
  border-left-color: #28a745;
  color: #28a745;
}

.confirmation-side-panel--deactivate .confirmation-item {
  background: rgba(220, 53, 69, 0.1);
  border-left-color: #dc3545;
  color: #dc3545;
}

.confirmation-warning {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #6c757d;
  margin: 1rem 0;
}

.confirmation-side-panel--delete .confirmation-warning {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-left-color: #dc3545;
}

.confirmation-side-panel--warning .confirmation-warning {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border-left-color: #ffc107;
}

.confirmation-side-panel--info .confirmation-warning {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
  border-left-color: #007bff;
}

.confirmation-side-panel--activate .confirmation-warning {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border-left-color: #28a745;
}

.confirmation-side-panel--deactivate .confirmation-warning {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-left-color: #dc3545;
}

.confirmation-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
  margin-top: auto;
}

.btn-cancel,
.btn-confirm {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-cancel {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  color: white;
}

.btn-cancel:hover:not(:disabled) {
  background: linear-gradient(135deg, #5a6268, #495057);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-confirm {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
}

.confirmation-side-panel--warning .btn-confirm {
  background: linear-gradient(135deg, #ffc107, #e0a800);
}

.confirmation-side-panel--warning .btn-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #e0a800, #d39e00);
}

.confirmation-side-panel--info .btn-confirm {
  background: linear-gradient(135deg, #007bff, #0056b3);
}

.confirmation-side-panel--info .btn-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #0056b3, #004085);
}

.confirmation-side-panel--delete .btn-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #c82333, #bd2130);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.confirmation-side-panel--warning .btn-confirm:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.confirmation-side-panel--info .btn-confirm:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.confirmation-side-panel--activate .btn-confirm {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.confirmation-side-panel--activate .btn-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #20c997, #17a2b8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.confirmation-side-panel--deactivate .btn-confirm {
  background: linear-gradient(135deg, #dc3545, #c82333);
}

.confirmation-side-panel--deactivate .btn-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #c82333, #bd2130);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-confirm:disabled,
.btn-cancel:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Responsive */
@media (max-width: 768px) {
  .confirmation-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-cancel,
  .btn-confirm {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
  }

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

  .confirmation-message p {
    font-size: 1rem;
  }
}

/* Modo oscuro para el ConfirmationSidePanel */
[data-theme="dark"] .confirmation-side-panel--delete .side-panel-header {
  background: linear-gradient(135deg, #742a2a 0%, #4a1a1a 100%) !important;
}

[data-theme="dark"] .confirmation-side-panel--deactivate .side-panel-header {
  background: linear-gradient(135deg, #742a2a 0%, #4a1a1a 100%) !important;
}

[data-theme="dark"] .confirmation-side-panel--warning .side-panel-header {
  background: linear-gradient(135deg, #744210 0%, #4a2c00 100%) !important;
}

[data-theme="dark"] .confirmation-side-panel--info .side-panel-header {
  background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%) !important;
}

[data-theme="dark"] .confirmation-side-panel--activate .side-panel-header {
  background: linear-gradient(135deg, #22543d 0%, #1a2e1a 100%) !important;
}

[data-theme="dark"] .confirmation-side-panel--delete .side-panel-title {
  color: #feb2b2 !important;
}

[data-theme="dark"] .confirmation-side-panel--warning .side-panel-title {
  color: #fbd38d !important;
}

[data-theme="dark"] .confirmation-side-panel--info .side-panel-title {
  color: #90cdf4 !important;
}

[data-theme="dark"] .confirmation-side-panel--activate .side-panel-title {
  color: #9ae6b4 !important;
}

[data-theme="dark"] .confirmation-side-panel--deactivate .side-panel-title {
  color: #feb2b2 !important;
}

[data-theme="dark"] .confirmation-side-panel--delete .side-panel-close:hover {
  background-color: #e53e3e !important;
  color: white !important;
  border-color: #e53e3e !important;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

[data-theme="dark"]
  .confirmation-side-panel--deactivate
  .side-panel-close:hover {
  background-color: #e53e3e !important;
  color: white !important;
  border-color: #e53e3e !important;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

[data-theme="dark"] .confirmation-side-panel--warning .side-panel-close:hover {
  background-color: #d69e2e !important;
  color: white !important;
  border-color: #d69e2e !important;
  box-shadow: 0 4px 12px rgba(214, 158, 46, 0.4);
}

[data-theme="dark"] .confirmation-side-panel--info .side-panel-close:hover {
  background-color: #3182ce !important;
  color: white !important;
  border-color: #3182ce !important;
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
}

[data-theme="dark"] .confirmation-side-panel--activate .side-panel-close:hover {
  background-color: #38a169 !important;
  color: white !important;
  border-color: #38a169 !important;
  box-shadow: 0 4px 12px rgba(56, 161, 105, 0.4);
}

[data-theme="dark"] .confirmation-content {
  background: #2d3748;
}

[data-theme="dark"] .confirmation-side-panel--delete .confirmation-icon {
  color: #e53e3e;
}

[data-theme="dark"] .confirmation-side-panel--warning .confirmation-icon {
  color: #d69e2e;
}

[data-theme="dark"] .confirmation-side-panel--info .confirmation-icon {
  color: #3182ce;
}

[data-theme="dark"] .confirmation-side-panel--activate .confirmation-icon {
  color: #38a169;
}

[data-theme="dark"] .confirmation-side-panel--deactivate .confirmation-icon {
  color: #e53e3e;
}

[data-theme="dark"] .confirmation-message p {
  color: #e2e8f0;
}

[data-theme="dark"] .confirmation-item {
  background: #4a5568;
  color: #e2e8f0;
  border-left-color: #718096;
}

[data-theme="dark"] .confirmation-side-panel--delete .confirmation-item {
  background: #742a2a;
  color: #feb2b2;
  border-left-color: #e53e3e;
}

[data-theme="dark"] .confirmation-side-panel--warning .confirmation-item {
  background: #744210;
  color: #fbd38d;
  border-left-color: #d69e2e;
}

[data-theme="dark"] .confirmation-side-panel--info .confirmation-item {
  background: #2c5282;
  color: #90cdf4;
  border-left-color: #3182ce;
}

[data-theme="dark"] .confirmation-side-panel--activate .confirmation-item {
  background: #22543d;
  color: #9ae6b4;
  border-left-color: #38a169;
}

[data-theme="dark"] .confirmation-side-panel--deactivate .confirmation-item {
  background: #742a2a;
  color: #feb2b2;
  border-left-color: #e53e3e;
}

[data-theme="dark"] .confirmation-warning {
  background: #4a5568;
  color: #a0aec0;
  border-left-color: #718096;
}

[data-theme="dark"] .confirmation-side-panel--delete .confirmation-warning {
  background: #742a2a;
  color: #feb2b2;
  border-left-color: #e53e3e;
}

[data-theme="dark"] .confirmation-side-panel--warning .confirmation-warning {
  background: #744210;
  color: #fbd38d;
  border-left-color: #d69e2e;
}

[data-theme="dark"] .confirmation-side-panel--info .confirmation-warning {
  background: #2c5282;
  color: #90cdf4;
  border-left-color: #3182ce;
}

[data-theme="dark"] .confirmation-side-panel--activate .confirmation-warning {
  background: #22543d;
  color: #9ae6b4;
  border-left-color: #38a169;
}

[data-theme="dark"] .confirmation-side-panel--deactivate .confirmation-warning {
  background: #742a2a;
  color: #feb2b2;
  border-left-color: #e53e3e;
}

[data-theme="dark"] .confirmation-actions {
  background: #2d3748;
  border-top-color: #4a5568;
}

[data-theme="dark"] .btn-cancel {
  background: linear-gradient(135deg, #4a5568, #718096);
  color: #e2e8f0;
}

[data-theme="dark"] .btn-cancel:hover:not(:disabled) {
  background: linear-gradient(135deg, #718096, #a0aec0);
  color: #2d3748;
  box-shadow: 0 4px 12px rgba(160, 174, 192, 0.3);
}

[data-theme="dark"] .btn-confirm {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: white;
}

[data-theme="dark"] .confirmation-side-panel--warning .btn-confirm {
  background: linear-gradient(135deg, #d69e2e, #b7791f);
}

[data-theme="dark"]
  .confirmation-side-panel--warning
  .btn-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #b7791f, #975a16);
  box-shadow: 0 4px 12px rgba(214, 158, 46, 0.4);
}

[data-theme="dark"] .confirmation-side-panel--info .btn-confirm {
  background: linear-gradient(135deg, #3182ce, #2c5282);
}

[data-theme="dark"]
  .confirmation-side-panel--info
  .btn-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #2c5282, #2a4a6b);
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
}

[data-theme="dark"]
  .confirmation-side-panel--delete
  .btn-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #c53030, #9b2c2c);
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

[data-theme="dark"] .confirmation-side-panel--activate .btn-confirm {
  background: linear-gradient(135deg, #38a169, #2f855a);
}

[data-theme="dark"]
  .confirmation-side-panel--activate
  .btn-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #2f855a, #276749);
  box-shadow: 0 4px 12px rgba(56, 161, 105, 0.4);
}

[data-theme="dark"] .confirmation-side-panel--deactivate .btn-confirm {
  background: linear-gradient(135deg, #e53e3e, #c53030);
}

[data-theme="dark"]
  .confirmation-side-panel--deactivate
  .btn-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #c53030, #9b2c2c);
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}
.admin-page-container {
    padding: 24px;
    max-width: 1250px;
    margin: 0 auto;
}

.admin-page-header {
    margin-bottom: 32px;
}

.admin-page-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.admin-page-header p {
    color: #666;
    font-size: 16px;
}

.admin-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    display: flex;
    
}

.admin-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.admin-filters input {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.admin-filters input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.add-admin-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

.add-admin-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Salto de línea en textos largos para no dañar el layout */
.data-table-wrapper .admin-table.data-table td:not(.col-acciones) {
    white-space: normal !important;
}

.admin-table-container {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    font-size: 14px;
}

.admin-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.admin-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    white-space: nowrap;
}

.admin-table-row:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

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

.admin-action-btn {
    padding: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.admin-action-btn.edit {
    background-color: #007bff;
    color: white;
}

.admin-action-btn.edit:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.admin-action-btn.delete {
    background-color: #dc3545;
    color: white;
}

.admin-action-btn.delete:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.admin-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

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

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

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

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #333;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-btn.primary {
    background-color: #007bff;
    color: white;
}

.modal-btn.primary:hover {
    background-color: #0056b3;
}

.modal-btn.secondary {
    background-color: #6c757d;
    color: white;
}

.modal-btn.secondary:hover {
    background-color: #545b62;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state p {
    margin-bottom: 16px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-controls {
        flex-direction: column !important;
    }
    
    .admin-filters {
        justify-content: center;
    }
    
    
    .admin-table-container {
        overflow-x: auto;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 4px;
    }
}

/* Estilos para la paginación */
.admin-table-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-table {
    margin-bottom: 0;
}

/* Estilos para el formulario del side panel */
.admin-form {
    padding: 0;
}

.admin-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-form .form-group label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.admin-form .form-group input[type="text"],
.admin-form .form-group input[type="email"],
.admin-form .form-group input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.admin-form .form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.image-preview {
    margin-top: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.form-actions button {
    flex: 1;
    min-width: 120px;
}

.btn-cancel,
.btn-primary {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.95rem;
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #545b62;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #0056b3;
}

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

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Ocultar cards en desktop por defecto */
.mobile-cards {
    display: none;
}

/* Tablets */
@media (max-width: 1024px) {
    .admin-table-container {
        margin-bottom: 165px;
        padding-bottom: 0;
    }
    
    .admin-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 24px;
        padding: 24px;
        transition: all 0.3s ease;
        border: 1px solid #e9ecef;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
        min-height: 200px;
    }
    
    .admin-card:last-child {
        margin-bottom: 0;
    }
    
    .admin-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        border-color: #007bff;
    }
    
    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 2px solid #e9ecef;
    }
    
    .admin-avatar {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .avatar-image {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .avatar-placeholder {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #e9ecef;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6c757d;
        font-size: 20px;
    }
    
    .admin-status {
        padding: 10px 18px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 25px;
    }
    
    .admin-status.active {
        background-color: #d4edda;
        color: #155724;
    }
    
    .admin-status.inactive {
        background-color: #f8d7da;
        color: #721c24;
    }
    
    .card-content {
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    .card-field {
        display: flex;
        flex-direction: column;
        margin-bottom: 16px;
        padding: 12px 16px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .card-field:last-child {
        margin-bottom: 0;
    }
    
    .card-field label {
        font-weight: 700;
        color: #495057;
        font-size: 16px;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .card-field span {
        color: #212529;
        font-size: 16px;
        word-wrap: break-word;
        line-height: 1.5;
        font-weight: 500;
    }
    
    .card-actions {
        display: flex;
        justify-content: center;
        gap: 16px;
        padding-top: 16px;
        border-top: 2px solid #e9ecef;
        margin-top: auto;
    }
    
    .card-actions .admin-action-btn {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .card-actions .admin-action-btn.edit {
        background-color: #ffc107;
        color: white;
    }
    
    .card-actions .admin-action-btn.edit:hover {
        background-color: #e0a800;
        transform: scale(1.05);
    }
    
    .card-actions .admin-action-btn.delete {
        background-color: #dc3545;
        color: white;
    }
    
    .card-actions .admin-action-btn.delete:hover {
        background-color: #c82333;
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-header {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .admin-search {
        max-width: 100%;
    }
    
    .admin-table-container {
        overflow-x: auto;
        border-radius: 12px;
    }
    
    .admin-table {
        min-width: 900px !important;
        font-size: 16px !important;
        width: 100% !important;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 16px 20px !important;
        white-space: nowrap !important;
    }
    
    .admin-table th {
        background-color: #f1f3f4 !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #1a1a1a !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        padding: 18px 20px !important;
    }
    
    .admin-actions {
        gap: 8px !important;
        justify-content: center !important;
        flex-direction: row !important;
    }
    
    .admin-action-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
        padding: 0 !important;
    }
}

/* Tablet medio - Surface Pro 7, iPad Pro */
@media (max-width: 912px) {
    .admin-container {
        padding: 1.25rem;
    }
    
    .admin-header h1 {
        font-size: 1.6rem;
    }
    
    .admin-controls {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .admin-filters {
        width: 100% !important;
    }
    
    .admin-filters input {
        min-width: 100% !important;
    }
    
    .admin-table-container {
        overflow-x: auto !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }
    
    .admin-table {
        min-width: 700px !important;
        font-size: 14px !important;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 14px !important;
        white-space: nowrap !important;
    }
    
    .admin-table th {
        font-size: 13px !important;
    }
    
    .admin-actions {
        gap: 6px !important;
        justify-content: center !important;
    }
    
    .admin-action-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 15px !important;
        border-radius: 7px !important;
    }
    
    .form-actions button {
        flex: 1 !important;
        min-width: 120px !important;
    }
    
    .add-admin-btn {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
        padding-bottom: 30px;
    }
    
    .admin-header h1 {
        font-size: 1.5rem;
    }
    
    .admin-controls {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .admin-filters {
        width: 100% !important;
        flex: 1 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
    }
    
    .admin-search {
        width: 100% !important;
        flex: 1 !important;
    }
    
    .admin-search input {
        font-size: 0.9rem;
        padding: 0.75rem;
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex: 1 !important;
    }
    
    .add-admin-btn {
        width: 100% !important;
        height: 48px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }
    
    .admin-table-container {
        border-radius: 10px;
        margin-bottom: 165px;
        padding-bottom: 0;
    }
    
    /* `desktop-table` / `mobile-cards` are controlled by the view toggle. */
    
    .admin-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
        padding: 16px;
        transition: all 0.3s ease;
        border: 1px solid #e9ecef;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    .admin-card:last-child {
        margin-bottom: 0;
    }
    
    .admin-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        border-color: #007bff;
    }
    
    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .admin-avatar {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .avatar-image {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .avatar-placeholder {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #e9ecef;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6c757d;
        font-size: 16px;
    }
    
    .admin-status {
        padding: 6px 12px;
        font-size: 12px;
        font-weight: 600;
        border-radius: 20px;
    }
    
    .admin-status.active {
        background-color: #d4edda;
        color: #155724;
    }
    
    .admin-status.inactive {
        background-color: #f8d7da;
        color: #721c24;
    }
    
    .card-content {
        margin-bottom: 16px;
        display: flex;
        flex-direction: column;
    }
    
    .card-field {
        display: flex;
        flex-direction: column;
        margin-bottom: 12px;
        padding: 8px 0;
    }
    
    .card-field:last-child {
        margin-bottom: 0;
    }
    
    .card-field label {
        font-weight: 600;
        color: #495057;
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .card-field span {
        color: #212529;
        font-size: 14px;
        word-wrap: break-word;
        line-height: 1.4;
    }
    
    .card-actions {
        display: flex;
        justify-content: center;
        gap: 12px;
        padding-top: 12px;
        border-top: 1px solid #e9ecef;
    }
    
    .card-actions .admin-action-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 16px;
    }
    
    .card-actions .admin-action-btn.edit {
        background-color: #ffc107;
        color: white;
    }
    
    .card-actions .admin-action-btn.edit:hover {
        background-color: #e0a800;
        transform: scale(1.05);
    }
    
    .card-actions .admin-action-btn.delete {
        background-color: #dc3545;
        color: white;
    }
    
    .card-actions .admin-action-btn.delete:hover {
        background-color: #c82333;
        transform: scale(1.05);
    }
    
    /* Paginación con valores específicos */
    .pagination-container.administradores-pagination {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        margin: 35px auto 0 auto !important;
        align-items: center;
        justify-content: center;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border: 1px solid #e9ecef;
        width: 100%;
        max-width: 750px;
        box-sizing: border-box;
    }
    
    .pagination-container.administradores-pagination .pagination-info {
        text-align: center;
        width: 100%;
    }
    
    .pagination-container.administradores-pagination .pagination-controls {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .admin-container {
        padding: 0.75rem;
    }
    
    .admin-header h1 {
        font-size: 1.25rem;
    }
    
    .admin-controls {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .admin-filters {
        width: 100% !important;
        flex: 1 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
    }
    
    .admin-search {
        width: 100% !important;
        flex: 1 !important;
        margin-bottom: 0 !important;
    }
    
    .admin-search input {
        font-size: 0.85rem;
        padding: 0.625rem;
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex: 1 !important;
    }
    
    .add-admin-btn {
        width: 100% !important;
        height: 44px !important;
        font-size: 15px !important;
        border-radius: 6px !important;
    }
    
    .admin-table-container {
        border-radius: 8px;
    }
    
    .admin-table {
        min-width: 750px !important;
        font-size: 14px !important;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 12px 16px !important;
        white-space: nowrap !important;
        margin-left: -50% !important;
    }
    
    .admin-table th {
        font-size: 13px !important;
        padding: 14px 16px !important;
    }
    
    .admin-table th:nth-child(2),
    .admin-table td:nth-child(2) {
        display: none;
    }
    
    .admin-actions {
        flex-direction: row !important;
        gap: 6px !important;
        justify-content: center !important;
    }
    
    .admin-action-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
        border-radius: 5px !important;
        padding: 0 !important;
    }
    
    .admin-status {
        font-size: 9px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .admin-container {
        padding: 0.5rem;
    }
    
    .admin-header h1 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .admin-controls {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .admin-filters {
        width: 100% !important;
        flex: 1 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
    }
    
    .admin-search {
        width: 100% !important;
        flex: 1 !important;
    }
    
    .admin-search input {
        font-size: 0.8rem;
        padding: 0.5rem;
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex: 1 !important;
    }
    
    .add-admin-btn {
        width: 100% !important;
        height: 40px !important;
        font-size: 14px !important;
        border-radius: 5px !important;
    }
    
    .admin-table-container {
        border-radius: 12px;
    }
    
    .admin-table {
        min-width: 700px !important;
        font-size: 13px !important;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 14px !important;
        white-space: nowrap !important;
    }
    
    .admin-table th {
        font-size: 12px !important;
        padding: 12px 14px !important;
    }
    
    .admin-table th:nth-child(4),
    .admin-table td:nth-child(4) {
        display: none;
    }
    
    .admin-actions {
        flex-direction: row !important;
        gap: 4px !important;
        justify-content: center !important;
    }
    
    .admin-action-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
        border-radius: 4px !important;
        padding: 0 !important;
    }
    
    .admin-status {
        font-size: 8px;
        padding: 2px 4px;
    }
}

@media (max-width: 360px) {
    .admin-container {
        padding: 0.25rem;
    }
    
    .admin-header h1 {
        font-size: 1rem;
    }
    
    .admin-controls {
        flex-direction: column !important;
        gap: 6px !important;
    }
    
    .admin-filters {
        width: 100% !important;
        flex: 1 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
    }
    
    .admin-search {
        width: 100% !important;
        flex: 1 !important;
    }
    
    .admin-search input {
        font-size: 0.75rem;
        padding: 0.4rem;
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex: 1 !important;
    }
    
    .add-admin-btn {
        width: 100% !important;
        height: 36px !important;
        font-size: 13px !important;
        border-radius: 4px !important;
    }
    
    .admin-table-container {
        border-radius: 12px;
    }
    
    .admin-table {
        min-width: 650px !important;
        font-size: 12px !important;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 12px !important;
        white-space: nowrap !important;
    }
    
    .admin-table th {
        font-size: 11px !important;
        padding: 10px 12px !important;
    }
    
    .admin-actions {
        flex-direction: row !important;
        gap: 3px !important;
        justify-content: center !important;
    }
    
    .admin-action-btn {
        width: 24px !important;
        height: 24px !important;
        font-size: 10px !important;
        border-radius: 3px !important;
        padding: 0 !important;
    }
    
    .admin-status {
        font-size: 7px;
        padding: 1px 3px;
    }
}

/* Modo oscuro para la página de administradores */
[data-theme="dark"] .admin-page-container {
    background: var(--fondo-general);
}

[data-theme="dark"] .admin-page-header h1 {
    color: white;
}

[data-theme="dark"] .admin-page-header p {
    color: #a0aec0;
}

[data-theme="dark"] .admin-filters input {
    background-color: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .admin-filters input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

[data-theme="dark"] .admin-filters input::placeholder {
    color: #a0aec0;
}

[data-theme="dark"] .admin-table-container {
    background: #2d3748;
    border: 1px solid #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .admin-table thead {
    background: #4a5568;
    border-bottom-color: #718096;
}

[data-theme="dark"] .admin-table th {
    color: #e2e8f0;
}

[data-theme="dark"] .admin-table td {
    color: #e2e8f0;
    border-bottom-color: #718096;
}

[data-theme="dark"] .admin-table-row:hover {
    background-color: #4a5568;
}

[data-theme="dark"] .admin-action-btn.edit {
    background-color: #007bff;
    color: white;
}

[data-theme="dark"] .admin-action-btn.edit:hover {
    background-color: #0056b3;
}

[data-theme="dark"] .admin-action-btn.delete {
    background-color: #dc3545;
    color: white;
}

[data-theme="dark"] .admin-action-btn.delete:hover {
    background-color: #c82333;
}

[data-theme="dark"] .admin-status.active {
    background-color: #22543d;
    color: #9ae6b4;
}

[data-theme="dark"] .admin-status.inactive {
    background-color: #742a2a;
    color: #feb2b2;
}

[data-theme="dark"] .modal-overlay {
    background-color: rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .modal-content {
    background: #2d3748;
    border: 1px solid #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .modal-header h2 {
    color: #e2e8f0;
}

[data-theme="dark"] .modal-close {
    color: #a0aec0;
}

[data-theme="dark"] .modal-close:hover {
    color: #e2e8f0;
}

[data-theme="dark"] .form-group label {
    color: #e2e8f0;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select {
    background-color: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

[data-theme="dark"] .form-group input::placeholder {
    color: #a0aec0;
}

[data-theme="dark"] .modal-btn.primary {
    background-color: #007bff;
    color: white;
}

[data-theme="dark"] .modal-btn.primary:hover {
    background-color: #0056b3;
}

[data-theme="dark"] .modal-btn.secondary {
    background-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .modal-btn.secondary:hover {
    background-color: #718096;
}

[data-theme="dark"] .spinner {
    border-color: #4a5568;
    border-top-color: #007bff;
}

[data-theme="dark"] .empty-state {
    color: #a0aec0;
}

[data-theme="dark"] .empty-state p {
    color: #a0aec0;
}

/* Modo oscuro para las cards móviles */
[data-theme="dark"] .admin-card {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .admin-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border-color: #007bff;
}

[data-theme="dark"] .card-header {
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .avatar-placeholder {
    background-color: #4a5568;
    color: #a0aec0;
}

[data-theme="dark"] .card-field {
    background: #4a5568;
}

[data-theme="dark"] .card-field label {
    color: #e2e8f0;
}

[data-theme="dark"] .card-field span {
    color: #e2e8f0;
}

[data-theme="dark"] .card-actions {
    border-top-color: #4a5568;
}

[data-theme="dark"] .card-actions .admin-action-btn.edit {
    background-color: #ffc107;
    color: #2d3748;
}

[data-theme="dark"] .card-actions .admin-action-btn.edit:hover {
    background-color: #e0a800;
}

[data-theme="dark"] .card-actions .admin-action-btn.delete {
    background-color: #dc3545;
    color: white;
}

[data-theme="dark"] .card-actions .admin-action-btn.delete:hover {
    background-color: #c82333;
}

/* Modo oscuro para el formulario del side panel */
[data-theme="dark"] .admin-form .form-group label {
    color: #e2e8f0;
}

[data-theme="dark"] .admin-form .form-group input[type="text"],
[data-theme="dark"] .admin-form .form-group input[type="email"],
[data-theme="dark"] .admin-form .form-group input[type="file"] {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .admin-form .form-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

[data-theme="dark"] .form-actions {
    border-top-color: #4a5568;
}

[data-theme="dark"] .btn-cancel {
    background: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .btn-cancel:hover {
    background: #718096;
}

[data-theme="dark"] .btn-primary {
    background: #007bff;
    color: white;
}

[data-theme="dark"] .btn-primary:hover:not(:disabled) {
    background: #0056b3;
}

[data-theme="dark"] .btn-secondary {
    background: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .btn-secondary:hover {
    background: #718096;
}

/* Modo oscuro para la paginación */
[data-theme="dark"] .pagination-container.administradores-pagination {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .admin-table-container.table-pagination-anchor {
        margin-bottom: 24px !important;
        padding-bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .admin-table-container.table-pagination-anchor .data-table-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    .admin-table-container.table-pagination-anchor .mobile-cards,
    .admin-table-container.table-pagination-anchor .mobile-cards--visible {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 12px !important;
        box-sizing: border-box;
    }

    .admin-table-container.table-pagination-anchor .table-pagination-top,
    .admin-table-container.table-pagination-anchor .table-pagination-bottom {
        margin: 12px 0 !important;
        padding: 0 !important;
    }

    .pagination-container.administradores-pagination {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .pagination-container.administradores-pagination .pagination-info,
    .pagination-container.administradores-pagination .pagination-controls,
    .pagination-container.administradores-pagination .pagination-pages {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: flex-start !important;
    }
}

@media (max-width: 1024px) {
    .admin-table-container.table-pagination-anchor {
        overflow-x: visible !important;
    }

    .admin-table-container.table-pagination-anchor .data-table.admin-table {
        width: 100% !important;
        min-width: 0 !important;
    }

    .admin-table-container.table-pagination-anchor .table-pagination-top,
    .admin-table-container.table-pagination-anchor .table-pagination-bottom {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Safety override: remove legacy mobile spacing hacks */
@media (max-width: 1024px) {
    .admin-container {
        padding-bottom: 16px !important;
    }

    .admin-container .admin-table-container.table-pagination-anchor {
        margin: 0 0 24px 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .admin-container .admin-table-container.table-pagination-anchor .data-table-wrapper {
        margin: 0 !important;
        padding: 0 !important;
    }

    .admin-container .admin-table-container.table-pagination-anchor .table-pagination-top,
    .admin-container .admin-table-container.table-pagination-anchor .table-pagination-bottom {
        margin: 12px 0 !important;
        padding: 0 !important;
    }

    .admin-container .admin-table-container.table-pagination-anchor .pagination-container.administradores-pagination {
        margin: 0 !important;
        padding: 12px 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Evita desajustes visuales que sacan el footer de flujo */
    .admin-container .admin-table-container.table-pagination-anchor,
    .admin-container .admin-table-container.table-pagination-anchor .data-table-wrapper,
    .admin-container .admin-table-container.table-pagination-anchor .mobile-cards,
    .admin-container .admin-table-container.table-pagination-anchor .mobile-cards--visible {
        transform: none !important;
    }
}

/* Final override for current page structure (`page-main`) */
@media (max-width: 1024px) {
    .page-main .admin-table-container.table-pagination-anchor {
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 24px 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .page-main .admin-table-container.table-pagination-anchor .data-table-wrapper,
    .page-main .admin-table-container.table-pagination-anchor .mobile-cards,
    .page-main .admin-table-container.table-pagination-anchor .mobile-cards--visible {
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .page-main .admin-table-container.table-pagination-anchor .pagination-container.administradores-pagination {
        position: static !important;
        margin: 0 !important;
    }
}.admin-page-container {
    padding: 24px;
    max-width: 1250px;
    margin: 0 auto;
}

.admin-page-header {
    margin-bottom: 32px;
}

.admin-page-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.admin-page-header p {
    color: #666;
    font-size: 16px;
}

.admin-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.admin-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.admin-filters input {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    min-width: 200px;
}

.admin-filters input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.add-admin-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

.add-admin-btn:hover {
    background-color: #218838;
}

/* Anular nowrap en tablas con estilo compartido para que los textos largos hagan salto de línea */
.data-table-wrapper .admin-table.data-table td:not(.col-acciones) {
    white-space: normal !important;
}

.admin-table-container {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

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

.admin-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.admin-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.admin-table-row:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.admin-actions {
    display: flex;
    gap: 8px;
    padding: 25px 12px !important;
}

.admin-action-btn {
    padding: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.admin-action-btn.edit {
    background-color: #007bff;
    color: white;
}

.admin-action-btn.edit:hover {
    background-color: #0056b3;
}

.admin-action-btn.delete {
    background-color: #dc3545;
    color: white;
}

.admin-action-btn.delete:hover {
    background-color: #c82333;
}

.admin-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

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

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

/* Side Panel Form Styles */
.admin-form {
    padding: 0;
}

.admin-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.admin-form .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.admin-form .form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.image-preview {
    margin-top: 0.5rem;
}

.image-preview img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.form-actions button {
    flex: 1;
    min-width: 120px;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-cancel:hover {
    background: #545b62;
}

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-page-container {
        padding: 1.5rem;
    }
    .admin-table-container {
        transform: scale(1.10);
        transform-origin: top left;
        width: calc(100% / 1.10);
    }
    
    .admin-controls {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .admin-filters {
        width: 100%;
    }
    
    .admin-filters input {
        min-width: 100%;
    }
    
    .admin-table-container {
        overflow-x: auto;
        border-radius: 12px;
    }
    
    .admin-table {
        min-width: 700px;
        font-size: 14px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 12px 16px;
        white-space: nowrap;
    }
    
    .admin-table th {
        background-color: #f1f3f4;
        font-size: 13px;
        font-weight: 700;
        color: #1a1a1a;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .admin-actions {
        gap: 8px;
        justify-content: center;
    }
    
    .admin-action-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

/* Tablet medio - Surface Pro 7, iPad Pro */
@media (max-width: 912px) {
    .admin-page-container {
        padding: 1.25rem;
    }
    
    .admin-page-header h1 {
        font-size: 1.6rem;
    }
    
    .admin-controls {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .admin-filters {
        width: 100%;
    }
    
    .admin-filters input {
        min-width: 100%;
    }
    
    .admin-table-container {
        overflow-x: auto;
        border-radius: 12px;
    }
    
    .admin-table {
        min-width: 600px;
        font-size: 13px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 14px;
        white-space: nowrap;
    }
    
    .admin-table th {
        font-size: 12px;
    }
    
    .admin-actions {
        gap: 6px;
        justify-content: center;
    }
    
    .admin-action-btn {
        width: 34px;
        height: 34px;
        font-size: 15px;
        border-radius: 7px;
    }
    
    .form-actions button {
        flex: 1;
        min-width: 120px;
    }
    
    .add-admin-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .admin-page-container {
        padding: 1rem;
    }
    
    .admin-page-header h1 {
        font-size: 1.5rem;
    }
    
    .admin-filters input {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .add-admin-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .admin-table-container {
        overflow-x: auto;
        border-radius: 10px;
        transform: scale(1.12);
        transform-origin: top left;
        width: calc(100% / 1.12);
    }
    
    .admin-table {
        min-width: 600px;
        font-size: 13px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 14px;
        white-space: nowrap;
    }
    
    .admin-table th {
        font-size: 12px;
        padding: 12px 14px;
    }
    
    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3) {
        display: none;
    }
    
    .admin-actions {
        gap: 4px;
    }
    
    .admin-action-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .admin-status {
        font-size: 10px;
        padding: 3px 8px;
    }
}

@media (max-width: 640px) {
    .admin-page-container {
        padding: 0.75rem;
    }
    
    .admin-page-header h1 {
        font-size: 1.25rem;
    }
    
    .admin-filters {
        margin-bottom: 1rem;
    }
    
    .admin-filters input {
        font-size: 0.85rem;
        padding: 0.625rem;
    }
    
    .add-admin-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .admin-table-container {
        border-radius: 8px;
        transform: scale(1.16);
        transform-origin: top left;
        width: calc(100% / 1.16);
    }
    
    .admin-table {
        min-width: 550px;
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 12px;
        white-space: nowrap;
    }
    
    .admin-table th {
        font-size: 11px;
        padding: 10px 12px;
    }
    
    .admin-table th:nth-child(2),
    .admin-table td:nth-child(2) {
        display: none;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 3px;
    }
    
    .admin-action-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .admin-status {
        font-size: 9px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .admin-page-container {
        padding: 0.5rem;
    }
    
    .admin-page-header h1 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .admin-filters input {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .add-admin-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .admin-table-container {
        border-radius: 12px;
        transform: scale(1.18);
        transform-origin: top left;
        width: calc(100% / 1.18);
    }
    
    .admin-table {
        min-width: 500px;
        font-size: 11px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 6px 10px;
        white-space: nowrap;
    }
    
    .admin-table th {
        font-size: 10px;
        padding: 8px 10px;
    }
    
    .admin-table th:nth-child(4),
    .admin-table td:nth-child(4) {
        display: none;
    }
    
    .admin-actions {
        gap: 2px;
    }
    
    .admin-action-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .admin-status {
        font-size: 8px;
        padding: 2px 4px;
    }
}

@media (max-width: 360px) {
    .admin-page-container {
        padding: 0.25rem;
    }
    
    .admin-page-header h1 {
        font-size: 1rem;
    }
    
    .admin-filters input {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    
    .add-admin-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .admin-table-container {
        border-radius: 12px;
        transform: scale(1.20);
        transform-origin: top left;
        width: calc(100% / 1.20);
    }
    
    .admin-table {
        min-width: 450px;
        font-size: 10px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 4px 8px;
        white-space: nowrap;
    }
    
    .admin-table th {
        font-size: 9px;
        padding: 6px 8px;
    }
    
    .admin-actions {
        gap: 1px;
    }
    
    .admin-action-btn {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
    
    .admin-status {
        font-size: 7px;
        padding: 1px 3px;
    }
}

/* Ocultar cards en desktop por defecto */
.mobile-cards {
    display: none;
}

/* Tablets */
@media (max-width: 1024px) {
    .admin-table-container {
        margin-bottom: 165px;
        padding-bottom: 0;
    }
    
    .admin-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 24px;
        padding: 24px;
        transition: all 0.3s ease;
        border: 1px solid #e9ecef;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
        min-height: 200px;
    }
    
    .admin-card:last-child {
        margin-bottom: 0;
    }
    
    .admin-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        border-color: #007bff;
    }
    
    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 2px solid #e9ecef;
    }
    
    .admin-avatar {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .avatar-image {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .avatar-placeholder {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #e9ecef;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6c757d;
        font-size: 20px;
    }
    
    .card-content {
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    .card-field {
        display: flex;
        flex-direction: column;
        margin-bottom: 16px;
        padding: 12px 16px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .card-field:last-child {
        margin-bottom: 0;
    }
    
    .card-field label {
        font-weight: 700;
        color: #495057;
        font-size: 16px;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .card-field span {
        color: #212529;
        font-size: 16px;
        word-wrap: break-word;
        line-height: 1.5;
        font-weight: 500;
    }
    
    .card-actions {
        display: flex;
        justify-content: center;
        gap: 16px;
        padding-top: 16px;
        border-top: 2px solid #e9ecef;
        margin-top: auto;
    }
    
    .card-actions .admin-action-btn {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .card-actions .admin-action-btn.edit {
        background-color: #ffc107;
        color: white;
    }
    
    .card-actions .admin-action-btn.edit:hover {
        background-color: #e0a800;
        transform: scale(1.05);
    }
    
    .card-actions .admin-action-btn.delete {
        background-color: #dc3545;
        color: white;
    }
    
    .card-actions .admin-action-btn.delete:hover {
        background-color: #c82333;
        transform: scale(1.05);
    }
    
    /* Paginación con valores específicos */
    .pagination-container.proveedores-pagination {
        flex-direction: column;
        gap: 15px;
        padding: 20px 15px;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border: 1px solid #e9ecef;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
        padding-bottom: 30px;
    }
    
    .admin-table-container {
        border-radius: 10px;
        margin-bottom: 165px;
        padding-bottom: 0;
    }
    
    /* `desktop-table` / `mobile-cards` are controlled by the view toggle. */
    
    .admin-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
        padding: 16px;
        transition: all 0.3s ease;
        border: 1px solid #e9ecef;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    .admin-card:last-child {
        margin-bottom: 0;
    }
    
    .admin-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        border-color: #007bff;
    }
    
    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .admin-avatar {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .avatar-image {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .avatar-placeholder {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #e9ecef;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6c757d;
        font-size: 16px;
    }
    
    .card-content {
        margin-bottom: 16px;
        display: flex;
        flex-direction: column;
    }
    
    .card-field {
        display: flex;
        flex-direction: column;
        margin-bottom: 12px;
        padding: 8px 0;
    }
    
    .card-field:last-child {
        margin-bottom: 0;
    }
    
    .card-field label {
        font-weight: 600;
        color: #495057;
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .card-field span {
        color: #212529;
        font-size: 14px;
        word-wrap: break-word;
        line-height: 1.4;
    }
    
    .card-actions {
        display: flex;
        justify-content: center;
        gap: 12px;
        padding-top: 12px;
        border-top: 1px solid #e9ecef;
    }
    
    .card-actions .admin-action-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 16px;
    }
    
    .card-actions .admin-action-btn.edit {
        background-color: #ffc107;
        color: white;
    }
    
    .card-actions .admin-action-btn.edit:hover {
        background-color: #e0a800;
        transform: scale(1.05);
    }
    
    .card-actions .admin-action-btn.delete {
        background-color: #dc3545;
        color: white;
    }
    
    .card-actions .admin-action-btn.delete:hover {
        background-color: #c82333;
        transform: scale(1.05);
    }
    
    /* Paginación con valores específicos */
    .pagination-container.proveedores-pagination {
        flex-direction: column;
        gap: 15px;
        padding: 20px 15px;
        margin: 430px auto 20px auto !important;
        align-items: center;
        justify-content: center;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border: 1px solid #e9ecef;
        width: 100%;
        max-width: 750px;
        box-sizing: border-box;
    }
    
    .pagination-container.proveedores-pagination .pagination-info {
        text-align: center;
        width: 100%;
    }
    
    .pagination-container.proveedores-pagination .pagination-controls {
        justify-content: center;
        width: 100%;
    }
}

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

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #333;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-btn.primary {
    background-color: #007bff;
    color: white;
}

.modal-btn.primary:hover {
    background-color: #0056b3;
}

.modal-btn.secondary {
    background-color: #6c757d;
    color: white;
}

.modal-btn.secondary:hover {
    background-color: #545b62;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state p {
    margin-bottom: 16px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-controls {
        flex-direction: column !important;
    }
    
    .admin-filters {
        justify-content: center;
    }
    
    .admin-filters input {
        min-width: 150px;
    }
    
    .admin-table-container {
        overflow-x: auto;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 768px) {
    .admin-table-container.table-pagination-anchor {
        margin-bottom: 24px !important;
        padding-bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    .admin-table-container.table-pagination-anchor .data-table-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    .admin-table-container.table-pagination-anchor .mobile-cards,
    .admin-table-container.table-pagination-anchor .mobile-cards--visible {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 12px !important;
        box-sizing: border-box;
    }

    .admin-table-container.table-pagination-anchor .table-pagination-top,
    .admin-table-container.table-pagination-anchor .table-pagination-bottom {
        margin: 12px 0 !important;
        padding: 0 !important;
    }

    .pagination-container.proveedores-pagination {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .pagination-container.proveedores-pagination .pagination-info,
    .pagination-container.proveedores-pagination .pagination-controls,
    .pagination-container.proveedores-pagination .pagination-pages {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: flex-start !important;
    }
}

@media (max-width: 1024px) {
    .admin-table-container.table-pagination-anchor {
        overflow-x: visible !important;
    }

    .admin-table-container.table-pagination-anchor .data-table.admin-table {
        width: 100% !important;
        min-width: 0 !important;
    }

    .admin-table-container.table-pagination-anchor .table-pagination-top,
    .admin-table-container.table-pagination-anchor .table-pagination-bottom {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Safety override: remove legacy mobile spacing hacks */
@media (max-width: 1024px) {
    .admin-container {
        padding-bottom: 16px !important;
    }

    .admin-container .admin-table-container.table-pagination-anchor {
        margin: 0 0 24px 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .admin-container .admin-table-container.table-pagination-anchor .data-table-wrapper {
        margin: 0 !important;
        padding: 0 !important;
    }

    .admin-container .admin-table-container.table-pagination-anchor .table-pagination-top,
    .admin-container .admin-table-container.table-pagination-anchor .table-pagination-bottom {
        margin: 12px 0 !important;
        padding: 0 !important;
    }

    .admin-container .admin-table-container.table-pagination-anchor .pagination-container.proveedores-pagination {
        margin: 0 !important;
        padding: 12px 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Quita escalados legacy que rompen el flujo y superponen footer */
    .admin-container .admin-table-container.table-pagination-anchor,
    .admin-container .admin-table-container.table-pagination-anchor .data-table-wrapper,
    .admin-container .admin-table-container.table-pagination-anchor .mobile-cards,
    .admin-container .admin-table-container.table-pagination-anchor .mobile-cards--visible,
    .admin-container .admin-table-container.table-pagination-anchor .data-table.admin-table {
        transform: none !important;
        min-width: 0 !important;
    }
}

/* Final override for current page structure (`page-main`) */
@media (max-width: 1024px) {
    .page-main .admin-table-container.table-pagination-anchor {
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 24px 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .page-main .admin-table-container.table-pagination-anchor .data-table-wrapper,
    .page-main .admin-table-container.table-pagination-anchor .mobile-cards,
    .page-main .admin-table-container.table-pagination-anchor .mobile-cards--visible,
    .page-main .admin-table-container.table-pagination-anchor .data-table.admin-table {
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .page-main .admin-table-container.table-pagination-anchor .pagination-container.proveedores-pagination {
        position: static !important;
        margin: 0 !important;
    }
}.admin-page-container {
    padding: 24px;
    max-width: 1250px;
    margin: 0 auto;
}

.admin-page-header {
    margin-bottom: 32px;
}

.admin-page-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.admin-page-header p {
    color: #666;
    font-size: 16px;
}

.admin-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.admin-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.admin-filters input {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    min-width: 200px;
}

.admin-filters input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.add-admin-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

.add-admin-btn:hover {
    background-color: #218838;
}

/* Salto de línea en textos largos para no dañar el layout */
.data-table-wrapper .admin-table.data-table td:not(.col-acciones) {
    white-space: normal !important;
}

.admin-table-container {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

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

.admin-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.admin-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.admin-table-row:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

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

.admin-action-btn {
    padding: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.admin-action-btn.edit {
    background-color: #007bff;
    color: white;
}

.admin-action-btn.edit:hover {
    background-color: #0056b3;
}

.admin-action-btn.delete {
    background-color: #dc3545;
    color: white;
}

.admin-action-btn.delete:hover {
    background-color: #c82333;
}

.admin-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

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

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

/* Side Panel Form Styles */
.admin-form {
    padding: 0;
}

.admin-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.admin-form .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.admin-form .form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.image-preview {
    margin-top: 0.5rem;
}

.image-preview img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.form-actions button {
    flex: 1;
    min-width: 120px;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-cancel:hover {
    background: #545b62;
}

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-page-container {
        padding: 1.5rem;
    }
    
    .admin-controls {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .admin-filters {
        width: 100%;
    }
    
    .admin-filters input {
        min-width: 100%;
    }
    
    .admin-table-container {
        overflow-x: auto;
        border-radius: 12px;
    }
    
    .admin-table {
        min-width: 700px;
        font-size: 14px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 12px 16px;
        white-space: nowrap;
    }
    
    .admin-table th {
        background-color: #f1f3f4;
        font-size: 13px;
        font-weight: 700;
        color: #1a1a1a;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .admin-actions {
        gap: 8px;
        justify-content: center;
    }
    
    .admin-action-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

/* Tablet medio - Surface Pro 7, iPad Pro */
@media (max-width: 912px) {
    .admin-page-container {
        padding: 1.25rem;
    }
    
    .admin-page-header h1 {
        font-size: 1.6rem;
    }
    
    .admin-controls {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .admin-filters {
        width: 100%;
    }
    
    .admin-filters input {
        min-width: 100%;
    }
    
    .admin-table-container {
        overflow-x: auto;
        border-radius: 12px;
    }
    
    .admin-table {
        min-width: 600px;
        font-size: 13px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 14px;
        white-space: nowrap;
    }
    
    .admin-table th {
        font-size: 12px;
    }
    
    .admin-actions {
        gap: 6px;
        justify-content: center;
    }
    
    .admin-action-btn {
        width: 34px;
        height: 34px;
        font-size: 15px;
        border-radius: 7px;
    }
    
    .form-actions button {
        flex: 1;
        min-width: 120px;
    }
    
    .add-admin-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .admin-page-container {
        padding: 1rem;
    }
    
    .admin-page-header h1 {
        font-size: 1.5rem;
    }
    
    .admin-filters input {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .add-admin-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .admin-table-container {
        overflow-x: auto;
        border-radius: 10px;
    }
    
    .admin-table {
        min-width: 600px;
        font-size: 13px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 14px;
        white-space: nowrap;
    }
    
    .admin-table th {
        font-size: 12px;
        padding: 12px 14px;
    }
    
    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3) {
        display: none;
    }
    
    .admin-actions {
        gap: 4px;
    }
    
    .admin-action-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .admin-status {
        font-size: 10px;
        padding: 3px 8px;
    }
}

@media (max-width: 640px) {
    .admin-page-container {
        padding: 0.75rem;
    }
    
    .admin-page-header h1 {
        font-size: 1.25rem;
    }
    
    .admin-filters {
        margin-bottom: 1rem;
    }
    
    .admin-filters input {
        font-size: 0.85rem;
        padding: 0.625rem;
    }
    
    .add-admin-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .admin-table-container {
        border-radius: 8px;
    }
    
    .admin-table {
        min-width: 550px;
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 12px;
        white-space: nowrap;
    }
    
    .admin-table th {
        font-size: 11px;
        padding: 10px 12px;
    }
    
    .admin-table th:nth-child(2),
    .admin-table td:nth-child(2) {
        display: none;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 3px;
    }
    
    .admin-action-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .admin-status {
        font-size: 9px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .admin-page-container {
        padding: 0.5rem;
    }
    
    .admin-page-header h1 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .admin-filters input {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .add-admin-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .admin-table-container {
        border-radius: 12px;
    }
    
    .admin-table {
        min-width: 500px;
        font-size: 11px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 6px 10px;
        white-space: nowrap;
    }
    
    .admin-table th {
        font-size: 10px;
        padding: 8px 10px;
    }
    
    .admin-table th:nth-child(4),
    .admin-table td:nth-child(4) {
        display: none;
    }
    
    .admin-actions {
        gap: 2px;
    }
    
    .admin-action-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .admin-status {
        font-size: 8px;
        padding: 2px 4px;
    }
}

@media (max-width: 360px) {
    .admin-page-container {
        padding: 0.25rem;
    }
    
    .admin-page-header h1 {
        font-size: 1rem;
    }
    
    .admin-filters input {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    
    .add-admin-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .admin-table-container {
        border-radius: 12px;
    }
    
    .admin-table {
        min-width: 450px;
        font-size: 10px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 4px 8px;
        white-space: nowrap;
    }
    
    .admin-table th {
        font-size: 9px;
        padding: 6px 8px;
    }
    
    .admin-actions {
        gap: 1px;
    }
    
    .admin-action-btn {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
    
    .admin-status {
        font-size: 7px;
        padding: 1px 3px;
    }
}

/* Ocultar cards en desktop por defecto */
.mobile-cards {
    display: none;
}

/* Tablets */
@media (max-width: 1024px) {
    .admin-table-container {
        margin-bottom: 165px;
        padding-bottom: 0;
    }
    
    .admin-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 24px;
        padding: 24px;
        transition: all 0.3s ease;
        border: 1px solid #e9ecef;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
        min-height: 200px;
    }
    
    .admin-card:last-child {
        margin-bottom: 0;
    }
    
    .admin-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        border-color: #007bff;
    }
    
    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 2px solid #e9ecef;
    }
    
    .admin-avatar {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .avatar-image {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .avatar-placeholder {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #e9ecef;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6c757d;
        font-size: 20px;
    }
    
    .card-content {
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    .card-field {
        display: flex;
        flex-direction: column;
        margin-bottom: 16px;
        padding: 12px 16px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .card-field:last-child {
        margin-bottom: 0;
    }
    
    .card-field label {
        font-weight: 700;
        color: #495057;
        font-size: 16px;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .card-field span {
        color: #212529;
        font-size: 16px;
        word-wrap: break-word;
        line-height: 1.5;
        font-weight: 500;
    }
    
    .card-actions {
        display: flex;
        justify-content: center;
        gap: 16px;
        padding-top: 16px;
        border-top: 2px solid #e9ecef;
        margin-top: auto;
    }
    
    .card-actions .admin-action-btn {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .card-actions .admin-action-btn.edit {
        background-color: #ffc107;
        color: white;
    }
    
    .card-actions .admin-action-btn.edit:hover {
        background-color: #e0a800;
        transform: scale(1.05);
    }
    
    .card-actions .admin-action-btn.delete {
        background-color: #dc3545;
        color: white;
    }
    
    .card-actions .admin-action-btn.delete:hover {
        background-color: #c82333;
        transform: scale(1.05);
    }
    
    /* Paginación con valores específicos */
    .pagination-container.ejecutivos-pagination {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        margin: 400px auto 20px auto !important;
        align-items: center;
        justify-content: center;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border: 1px solid #e9ecef;
        width: 100%;
        max-width: 750px;
        box-sizing: border-box;
    }
    
    .pagination-container.ejecutivos-pagination .pagination-info {
        text-align: center;
        width: 100%;
    }
    
    .pagination-container.ejecutivos-pagination .pagination-controls {
        justify-content: center;
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
        padding-bottom: 30px;
    }
    
    .admin-table-container {
        border-radius: 10px;
        margin-bottom: 165px;
        padding-bottom: 0;
    }
    
    /* `desktop-table` / `mobile-cards` are controlled by the view toggle. */
    
    .admin-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
        padding: 16px;
        transition: all 0.3s ease;
        border: 1px solid #e9ecef;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    .admin-card:last-child {
        margin-bottom: 0;
    }
    
    .admin-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        border-color: #007bff;
    }
    
    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .admin-avatar {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .avatar-image {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .avatar-placeholder {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #e9ecef;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6c757d;
        font-size: 16px;
    }
    
    .card-content {
        margin-bottom: 16px;
        display: flex;
        flex-direction: column;
    }
    
    .card-field {
        display: flex;
        flex-direction: column;
        margin-bottom: 12px;
        padding: 8px 0;
    }
    
    .card-field:last-child {
        margin-bottom: 0;
    }
    
    .card-field label {
        font-weight: 600;
        color: #495057;
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .card-field span {
        color: #212529;
        font-size: 14px;
        word-wrap: break-word;
        line-height: 1.4;
    }
    
    .card-actions {
        display: flex;
        justify-content: center;
        gap: 12px;
        padding-top: 12px;
        border-top: 1px solid #e9ecef;
    }
    
    .card-actions .admin-action-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 16px;
    }
    
    .card-actions .admin-action-btn.edit {
        background-color: #ffc107;
        color: white;
    }
    
    .card-actions .admin-action-btn.edit:hover {
        background-color: #e0a800;
        transform: scale(1.05);
    }
    
    .card-actions .admin-action-btn.delete {
        background-color: #dc3545;
        color: white;
    }
    
    .card-actions .admin-action-btn.delete:hover {
        background-color: #c82333;
        transform: scale(1.05);
    }
    
    /* Paginación con valores específicos */
    .pagination-container.ejecutivos-pagination {
        flex-direction: column;
        gap: 15px;
        padding: 20px 15px;
        margin: 430px auto -100px auto !important;
        align-items: center;
        justify-content: center;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border: 1px solid #e9ecef;
        width: 100%;
        max-width: 680px;
        box-sizing: border-box;
    }
    
    .pagination-container.ejecutivos-pagination .pagination-info {
        text-align: center;
        width: 100%;
    }
    
    .pagination-container.ejecutivos-pagination .pagination-controls {
        justify-content: center;
        width: 100%;
    }
}

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

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #333;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-btn.primary {
    background-color: #007bff;
    color: white;
}

.modal-btn.primary:hover {
    background-color: #0056b3;
}

.modal-btn.secondary {
    background-color: #6c757d;
    color: white;
}

.modal-btn.secondary:hover {
    background-color: #545b62;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state p {
    margin-bottom: 16px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-controls {
        flex-direction: column !important;
    }
    
    .admin-filters {
        justify-content: center;
    }
    
    .admin-filters input {
        min-width: 150px;
    }
    
    .admin-table-container {
        overflow-x: auto;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 4px;
    }
}.admin-page-container {
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.admin-page-header {
    margin-bottom: 32px;
}

.admin-page-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.admin-page-header p {
    color: #666;
    font-size: 16px;
}

.admin-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    /* gap: 16px; */
    /* gap: 8px;
    padding: 25px 12px !important; */
}

.admin-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.admin-filters input {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    min-width: 200px;
}

.admin-filters input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.add-admin-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

.add-admin-btn:hover {
    background-color: #218838;
}

.admin-table-container {
    background: transparent;
    border-radius: 12px;
    overflow-x: auto;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    min-width: max-content;
}

.admin-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.admin-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.admin-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    white-space: nowrap;
}

.admin-table-row:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.admin-actions {
    display: flex;
    gap: 8px;
    padding: 25px 12px !important;
}

.admin-action-btn {
    padding: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.admin-action-btn.edit {
    background-color: #007bff;
    color: white;
}

.admin-action-btn.edit:hover {
    background-color: #0056b3;
}

.admin-action-btn.delete {
    background-color: #dc3545;
    color: white;
}

.admin-action-btn.delete:hover {
    background-color: #c82333;
}

.admin-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

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

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

/* Side Panel Form Styles */
.admin-form {
    padding: 0;
}

.admin-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.admin-form .form-group input,
.admin-form .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.admin-form .form-group input:focus,
.admin-form .form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.image-preview {
    margin-top: 0.5rem;
}

.image-preview img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.form-actions button {
    flex: 1;
    min-width: 120px;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-cancel:hover {
    background: #545b62;
}

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-page-container {
        padding: 1.5rem;
    }
    
    .admin-controls {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .admin-filters {
        width: 100%;
    }
    
    .admin-filters input {
        min-width: 100%;
    }
    
    .admin-table-container {
        overflow-x: auto;
        border-radius: 12px;
    }
    
    .admin-table {
        min-width: 700px;
        font-size: 14px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 12px 16px;
        white-space: nowrap;
    }
    
    .admin-table th {
        background-color: #f1f3f4;
        font-size: 13px;
        font-weight: 700;
        color: #1a1a1a;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .admin-actions {
        gap: 8px;
        justify-content: center;
    }
    
    .admin-action-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

/* Tablet medio - Surface Pro 7, iPad Pro */
@media (max-width: 912px) {
    .admin-page-container {
        padding: 1.25rem;
    }
    
    .admin-page-header h1 {
        font-size: 1.6rem;
    }
    
    .admin-controls {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .admin-filters {
        width: 100%;
    }
    
    .admin-filters input {
        min-width: 100%;
    }
    
    .admin-table-container {
        overflow-x: auto;
        border-radius: 12px;
    }
    
    .admin-table {
        min-width: 600px;
        font-size: 13px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 14px;
        white-space: nowrap;
    }
    
    .admin-table th {
        font-size: 12px;
    }
    
    .admin-actions {
        gap: 6px;
        justify-content: center;
    }
    
    .admin-action-btn {
        width: 34px;
        height: 34px;
        font-size: 15px;
        border-radius: 7px;
    }
    
    .form-actions button {
        flex: 1;
        min-width: 120px;
    }
    
    .add-admin-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .admin-page-container {
        padding: 1rem;
    }
    
    .admin-page-header h1 {
        font-size: 1.5rem;
    }
    
    .admin-filters input {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .add-admin-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .admin-table-container {
        overflow-x: auto;
        border-radius: 10px;
    }
    
    .admin-table {
        min-width: 600px;
        font-size: 13px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 14px;
        white-space: nowrap;
    }
    
    .admin-table th {
        font-size: 12px;
        padding: 12px 14px;
    }
    
    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3) {
        display: none;
    }
    
    .admin-actions {
        gap: 4px;
    }
    
    .admin-action-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .admin-status {
        font-size: 10px;
        padding: 3px 8px;
    }
}

@media (max-width: 640px) {
    .admin-page-container {
        padding: 0.75rem;
    }
    
    .admin-page-header h1 {
        font-size: 1.25rem;
    }
    
    .admin-filters {
        margin-bottom: 1rem;
    }
    
    .admin-filters input {
        font-size: 0.85rem;
        padding: 0.625rem;
    }
    
    .add-admin-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .admin-table-container {
        border-radius: 8px;
    }
    
    .admin-table {
        min-width: 550px;
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 12px;
        white-space: nowrap;
    }
    
    .admin-table th {
        font-size: 11px;
        padding: 10px 12px;
    }
    
    .admin-table th:nth-child(2),
    .admin-table td:nth-child(2) {
        display: none;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 3px;
    }
    
    .admin-action-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .admin-status {
        font-size: 9px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .admin-page-container {
        padding: 0.5rem;
    }
    
    .admin-page-header h1 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .admin-filters input {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .add-admin-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .admin-table-container {
        border-radius: 12px;
    }
    
    .admin-table {
        min-width: 500px;
        font-size: 11px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 6px 10px;
        white-space: nowrap;
    }
    
    .admin-table th {
        font-size: 10px;
        padding: 8px 10px;
    }
    
    .admin-table th:nth-child(4),
    .admin-table td:nth-child(4) {
        display: none;
    }
    
    .admin-actions {
        gap: 2px;
    }
    
    .admin-action-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .admin-status {
        font-size: 8px;
        padding: 2px 4px;
    }
}

@media (max-width: 360px) {
    .admin-page-container {
        padding: 0.25rem;
    }
    
    .admin-page-header h1 {
        font-size: 1rem;
    }
    
    .admin-filters input {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    
    .add-admin-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .admin-table-container {
        border-radius: 12px;
    }
    
    .admin-table {
        min-width: 450px;
        font-size: 10px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 4px 8px;
        white-space: nowrap;
    }
    
    .admin-table th {
        font-size: 9px;
        padding: 6px 8px;
    }
    
    .admin-actions {
        gap: 1px;
    }
    
    .admin-action-btn {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
    
    .admin-status {
        font-size: 7px;
        padding: 1px 3px;
    }
}

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

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #333;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-btn.primary {
    background-color: #007bff;
    color: white;
}

.modal-btn.primary:hover {
    background-color: #0056b3;
}

.modal-btn.secondary {
    background-color: #6c757d;
    color: white;
}

.modal-btn.secondary:hover {
    background-color: #545b62;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state p {
    margin-bottom: 16px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-controls {
        flex-direction: column !important;
    }
    
    .admin-filters {
        justify-content: center;
    }
    
    .admin-filters input {
        min-width: 150px;
    }
    
    .admin-table-container {
        overflow-x: auto;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 4px;
    }
} 
.admin-page-container {
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.admin-page-header {
    margin-bottom: 32px;
}

.admin-page-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.admin-page-header p {
    color: #666;
    font-size: 16px;
}

.admin-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    /* gap: 16px; */
    /* gap: 8px;
    padding: 25px 12px !important; */
}

.admin-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.admin-filters input {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    min-width: 200px;
}

.admin-filters input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.add-admin-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

.add-admin-btn:hover {
    background-color: #218838;
}

.admin-table-container {
    background: transparent;
    border-radius: 12px;
    overflow-x: auto;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    min-width: max-content;
}

.admin-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.admin-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.admin-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    white-space: nowrap;
}

.admin-table-row:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.admin-actions {
    display: flex;
    gap: 8px;
    padding: 25px 12px !important;
}

.admin-action-btn {
    padding: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.admin-action-btn.edit {
    background-color: #007bff;
    color: white;
}

.admin-action-btn.edit:hover {
    background-color: #0056b3;
}

.admin-action-btn.delete {
    background-color: #dc3545;
    color: white;
}

.admin-action-btn.delete:hover {
    background-color: #c82333;
}

.admin-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

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

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

/* Side Panel Form Styles */
.admin-form {
    padding: 0;
}

.admin-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.admin-form .form-group input,
.admin-form .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.admin-form .form-group input:focus,
.admin-form .form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.image-preview {
    margin-top: 0.5rem;
}

.image-preview img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.form-actions button {
    flex: 1;
    min-width: 120px;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-cancel:hover {
    background: #545b62;
}

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-page-container {
        padding: 1.5rem;
    }
    
    .admin-controls {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .admin-filters {
        width: 100%;
    }
    
    .admin-filters input {
        min-width: 100%;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .admin-actions {
        gap: 6px;
    }
    
    .admin-action-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .admin-page-container {
        padding: 1rem;
    }
    
    .admin-page-header h1 {
        font-size: 1.5rem;
    }
    
    .admin-filters input {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .add-admin-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .admin-table-container {
        overflow-x: auto;
    }
    
    .admin-table {
        min-width: 600px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 6px;
        font-size: 0.85rem;
    }
    
    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3) {
        display: none;
    }
    
    .admin-actions {
        gap: 4px;
    }
    
    .admin-action-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .admin-status {
        font-size: 10px;
        padding: 3px 8px;
    }
}

@media (max-width: 640px) {
    .admin-page-container {
        padding: 0.75rem;
    }
    
    .admin-page-header h1 {
        font-size: 1.25rem;
    }
    
    .admin-filters {
        margin-bottom: 1rem;
    }
    
    .admin-filters input {
        font-size: 0.85rem;
        padding: 0.625rem;
    }
    
    .add-admin-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .admin-table {
        min-width: 500px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 4px;
        font-size: 0.8rem;
    }
    
    .admin-table th:nth-child(2),
    .admin-table td:nth-child(2) {
        display: none;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 3px;
    }
    
    .admin-action-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .admin-status {
        font-size: 9px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .admin-page-container {
        padding: 0.5rem;
    }
    
    .admin-page-header h1 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .admin-filters input {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .add-admin-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .admin-table {
        min-width: 400px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 6px 3px;
        font-size: 0.75rem;
    }
    
    .admin-table th:nth-child(4),
    .admin-table td:nth-child(4) {
        display: none;
    }
    
    .admin-actions {
        gap: 2px;
    }
    
    .admin-action-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .admin-status {
        font-size: 8px;
        padding: 2px 4px;
    }
}

@media (max-width: 360px) {
    .admin-page-container {
        padding: 0.25rem;
    }
    
    .admin-page-header h1 {
        font-size: 1rem;
    }
    
    .admin-filters input {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    
    .add-admin-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .admin-table {
        min-width: 350px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 4px 2px;
        font-size: 0.7rem;
    }
    
    .admin-actions {
        gap: 1px;
    }
    
    .admin-action-btn {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
    
    .admin-status {
        font-size: 7px;
        padding: 1px 3px;
    }
}

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

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #333;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-btn.primary {
    background-color: #007bff;
    color: white;
}

.modal-btn.primary:hover {
    background-color: #0056b3;
}

.modal-btn.secondary {
    background-color: #6c757d;
    color: white;
}

.modal-btn.secondary:hover {
    background-color: #545b62;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state p {
    margin-bottom: 16px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-controls {
        flex-direction: column !important;
    }
    
    .admin-filters {
        justify-content: center;
    }
    
    .admin-filters input {
        min-width: 150px;
    }
    
    .admin-table-container {
        overflow-x: auto;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 4px;
    }
} 
/* Ocultar cards en desktop por defecto */
.mobile-cards {
    display: none;
}

/* Tablets */
@media (max-width: 1024px) {
    .admin-table-container {
        margin-bottom: 165px;
        padding-bottom: 0;
    }
    
    .admin-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 24px;
        padding: 24px;
        transition: all 0.3s ease;
        border: 1px solid #e9ecef;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
        min-height: 200px;
    }
    
    .admin-card:last-child {
        margin-bottom: 0;
    }
    
    .admin-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        border-color: #007bff;
    }
    
    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 2px solid #e9ecef;
    }
    
    .admin-avatar {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .avatar-image {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .avatar-placeholder {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #e9ecef;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6c757d;
        font-size: 20px;
    }
    
    .admin-status {
        padding: 10px 18px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 25px;
    }
    
    .admin-status.active {
        background-color: #d4edda;
        color: #155724;
    }
    
    .admin-status.inactive {
        background-color: #f8d7da;
        color: #721c24;
    }
    
    .card-content {
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    .card-field {
        display: flex;
        flex-direction: column;
        margin-bottom: 16px;
        padding: 12px 16px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .card-field:last-child {
        margin-bottom: 0;
    }
    
    .card-field label {
        font-weight: 700;
        color: #495057;
        font-size: 16px;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .card-field span {
        color: #212529;
        font-size: 16px;
        word-wrap: break-word;
        line-height: 1.5;
        font-weight: 500;
    }
    
    .card-actions {
        display: flex;
        justify-content: center;
        gap: 16px;
        padding-top: 16px;
        border-top: 2px solid #e9ecef;
        margin-top: auto;
    }
    
    .card-actions .admin-action-btn {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .card-actions .admin-action-btn.edit {
        background-color: #ffc107;
        color: white;
    }
    
    .card-actions .admin-action-btn.edit:hover {
        background-color: #e0a800;
        transform: scale(1.05);
    }
    
    .card-actions .admin-action-btn.delete {
        background-color: #dc3545;
        color: white;
    }
    
    .card-actions .admin-action-btn.delete:hover {
        background-color: #c82333;
        transform: scale(1.05);
    }
    
    /* Paginación con valores específicos */
    .pagination-container.usuarios-proveedores-pagination {
        flex-direction: column;
        gap: 10px;
        padding: 12px 0;
        margin: 16px 0 16px auto !important;
        align-items: flex-end;
        justify-content: flex-end;
        background: transparent;
        border: none;
        box-shadow: none;
        width: auto;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .pagination-container.usuarios-proveedores-pagination .pagination-info {
        text-align: right;
        width: 100%;
    }
    
    .pagination-container.usuarios-proveedores-pagination .pagination-controls {
        justify-content: flex-end;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        flex-wrap: wrap;
    }
    
    .pagination-container.usuarios-proveedores-pagination .pagination-pages {
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .admin-page-container {
        padding: 1rem;
    }
    
    .admin-page-header h1 {
        font-size: 1.5rem;
    }
    
    .admin-controls {
        flex-direction: column !important;
        gap: 12px;
    }
    
    .admin-filters {
        justify-content: center;
        width: 100%;
    }
    
    .admin-filters input {
        min-width: 150px;
        width: 100%;
    }
    
    .admin-table-container {
        margin-bottom: 165px;
        padding-bottom: 0;
        overflow-x: auto;
    }
    
    /* Ocultar tabla en móvil */
/* `desktop-table` / `mobile-cards` are controlled by the view toggle. */
    
    .admin-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
        padding: 16px;
        transition: all 0.3s ease;
        border: 1px solid #e9ecef;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    .admin-card:last-child {
        margin-bottom: 0;
    }
    
    .admin-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        border-color: #007bff;
    }
    
    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .admin-avatar {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .avatar-image {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .avatar-placeholder {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #e9ecef;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6c757d;
        font-size: 16px;
    }
    
    .card-content {
        margin-bottom: 16px;
        display: flex;
        flex-direction: column;
    }
    
    .card-field {
        display: flex;
        flex-direction: column;
        margin-bottom: 12px;
        padding: 8px 0;
    }
    
    .card-field:last-child {
        margin-bottom: 0;
    }
    
    .card-field label {
        font-weight: 600;
        color: #495057;
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .card-field span {
        color: #212529;
        font-size: 14px;
        word-wrap: break-word;
        line-height: 1.4;
    }
    
    .card-actions {
        display: flex;
        justify-content: center;
        gap: 12px;
        padding-top: 12px;
        border-top: 1px solid #e9ecef;
    }
    
    .card-actions .admin-action-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 16px;
    }
    
    .card-actions .admin-action-btn.edit {
        background-color: #ffc107;
        color: white;
    }
    
    .card-actions .admin-action-btn.edit:hover {
        background-color: #e0a800;
        transform: scale(1.05);
    }
    
    .card-actions .admin-action-btn.delete {
        background-color: #dc3545;
        color: white;
    }
    
    .card-actions .admin-action-btn.delete:hover {
        background-color: #c82333;
        transform: scale(1.05);
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    /* Paginación con valores específicos */
    .pagination-container.usuarios-proveedores-pagination {
        flex-direction: column;
        gap: 10px;
        padding: 12px 0;
        margin: 16px 0 16px auto !important;
        align-items: flex-end;
        justify-content: flex-end;
        background: transparent;
        border: none;
        box-shadow: none;
        width: auto;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .pagination-container.usuarios-proveedores-pagination .pagination-info {
        text-align: right;
        width: 100%;
    }
    
    .pagination-container.usuarios-proveedores-pagination .pagination-controls {
        justify-content: flex-end;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        flex-wrap: wrap;
    }
    
    .pagination-container.usuarios-proveedores-pagination .pagination-pages {
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: 100%;
        overflow-x: hidden;
    }
}
.footer-activa {
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--activa-verde) 0%,
    var(--activa-azul) 100%
  );
  color: #fff;
  font-family: "Ubuntu", sans-serif;
  padding: 28px 0 18px 0;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sección principal del footer */
.footer-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  margin-bottom: 22px;
  align-items: center;
}

/* Grid para el contenido del footer (Contacto + Redes, sin Enlaces rápidos) */
.footer-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Logo a la izquierda del texto, misma fila */
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  max-width: 340px;
}

.footer-section {
  min-width: 0; /* Permite que el contenido se ajuste */
}

.footer-section h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-social {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 48px;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 0.5px;
}

.footer-brand-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 400;
}

.footer-slogan {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  margin: 0;
}

/* Secciones del footer */
.footer-section h4 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-section ul li a:hover {
  color: #fff;
  transform: translateX(5px);
}

.footer-section ul li a::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

.footer-section ul li a:hover::before {
  width: 100%;
}

/* Información de contacto (horizontal) */
.footer-contact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.contact-item i {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  min-width: 20px;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Redes sociales */
.footer-social {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Mejoras adicionales para el nuevo layout */
.footer-content-grid .footer-section:last-child {
  display: flex;
  flex-direction: column;
}

/* Línea divisoria */
.footer-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  margin: 18px 0;
}

/* Footer inferior */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-bottom-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-dev {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-align: right;
}

.footer-dev a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-dev a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-tecnotics-logo {
  height: 20px;
  width: auto;
  vertical-align: middle;
  margin-left: 5px;
  transition: opacity 0.3s ease;
  filter: inverte(1) grayscale(1);
}

.footer-tecnotics-logo:hover {
  opacity: 0.8;
}

/* Responsive Design */

/* Tablets grandes (1024px - 1200px) */
@media (max-width: 1200px) {
  .footer-container {
    padding: 0 30px;
  }

  .footer-main {
    gap: 35px;
  }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
  .footer-activa {
    padding: 50px 0 25px 0;
  }

  .footer-container {
    padding: 0 25px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-content-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .footer-brand {
    text-align: center;
    align-items: center;
    max-width: none;
  }

  .footer-logo {
    align-self: center;
    height: 55px;
  }

  .footer-brand-name {
    font-size: 1.6rem;
  }

  .footer-brand-description {
    font-size: 1rem;
  }

  .footer-section h4 {
    font-size: 1.1rem;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Tablets pequeñas y móviles grandes (481px - 768px) */
@media (max-width: 768px) {
  .footer-activa {
    padding: 40px 0 20px 0;
    margin-top: 40px;
  }

  .footer-container {
    padding: 0 20px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-content-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-brand {
    margin-bottom: 0;
    max-width: none;
  }

  .footer-logo {
    height: 50px;
  }

  .footer-brand-name {
    font-size: 1.5rem;
  }

  .footer-brand-description {
    font-size: 0.95rem;
  }

  .footer-slogan {
    font-size: 0.9rem;
  }

  .footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .footer-section h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-section ul {
    gap: 10px;
  }

  .footer-section ul li a {
    font-size: 0.95rem;
  }

  .contact-item {
    justify-content: center;
    font-size: 0.95rem;
  }

  .footer-social {
    justify-content: center;
    gap: 12px;
  }

  .footer-social a {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .footer-divider {
    margin: 25px 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 15px;
  }

  .footer-bottom-content p {
    font-size: 0.9rem;
  }

  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .footer-bottom-links a {
    font-size: 0.9rem;
  }

  .footer-dev {
    text-align: center;
    font-size: 0.85rem;
  }

  .footer-tecnotics-logo {
    height: 18px;
  }
}

/* Móviles (320px - 480px) */
@media (max-width: 480px) {
  .footer-activa {
    padding: 35px 0 15px 0;
    margin-top: 30px;
  }

  .footer-container {
    padding: 0 15px;
  }

  .footer-main {
    gap: 25px;
  }

  .footer-logo {
    height: 45px;
  }

  .footer-brand-name {
    font-size: 1.4rem;
  }

  .footer-brand-description {
    font-size: 0.9rem;
  }

  .footer-slogan {
    font-size: 0.85rem;
  }

  .footer-section h4 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .footer-section ul {
    gap: 8px;
  }

  .footer-section ul li a {
    font-size: 0.9rem;
  }

  .contact-item {
    font-size: 0.9rem;
    gap: 10px;
  }

  .contact-item i {
    font-size: 1.1rem;
  }

  .footer-social {
    gap: 10px;
  }

  .footer-social a {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .footer-divider {
    margin: 20px 0;
  }

  .footer-bottom {
    gap: 15px;
  }

  .footer-bottom-content {
    gap: 12px;
  }

  .footer-bottom-content p {
    font-size: 0.85rem;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 10px;
  }

  .footer-bottom-links a {
    font-size: 0.85rem;
  }

  .footer-dev {
    font-size: 0.8rem;
  }

  .footer-tecnotics-logo {
    height: 16px;
  }
}

/* Móviles muy pequeños (hasta 320px) */
@media (max-width: 320px) {
  .footer-container {
    padding: 0 10px;
  }

  .footer-logo {
    height: 40px;
  }

  .footer-brand-name {
    font-size: 1.2rem;
  }

  .footer-brand-description {
    font-size: 0.85rem;
  }

  .footer-social a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .footer-tecnotics-logo {
    height: 14px;
  }
}
.contacto-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding:80px 60px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  margin: 91.5px auto;
  max-width: 1100px;
  min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contacto-container {
    padding: 35px 50px;
    margin: 35px auto;
  }
  
  .contacto-info h2 {
    font-size: 1.8rem;
  }
  
  .contacto-info p {
    font-size: 1.05rem;
  }
  
  .contacto-info b {
    font-size: 1.1rem;
  }
  
  .contacto-info a {
    font-size: 1.1rem;
  }
  
  .logo-activa {
    height: 100px;
  }
  
  .logo-gobernacion {
    height: 65px;
  }
  
  .gobernacion-texto {
    font-size: 1.05rem;
  }
}

/* Tablet medio - Surface Pro 7, iPad Pro */
@media (max-width: 912px) {
  .contacto-container {
    padding: 30px 40px;
    margin: 30px auto;
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  
  .contacto-info {
    order: 1;
  }
  
  .contacto-logos {
    order: 2;
    flex-direction: column;
    gap: 25px;
  }
  
  .contacto-info h2 {
    font-size: 1.7rem;
  }
  
  .contacto-info p {
    font-size: 1rem;
  }
  
  .contacto-info b {
    font-size: 1.05rem;
  }
  
  .contacto-info a {
    font-size: 1.05rem;
  }
  
  .logo-activa {
    height: 90px;
  }
  
  .logo-gobernacion {
    height: 60px;
  }
  
  .gobernacion-texto {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .contacto-container {
    padding: 25px 30px;
    margin: 25px 20px;
    gap: 25px;
  }
  
  .contacto-info h2 {
    font-size: 1.6rem;
  }
  
  .contacto-info p {
    font-size: 0.95rem;
  }
  
  .contacto-info b {
    font-size: 1rem;
  }
  
  .contacto-info a {
    font-size: 1rem;
  }
  
  .contacto-logos {
    gap: 20px;
  }
  
  .logo-activa {
    height: 80px;
  }
  
  .logo-gobernacion {
    height: 55px;
  }
  
  .gobernacion-texto {
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  .contacto-container {
    padding: 20px 25px;
    margin: 20px 15px;
    gap: 20px;
  }
  
  .contacto-info h2 {
    font-size: 1.5rem;
  }
  
  .contacto-info p {
    font-size: 0.9rem;
  }
  
  .contacto-info b {
    font-size: 0.95rem;
  }
  
  .contacto-info a {
    font-size: 0.95rem;
  }
  
  .logo-activa {
    height: 70px;
  }
  
  .logo-gobernacion {
    height: 50px;
  }
  
  .gobernacion-texto {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .contacto-container {
    padding: 15px 20px;
    margin: 15px 10px;
    gap: 15px;
  }
  
  .contacto-info h2 {
    font-size: 1.4rem;
  }
  
  .contacto-info p {
    font-size: 0.85rem;
  }
  
  .contacto-info b {
    font-size: 0.9rem;
  }
  
  .contacto-info a {
    font-size: 0.9rem;
  }
  
  .contacto-logos {
    gap: 15px;
  }
  
  .logo-activa {
    height: 60px;
  }
  
  .logo-gobernacion {
    height: 45px;
  }
  
  .gobernacion-texto {
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  .contacto-container {
    padding: 12px 15px;
    margin: 12px 8px;
    gap: 12px;
  }
  
  .contacto-info h2 {
    font-size: 1.3rem;
  }
  
  .contacto-info p {
    font-size: 0.8rem;
  }
  
  .contacto-info b {
    font-size: 0.85rem;
  }
  
  .contacto-info a {
    font-size: 0.85rem;
  }
  
  .logo-activa {
    height: 55px;
  }
  
  .logo-gobernacion {
    height: 40px;
  }
  
  .gobernacion-texto {
    font-size: 0.8rem;
  }
}

.contacto-info {
  flex: 1;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #444;
}

.contacto-info h2 {
  margin: 0 0 8px 0;
  font-size: 2rem;
  font-weight: 700;
  color: #444;
}

.contacto-info p {
  margin: 2px 0;
  font-size: 1.1rem;
}

.contacto-info b {
  font-size: 1.15rem;
  color: #444;
}

.contacto-info a {
  color: #0033cc;
  font-weight: bold;
  text-decoration: underline;
  font-size: 1.15rem;
}

.contacto-logos {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo-activa {
  height: 110px;
}

.gobernacion {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-gobernacion {
  height: 70px;
  margin-bottom: 8px;
}

.gobernacion-texto {
  text-align: center;
  font-size: 1.1rem;
  color: #222;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.gobernacion-texto span:first-child {
  font-weight: bold;
  border-bottom: 2px solid #1a5e2e;
  padding-bottom: 2px;
  margin-bottom: 2px;
  display: inline-block;
}

/* Modo oscuro para la página de contacto */
[data-theme="dark"] .contacto-container {
  background: #2d3748;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid #4a5568;
}

[data-theme="dark"] .contacto-info {
  color: #e2e8f0;
}

[data-theme="dark"] .contacto-info h2 {
  color: white;
}

[data-theme="dark"] .contacto-info p {
  color: #a0aec0;
}

[data-theme="dark"] .contacto-info b {
  color: #e2e8f0;
}

[data-theme="dark"] .contacto-info a {
  color: #90cdf4;
}

[data-theme="dark"] .contacto-info a:hover {
  color: #63b3ed;
}

[data-theme="dark"] .gobernacion-texto {
  color: #e2e8f0;
}

[data-theme="dark"] .gobernacion-texto span:first-child {
  border-bottom-color: var(--activa-verde);
} .registro-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fondo-general);
}

.registro-form {
  background: #fff;
  padding: 40px 32px 32px 32px;
  border-radius: 20px;
  box-shadow: 0 20px 40px var(--activa-verde-transparente);
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.registro-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--activa-verde) 0%, var(--activa-azul) 100%);
}

.registro-form h2 {
  color: var(--activa-verde);
  margin-bottom: 10px;
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
}

.registro-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--texto-principal);
  font-weight: 500;
  font-size: 1rem;
}

.registro-form input,
.registro-form select {
  padding: 14px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 1rem;
  background: #f8f9fa;
  transition: all 0.3s;
  margin-top: 2px;
}

.registro-form input:focus,
.registro-form select:focus {
  outline: none;
  border-color: var(--activa-verde);
  background: #fff;
  box-shadow: 0 0 0 3px var(--activa-verde-transparente);
}

.registro-form button {
  width: 100%;
  padding: 15px;
  background: var(--activa-verde);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s;
}

.registro-form button:hover:not(:disabled) {
  background: var(--activa-azul);
  box-shadow: 0 10px 20px var(--activa-verde-transparente);
  transform: translateY(-2px);
}

.registro-form button:disabled {
  background: var(--activa-verde-transparente);
  cursor: not-allowed;
}

.registro-success {
  background: var(--activa-verde-claro);
}

/* Modo oscuro para la página de registro */
[data-theme="dark"] .registro-main {
  background: var(--fondo-general);
}

[data-theme="dark"] .registro-form {
  background: #2d3748;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .registro-form h2 {
  color: var(--activa-verde);
}

[data-theme="dark"] .registro-form label {
  color: #e2e8f0;
}

[data-theme="dark"] .registro-form input,
[data-theme="dark"] .registro-form select {
  background: #4a5568;
  border-color: #718096;
  color: #e2e8f0;
}

[data-theme="dark"] .registro-form input:focus,
[data-theme="dark"] .registro-form select:focus {
  border-color: var(--activa-verde);
  background: #374151;
  box-shadow: 0 0 0 3px var(--activa-verde-transparente);
}

[data-theme="dark"] .registro-form input::placeholder,
[data-theme="dark"] .registro-form select::placeholder {
  color: #a0aec0;
}

[data-theme="dark"] .registro-form button {
  background: var(--activa-verde);
  color: white;
}

[data-theme="dark"] .registro-form button:hover:not(:disabled) {
  background: var(--activa-azul);
  box-shadow: 0 10px 20px rgba(0, 175, 79, 0.3);
}

[data-theme="dark"] .registro-form button:disabled {
  background: #4a5568;
  color: #a0aec0;
}

[data-theme="dark"] .registro-gracias {
  background: #2d3748;
  color: #e2e8f0;
  border: 1px solid #4a5568;
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 420px;
  width: 100%;
}

[data-theme="dark"] .registro-gracias h2 {
  color: var(--activa-verde);
  margin-bottom: 20px;
  font-size: 1.7rem;
  font-weight: 700;
}

[data-theme="dark"] .registro-gracias p {
  color: #a0aec0;
  margin: 10px 0;
  font-size: 1rem;
  line-height: 1.5;
}
  color: var(--activa-verde);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  margin-top: 10px;
  font-size: 1rem;
}

.registro-gracias {
  background: #fff;
  padding: 40px 32px 32px 32px;
  border-radius: 20px;
  box-shadow: 0 20px 40px var(--activa-verde-transparente);
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  margin: 0 auto;
}

.registro-gracias h2 {
  color: var(--activa-verde);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.registro-gracias p {
  color: var(--texto-principal);
  font-size: 1.08rem;
  margin: 0;
}

@media (max-width: 600px) {
  .registro-form {
    padding: 24px 8px 18px 8px;
    border-radius: 14px;
    max-width: 98vw;
  }
  .registro-form h2 {
    font-size: 1.2rem;
  }
  .registro-gracias {
    padding: 24px 8px 18px 8px;
    border-radius: 14px;
    max-width: 98vw;
  }
  .registro-gracias h2 {
    font-size: 1.2rem;
  }
}
/* Variables CSS */
:root {
    --activa-verde: #22c55e;
    --activa-verde-transparente: rgba(34, 197, 94, 0.1);
}

/* Estilos base para la página de clientes */
.clientes-admin-main {
    max-width: 1000px;
    margin: 40px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 32px var(--activa-verde-transparente);
    padding: 40px 32px 36px 32px;
}

.clientes-admin-main h2 {
    color: var(--activa-verde);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.search-container {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.search-input {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s;
    min-width: 300px;
    max-width: 500px;
    width: 100%;
}

.search-input:focus {
    outline: none;
    border-color: var(--activa-verde);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Form Styles */
.clientes-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.clientes-form > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.clientes-form input {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.clientes-form input:focus {
    outline: none;
    border-color: var(--activa-verde);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.clientes-form input:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.7;
}

.clientes-form button {
    background: var(--activa-verde);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    min-width: 140px;
}

.clientes-form button:hover:not(:disabled) {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.clientes-form button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form Group Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--activa-verde);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ejecutivo Selector Styles */
.ejecutivo-selector {
    position: relative;
    width: 100%;
    margin-top: 8px;
}

.ejecutivo-list {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ejecutivo-list-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.ejecutivo-list-header small {
    color: #6c757d;
    font-weight: 400;
    margin-left: 8px;
}

.ejecutivo-list-content {
    max-height: 150px;
    overflow-y: auto;
}

.ejecutivo-list-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ejecutivo-list-item:hover {
    background: #f8f9fa;
}

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

.ejecutivo-list-item.selected {
    background: #e8f5e8;
    border: 2px solid var(--activa-verde);
    border-radius: 8px;
    margin: 4px 0;
}

.ejecutivo-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ejecutivo-name {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.ejecutivo-email {
    color: #6c757d;
    font-size: 0.8rem;
}

.ejecutivo-item-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.checkbox-checked {
    width: 18px;
    height: 18px;
    background: var(--activa-verde);
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-unchecked {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: white;
}

.selected-ejecutivos {
    margin-top: 16px;
    margin-bottom: 8px;
}

.selected-ejecutivo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border: 1px solid var(--activa-verde);
    border-radius: 20px;
    font-size: 0.9rem;
    color: black;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.remove-ejecutivo {
    background: #f0f9f0;
    color: var(--activa-verde);
    border: 2px solid var(--activa-verde);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    margin-left: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.remove-ejecutivo:hover {
    background: var(--activa-verde);
    color: white;
    transform: scale(1.1);
}

.loading-text {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Table Styles */
/* Salto de línea en textos largos para no dañar el layout */
.data-table-wrapper .clientes-table.data-table td:not(.col-acciones) {
    white-space: normal !important;
}

.clientes-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.clientes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.clientes-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clientes-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f4;
    color: #374151;
    vertical-align: middle;
}

.clientes-table tbody tr:hover {
    background: #f8f9fa;
}

.clientes-table tbody tr:last-child td {
    border-bottom: none;
}

/* Actions Styles */
.clientes-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.edit-btn,
.delete-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 36px;
    height: 36px;
    justify-content: center;
}

.edit-btn {
    background: #ffc107;
    color: white;
}

.edit-btn:hover:not(:disabled) {
    background: #e0a800;
    transform: translateY(-1px);
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover:not(:disabled) {
    background: #c82333;
    transform: translateY(-1px);
}

.edit-btn:disabled,
.delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Side Panel Form Styles */
.admin-form {
    padding: 24px;
}

.admin-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-form .form-group label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.admin-form .form-group input[type="text"],
.admin-form .form-group input[type="email"],
.admin-form .form-group input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.admin-form .form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.image-preview {
    margin-top: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: none !important;
    background: transparent !important;
}

.form-actions button {
    flex: 1;
    min-width: 120px;
}

.btn-cancel,
.btn-primary {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.95rem;
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #545b62;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #0056b3;
}

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

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Loading and Empty States */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

/* ===== CARDS RESPONSIVE ===== */
/* Ocultar cards en desktop por defecto */
.mobile-cards {
    display: none;
}

/* Tablets */
@media (max-width: 1024px) {
    .clientes-table-container {
        margin-bottom: 165px;
        padding-bottom: 0;
    }

    .admin-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 24px;
        padding: 24px;
        transition: all 0.3s ease;
        border: 1px solid #e9ecef;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
        min-height: 200px;
    }

    .admin-card:last-child {
        margin-bottom: 0;
    }

    .admin-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        border-color: #007bff;
    }

    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 2px solid #e9ecef;
    }

    .admin-avatar {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .avatar-image {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
    }

    .avatar-placeholder {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #e9ecef;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6c757d;
        font-size: 20px;
    }

    .card-content {
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .card-field {
        display: flex;
        flex-direction: column;
        margin-bottom: 16px;
        padding: 12px 16px;
        background: #f8f9fa;
        border-radius: 8px;
    }

    .card-field:last-child {
        margin-bottom: 0;
    }

    .card-field label {
        font-weight: 700;
        color: #495057;
        font-size: 16px;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .card-field span {
        color: #212529;
        font-size: 16px;
        word-wrap: break-word;
        line-height: 1.5;
        font-weight: 500;
    }

    .card-actions {
        display: flex;
        justify-content: center;
        gap: 16px;
        padding-top: 16px;
        border-top: 2px solid #e9ecef;
        margin-top: auto;
    }

    .card-actions .admin-action-btn {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .card-actions .admin-action-btn.edit {
        background-color: #ffc107;
        color: white;
    }

    .card-actions .admin-action-btn.edit:hover {
        background-color: #e0a800;
        transform: scale(1.05);
    }

    .card-actions .admin-action-btn.delete {
        background-color: #dc3545;
        color: white;
    }

    .card-actions .admin-action-btn.delete:hover {
        background-color: #c82333;
        transform: scale(1.05);
    }

    /* Paginación con valores específicos */
    .pagination-container.clientes-pagination {
        flex-direction: column;
        gap: 10px;
        padding: 12px 0;
        margin: 16px 0 16px auto !important;
        align-items: flex-end;
        justify-content: flex-end;
        background: transparent;
        border: none;
        box-shadow: none;
        width: auto;
        box-sizing: border-box;
    }

    .pagination-container.clientes-pagination .pagination-info {
        text-align: right;
    }

    .pagination-container.clientes-pagination .pagination-controls {
        justify-content: flex-end;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .clientes-admin-main {
        padding: 20px 16px;
        margin: 20px auto;
    }

    .clientes-form {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .clientes-form > div {
        width: 100%;
    }

    .clientes-form button {
        width: 100%;
        min-width: auto;
    }

    .clientes-table-container {
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
        margin-bottom: 165px;
        padding-bottom: 0;
    }

    /* `desktop-table` / `mobile-cards` are controlled by the view toggle. */

    .admin-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
        padding: 16px;
        transition: all 0.3s ease;
        border: 1px solid #e9ecef;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }

    .admin-card:last-child {
        margin-bottom: 0;
    }

    .admin-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        border-color: #007bff;
    }

    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e9ecef;
    }

    .admin-avatar {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .avatar-image {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }

    .avatar-placeholder {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #e9ecef;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6c757d;
        font-size: 16px;
    }

    .card-content {
        margin-bottom: 16px;
        display: flex;
        flex-direction: column;
    }

    .card-field {
        display: flex;
        flex-direction: column;
        margin-bottom: 12px;
        padding: 8px 0;
    }

    .card-field:last-child {
        margin-bottom: 0;
    }

    .card-field label {
        font-weight: 600;
        color: #495057;
        font-size: 14px;
        margin-bottom: 4px;
    }

    .card-field span {
        color: #212529;
        font-size: 14px;
        word-wrap: break-word;
        line-height: 1.4;
    }

    .card-actions {
        display: flex;
        justify-content: center;
        gap: 12px;
        padding-top: 12px;
        border-top: 1px solid #e9ecef;
    }

    .card-actions .admin-action-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 16px;
    }

    .card-actions .admin-action-btn.edit {
        background-color: #ffc107;
        color: white;
    }

    .card-actions .admin-action-btn.edit:hover {
        background-color: #e0a800;
        transform: scale(1.05);
    }

    .card-actions .admin-action-btn.delete {
        background-color: #dc3545;
        color: white;
    }

    .card-actions .admin-action-btn.delete:hover {
        background-color: #c82333;
        transform: scale(1.05);
    }

    /* Paginación con valores específicos */
    .pagination-container.clientes-pagination {
        flex-direction: column;
        gap: 15px;
        padding: 20px 15px;
        margin: 445px auto -100px auto !important;
        align-items: center;
        justify-content: center;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border: 1px solid #e9ecef;
        width: 100%;
        max-width: 680px;
        box-sizing: border-box;
    }

    .pagination-container.clientes-pagination .pagination-info {
        text-align: center;
        width: 100%;
    }

    .pagination-container.clientes-pagination .pagination-controls {
        justify-content: center;
        width: 100%;
    }
}

/* Estilos base para la paginación (solo clientes) */
.pagination-container.clientes-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px auto;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    width: 100%;
    max-width: 750px;
    box-sizing: border-box;
}

.pagination-container.clientes-pagination button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-container.clientes-pagination button:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: var(--activa-verde);
    color: var(--activa-verde);
}

.pagination-container.clientes-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.pagination-container.clientes-pagination button.active {
    background: var(--activa-verde);
    color: white;
    border-color: var(--activa-verde);
}

.pagination-container.clientes-pagination .pagination-info {
    color: #666;
    font-size: 14px;
    margin: 0 16px;
    font-weight: 500;
}

/* Responsive para paginación de clientes */
@media (max-width: 1024px) {
    .pagination-container.clientes-pagination {
        padding: 12px;
        gap: 6px;
        margin: 16px 0;
    }

    .pagination-container.clientes-pagination button {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .pagination-container.clientes-pagination .pagination-info {
        font-size: 13px;
        margin: 0 12px;
    }
}

@media (max-width: 768px) {
    .pagination-container.clientes-pagination {
        flex-direction: column;
        gap: 12px;
        padding: 16px 12px;
        margin: 20px 0;
    }

    .pagination-container.clientes-pagination button {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .pagination-container.clientes-pagination .pagination-info {
        order: 2;
        margin: 0;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .pagination-container.clientes-pagination {
        padding: 12px 8px;
        gap: 8px;
        margin: 16px 0;
    }

    .pagination-container.clientes-pagination button {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 6px 8px;
    }

    .pagination-container.clientes-pagination .pagination-info {
        font-size: 12px;
        font-weight: 600;
    }
}

@media (max-width: 360px) {
    .pagination-container.clientes-pagination {
        padding: 10px 6px;
        gap: 6px;
        margin: 12px 0;
    }

    .pagination-container.clientes-pagination button {
        min-width: 30px;
        height: 30px;
        font-size: 11px;
        padding: 4px 6px;
    }

    .pagination-container.clientes-pagination .pagination-info {
        font-size: 11px;
    }
}

/* Modo oscuro para la página de clientes */
[data-theme="dark"] .clientes-admin-main {
    background: #2d3748;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .clientes-admin-main h2 {
    color: white;
}

[data-theme="dark"] .search-input {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .search-input:focus {
    border-color: var(--activa-verde);
    background: #4a5568;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

[data-theme="dark"] .search-input::placeholder {
    color: #a0aec0;
}

[data-theme="dark"] .clientes-form {
    background: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .clientes-form input {
    background: #2d3748;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .clientes-form input:focus {
    border-color: var(--activa-verde);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

[data-theme="dark"] .clientes-form input:disabled {
    background: #4a5568;
    color: #a0aec0;
}

[data-theme="dark"] .form-group label {
    color: #e2e8f0;
}

[data-theme="dark"] .ejecutivo-list {
    background: #2d3748;
    border-color: #718096;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .ejecutivo-list-header {
    background: #4a5568;
    border-bottom-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .ejecutivo-list-header small {
    color: #a0aec0;
}

[data-theme="dark"] .ejecutivo-list-item {
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .ejecutivo-list-item:hover {
    background: #4a5568;
}

[data-theme="dark"] .ejecutivo-list-item.selected {
    background: #22543d;
    border-color: var(--activa-verde);
}

[data-theme="dark"] .ejecutivo-name {
    color: #e2e8f0;
}

[data-theme="dark"] .ejecutivo-email {
    color: #a0aec0;
}

[data-theme="dark"] .checkbox-unchecked {
    border-color: #718096;
    background: #2d3748;
}

[data-theme="dark"] .selected-ejecutivo {
    background: #4a5568;
    border-color: var(--activa-verde);
    color: #e2e8f0;
}

[data-theme="dark"] .remove-ejecutivo {
    background: #22543d;
    color: var(--activa-verde);
    border-color: var(--activa-verde);
}

[data-theme="dark"] .remove-ejecutivo:hover {
    background: var(--activa-verde);
    color: white;
}

[data-theme="dark"] .loading-text {
    color: #a0aec0;
}

[data-theme="dark"] .clientes-table-container {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .clientes-table th {
    background: #4a5568;
    color: #e2e8f0;
    border-bottom-color: #718096;
}

[data-theme="dark"] .clientes-table td {
    color: #e2e8f0;
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .clientes-table tbody tr:hover {
    background: #4a5568;
}

[data-theme="dark"] .edit-btn {
    background: #ffc107;
    color: #2d3748;
}

[data-theme="dark"] .edit-btn:hover:not(:disabled) {
    background: #e0a800;
}

[data-theme="dark"] .delete-btn {
    background: #dc3545;
    color: white;
}

[data-theme="dark"] .delete-btn:hover:not(:disabled) {
    background: #c82333;
}

[data-theme="dark"] .admin-form .form-group label {
    color: #e2e8f0;
}

[data-theme="dark"] .admin-form .form-group input[type="text"],
[data-theme="dark"] .admin-form .form-group input[type="email"],
[data-theme="dark"] .admin-form .form-group input[type="file"] {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .admin-form .form-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

[data-theme="dark"] .form-actions {
    border-top-color: #4a5568;
}

[data-theme="dark"] .btn-cancel {
    background: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .btn-cancel:hover {
    background: #718096;
}

[data-theme="dark"] .btn-primary {
    background: #007bff;
    color: white;
}

[data-theme="dark"] .btn-primary:hover:not(:disabled) {
    background: #0056b3;
}

[data-theme="dark"] .btn-secondary {
    background: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .btn-secondary:hover {
    background: #718096;
}

[data-theme="dark"] .spinner {
    border-color: #4a5568;
    border-top-color: #007bff;
}

[data-theme="dark"] .empty-state {
    color: #a0aec0;
}

[data-theme="dark"] .empty-state p {
    color: #a0aec0;
}

/* Modo oscuro para las cards móviles */
[data-theme="dark"] .admin-card {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .admin-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border-color: #007bff;
}

[data-theme="dark"] .card-header {
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .avatar-placeholder {
    background-color: #4a5568;
    color: #a0aec0;
}

[data-theme="dark"] .card-field {
    background: #4a5568;
}

[data-theme="dark"] .card-field label {
    color: #e2e8f0;
}

[data-theme="dark"] .card-field span {
    color: #e2e8f0;
}

[data-theme="dark"] .card-actions {
    border-top-color: #4a5568;
}

[data-theme="dark"] .card-actions .admin-action-btn.edit {
    background-color: #ffc107;
    color: #2d3748;
}

[data-theme="dark"] .card-actions .admin-action-btn.edit:hover {
    background-color: #e0a800;
}

[data-theme="dark"] .card-actions .admin-action-btn.delete {
    background-color: #dc3545;
    color: white;
}

[data-theme="dark"] .card-actions .admin-action-btn.delete:hover {
    background-color: #c82333;
}

/* Modo oscuro para la paginación */
[data-theme="dark"] .pagination-container.clientes-pagination {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .pagination-container.clientes-pagination button {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .pagination-container.clientes-pagination button:hover:not(:disabled) {
    background: var(--activa-verde);
    border-color: var(--activa-verde);
    color: white;
}

[data-theme="dark"] .pagination-container.clientes-pagination button:disabled {
    background: #2d3748;
    color: #718096;
}

[data-theme="dark"] .pagination-container.clientes-pagination button.active {
    background: var(--activa-verde);
    color: white;
    border-color: var(--activa-verde);
}

[data-theme="dark"] .pagination-container.clientes-pagination .pagination-info {
    color: #a0aec0;
}

[data-theme="dark"] .pagination-container.clientes-pagination {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .clientes-table-container.table-pagination-anchor {
        margin-bottom: 24px !important;
        padding-bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    .clientes-table-container.table-pagination-anchor .data-table-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    .clientes-table-container.table-pagination-anchor .mobile-cards,
    .clientes-table-container.table-pagination-anchor .mobile-cards--visible {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 12px !important;
        box-sizing: border-box;
    }

    .clientes-table-container.table-pagination-anchor .table-pagination-top,
    .clientes-table-container.table-pagination-anchor .table-pagination-bottom {
        margin: 12px 0 !important;
        padding: 0 !important;
    }

    .pagination-container.clientes-pagination {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}
/* Reutiliza el mismo contenedor que el resto de pantallas admin */
.secretarias-admin-main {
    max-width: 1000px;
    margin: 40px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(34, 197, 94, 0.1);
    padding: 40px 32px 36px 32px;
}

.secretarias-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.secretarias-form .form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.secretarias-form .form-row > div {
    flex: 1 1 260px;
    min-width: 0;
}

.secretarias-form input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.secretarias-form input[type="text"]:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.secretarias-form .form-buttons {
    display: flex;
    justify-content: flex-end;
}

/* Badge de estado activo / inactivo */
.secretaria-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.secretaria-status.active {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.secretaria-status.inactive {
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.secretaria-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Toggle dentro del side panel de edición */
.secretaria-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.secretaria-toggle-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.secretaria-toggle-row label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

.secretaria-toggle-row small {
    color: #64748b;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .secretarias-admin-main {
        margin: 16px;
        padding: 24px 16px;
    }
}
/* ========== Layout y contenedor ========== */
.informe-main {
    padding: 1.5rem 1rem;
    padding-top: 1rem;
    min-height: 60vh;
}

.informe-container {
    padding: 1rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 640px) {
    .informe-container {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .informe-container {
        padding: 24px;
    }
}

/* ========== Jerarquía: header ========== */
.informe-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.informe-header > div {
    flex: 1 1 280px;
    min-width: 0;
}

.informe-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.35rem 0;
    letter-spacing: -0.02em;
}

.informe-header p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

@media (min-width: 640px) {
    .informe-header h1 {
        font-size: 1.75rem;
    }
}

/* ========== Botones: estilo imagen (verde, redondeado, sombra) ========== */
.informe-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #34C759;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.35);
    white-space: nowrap;
}

.informe-download-btn:hover:not(:disabled) {
    background: #2db84e;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.4);
}

.informe-download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.informe-download-btn i {
    font-size: 1.1rem;
}

.informe-btn-secondary {
    background: #64748b;
    box-shadow: 0 2px 6px rgba(100, 116, 139, 0.3);
}

.informe-btn-secondary:hover:not(:disabled) {
    background: #475569;
    box-shadow: 0 4px 10px rgba(100, 116, 139, 0.35);
}

/* Header: botón alineado arriba a la derecha en desktop */
.informe-header .informe-download-btn {
    flex-shrink: 0;
}

@media (max-width: 639px) {
    .informe-header .informe-download-btn {
        width: 100%;
    }
}

/* ========== Filtros ========== */
.informe-filtros {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.informe-filtro-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #374151;
    min-width: 0;
}

.informe-filtro-label span {
    font-weight: 500;
}

.informe-filtro-label select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    min-width: 140px;
    max-width: 100%;
}

@media (min-width: 640px) {
    .informe-filtro-label select {
        min-width: 180px;
    }
}

/* ========== Cards resumen ========== */
.informe-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .informe-cards {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

.informe-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.informe-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.informe-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.informe-total strong {
    font-size: 1.25rem;
    color: #34C759;
}

.informe-breakdown {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.informe-breakdown li {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.informe-breakdown li:last-child {
    border-bottom: none;
}

.informe-card-single .informe-total {
    margin-bottom: 0;
}

.informe-loading-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    width: 100%;
    grid-column: 1 / -1;
}

.informe-loading {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

/* ========== Secciones (Excel cliente, totales, ejecutivo) ========== */
.informe-excel-cliente,
.informe-totales-ejecutivos,
.informe-excel-ejecutivo {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.informe-excel-cliente h2,
.informe-totales-ejecutivos h2,
.informe-excel-ejecutivo h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.35rem 0;
}

.informe-excel-cliente-desc {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 1rem 0;
    line-height: 1.45;
}

.informe-excel-cliente-filtros {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}

.informe-excel-cliente-filtros .informe-filtro-label {
    flex: 1 1 auto;
    min-width: 120px;
}

.informe-excel-cliente-filtros .informe-download-btn {
    flex-shrink: 0;
}

@media (max-width: 639px) {
    .informe-excel-cliente-filtros .informe-download-btn {
        width: 100%;
    }
}

/* ========== Resultados y tablas ========== */
.informe-totales-result,
.informe-ejecutivo-result {
    margin-top: 1.25rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.informe-totales-periodo {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: #64748b;
}

.informe-ejecutivo-resumen {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #334155;
}

.informe-ejecutivo-resumen p {
    margin: 0 0 0.35rem 0;
}

.informe-ejecutivo-clientes {
    font-size: 0.875rem;
    color: #64748b;
}

.informe-ejecutivo-tabla-wrap,
.informe-totales-tabla-wrap {
    overflow-x: auto;
    margin-top: 0.75rem;
    -webkit-overflow-scrolling: touch;
}

.informe-ejecutivo-tabla,
.informe-totales-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.informe-ejecutivo-tabla th,
.informe-ejecutivo-tabla td,
.informe-totales-tabla th,
.informe-totales-tabla td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.informe-ejecutivo-tabla th,
.informe-totales-tabla th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
}

.informe-ejecutivo-tabla tbody tr:hover,
.informe-totales-tabla tbody tr:hover {
    background: #f8fafc;
}

.informe-totales-tabla th,
.informe-totales-tabla td {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}

.informe-ejecutivo-sin-reportes {
    margin: 0.75rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* ========== Tablas como cards en móvil ========== */
@media (max-width: 767px) {
    .informe-ejecutivo-tabla-wrap,
    .informe-totales-tabla-wrap {
        overflow: visible;
    }

    .informe-ejecutivo-tabla thead,
    .informe-totales-tabla thead {
        display: none;
    }

    .informe-ejecutivo-tabla tbody tr,
    .informe-totales-tabla tbody tr {
        display: block;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        margin-bottom: 1rem;
        padding: 1rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }

    .informe-ejecutivo-tabla tbody tr:last-child,
    .informe-totales-tabla tbody tr:last-child {
        margin-bottom: 0;
    }

    .informe-ejecutivo-tabla tbody td,
    .informe-totales-tabla tbody td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f1f5f9;
    }

    .informe-ejecutivo-tabla tbody td:last-child,
    .informe-totales-tabla tbody td:last-child {
        border-bottom: none;
    }

    .informe-ejecutivo-tabla tbody td::before,
    .informe-totales-tabla tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #475569;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .informe-ejecutivo-tabla tbody td,
    .informe-totales-tabla tbody td {
        text-align: right;
    }

    .informe-ejecutivo-tabla tbody tr:hover,
    .informe-totales-tabla tbody tr:hover {
        background: #fff;
    }
}

/* ========== Modo oscuro ========== */
[data-theme="dark"] .informe-main {
    background: var(--fondo-general, #1a1a1a);
}

[data-theme="dark"] .informe-header h1 {
    color: #fff;
}

[data-theme="dark"] .informe-header p {
    color: #a0aec0;
}

[data-theme="dark"] .informe-download-btn {
    background: #34C759;
    color: #fff;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.4);
}

[data-theme="dark"] .informe-download-btn:hover:not(:disabled) {
    background: #2db84e;
}

[data-theme="dark"] .informe-btn-secondary {
    background: #64748b;
}

[data-theme="dark"] .informe-btn-secondary:hover:not(:disabled) {
    background: #475569;
}

[data-theme="dark"] .informe-card {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .informe-card h3 {
    color: #e2e8f0;
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .informe-total {
    color: #e2e8f0;
}

[data-theme="dark"] .informe-total strong {
    color: #5eead4;
}

[data-theme="dark"] .informe-breakdown {
    color: #a0aec0;
}

[data-theme="dark"] .informe-breakdown li {
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .informe-loading {
    color: #a0aec0;
}

[data-theme="dark"] .informe-filtro-label {
    color: #e2e8f0;
}

[data-theme="dark"] .informe-filtro-label select {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .informe-excel-cliente,
[data-theme="dark"] .informe-totales-ejecutivos,
[data-theme="dark"] .informe-excel-ejecutivo {
    border-top-color: #4a5568;
}

[data-theme="dark"] .informe-excel-cliente h2,
[data-theme="dark"] .informe-totales-ejecutivos h2,
[data-theme="dark"] .informe-excel-ejecutivo h2 {
    color: #e2e8f0;
}

[data-theme="dark"] .informe-excel-cliente-desc {
    color: #a0aec0;
}

[data-theme="dark"] .informe-totales-result,
[data-theme="dark"] .informe-ejecutivo-result {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .informe-totales-periodo {
    color: #94a3b8;
}

[data-theme="dark"] .informe-ejecutivo-resumen {
    color: #e2e8f0;
}

[data-theme="dark"] .informe-ejecutivo-clientes {
    color: #94a3b8;
}

[data-theme="dark"] .informe-ejecutivo-tabla th,
[data-theme="dark"] .informe-ejecutivo-tabla td,
[data-theme="dark"] .informe-totales-tabla th,
[data-theme="dark"] .informe-totales-tabla td {
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .informe-ejecutivo-tabla th,
[data-theme="dark"] .informe-totales-tabla th {
    background: #374151;
    color: #e2e8f0;
}

[data-theme="dark"] .informe-ejecutivo-tabla tbody tr:hover,
[data-theme="dark"] .informe-totales-tabla tbody tr:hover {
    background: #374151;
}

[data-theme="dark"] .informe-ejecutivo-sin-reportes {
    color: #94a3b8;
}

/* Cards en móvil modo oscuro */
@media (max-width: 767px) {
    [data-theme="dark"] .informe-ejecutivo-tabla tbody tr,
    [data-theme="dark"] .informe-totales-tabla tbody tr {
        background: #2d3748;
        border-color: #4a5568;
    }

    [data-theme="dark"] .informe-ejecutivo-tabla tbody td,
    [data-theme="dark"] .informe-totales-tabla tbody td {
        border-bottom-color: #4a5568;
    }

    [data-theme="dark"] .informe-ejecutivo-tabla tbody td::before,
    [data-theme="dark"] .informe-totales-tabla tbody td::before {
        color: #94a3b8;
    }
}
.estadisticas-main {
    padding: 1rem 0.75rem;
    padding-top: 1rem;
    min-height: 70vh;
    overflow-x: hidden;
}

.estadisticas-container {
    padding: 0.75rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
}

@media (min-width: 480px) {
    .estadisticas-main {
        padding: 1.25rem 1rem;
    }
    .estadisticas-container {
        padding: 1rem;
    }
}

@media (min-width: 640px) {
    .estadisticas-container {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .estadisticas-container {
        padding: 24px;
    }
}

.estadisticas-header {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.estadisticas-header > div:first-of-type {
    flex: 1 1 100%;
    min-width: 0;
}

.estadisticas-header .estadisticas-filtros {
    flex: 1 1 auto;
    min-width: 0;
}

.estadisticas-header .estadisticas-actions-row {
    flex: 0 0 auto;
    min-width: 0;
}

@media (min-width: 640px) {
    .estadisticas-header > div:first-of-type {
        flex: 1 1 280px;
    }
}

.estadisticas-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.35rem 0;
    letter-spacing: -0.02em;
}

.estadisticas-header p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

@media (min-width: 640px) {
    .estadisticas-header h1 {
        font-size: 1.75rem;
    }
}

.estadisticas-filtro-activo {
    margin-top: 0.5rem !important;
    color: #0d9488 !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.estadisticas-filtros {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem 0.75rem;
    width: 100%;
    max-width: 100%;
}

.estadisticas-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    width: 100%;
}

.estadisticas-actions-row label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #4b5563;
}

.estadisticas-actions-row select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    min-width: 140px;
}

.estadisticas-filtros label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #4b5563;
}

.estadisticas-filtros select,
.estadisticas-filtros input[type="date"] {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    min-width: 100px;
    max-width: 100%;
}

@media (max-width: 479px) {
    .estadisticas-filtros {
        flex-direction: column;
        align-items: stretch;
    }
    .estadisticas-filtros label {
        min-width: 0;
    }
    .estadisticas-filtros select,
    .estadisticas-filtros input[type="date"] {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
}

.estadisticas-btn-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #34C759;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.35);
    white-space: nowrap;
}

.estadisticas-btn-refresh:hover:not(:disabled) {
    background: #2db84e;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.4);
}

.estadisticas-btn-refresh:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 639px) {
    .estadisticas-actions-row {
        margin-top: 0.5rem;
    }

    .estadisticas-actions-row .estadisticas-btn-refresh {
        width: 100%;
    }
}

.estadisticas-loading-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    width: 100%;
}

.estadisticas-loading,
.estadisticas-error {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.estadisticas-error {
    color: #dc2626;
}

.estadisticas-section {
    margin-bottom: 1.75rem;
    min-width: 0;
}

.estadisticas-section-row {
    min-width: 0;
}

@media (min-width: 768px) {
    .estadisticas-section {
        margin-bottom: 2.5rem;
    }
}

.estadisticas-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    word-wrap: break-word;
}

@media (min-width: 640px) {
    .estadisticas-section h2 {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }
}


.estadisticas-kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .estadisticas-kpis {
        gap: 1rem;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (min-width: 640px) {
    .estadisticas-kpis {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

.estadisticas-kpi {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.estadisticas-kpi-label {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.estadisticas-kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #34C759;
}

.estadisticas-kpi-sub {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ========== Carrusel móvil: hint + flechas + scroll horizontal (una card por línea) ========== */
.estadisticas-mobile-hint,
.estadisticas-mobile-scroll-arrows {
    display: none;
}

.estadisticas-mobile-scroll-outer {
    position: relative;
}

.estadisticas-mobile-scroll-inner {
    min-width: 0;
}

@media (max-width: 767px) {
    .estadisticas-mobile-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        margin: 0 0 0.5rem 0;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        color: #64748b;
        background: #f1f5f9;
        border-radius: 8px;
        border: 1px dashed #cbd5e1;
    }

    .estadisticas-mobile-hint i {
        font-size: 1rem;
    }

    .estadisticas-mobile-scroll-arrows {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .estadisticas-mobile-scroll-arrows button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        background: #fff;
        color: #334155;
        font-size: 1.25rem;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }

    .estadisticas-mobile-scroll-arrows button:hover {
        background: #34C759;
        color: #fff;
        border-color: #34C759;
    }

    .estadisticas-mobile-scroll-inner {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    /* KPIs: una card por pantalla */
    .estadisticas-kpis-outer .estadisticas-mobile-scroll-inner {
        padding-bottom: 4px;
    }

    .estadisticas-kpis-outer .estadisticas-kpis {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.75rem;
        grid: none;
        width: max-content;
        padding-right: 1rem;
    }

    .estadisticas-kpis-outer .estadisticas-kpi {
        flex: 0 0 88vw;
        min-width: 88vw;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    /* Charts grid: una card por pantalla */
    .estadisticas-charts-outer .estadisticas-mobile-scroll-inner {
        padding-bottom: 4px;
    }

    .estadisticas-charts-outer .estadisticas-charts-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 1rem;
        grid: none;
        width: max-content;
        padding-right: 1rem;
    }

    .estadisticas-charts-outer .estadisticas-charts-grid > * {
        flex: 0 0 88vw;
        min-width: 88vw;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    /* Tiempos y montos: una card por pantalla */
    .estadisticas-tiempos-outer .estadisticas-mobile-scroll-inner {
        padding-bottom: 4px;
    }

    .estadisticas-tiempos-outer .estadisticas-tiempos-montos-wrap,
    .estadisticas-tiempos-outer .estadisticas-tiempos-montos {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 1rem;
        grid: none;
        width: max-content;
        padding-right: 1rem;
    }

    .estadisticas-tiempos-outer .estadisticas-tiempos-montos .estadisticas-card {
        flex: 0 0 88vw;
        min-width: 88vw;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    /* Tablas grid (por ejecutivo): una card por pantalla */
    .estadisticas-tablas-outer .estadisticas-mobile-scroll-inner {
        padding-bottom: 4px;
    }

    .estadisticas-tablas-outer .estadisticas-tablas-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 1rem;
        grid: none;
        width: max-content;
        padding-right: 1rem;
    }

    .estadisticas-tablas-outer .estadisticas-tablas-grid > * {
        flex: 0 0 88vw;
        min-width: 88vw;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}

@media (max-width: 767px) {
    [data-theme="dark"] .estadisticas-mobile-hint {
        background: #374151;
        color: #94a3b8;
        border-color: #4b5563;
    }

    [data-theme="dark"] .estadisticas-mobile-scroll-arrows button {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    [data-theme="dark"] .estadisticas-mobile-scroll-arrows button:hover {
        background: #34C759;
        color: #fff;
        border-color: #34C759;
    }
}

.estadisticas-charts {
    margin-bottom: 2.5rem;
}

.estadisticas-charts-grid > *,
.estadisticas-tablas-grid > *,
.estadisticas-section-row > div {
    min-width: 0;
}

.estadisticas-charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .estadisticas-charts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 900px) {
    .estadisticas-charts-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
}

.estadisticas-chart-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.estadisticas-chart-wrap h3 {
    font-size: 0.95rem;
    color: #374151;
    margin: 0 0 0.75rem 0;
}

.estadisticas-chart-inner {
    height: 220px;
    min-height: 200px;
    position: relative;
}

@media (min-width: 480px) {
    .estadisticas-chart-inner {
        height: 240px;
    }
}

@media (min-width: 768px) {
    .estadisticas-chart-inner {
        height: 260px;
    }
}

.estadisticas-chart-doughnut .estadisticas-chart-inner {
    height: 280px;
}

.estadisticas-sin-datos {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    color: #9ca3af;
    font-size: 0.9rem;
}

.estadisticas-tiempos-montos-wrap {
    display: block;
    gap: 1.5rem;
}

.estadisticas-tiempos-montos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 560px) {
    .estadisticas-tiempos-montos {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (min-width: 900px) {
    .estadisticas-tiempos-montos {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.estadisticas-chart-tabla-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .estadisticas-chart-tabla-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.estadisticas-chart-horizontal .estadisticas-chart-inner {
    height: 320px;
}

.estadisticas-tabla-inline .estadisticas-tabla-scroll {
    max-height: 320px;
    overflow-y: auto;
}

/* Toggle Tabla / Gráfica */
.estadisticas-view-toggle {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
    gap: 2px;
    margin-bottom: 1rem;
}

.estadisticas-view-toggle button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: #64748b;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.estadisticas-view-toggle button:hover {
    color: #374151;
}

.estadisticas-view-toggle button.active {
    background: #34C759;
    color: #fff;
    box-shadow: 0 1px 4px rgba(52, 199, 89, 0.35);
}

.estadisticas-toggle-block {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-width: 0;
}

@media (min-width: 768px) {
    .estadisticas-toggle-block {
        padding: 1rem;
    }
}

.estadisticas-toggle-block h3 {
    font-size: 0.95rem;
    color: #374151;
    margin: 0 0 0.75rem 0;
}

.estadisticas-toggle-content {
    min-height: 160px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 480px) {
    .estadisticas-toggle-content {
        min-height: 200px;
        max-height: 320px;
    }
}

.estadisticas-toggle-block-full .estadisticas-toggle-content {
    min-height: 200px;
    max-height: 380px;
}

@media (min-width: 480px) {
    .estadisticas-toggle-block-full .estadisticas-toggle-content {
        min-height: 280px;
        max-height: 420px;
    }
}

.estadisticas-toggle-block-full .estadisticas-chart-inner {
    height: 320px;
}

.estadisticas-chart-horizontal-inner {
    height: 260px;
    position: relative;
}

@keyframes estadisticasFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.estadisticas-animate-in {
    animation: estadisticasFadeIn 0.35s ease-out forwards;
}

/* Desktop: mostrar solo tabla o solo gráfica según vista */
.estadisticas-view-table .estadisticas-chart-content {
    display: none;
}

.estadisticas-view-chart .estadisticas-table-content {
    display: none;
}

.estadisticas-toggle-chart-block .estadisticas-chart-inner {
    height: 260px;
    position: relative;
}

.estadisticas-chart-doughnut-wrap .estadisticas-chart-inner {
    height: 280px;
}

.estadisticas-tabla-scroll-tall {
    max-height: 220px;
    overflow-y: auto;
}

@media (min-width: 480px) {
    .estadisticas-tabla-scroll-tall {
        max-height: 260px;
    }
}

.estadisticas-card-toggle .estadisticas-view-toggle {
    margin-bottom: 0.75rem;
}

.estadisticas-card-toggle .estadisticas-toggle-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: #4b5563;
}

.estadisticas-card-toggle .estadisticas-toggle-content li {
    padding: 0.35rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.estadisticas-card-toggle .estadisticas-toggle-content li:last-child {
    border-bottom: none;
}

.estadisticas-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-width: 0;
}

.estadisticas-card-toggle .estadisticas-toggle-content {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.estadisticas-card h3 {
    font-size: 1rem;
    color: #374151;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.estadisticas-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.estadisticas-card li {
    padding: 0.35rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.estadisticas-tablas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .estadisticas-tablas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .estadisticas-tablas-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

.estadisticas-tabla-wrap h3 {
    font-size: 0.95rem;
    color: #374151;
    margin: 0 0 0.5rem 0;
}

.estadisticas-tabla-scroll {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 260px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.estadisticas-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.estadisticas-tabla th,
.estadisticas-tabla td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.estadisticas-tabla th {
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
}

.estadisticas-tabla th,
.estadisticas-tabla td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

@media (min-width: 768px) {
    .estadisticas-tabla th {
        white-space: nowrap;
    }
}

.estadisticas-tabla tbody tr:last-child td {
    border-bottom: none;
}

.estadisticas-tabla tbody tr:hover {
    background: #f9fafb;
}

@media (max-width: 768px) {
    .estadisticas-header {
        flex-direction: column;
        align-items: stretch;
    }

    .estadisticas-header > div:first-of-type,
    .estadisticas-header .estadisticas-filtros,
    .estadisticas-header .estadisticas-actions-row {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .estadisticas-section h2 {
        font-size: 1.05rem;
    }

    .estadisticas-kpi {
        padding: 0.75rem;
    }

    .estadisticas-kpi-value {
        font-size: 1.25rem;
    }

    .estadisticas-toggle-block,
    .estadisticas-card {
        padding: 0.75rem 1rem;
    }

    .estadisticas-view-toggle button {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .estadisticas-chart-horizontal .estadisticas-chart-inner,
    .estadisticas-toggle-block-full .estadisticas-chart-inner {
        height: 240px;
    }

    .estadisticas-chart-horizontal-inner {
        height: 200px;
    }
}

@media (min-width: 380px) and (max-width: 767px) {
    .estadisticas-chart-horizontal-inner {
        height: 220px;
    }
}

/* Tablas como cards en móvil */
@media (max-width: 767px) {
    .estadisticas-toggle-block-full {
        padding: 0.75rem 1rem;
    }

    .estadisticas-tabla-scroll {
        overflow: visible;
        max-height: none;
    }

    .estadisticas-tabla thead {
        display: none;
    }

    .estadisticas-tabla tbody tr {
        display: block;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        margin-bottom: 1rem;
        padding: 1rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }

    .estadisticas-tabla tbody tr:last-child {
        margin-bottom: 0;
    }

    .estadisticas-tabla tbody td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f1f5f9;
        text-align: right;
    }

    .estadisticas-tabla tbody td:last-child {
        border-bottom: none;
    }

    .estadisticas-tabla tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #475569;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .estadisticas-tabla tbody tr:hover {
        background: #fff;
    }

    /* Móvil: solo tablas como cards, sin gráficas ni toggle */
    .estadisticas-chart-content {
        display: none !important;
    }

    .estadisticas-table-content {
        display: block !important;
    }

    .estadisticas-view-toggle {
        display: none !important;
    }
}

/* Dark mode */
[data-theme="dark"] .estadisticas-main {
    background: var(--fondo-general, #1a1a1a);
}

[data-theme="dark"] .estadisticas-header h1 {
    color: #fff;
}

[data-theme="dark"] .estadisticas-header p {
    color: #a0aec0;
}

[data-theme="dark"] .estadisticas-filtro-activo {
    color: #5eead4 !important;
}

[data-theme="dark"] .estadisticas-filtros label {
    color: #a0aec0;
}

[data-theme="dark"] .estadisticas-filtros select,
[data-theme="dark"] .estadisticas-filtros input[type="date"] {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}


[data-theme="dark"] .estadisticas-actions-row label {
    color: #a0aec0;
}

[data-theme="dark"] .estadisticas-actions-row select {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .estadisticas-section h2 {
    color: #e2e8f0;
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .estadisticas-kpi,
[data-theme="dark"] .estadisticas-chart-wrap,
[data-theme="dark"] .estadisticas-card {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .estadisticas-kpi-label {
    color: #a0aec0;
}

[data-theme="dark"] .estadisticas-kpi-value {
    color: #5eead4;
}

[data-theme="dark"] .estadisticas-kpi-sub {
    color: #718096;
}

[data-theme="dark"] .estadisticas-chart-wrap h3,
[data-theme="dark"] .estadisticas-card h3 {
    color: #e2e8f0;
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .estadisticas-card ul,
[data-theme="dark"] .estadisticas-card li {
    color: #a0aec0;
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .estadisticas-tabla-scroll {
    border-color: #4a5568;
    background: #2d3748;
}

[data-theme="dark"] .estadisticas-tabla th {
    background: #374151;
    color: #e2e8f0;
}

[data-theme="dark"] .estadisticas-tabla td {
    color: #e2e8f0;
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .estadisticas-tabla tbody tr:hover {
    background: #374151;
}

[data-theme="dark"] .estadisticas-loading,
[data-theme="dark"] .estadisticas-sin-datos {
    color: #a0aec0;
}

[data-theme="dark"] .estadisticas-tabla-wrap h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .estadisticas-view-toggle {
    background: #374151;
}

[data-theme="dark"] .estadisticas-view-toggle button {
    color: #94a3b8;
}

[data-theme="dark"] .estadisticas-view-toggle button:hover {
    color: #e2e8f0;
}

[data-theme="dark"] .estadisticas-view-toggle button.active {
    background: #34C759;
    color: #fff;
}

[data-theme="dark"] .estadisticas-toggle-block {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .estadisticas-toggle-block h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .estadisticas-btn-refresh {
    background: #34C759;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.4);
}

[data-theme="dark"] .estadisticas-btn-refresh:hover:not(:disabled) {
    background: #2db84e;
}

/* Cards tabla en móvil - modo oscuro */
@media (max-width: 767px) {
    [data-theme="dark"] .estadisticas-tabla tbody tr {
        background: #2d3748;
        border-color: #4a5568;
    }

    [data-theme="dark"] .estadisticas-tabla tbody td {
        border-bottom-color: #4a5568;
    }

    [data-theme="dark"] .estadisticas-tabla tbody td::before {
        color: #94a3b8;
    }
}
.calificaciones-main {
    padding: 1.5rem 1rem;
    padding-top: 1rem;
    min-height: 70vh;
}

.calificaciones-container {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 640px) {
    .calificaciones-container {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .calificaciones-container {
        padding: 24px;
    }
}

.calificaciones-header-actions-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.calificaciones-container .page-header {
    margin-bottom: 1.5rem;
}

.calificaciones-container .page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.35rem 0;
    letter-spacing: -0.02em;
}

.calificaciones-container .page-header p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

@media (min-width: 640px) {
    .calificaciones-container .page-header h1 {
        font-size: 1.75rem;
    }
}

/* Botones: mismo estilo verde que informe/estadísticas */
.calificaciones-btn-refresh,
.calificaciones-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.calificaciones-btn-refresh {
    background: #34C759;
    color: #fff;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.35);
}

.calificaciones-btn-refresh:hover:not(:disabled) {
    background: #2db84e;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.4);
}

.calificaciones-btn-download {
    background: #0d9488;
    color: #fff;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.35);
}

.calificaciones-btn-download:hover:not(:disabled) {
    background: #0f766e;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.4);
}

.calificaciones-btn-refresh:disabled,
.calificaciones-btn-download:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 639px) {
    .calificaciones-header-actions {
        width: 100%;
    }

    .calificaciones-header-actions .calificaciones-btn-download,
    .calificaciones-header-actions .calificaciones-btn-refresh {
        flex: 1;
        min-width: 0;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.calificaciones-search-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
}

.calificaciones-search-wrap .calificaciones-search-icon {
    position: absolute;
    left: 12px;
    color: #64748b;
    font-size: 1.1rem;
    pointer-events: none;
}

.calificaciones-search-input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    color: #1e293b;
}

.calificaciones-search-input:focus {
    outline: none;
    border-color: #34C759;
    box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.15);
}

.calificaciones-search-input::placeholder {
    color: #94a3b8;
}

.calificaciones-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.calificaciones-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem;
    color: #64748b;
}

.calificaciones-spinner {
    font-size: 1.5rem;
    animation: calificaciones-spin 0.8s linear infinite;
}

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

.calificaciones-resumen {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.calificaciones-total,
.calificaciones-promedio {
    font-size: 0.95rem;
    color: #475569;
}

.calificaciones-promedio .calificaciones-stars {
    margin-right: 0.25rem;
}

.calificaciones-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.calificaciones-empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.calificaciones-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.calificaciones-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.calificaciones-table thead {
    background: #f1f5f9;
}

.calificaciones-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #334155;
    border-bottom: 2px solid #e2e8f0;
}

.calificaciones-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.calificaciones-table tbody tr:hover {
    background: #f8fafc;
}

.calificaciones-name {
    font-weight: 500;
    color: #1e293b;
}

.calificaciones-date {
    white-space: nowrap;
}

.calificaciones-op {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.calificaciones-stars {
    display: inline-flex;
    gap: 2px;
    color: #eab308;
}

.calificaciones-stars i {
    font-size: 1.1rem;
}

.calificaciones-message {
    max-width: 320px;
    word-break: break-word;
}

.calificaciones-table-wrap .calificaciones-table td.calificaciones-name,
.calificaciones-table-wrap .calificaciones-table td.calificaciones-message {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Tarjetas: solo en móvil */
.calificaciones-cards {
    display: none;
}

@media (max-width: 768px) {
    .calificaciones-main {
        padding: 1rem 0.75rem;
        padding-top: 1rem;
    }

    .calificaciones-table-wrap {
        display: none;
    }

    .calificaciones-cards {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .calificaciones-card {
        padding: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }

    .calificaciones-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .calificaciones-card-name {
        font-weight: 600;
        color: #1e293b;
    }

    .calificaciones-card-date {
        font-size: 0.85rem;
        color: #64748b;
        white-space: nowrap;
    }

    .calificaciones-card-op {
        font-size: 0.9rem;
        color: #475569;
        margin-bottom: 0.5rem;
    }

    .calificaciones-card-rating {
        margin-bottom: 0.5rem;
    }

    .calificaciones-card-message {
        margin: 0;
        font-size: 0.9rem;
        color: #475569;
        line-height: 1.4;
    }
}

@media (max-width: 639px) {
    .calificaciones-header-actions-row {
        flex-direction: column;
        align-items: stretch;
    }

    .calificaciones-header-actions {
        width: 100%;
        justify-content: stretch;
    }

    .calificaciones-header-actions .calificaciones-btn-download,
    .calificaciones-header-actions .calificaciones-btn-refresh {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .calificaciones-container {
        padding: 0.75rem;
    }

    .calificaciones-container .page-header h1 {
        font-size: 1.35rem;
    }

    .calificaciones-resumen {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .calificaciones-table-wrap {
        border-radius: 8px;
    }

    .calificaciones-card {
        padding: 0.875rem;
    }
}

/* Dark mode */
[data-theme="dark"] .calificaciones-main {
    background: var(--fondo-general, #1a1a1a);
}

[data-theme="dark"] .calificaciones-container .page-header h1 {
    color: #f1f5f9;
}

[data-theme="dark"] .calificaciones-container .page-header p {
    color: #94a3b8;
}

[data-theme="dark"] .calificaciones-resumen {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .calificaciones-total,
[data-theme="dark"] .calificaciones-promedio {
    color: #94a3b8;
}

[data-theme="dark"] .calificaciones-empty {
    color: #94a3b8;
}

[data-theme="dark"] .calificaciones-table-wrap {
    border-color: #334155;
}

[data-theme="dark"] .calificaciones-table thead {
    background: #334155;
}

[data-theme="dark"] .calificaciones-table th {
    color: #e2e8f0;
    border-bottom-color: #475569;
}

[data-theme="dark"] .calificaciones-table td {
    border-bottom-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .calificaciones-table tbody tr:hover {
    background: #334155;
}

[data-theme="dark"] .calificaciones-name {
    color: #f1f5f9;
}

[data-theme="dark"] .calificaciones-loading {
    color: #94a3b8;
}

[data-theme="dark"] .calificaciones-btn-download {
    background: #0d9488;
}

[data-theme="dark"] .calificaciones-btn-download:hover:not(:disabled) {
    background: #0f766e;
}

[data-theme="dark"] .calificaciones-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .calificaciones-card-name {
    color: #f1f5f9;
}

[data-theme="dark"] .calificaciones-card-date {
    color: #94a3b8;
}

[data-theme="dark"] .calificaciones-card-message {
    color: #94a3b8;
}

[data-theme="dark"] .calificaciones-card-op {
    color: #94a3b8;
}

[data-theme="dark"] .calificaciones-search-input {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .calificaciones-search-input:focus {
    border-color: #34C759;
}
.contract-main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px;
    padding-top: 1rem;
    min-height: 70vh;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.contract-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 0 0 1rem 0;
    background: transparent;
    color: #1a1a1a;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 2px solid #e2e8f0;
}

.contract-title {
    text-align: left;
}

.contract-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.edit-project-btn {
    background: #34C759;
    color: white;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-project-btn:hover {
    background: #2db84e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.4);
}

.edit-project-btn:active {
    transform: translateY(0);
}

.edit-project-btn i {
    font-size: 1.1rem;
}

.delete-project-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-project-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.delete-project-btn:active {
    transform: translateY(0);
}

.delete-project-btn i {
    font-size: 1.1rem;
}

.contract-header h1 {
    font-size: 1.8rem;
    margin: 0 0 5px 0;
    font-weight: 700;
    color: #1a1a1a;
}

.contract-header p {
    font-size: 1rem;
    margin: 0;
    color: #64748b;
}

.contract-info {
    margin-bottom: 40px;
}

.contract-section {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.contract-section h2 {
    color: var(--texto-principal);
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item label {
    font-weight: 600;
    color: #666;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    font-size: 0.95rem;
    color: var(--texto-principal);
    padding: 6px 10px;
    background-color: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #cbd5e1;
}

.description-text {
    line-height: 1.6;
    color: #475569;
    font-size: 0.95rem;
    margin: 0;
    padding: 16px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.proveedors-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem 0;
    max-width: 100%;
    max-height: 300px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.proveedors-list::-webkit-scrollbar {
    display: none;
}

.proveedor-item {
    background: transparent;
    color: #495057;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
    box-shadow: none;
    white-space: normal;
    word-wrap: break-word;
    width: 100%;
    transition: all 0.3s ease;
}

.proveedor-item:hover {
    background: transparent;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-view-proveedors {
    background: transparent;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-view-proveedors:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #212529;
}

.btn-view-proveedors i {
    font-size: 1rem;
}

.reports-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

/* Dar más ancho visual a la sección de reportes */
@media (min-width: 1024px) {
    .reports-section {
        width: calc(100% + 32px);
        margin-left: -16px;
        margin-right: -16px;
    }
}

.reports-cards-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.reports-section h2 {
    color: var(--texto-principal);
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid var(--activa-verde-claro);
    padding-bottom: 8px;
}

.contract-loading,
.contract-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 2rem;
    background: transparent;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--activa-verde);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.contract-loading p,
.contract-error p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.contract-error p {
    color: #dc3545;
}

/* Status badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.status-draft {
    background-color: #f8f9fa;
    color: #495057;
}

.status-sent {
    background-color: #bfdbfe;
    color: #1e3a8a;
}

.status-approved {
    background-color: #e0f2e9;
    color: #0f5132;
}

.status-approved-client {
    background-color: #a7f3d0;
    color: #064e3b;
}

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

.status-pending {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Side Panel Form Styles */
.contract-form {
    padding: 0;
}

.contract-form .form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.contract-form .form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--activa-verde);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--activa-verde);
}

.contract-form .form-group {
    margin-bottom: 1.5rem;
}

.contract-form .form-group:has(.proveedor-selector) {
    margin-bottom: 1.5rem;
}

.contract-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.contract-form .form-group input,
.contract-form .form-group textarea,
.contract-form .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.contract-form .form-group input:focus,
.contract-form .form-group textarea:focus,
.contract-form .form-group select:focus {
    outline: none;
    border-color: var(--activa-verde);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.contract-form .form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #6c757d;
    font-size: 0.8rem;
}

.contract-form .loading-text {
    color: #6c757d;
    font-style: italic;
    font-size: 0.9rem;
}

/* Proveedor Selector Styles */
.contract-form .proveedor-selector {
    position: relative;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.contract-form .proveedor-selector input {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.contract-form .proveedor-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 2px;
    background: white;
    border: 2px solid #007bff;
    border-radius: 8px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 10000;
    padding: 0;
}

.contract-form .proveedor-option {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.contract-form .proveedor-option:hover {
    background-color: #f8f9fa;
}

.contract-form .proveedor-name {
    font-weight: 500;
    color: #333;
}

.contract-form .proveedor-email {
    font-size: 0.8rem;
    color: #6c757d;
}

.contract-form .no-results {
    padding: 0.75rem;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.contract-form .proveedor-actions {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0 0.5rem 0;
    position: relative;
    z-index: 1;
}

.contract-form .btn-select-all,
.contract-form .btn-deselect-all {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contract-form .btn-select-all:hover {
    background: #5a6268;
}

.contract-form .btn-deselect-all {
    background: #dc3545;
}

.contract-form .btn-deselect-all:hover {
    background: #c82333;
}

.contract-form .proveedor-list {
    margin-top: 0.75rem;
    position: relative;
    z-index: 1;
}

.contract-form .proveedor-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}


.contract-form .proveedor-list-header small {
    color: white;
    font-weight: normal;
}

.contract-form .proveedor-list-content {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
}

.contract-form .proveedor-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
}

.contract-form .proveedor-list-item:hover {
    background-color: #f8f9fa;
}

.contract-form .proveedor-list-item.selected {
    background-color: #e8f5e8;
    border-left: 3px solid var(--activa-verde);
}

.contract-form .proveedor-item-info {
    flex: 1;
}

.contract-form .proveedor-item-checkbox {
    margin-left: 1rem;
}

.contract-form .checkbox-checked {
    color: var(--activa-verde);
    font-weight: bold;
    font-size: 1.2rem;
}

.contract-form .checkbox-unchecked {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 3px;
    display: inline-block;
}

.contract-form .selected-proveedors {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #007bff #f1f1f1;
    position: relative;
    z-index: 1;
}

.contract-form .selected-proveedors::-webkit-scrollbar {
    height: 6px;
}

.contract-form .selected-proveedors::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.contract-form .selected-proveedors::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 3px;
}

.contract-form .selected-proveedors::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

.contract-form .selected-proveedor {
    background: #007bff;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contract-form .selected-proveedor:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.contract-form .remove-proveedor {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.contract-form .remove-proveedor:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.contract-form .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.contract-form .btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contract-form .btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.contract-form .btn-primary {
    background: var(--activa-verde);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contract-form .btn-primary:hover {
    background: #218838;
    transform: translateY(-1px);
}

.contract-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .contract-main {
        max-width: 100%;
        padding: 10px;
    }

    .contract-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .contract-actions {
        flex-direction: row;
        width: auto;
        gap: 10px;
    }

    .edit-project-btn,
    .delete-project-btn {
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .contract-header h1 {
        font-size: 2rem;
    }

    .contract-header p {
        font-size: 1rem;
    }

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

    .contract-section {
        padding: 16px;
    }

    .reports-section {
        padding: 16px;
    }

    .proveedors-list {
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 250px;
    }

    .proveedor-item {
        text-align: left;
        width: 100%;
    }

    .contract-header {
        padding: 16px;
    }

    .delete-project-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}



.delete-project-modal {
    max-width: 600px;
}

.delete-report-modal {
    max-width: 600px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h2 {
    margin: 0;
    color: #dc3545;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: #f8f9fa;
}

.modal-close:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-body {
    padding: 24px;
}

.warning-message h3 {
    color: #dc3545;
    margin: 0 0 16px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.warning-message p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: var(--texto-principal);
}

.warning-message ul {
    margin: 16px 0;
    padding-left: 20px;
}

.warning-message li {
    margin: 8px 0;
    color: var(--texto-principal);
    line-height: 1.5;
}

.warning-text {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 24px;
    border-top: 1px solid #e9ecef;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover:not(:disabled) {
    background: #5a6268;
}

.btn-delete {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover:not(:disabled) {
    background: #c82333;
}

/* Mobile responsive styles */
@media (max-width: 480px) {
    .edit-project-btn,
    .delete-project-btn {
        width: 36px;
        height: 36px;
    }
    
    .edit-project-btn i,
    .delete-project-btn i {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .edit-project-btn,
    .delete-project-btn {
        width: 32px;
        height: 32px;
    }
    
    .edit-project-btn i,
    .delete-project-btn i {
        font-size: 0.8rem;
    }
}

.btn-cancel:disabled,
.btn-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-delete {
        width: 100%;
    }
}

/* Modo oscuro para la página de contratos */
[data-theme="dark"] .contract-main {
    background: var(--fondo-general);
}

[data-theme="dark"] .contract-header {
    background: transparent;
    color: var(--texto-principal);
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .contract-header h1 {
    color: var(--texto-principal);
}

[data-theme="dark"] .contract-header p {
    color: var(--texto-principal);
    opacity: 0.9;
}

[data-theme="dark"] .contract-section {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .contract-section h2 {
    color: #e2e8f0;
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .info-item label {
    color: #a0aec0;
}

[data-theme="dark"] .info-item span {
    background-color: #4a5568;
    color: #e2e8f0;
    border-left-color: #718096;
}

[data-theme="dark"] .description-text {
    background-color: #4a5568;
    color: #e2e8f0;
    border-left-color: var(--activa-verde);
}

[data-theme="dark"] .proveedor-item {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid #718096;
}

[data-theme="dark"] .proveedor-item:hover {
    background: transparent;
    border-color: #a0aec0;
}

[data-theme="dark"] .btn-view-proveedors {
    background: transparent;
    border: 1px solid #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .btn-view-proveedors:hover {
    background: #4a5568;
    border-color: #a0aec0;
    color: white;
}

[data-theme="dark"] .reports-section {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .reports-section h2 {
    color: #e2e8f0;
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .contract-loading,
[data-theme="dark"] .contract-error {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .contract-loading p {
    color: #a0aec0;
}

[data-theme="dark"] .contract-error p {
    color: #feb2b2;
}

[data-theme="dark"] .contract-form .form-section {
    background: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .contract-form .form-section-title {
    color: var(--activa-verde);
    border-bottom-color: var(--activa-verde);
}

[data-theme="dark"] .contract-form .form-group label {
    color: #e2e8f0;
}

[data-theme="dark"] .contract-form .form-group input,
[data-theme="dark"] .contract-form .form-group textarea,
[data-theme="dark"] .contract-form .form-group select {
    background: #2d3748;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .contract-form .form-group input:focus,
[data-theme="dark"] .contract-form .form-group textarea:focus,
[data-theme="dark"] .contract-form .form-group select:focus {
    border-color: var(--activa-verde);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

[data-theme="dark"] .contract-form .form-group small {
    color: #a0aec0;
}

[data-theme="dark"] .contract-form .loading-text {
    color: #a0aec0;
}

[data-theme="dark"] .contract-form .proveedor-dropdown {
    background: #2d3748;
    border-color: #718096;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .contract-form .proveedor-option {
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .contract-form .proveedor-option:hover {
    background-color: #4a5568;
}

[data-theme="dark"] .contract-form .proveedor-name {
    color: #e2e8f0;
}

[data-theme="dark"] .contract-form .proveedor-email {
    color: #a0aec0;
}

[data-theme="dark"] .contract-form .no-results {
    color: #a0aec0;
}

[data-theme="dark"] .contract-form .btn-select-all,
[data-theme="dark"] .contract-form .btn-deselect-all {
    background: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .contract-form .btn-select-all:hover {
    background: #718096;
}

[data-theme="dark"] .contract-form .btn-deselect-all {
    background: transparent !important;
    color: var(--activa-verde) !important;
    border: 2px solid var(--activa-verde) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .contract-form .btn-deselect-all:hover {
    background: rgba(0, 175, 79, 0.1) !important;
}

[data-theme="dark"] .contract-form .proveedor-list-header {
    color: #e2e8f0;
}

[data-theme="dark"] .contract-form .proveedor-list-header small {
    color: #a0aec0;
}

[data-theme="dark"] .contract-form .proveedor-list-content {
    border-color: #718096;
}

[data-theme="dark"] .contract-form .proveedor-list-item {
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .contract-form .proveedor-list-item:hover {
    background-color: #4a5568;
}

[data-theme="dark"] .contract-form .proveedor-list-item.selected {
    background-color: #2d3748;
    border-left-color: var(--activa-verde);
}

[data-theme="dark"] .contract-form .form-actions {
    border-top-color: #4a5568;
}

[data-theme="dark"] .contract-form .btn-cancel {
    background: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .contract-form .btn-cancel:hover {
    background: #718096;
}

[data-theme="dark"] .contract-form .btn-primary {
    background: var(--activa-verde);
    color: white;
}

[data-theme="dark"] .contract-form .btn-primary:hover {
    background: #218838;
}

[data-theme="dark"] .modal-header {
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .modal-header h2 {
    color: #e53e3e;
}

[data-theme="dark"] .modal-close {
    color: #a0aec0;
}

[data-theme="dark"] .modal-close:hover {
    background-color: #4a5568;
}

[data-theme="dark"] .modal-body {
    background: #2d3748;
}

[data-theme="dark"] .warning-message h3 {
    color: #e53e3e;
}

[data-theme="dark"] .warning-message p {
    color: #e2e8f0;
}

[data-theme="dark"] .warning-message li {
    color: #e2e8f0;
}

[data-theme="dark"] .warning-text {
    background-color: #742a2a;
    color: #feb2b2;
    border-left-color: #e53e3e;
}

[data-theme="dark"] .modal-actions {
    border-top-color: #4a5568;
}

[data-theme="dark"] .btn-cancel {
    background: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .btn-cancel:hover:not(:disabled) {
    background: #718096;
}

[data-theme="dark"] .btn-delete {
    background: #e53e3e;
    color: white;
}

[data-theme="dark"] .btn-delete:hover:not(:disabled) {
    background: #c53030;
}

/* Estilos para la lista de emails del cliente */
.client-emails-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.client-email-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.client-email-item i {
    margin-right: 8px;
    color: #666;
}

/* Estilos para la lista de emails en el formulario */
.client-emails-list {
    margin-top: 12px;
}

.client-emails-list-header {
    font-weight: 500;
    margin-bottom: 8px;
}

.client-emails-list-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.client-email-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.client-email-remove-btn {
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    font-size: 20px;
    padding: 0 4px;
    transition: all 0.2s ease;
}

.client-email-remove-btn:hover {
    color: #d32f2f;
    transform: scale(1.2);
}

.client-email-input-wrapper {
    display: flex;
    gap: 8px;
}

.client-email-input {
    flex: 1;
}

.btn-add-email {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-add-email:hover {
    background-color: #45a049;
}

/* Modo oscuro para emails del cliente */
[data-theme="dark"] .client-email-item {
    background-color: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .client-email-item i {
    color: #a0aec0;
}

[data-theme="dark"] .client-emails-list-header {
    color: #e2e8f0;
}

[data-theme="dark"] .client-email-list-item {
    background-color: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .client-email-remove-btn {
    color: #fc8181;
}

[data-theme="dark"] .client-email-remove-btn:hover {
    color: #feb2b2;
}

[data-theme="dark"] .btn-add-email {
    background-color: #48bb78;
}

[data-theme="dark"] .btn-add-email:hover {
    background-color: #38a169;
} #not-found-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--fondo-general) 0%, #ffffff 100%);
}

.not-found-container {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--activa-verde-transparente);
    width: 100%;
    max-width: 700px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.not-found-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--activa-verde) 0%, var(--activa-azul) 100%);
}

.not-found-content {
    position: relative;
    z-index: 1;
}

.error-code {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 20px;
}

.error-number {
    font-size: 120px;
    font-weight: 700;
    color: var(--activa-verde);
    text-shadow: 2px 2px 4px rgba(0, 175, 79, 0.2);
    line-height: 1;
}

.error-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--activa-verde) 0%, var(--activa-azul) 100%);
    border-radius: 50%;
    box-shadow: 0 10px 30px var(--activa-verde-transparente);
    animation: pulse 2s infinite;
}

.error-icon i {
    font-size: 50px;
    color: white;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 30px var(--activa-verde-transparente);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px var(--activa-verde-transparente);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px var(--activa-verde-transparente);
    }
}

.not-found-container h1 {
    color: var(--texto-principal);
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 600;
}

.error-description {
    color: #666;
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.primary-button {
    background: var(--activa-verde);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 180px;
    justify-content: center;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--activa-verde-transparente);
    color: white;
}

.secondary-button {
    background: white;
    color: var(--activa-azul);
    border: 2px solid var(--activa-azul);
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 180px;
    justify-content: center;
}

.secondary-button:hover {
    background: var(--activa-azul);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 174, 239, 0.2);
}

.error-help {
    background: var(--activa-verde-claro);
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    border-left: 4px solid var(--activa-verde);
}

.error-help p {
    color: var(--texto-principal);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
}

.error-help ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-help li {
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.error-help li i {
    color: var(--activa-verde);
    font-size: 16px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .not-found-container {
        padding: 40px 20px;
        margin: 10px;
    }
    
    .error-number {
        font-size: 80px;
    }
    
    .error-icon {
        width: 80px;
        height: 80px;
    }
    
    .error-icon i {
        font-size: 40px;
    }
    
    .not-found-container h1 {
        font-size: 24px;
    }
    
    .error-description {
        font-size: 16px;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .primary-button,
    .secondary-button {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .error-code {
        gap: 10px;
    }
    
    .error-number {
        font-size: 60px;
    }
    
    .error-icon {
        width: 60px;
        height: 60px;
    }
    
    .error-icon i {
        font-size: 30px;
    }
    
    .error-help {
        padding: 20px;
    }
} #recover-password-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--fondo-general) 0%, #ffffff 100%);
}

.recover-password-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--activa-verde-transparente);
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.recover-password-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--activa-verde) 0%, var(--activa-azul) 100%);
}

.recover-password-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--activa-azul);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: color 0.3s ease;
    font-weight: 500;
}

.back-link:hover {
    color: var(--activa-verde);
    text-decoration: underline;
}

.recover-password-header h1 {
    color: var(--texto-principal);
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e1e5e9;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--activa-verde);
    color: white;
    box-shadow: 0 4px 12px var(--activa-verde-transparente);
}

.step span {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-align: center;
    min-width: 80px;
}

.step.active span {
    color: var(--activa-verde);
    font-weight: 600;
}

.step-line {
    width: 60px;
    height: 2px;
    background: #e1e5e9;
    transition: all 0.3s ease;
}

.step-line.active {
    background: var(--activa-verde);
}

.recover-password-content {
    position: relative;
    z-index: 1;
}

.step-form {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-description {
    text-align: center;
    margin-bottom: 30px;
}

.step-description h2 {
    color: var(--texto-principal);
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
}

.step-description p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.recovery-form {
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #666;
    font-size: 18px;
    z-index: 1;
}

.recovery-form input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.recovery-form input:focus {
    outline: none;
    border-color: var(--activa-verde);
    background: white;
    box-shadow: 0 0 0 3px var(--activa-verde-transparente);
}

.recovery-form input.error {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.recovery-form input.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--activa-verde);
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

.password-strength {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: #e1e5e9;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 12px;
    font-weight: 600;
    min-width: 60px;
}

.primary-button {
    background: var(--activa-verde);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    width: 100%;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.primary-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--activa-verde-transparente);
    color: white;
}

.primary-button:disabled {
    background: var(--activa-verde-transparente);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.secondary-button {
    background: white;
    color: var(--activa-azul);
    border: 2px solid var(--activa-azul);
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    width: 100%;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

.secondary-button:hover:not(:disabled) {
    background: var(--activa-azul);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 174, 239, 0.2);
}

.secondary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.back-button {
    margin-top: 20px;
}

.resend-section {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: var(--activa-verde-claro);
    border-radius: 12px;
}

.resend-section p {
    color: var(--texto-principal);
    margin-bottom: 10px;
    font-weight: 500;
}

.resend-button {
    background: none;
    border: none;
    color: var(--activa-verde);
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    font-size: 14px;
}

.resend-button:hover:not(:disabled) {
    color: var(--activa-azul);
    text-decoration: underline;
}

.resend-button:disabled {
    color: #999;
    cursor: not-allowed;
}

.help-text {
    background: var(--activa-verde-claro);
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    border-left: 4px solid var(--activa-verde);
    margin-bottom: 20px;
}

.help-text p {
    color: var(--texto-principal);
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.help-text i {
    color: var(--activa-verde);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.success-container {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--activa-verde);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px var(--activa-verde-transparente);
}

.success-icon i {
    font-size: 40px;
    color: white;
}

.success-container h2 {
    color: var(--activa-verde);
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 600;
}

.success-container p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.success-container p strong {
    color: var(--activa-verde);
    font-weight: 600;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

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

/* Responsive */
/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .recover-password-container {
        margin: 20px;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .recover-password-container {
        padding: 30px 20px;
        margin: 0;
        margin-top: 55px;
    }
    
    .recover-password-header h1 {
        font-size: 24px;
    }
    
    .step-indicator {
        gap: 10px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .step span {
        font-size: 11px;
        min-width: 60px;
    }
    
    .step-line {
        width: 40px;
    }
    
    .step-description h2 {
        font-size: 20px;
    }
    
    .step-description p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .step-indicator {
        flex-direction: row;
        gap: 10px;
    }
    
    .step-line {
        width: 2px;
        height: 20px;
    }
    
    .step {
        flex-direction: row;
        gap: 10px;
    }
    
    .step span {
        min-width: auto;
    }
} 

/* Modo oscuro para la página de recuperar contraseña */
[data-theme="dark"] #recover-password-main {
    background: var(--fondo-general);
}

[data-theme="dark"] .recover-password-container {
    background: #2d3748;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .back-link {
    color: #90cdf4;
}

[data-theme="dark"] .back-link:hover {
    color: #63b3ed;
}

[data-theme="dark"] .recover-password-header h1 {
    color: white;
}

[data-theme="dark"] .step-number {
    background: #4a5568;
    color: #a0aec0;
}

[data-theme="dark"] .step.active .step-number {
    background: var(--activa-verde);
    color: white;
}

[data-theme="dark"] .step span {
    color: #a0aec0;
}

[data-theme="dark"] .step.active span {
    color: var(--activa-verde);
}

[data-theme="dark"] .step-line {
    background: #4a5568;
}

[data-theme="dark"] .step-line.active {
    background: var(--activa-verde);
}

[data-theme="dark"] .step-description h2 {
    color: white;
}

[data-theme="dark"] .step-description p {
    color: #a0aec0;
}

[data-theme="dark"] .input-icon {
    color: #a0aec0;
}

[data-theme="dark"] .recovery-form input {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .recovery-form input:focus {
    border-color: var(--activa-verde);
    background: #374151;
    box-shadow: 0 0 0 3px var(--activa-verde-transparente);
}

[data-theme="dark"] .recovery-form input.error {
    border-color: #e74c3c;
    background: #742a2a;
}

[data-theme="dark"] .recovery-form input.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

[data-theme="dark"] .password-toggle {
    color: #a0aec0;
}

[data-theme="dark"] .password-toggle:hover {
    color: var(--activa-verde);
}

[data-theme="dark"] .error-message {
    color: #feb2b2;
}

[data-theme="dark"] .strength-bar {
    background: #4a5568;
}

[data-theme="dark"] .strength-text {
    color: #a0aec0;
}

[data-theme="dark"] .primary-button {
    background: var(--activa-verde);
    color: white;
}

[data-theme="dark"] .primary-button:hover:not(:disabled) {
    background: var(--activa-azul);
    color: white;
}

[data-theme="dark"] .primary-button:disabled {
    background: #4a5568;
    color: #a0aec0;
}

[data-theme="dark"] .secondary-button {
    background: #4a5568;
    color: #90cdf4;
    border-color: #718096;
}

[data-theme="dark"] .secondary-button:hover:not(:disabled) {
    background: #90cdf4;
    color: #2d3748;
}

[data-theme="dark"] .secondary-button:disabled {
    background: #2d3748;
    color: #718096;
    border-color: #4a5568;
}

[data-theme="dark"] .resend-section {
    background: #4a5568;
}

[data-theme="dark"] .resend-section p {
    color: #e2e8f0;
}

[data-theme="dark"] .resend-button {
    color: var(--activa-verde);
}

[data-theme="dark"] .resend-button:hover:not(:disabled) {
    color: #63b3ed;
}

[data-theme="dark"] .resend-button:disabled {
    color: #718096;
}

[data-theme="dark"] .help-text {
    background: #4a5568;
    border-left-color: var(--activa-verde);
}

[data-theme="dark"] .help-text p {
    color: #e2e8f0;
}

[data-theme="dark"] .help-text i {
    color: var(--activa-verde);
}

[data-theme="dark"] .success-container h2 {
    color: var(--activa-verde);
}

[data-theme="dark"] .success-container p {
    color: #a0aec0;
}

[data-theme="dark"] .success-container p strong {
    color: var(--activa-verde);
} .report-status-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.report-status-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.report-status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.header-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.header-section .logo {
    height: 60px;
    margin-bottom: 15px;
}

.header-section h1 {
    color: #333;
    font-size: 2.2rem;
    margin: 0;
    font-weight: 600;
}

.report-info {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid #667eea;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.info-item:hover {
    transform: translateY(-2px);
}

.info-item strong {
    color: #555;
    font-weight: 600;
    margin-right: 10px;
}

.info-item span {
    color: #333;
    font-weight: 500;
}

.result-message {
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.result-message.success {
    background: linear-gradient(135deg, #4caf50, #43a047);
    color: white;
}

.result-message.error {
    background: linear-gradient(135deg, #f44336, #e53935);
    color: white;
}

.result-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.actions-section {
    text-align: center;
    margin-bottom: 20px;
}

.actions-section h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.instructions {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.action-buttons button {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.approve-btn {
    background: linear-gradient(135deg, #4caf50, #43a047);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.approve-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.reject-btn {
    background: linear-gradient(135deg, #f44336, #e53935);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.reject-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.justification-section {
    text-align: left;
}

.justification-section h2 {
    text-align: center;
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.justification-section .instructions {
    text-align: center;
    margin-bottom: 20px;
}

.justification-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
}

.justification-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.char-counter {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
    margin-top: 8px;
    margin-bottom: 20px;
}

.confirm-reject-btn {
    background: linear-gradient(135deg, #ff5722, #f4511e);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.confirm-reject-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.cancel-btn {
    background: linear-gradient(135deg, #757575, #616161);
    color: white;
    box-shadow: 0 4px 15px rgba(117, 117, 117, 0.3);
}

.cancel-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(117, 117, 117, 0.4);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.submitting-section {
    text-align: center;
    padding: 30px 0;
}

.submitting-section p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 15px;
}

.footer-info {
    background: #f0f7ff;
    border-left: 4px solid #2196f3;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.footer-info p {
    margin: 0;
    color: #1976d2;
    font-size: 0.95rem;
    line-height: 1.4;
}

.report-status-card.error {
    text-align: center;
    padding: 60px 40px;
}

.report-status-card.error h1 {
    color: #f44336;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.report-status-card.error p {
    color: #666;
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .report-status-container {
        padding: 15px;
    }
    
    .report-status-card {
        padding: 25px 20px;
    }
    
    .header-section h1 {
        font-size: 1.8rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .info-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .action-buttons button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .report-status-card {
        padding: 20px 15px;
    }
    
    .header-section .logo {
        height: 50px;
    }
    
    .header-section h1 {
        font-size: 1.5rem;
    }
    
    .actions-section h2 {
        font-size: 1.5rem;
    }
}

/* Contenedor principal de documentos */
.documents-container {
    max-width: 1800px;
    margin: 0 auto;
}

.documents-loading-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
}

/* Header de documentos */
.documents-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.header-content h1 {
    font-size: 1.75rem;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.header-content p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

.btn-create-document {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    min-width: 40px;
}

.btn-create-document:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    color: white;
    text-decoration: none;
}

.btn-create-document i {
    font-size: 20px;
}

/* Sección de búsqueda */
.search-section {
    margin-bottom: 2rem;
}

.search-container {
    position: relative;
    max-width: 500px;
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.search-input::placeholder {
    color: #adb5bd;
}

/* Contenedor tipo tabla (mismo estilo que Contratos) */
.data-table-wrapper .documents-grid {
    padding: 20px 24px;
}

/* Grid de documentos */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Card de documento */
.document-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.document-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #e9ecef;
}

/* Banner del documento */
.document-banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.banner-image.clickable {
    cursor: pointer;
}

.document-card:hover .banner-image {
    transform: scale(1.05);
}

/* Contenido del documento */
.document-content {
    padding: 1.5rem;
}

.document-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.document-title.clickable {
    cursor: pointer;
    transition: color 0.3s ease;
}

.document-title.clickable:hover {
    color: #007bff;
}

.document-desc {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Metadatos del documento */
.document-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.document-date,
.document-files {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.document-date i,
.document-files i {
    font-size: 1rem;
}

/* Acciones del documento */
.document-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f4;
    margin-bottom: 0.75rem;
    align-items: center;
}

.btn-view,
.btn-edit,
.btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    flex-shrink: 0;
}

.btn-view {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-view:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-edit {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.btn-edit:hover {
    background: #ffeaa7;
    color: #856404;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-delete {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    text-decoration: none;
}

.btn-delete:hover {
    background: #f5c6cb;
    color: #721c24;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estado vacío */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #495057;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.empty-state p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0 0 2rem 0;
    max-width: 400px;
    line-height: 1.5;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: modalOverlayFadeIn 0.3s ease-out;
}

@keyframes modalOverlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(4px);
    }
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border-radius: 16px 16px 0 0;
    position: relative;
}

.modal-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #ff6b6b, #dc3545);
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc3545;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.025em;
}

.modal-header h2::before {
    content: none !important;
}

.modal-close {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.2);
    font-size: 1.25rem;
    color: #dc3545;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover:not(:disabled) {
    background-color: #dc3545;
    color: white;
    transform: scale(1.05);
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.modal-close:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-body {
    padding: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.warning-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1.5rem;
    animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.modal-body p {
    color: #495057;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    font-size: 1.1rem;
}

.warning-text {
    color: #dc3545;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(220, 53, 69, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    margin: 1rem 0;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 2.5rem;
    border-top: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 0 0 16px 16px;
}

.btn-cancel {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.btn-cancel:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-delete-confirm {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.btn-delete-confirm:hover:not(:disabled) {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-delete-confirm:disabled,
.btn-cancel:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Loading spinner pequeño */
.loading-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .documents-container {
        padding: 1.5rem;
    }

    .documents-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.25rem;
    }

    .document-banner {
        height: 180px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .documents-container {
        padding: 1rem;
    }

    .documents-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .header-content h1 {
        font-size: 1.75rem;
    }

    .header-content p {
        font-size: 1rem;
    }

    .btn-create-document {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .search-container {
        max-width: 100%;
    }

    .documents-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }

    .document-banner {
        height: 160px;
    }

    .document-content {
        padding: 1.25rem;
    }

    .document-title {
        font-size: 1.125rem;
    }

    .document-desc {
        font-size: 0.9rem;
    }

    .document-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        justify-content: initial;
    }

    .btn-view,
    .btn-edit,
    .btn-delete {
        width: 100%;
        min-width: 0;
    }

    .modal-overlay {
        padding: 0.5rem;
    }

    .modal-content {
        max-width: 95%;
        margin: 0.5rem;
    }

    .modal-header {
        padding: 2rem 2rem 1.5rem 2rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 2rem;
    }

    .modal-body p {
        font-size: 1rem;
    }

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

    .modal-footer {
        padding: 2rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-cancel,
    .btn-delete-confirm {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
}

/* Mobile landscape */
@media (max-width: 640px) {
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .document-banner {
        height: 140px;
    }

    .document-content {
        padding: 1rem;
    }

    .document-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .document-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        justify-content: initial;
    }

    .btn-view,
    .btn-edit,
    .btn-delete {
        width: 100%;
        height: 35px;
        padding: 0.5rem;
        min-width: 0;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .documents-container {
        padding: 0.75rem;
    }

    .header-content h1 {
        font-size: 1.5rem;
    }

    .header-content p {
        font-size: 0.95rem;
    }

    .btn-create-document {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .search-input {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
        font-size: 0.95rem;
    }

    .search-container i {
        left: 0.75rem;
        font-size: 1rem;
    }

    .document-banner {
        height: 120px;
    }

    .document-content {
        padding: 0.875rem;
    }

    .document-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .document-desc {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .document-meta {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .document-actions {
        padding-top: 0.75rem;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        justify-content: initial;
    }

    .btn-view,
    .btn-edit,
    .btn-delete {
        width: 100%;
        height: 32px;
        padding: 0.4rem;
        font-size: 0.9rem;
        min-width: 0;
    }

    .empty-state {
        padding: 2rem 1rem;
    }

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

    .empty-state h3 {
        font-size: 1.25rem;
    }

    .empty-state p {
        font-size: 0.9rem;
    }

    .btn-primary {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }

    .modal-content {
        max-width: 95%;
    }

    .modal-header h2 {
        font-size: 1.125rem;
    }

    .warning-icon {
        font-size: 2.5rem;
    }

    .modal-body p {
        font-size: 0.9rem;
    }

    .warning-text {
        font-size: 0.8rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .documents-container {
        padding: 0.5rem;
    }

    .header-content h1 {
        font-size: 1.5rem;
    }

    .document-banner {
        height: 100px;
    }

    .document-content {
        padding: 0.75rem;
    }

    .document-title {
        font-size: 0.95rem;
    }

    .document-desc {
        font-size: 0.8rem;
    }

    .document-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        justify-content: initial;
    }

    .btn-view,
    .btn-edit,
    .btn-delete {
        width: 100%;
        height: 30px;
        padding: 0.35rem;
        font-size: 0.85rem;
        min-width: 0;
    }
}

/* Modo oscuro para la página de documentos */
[data-theme="dark"] .documents-container {
    background: var(--fondo-general);
}

[data-theme="dark"] .header-content h1 {
    color: white;
}

[data-theme="dark"] .header-content p {
    color: #a0aec0;
}

[data-theme="dark"] .search-input {
    background-color: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

[data-theme="dark"] .search-input::placeholder {
    color: #a0aec0;
}

[data-theme="dark"] .search-container i {
    color: #a0aec0;
}

[data-theme="dark"] .document-card {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .document-card:hover {
    background: #374151;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: #718096;
}

[data-theme="dark"] .document-banner {
    background: #4a5568;
}

[data-theme="dark"] .document-title {
    color: #e2e8f0;
}

[data-theme="dark"] .document-title.clickable:hover {
    color: #90cdf4;
}

[data-theme="dark"] .document-desc {
    color: #a0aec0;
}

[data-theme="dark"] .document-meta {
    color: #a0aec0;
}

[data-theme="dark"] .document-date i,
[data-theme="dark"] .document-files i {
    color: #a0aec0;
}

[data-theme="dark"] .document-actions {
    border-top-color: #4a5568;
}

[data-theme="dark"] .btn-create-document {
    background-color: #28a745 !important;
    color: white !important;
}

[data-theme="dark"] .btn-create-document:hover {
    background-color: #218838 !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
    color: white !important;
}

[data-theme="dark"] .btn-view {
    background: #4a5568;
    color: #e2e8f0;
    border-color: #718096;
}

[data-theme="dark"] .btn-view:hover {
    background: #718096;
    color: #ffffff;
}

[data-theme="dark"] .btn-edit {
    background: #744210;
    color: #fbd38d;
    border-color: #d69e2e;
}

[data-theme="dark"] .btn-edit:hover {
    background: #d69e2e;
    color: #744210;
}

[data-theme="dark"] .btn-delete {
    background: #742a2a;
    color: #feb2b2;
    border-color: #e53e3e;
}

[data-theme="dark"] .btn-delete:hover {
    background: #e53e3e;
    color: #ffffff;
}

[data-theme="dark"] .empty-state {
    background: #2d3748;
    border: 1px solid #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .empty-icon {
    color: #a0aec0;
}

[data-theme="dark"] .empty-state h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .empty-state p {
    color: #a0aec0;
}

[data-theme="dark"] .modal-content {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .modal-header {
    background: linear-gradient(135deg, #2d3748 0%, #374151 100%);
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .modal-header h2 {
    color: #e2e8f0;
}

[data-theme="dark"] .modal-close {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
    color: #feb2b2;
}

[data-theme="dark"] .modal-close:hover:not(:disabled) {
    background-color: #e53e3e;
    color: white;
    border-color: #e53e3e;
}

[data-theme="dark"] .modal-body {
    background: linear-gradient(135deg, #2d3748 0%, #374151 100%);
}

[data-theme="dark"] .modal-body p {
    color: #e2e8f0;
}

[data-theme="dark"] .warning-text {
    background: rgba(220, 53, 69, 0.2);
    color: #feb2b2;
    border-left-color: #e53e3e;
}

[data-theme="dark"] .modal-footer {
    background: linear-gradient(135deg, #2d3748 0%, #374151 100%);
    border-top-color: #4a5568;
}

[data-theme="dark"] .btn-cancel {
    background: linear-gradient(135deg, #4a5568, #718096);
    color: #e2e8f0;
}

[data-theme="dark"] .btn-cancel:hover:not(:disabled) {
    background: linear-gradient(135deg, #718096, #a0aec0);
    color: #2d3748;
}

[data-theme="dark"] .btn-delete-confirm {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
}

[data-theme="dark"] .btn-delete-confirm:hover:not(:disabled) {
    background: linear-gradient(135deg, #c53030, #9b2c2c);
}
/* Contenedor principal de detalle de documento */
.document-detail-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  min-height: calc(100vh - 160px);
}

/* Header con navegación */
.document-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  flex-wrap: wrap;
  min-width: 0;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 10px;
  border-left: 4px solid var(--activa-verde, #00AF4F);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--activa-azul, #00AEEF);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.breadcrumb-link:hover {
  color: var(--activa-verde, #00AF4F);
  text-decoration: none;
}

.breadcrumb-link i {
  font-size: 1.05rem;
}

.breadcrumb-separator {
  color: #94a3b8;
  font-weight: 600;
  flex-shrink: 0;
}

.breadcrumb-current {
  color: var(--texto-principal, #1e293b);
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.4;
}

/* Acciones del documento */
.document-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: -40px;
  margin-bottom: 15px;
  justify-content: space-around;
}

.btn-edit,
.btn-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-edit {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.btn-edit:hover {
  background: #ffeaa7;
  color: #856404;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-delete {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.btn-delete:hover {
  background: #f5c6cb;
  color: #721c24;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Banner del documento */
.document-banner-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.document-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenido principal */
.document-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f3f4;
}

/* Header de información del documento */
.document-header-info {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.document-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

/* Metadatos */
.document-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.95rem;
  color: #6c757d;
  flex-wrap: wrap;
}

.document-date,
.document-files-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.document-date i,
.document-files-count i {
  font-size: 1.1rem;
  color: #495057;
}

/* Descripción */
.document-description {
  margin-bottom: 2rem;
}

.document-description h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 1rem 0;
}

.description-content {
  color: #495057;
  line-height: 1.6;
  font-size: 1rem;
}

.description-content p {
  margin: 0 0 1rem 0;
}

.description-content p:last-child {
  margin-bottom: 0;
}

/* Archivos adjuntos */
.document-attachments {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

.document-attachments h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 1.5rem 0;
}

.attachments-grid {
  display: grid;
  gap: 1rem;
}

/* Item de archivo adjunto */
.attachment-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #f8f9fa;
  transition: all 0.2s ease;
}

.attachment-item:hover {
  background: #e9ecef;
  border-color: #dee2e6;
}

/* Icono del archivo */
.attachment-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}

.attachment-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.file-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #495057;
  color: white;
  border-radius: 6px;
}

.file-icon i {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.file-extension {
  font-size: 0.7rem;
  font-weight: 600;
}

/* Información del archivo */
.attachment-info {
  flex: 1;
}

.attachment-name {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.attachment-date {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
}

/* Acciones del archivo */
.attachment-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-view-file,
.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: white;
  color: #495057;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.btn-view-file:hover {
  background: #007bff;
  border-color: #007bff;
  color: white;
}

.btn-download:hover {
  background: #28a745;
  border-color: #28a745;
  color: white;
}

/* Estado de error */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  min-height: 400px;
}

.error-icon {
  font-size: 4rem;
  color: #dc3545;
  margin-bottom: 1rem;
}

.error-state h2 {
  font-size: 1.75rem;
  color: #495057;
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.error-state p {
  color: #6c757d;
  font-size: 1rem;
  margin: 0 0 2rem 0;
  max-width: 400px;
  line-height: 1.5;
}

/* Modal - reutiliza estilos de index.css */
/* Loading - reutiliza estilos de index.css */

/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .document-detail-container {
    padding: 1.5rem;
  }

  .document-banner-container {
    height: 250px;
  }

  .document-title {
    font-size: 2.25rem;
  }

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

/* Tablets */
@media (max-width: 768px) {
  .document-detail-container {
    padding: 1rem;
  }

  .document-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .breadcrumb {
    width: 100%;
  }

  .breadcrumb-current {
    min-width: 0;
  }

  .document-actions {
    width: 100%;
    justify-content: space-around;
    margin-top: 0;
    margin-bottom: 15px;
  }

  .document-banner-container {
    height: 200px;
    margin-bottom: 1.5rem;
  }

  .document-content {
    padding: 1.5rem;
  }

  .document-title {
    font-size: 2rem;
    line-height: 1.3;
  }

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

  .document-description h2 {
    font-size: 1.375rem;
  }

  .description-content {
    font-size: 0.95rem;
  }

  .document-attachments h2 {
    font-size: 1.375rem;
  }

  .attachment-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1.25rem;
  }

  .attachment-icon {
    width: 80px;
    height: 80px;
  }

  .attachment-info {
    order: 2;
  }

  .attachment-actions {
    order: 3;
    justify-content: center;
  }

  .btn-view-file,
  .btn-download {
    width: 40px;
    height: 40px;
  }
}

/* Mobile landscape */
@media (max-width: 640px) {
  .document-detail-container {
    padding: 0.75rem;
  }

  .document-banner-container {
    height: 180px;
    border-radius: 8px;
  }

  .document-content {
    padding: 1.25rem;
    border-radius: 8px;
  }

  .document-title {
    font-size: 1.75rem;
  }

  .document-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .document-date,
  .document-files-count {
    font-size: 0.9rem;
  }

  .document-description h2 {
    font-size: 1.25rem;
  }

  .description-content {
    font-size: 0.9rem;
  }

  .document-attachments h2 {
    font-size: 1.25rem;
  }

  .attachment-item {
    padding: 1rem;
  }

  .attachment-icon {
    width: 70px;
    height: 70px;
  }

  .attachment-name {
    font-size: 0.95rem;
  }

  .attachment-date {
    font-size: 0.8rem;
  }

  .btn-edit,
  .btn-delete {
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
    flex: 1;
    max-width: 120px;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .document-detail-container {
    padding: 0.5rem;
  }

  .document-detail-header {
    gap: 0.75rem;
  }

  .breadcrumb {
    font-size: 0.9rem;
  }

  .breadcrumb-current {
    min-width: 0;
  }

  .document-actions {
    gap: 0.5rem;
  }

  .document-banner-container {
    height: 160px;
    margin-bottom: 1rem;
  }

  .document-content {
    padding: 1rem;
  }

  .document-header-info {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .document-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .document-meta {
    gap: 0.5rem;
  }

  .document-date,
  .document-files-count {
    font-size: 0.85rem;
  }

  .document-description {
    margin-bottom: 1.5rem;
  }

  .document-description h2 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }

  .description-content {
    font-size: 0.875rem;
  }

  .document-attachments {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }

  .document-attachments h2 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }

  .attachment-item {
    padding: 0.875rem;
    gap: 0.5rem;
  }

  .attachment-icon {
    width: 60px;
    height: 60px;
  }

  .attachment-name {
    font-size: 0.9rem;
  }

  .attachment-date {
    font-size: 0.75rem;
  }

  .attachment-actions {
    gap: 0.25rem;
  }

  .btn-view-file,
  .btn-download {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .btn-edit,
  .btn-delete {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    flex: 1;
    max-width: 100px;
  }

  .error-state {
    padding: 2rem 1rem;
    min-height: 300px;
  }

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

  .error-state h2 {
    font-size: 1.5rem;
  }

  .error-state p {
    font-size: 0.9rem;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .document-detail-container {
    padding: 0.25rem;
  }

  .document-banner-container {
    height: 140px;
    border-radius: 6px;
  }

  .document-content {
    padding: 0.75rem;
    border-radius: 6px;
  }

  .document-title {
    font-size: 1.375rem;
  }

  .document-description h2 {
    font-size: 1rem;
  }

  .description-content {
    font-size: 0.8rem;
  }

  .document-attachments h2 {
    font-size: 1rem;
  }

  .attachment-item {
    padding: 0.75rem;
  }

  .attachment-icon {
    width: 50px;
    height: 50px;
  }

  .attachment-name {
    font-size: 0.85rem;
  }

  .attachment-date {
    font-size: 0.7rem;
  }

  .btn-view-file,
  .btn-download {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .btn-edit,
  .btn-delete {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    max-width: 80px;
  }
}

/* Modo oscuro para el detalle de documentos */
[data-theme="dark"] .document-detail-container {
  background: var(--fondo-general);
}

[data-theme="dark"] .breadcrumb {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-left-color: var(--activa-verde);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .breadcrumb-link {
  color: #7dd3fc;
}

[data-theme="dark"] .breadcrumb-link:hover {
  color: var(--activa-verde);
}

[data-theme="dark"] .breadcrumb-separator {
  color: #94a3b8;
}

[data-theme="dark"] .breadcrumb-current {
  color: #e2e8f0;
}

[data-theme="dark"] .btn-edit {
  background: #744210;
  color: #fbd38d;
  border-color: #d69e2e;
}

[data-theme="dark"] .btn-edit:hover {
  background: #d69e2e;
  color: #744210;
}

[data-theme="dark"] .btn-delete {
  background: #742a2a;
  color: #feb2b2;
  border-color: #e53e3e;
}

[data-theme="dark"] .btn-delete:hover {
  background: #e53e3e;
  color: #ffffff;
}

[data-theme="dark"] .document-content {
  background: #2d3748;
  border-color: #4a5568;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .document-header-info {
  border-bottom-color: #4a5568;
}

[data-theme="dark"] .document-title {
  color: white;
}

[data-theme="dark"] .document-meta {
  color: #a0aec0;
}

[data-theme="dark"] .document-date i,
[data-theme="dark"] .document-files-count i {
  color: #a0aec0;
}

[data-theme="dark"] .document-description h2 {
  color: #e2e8f0;
}

[data-theme="dark"] .description-content {
  color: #e2e8f0;
}

[data-theme="dark"] .document-attachments {
  border-top-color: #4a5568;
}

[data-theme="dark"] .document-attachments h2 {
  color: #e2e8f0;
}

[data-theme="dark"] .attachment-item {
  background: #4a5568;
  border-color: #718096;
}

[data-theme="dark"] .attachment-item:hover {
  background: #718096;
  border-color: #a0aec0;
}

[data-theme="dark"] .file-icon {
  background: #718096;
  color: #e2e8f0;
}

[data-theme="dark"] .attachment-name {
  color: #e2e8f0;
}

[data-theme="dark"] .attachment-date {
  color: #a0aec0;
}

[data-theme="dark"] .btn-view-file,
[data-theme="dark"] .btn-download {
  background: #4a5568;
  border-color: #718096;
  color: #e2e8f0;
}

[data-theme="dark"] .btn-view-file:hover {
  background: #007bff;
  border-color: #007bff;
  color: white;
}

[data-theme="dark"] .btn-download:hover {
  background: #28a745;
  border-color: #28a745;
  color: white;
}

[data-theme="dark"] .error-state {
  background: #2d3748;
  border: 1px solid #4a5568;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .error-icon {
  color: #e53e3e;
}

[data-theme="dark"] .error-state h2 {
  color: #e2e8f0;
}

[data-theme="dark"] .error-state p {
  color: #a0aec0;
}

/* Modo oscuro para el modal de eliminación */
[data-theme="dark"] .modal-overlay {
  background: rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .modal-content {
  background: #2d3748;
  border-color: #4a5568;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .modal-header {
  background: linear-gradient(135deg, #742a2a 0%, #4a1a1a 100%);
  border-bottom-color: #e53e3e;
}

[data-theme="dark"] .modal-header h2 {
  color: #feb2b2;
}

[data-theme="dark"] .modal-close {
  background: rgba(220, 53, 69, 0.2);
  border-color: rgba(220, 53, 69, 0.3);
  color: #feb2b2;
}

[data-theme="dark"] .modal-close:hover:not(:disabled) {
  background-color: #e53e3e;
  color: white;
  border-color: #e53e3e;
}

[data-theme="dark"] .modal-body {
  background: linear-gradient(135deg, #2d3748 0%, #374151 100%);
}

[data-theme="dark"] .modal-body p {
  color: #e2e8f0;
}

[data-theme="dark"] .warning-icon {
  color: #e53e3e;
}

[data-theme="dark"] .warning-text {
  background: rgba(220, 53, 69, 0.2);
  color: #feb2b2;
  border-left-color: #e53e3e;
}

[data-theme="dark"] .modal-footer {
  background: linear-gradient(135deg, #2d3748 0%, #374151 100%);
  border-top-color: #4a5568;
}

[data-theme="dark"] .btn-cancel {
  background: linear-gradient(135deg, #4a5568, #718096);
  color: #e2e8f0;
}

[data-theme="dark"] .btn-cancel:hover:not(:disabled) {
  background: linear-gradient(135deg, #718096, #a0aec0);
  color: #2d3748;
}

[data-theme="dark"] .btn-delete-confirm {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: white;
}

[data-theme="dark"] .btn-delete-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #c53030, #9b2c2c);
}

[data-theme="dark"] .loading-spinner-small {
  border-color: #4a5568;
  border-top-color: #e53e3e;
}
/* Contenedor principal del formulario */
.document-form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  min-height: calc(100vh - 160px);
}

/* Header del formulario */
.document-form-header {
  margin-bottom: 2rem;
}

.document-form-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
}

.document-form-header p {
  color: #6c757d;
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

/* Breadcrumb - mismo estilo que document-detail */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--activa-azul, #00aeef);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--activa-verde, #00af4f);
  text-decoration: none;
}

.breadcrumb-separator {
  color: #94a3b8;
  font-weight: 600;
}

.breadcrumb-current {
  color: var(--texto-principal, #1e293b);
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* Formulario */
.document-form {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f3f4;
  overflow: hidden;
}

/* Secciones del formulario */
.form-section {
  padding: 2rem;
  border-bottom: 1px solid #e9ecef;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
}

.section-description {
  color: #6c757d;
  font-size: 0.95rem;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

/* Grupos de formulario */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
  font-family: inherit;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-input:disabled,
.form-textarea:disabled {
  background: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

.form-textarea {
  min-height: 120px;
}

/* Contador de caracteres */
.char-counter {
  display: block;
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.25rem;
  text-align: right;
}

/* Área de subida de archivos */
.file-upload-area {
  position: relative;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #fafbfc;
}

.file-upload-area:hover {
  border-color: #007bff;
  background: #f8f9fa;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-placeholder {
  pointer-events: none;
}

.upload-placeholder i {
  font-size: 2.5rem;
  color: #6c757d;
  margin-bottom: 1rem;
  display: block;
}

.upload-placeholder p {
  font-size: 1rem;
  font-weight: 500;
  color: #495057;
  margin: 0 0 0.5rem 0;
}

.upload-placeholder span {
  font-size: 0.875rem;
  color: #6c757d;
}

/* Preview del banner */
.banner-preview {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  max-width: 400px;
}

.banner-preview img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.remove-banner-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.remove-banner-btn:hover:not(:disabled) {
  background: rgba(220, 53, 69, 1);
}

.remove-banner-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Lista de archivos */
.files-list {
  margin-bottom: 1.5rem;
}

/* Item de archivo */
.file-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  background: white;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.file-item:hover {
  background: #f8f9fa;
  border-color: #dee2e6;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.file-item:last-child {
  margin-bottom: 0;
}

/* Contenedor del preview */
.file-preview-container {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Preview del archivo */
.file-preview {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
  border: none;
  transition: all 0.2s ease;
}

.file-item:hover .file-preview {
  border-color: #adb5bd;
  background: #e9ecef;
}

.file-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.file-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #495057;
  color: white;
  border-radius: 4px;
}

.file-icon i {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.file-extension {
  font-size: 0.7rem;
  font-weight: 600;
}

/* Contenedor de información del archivo */
.file-info-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

/* Información del archivo */
.file-info {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
}

.file-name-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
}

.file-status {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6c757d;
  margin: 0;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.file-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6c757d;
  display: inline-block;
}

.file-info p {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
}

/* Botón eliminar archivo */
.remove-file-btn {
  flex-shrink: 0;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-file-btn:hover:not(:disabled) {
  background: #f5c6cb;
}

.remove-file-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Acciones del formulario */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-cancel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #6c757d;
  color: white;
  text-decoration: none;
  padding: 0.875rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-cancel:hover {
  background: #545b62;
  color: white;
  text-decoration: none;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.25);
}

.btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #20c997, #17a2b8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.35);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Loading spinner pequeño */
.loading-spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

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

/* Estados de validación */
.form-input.invalid,
.form-textarea.invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-input.valid,
.form-textarea.valid {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Mensajes de error */
.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .document-form-container {
    padding: 1.5rem 2rem;
    max-width: 900px;
  }

  .document-form-header h1 {
    font-size: 2rem;
  }

  .form-section {
    padding: 1.75rem 2rem;
  }

  .banner-preview {
    max-width: 350px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .document-form-container {
    padding: 1rem 1.5rem;
    max-width: 100%;
  }

  .document-form-header h1 {
    font-size: 1.875rem;
  }

  .document-form-header p {
    font-size: 0.95rem;
  }

  .breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .form-section {
    padding: 1.5rem 1.75rem;
  }

  .form-section h2 {
    font-size: 1.375rem;
  }

  .section-description {
    font-size: 0.9rem;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .form-input,
  .form-textarea {
    font-size: 0.95rem;
    padding: 0.8rem;
  }

  .form-textarea {
    min-height: 100px;
  }

  .char-counter {
    font-size: 0.8rem;
  }

  .file-upload-area {
    padding: 1.75rem;
  }

  .upload-placeholder i {
    font-size: 2rem;
  }

  .upload-placeholder p {
    font-size: 0.95rem;
  }

  .upload-placeholder span {
    font-size: 0.8rem;
  }

  .banner-preview {
    max-width: 300px;
  }

  .banner-preview img {
    max-height: 180px;
  }

  .file-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1.25rem;
  }

  .file-preview {
    width: 80px;
    height: 80px;
  }

  .file-info {
    order: 2;
  }

  .file-info h4 {
    font-size: 0.9rem;
  }

  .file-info p {
    font-size: 0.8rem;
  }

  .remove-file-btn {
    order: 3;
    align-self: center;
    padding: 0.6rem;
  }

  .form-actions {
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .form-actions button,
  .form-actions a {
    flex: initial;
    min-width: 0;
  }

  .btn-cancel,
  .btn-submit {
    display: flex;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    text-align: center;
  }
}

/* Mobile landscape */
@media (max-width: 640px) {
  .document-form-container {
    padding: 0.75rem 1rem;
    max-width: 100%;
  }

  .document-form-header h1 {
    font-size: 1.75rem;
  }

  .form-section {
    padding: 1.25rem 1.5rem;
  }

  .form-section h2 {
    font-size: 1.25rem;
  }

  .form-input,
  .form-textarea {
    padding: 0.75rem;
  }

  .file-upload-area {
    padding: 1.5rem 1rem;
  }

  .upload-placeholder i {
    font-size: 1.75rem;
  }

  .banner-preview {
    max-width: 250px;
  }

  .banner-preview img {
    max-height: 160px;
  }

  .file-item {
    padding: 1rem;
  }

  .file-preview {
    width: 70px;
    height: 70px;
  }

  .form-actions {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  .form-actions button,
  .form-actions a {
    flex: initial;
    min-width: 0;
  }

  .btn-cancel,
  .btn-submit {
    display: flex;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    text-align: center;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .document-form-container {
    padding: 0.5rem 0.75rem;
    max-width: 100%;
  }

  .document-form-header h1 {
    font-size: 1.5rem;
  }

  .document-form-header p {
    font-size: 0.9rem;
  }

  .breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .form-section {
    padding: 1rem 1.25rem;
  }

  .form-section h2 {
    font-size: 1.125rem;
  }

  .section-description {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-label {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }

  .form-input,
  .form-textarea {
    font-size: 0.9rem;
    padding: 0.7rem;
    border-radius: 4px;
  }

  .form-textarea {
    min-height: 80px;
  }

  .char-counter {
    font-size: 0.75rem;
  }

  .file-upload-area {
    padding: 1.5rem 1rem;
    border-radius: 6px;
  }

  .upload-placeholder i {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .upload-placeholder p {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }

  .upload-placeholder span {
    font-size: 0.75rem;
  }

  .banner-preview {
    max-width: 100%;
  }

  .banner-preview img {
    max-height: 140px;
  }

  .remove-banner-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .file-item {
    padding: 0.875rem;
    gap: 0.5rem;
  }

  .file-preview {
    width: 60px;
    height: 60px;
  }

  .file-icon i {
    font-size: 1.25rem;
  }

  .file-extension {
    font-size: 0.6rem;
  }

  .file-info h4 {
    font-size: 0.85rem;
  }

  .file-info p {
    font-size: 0.75rem;
  }

  .remove-file-btn {
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  .form-actions {
    padding: 1rem;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
  }
  .form-actions button,
  .form-actions a {
    flex: initial;
    min-width: 0;
  }

  .btn-cancel,
  .btn-submit {
    display: flex;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    text-align: center;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .document-form-container {
    padding: 0.25rem 0.5rem;
    max-width: 100%;
  }

  .document-form-header h1 {
    font-size: 1.375rem;
  }

  .document-form-header p {
    font-size: 0.85rem;
  }

  .breadcrumb {
    font-size: 0.8rem;
  }

  .form-section {
    padding: 0.75rem 1rem;
  }

  .form-section h2 {
    font-size: 1rem;
  }

  .section-description {
    font-size: 0.8rem;
  }

  .form-label {
    font-size: 0.8rem;
  }

  .form-input,
  .form-textarea {
    font-size: 0.85rem;
    padding: 0.6rem;
  }

  .form-textarea {
    min-height: 70px;
  }

  .char-counter {
    font-size: 0.7rem;
  }

  .file-upload-area {
    padding: 1.25rem 0.75rem;
  }

  .upload-placeholder i {
    font-size: 1.5rem;
  }

  .upload-placeholder p {
    font-size: 0.85rem;
  }

  .upload-placeholder span {
    font-size: 0.7rem;
  }

  .banner-preview img {
    max-height: 120px;
  }

  .remove-banner-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
  }

  .file-item {
    padding: 0.75rem;
  }

  .file-preview {
    width: 50px;
    height: 50px;
  }

  .file-icon i {
    font-size: 1rem;
  }

  .file-extension {
    font-size: 0.55rem;
  }

  .file-info h4 {
    font-size: 0.8rem;
  }

  .file-info p {
    font-size: 0.7rem;
  }

  .remove-file-btn {
    padding: 0.4rem;
    font-size: 0.75rem;
  }

  .form-actions {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .btn-cancel,
  .btn-submit {
    display: flex;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.8rem;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    text-align: center;
  }
}

/* Ensure navbar/menu overlays buttons on documents screen */
.document-form {
  position: relative;
  z-index: 1;
}

.form-actions {
  position: relative;
  z-index: 1;
}

/* Modo oscuro para el formulario de documentos */
[data-theme="dark"] .document-form-container {
  background: var(--fondo-general);
}

[data-theme="dark"] .document-form-header h1 {
  color: white;
}

[data-theme="dark"] .document-form-header p {
  color: #a0aec0;
}

[data-theme="dark"] .breadcrumb-link {
  color: #90cdf4;
}

[data-theme="dark"] .breadcrumb-link:hover {
  color: #63b3ed;
}

[data-theme="dark"] .breadcrumb-separator {
  color: #a0aec0;
}

[data-theme="dark"] .breadcrumb-current {
  color: #e2e8f0;
}

[data-theme="dark"] .document-form {
  background: #2d3748;
  border-color: #4a5568;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .form-section {
  border-bottom-color: #4a5568;
}

[data-theme="dark"] .form-section h2 {
  color: #e2e8f0;
}

[data-theme="dark"] .section-description {
  color: #a0aec0;
}

[data-theme="dark"] .form-label {
  color: #e2e8f0;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea {
  background: #4a5568;
  border-color: #718096;
  color: #e2e8f0;
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

[data-theme="dark"] .form-input:disabled,
[data-theme="dark"] .form-textarea:disabled {
  background: #4a5568;
  color: #a0aec0;
}

[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
  color: #a0aec0;
}

[data-theme="dark"] .char-counter {
  color: #a0aec0;
}

[data-theme="dark"] .file-upload-area {
  background: #4a5568;
  border-color: #718096;
}

[data-theme="dark"] .file-upload-area:hover {
  border-color: #007bff;
  background: #374151;
}

[data-theme="dark"] .upload-placeholder i {
  color: #a0aec0;
}

[data-theme="dark"] .upload-placeholder p {
  color: #e2e8f0;
}

[data-theme="dark"] .upload-placeholder span {
  color: #a0aec0;
}

[data-theme="dark"] .file-item {
  background: #2d3748;
  border-color: #4a5568;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .file-item:hover {
  background: #374151;
  border-color: #718096;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .file-preview {
  background: #4a5568;
  border-color: #718096;
}

[data-theme="dark"] .file-item:hover .file-preview {
  border-color: #a0aec0;
  background: #4a5568;
}

[data-theme="dark"] .file-icon {
  background: #718096;
  color: #ffffff;
}

[data-theme="dark"] .file-name-title {
  color: #ffffff !important;
}

[data-theme="dark"] .file-info h4 {
  color: #ffffff;
}

[data-theme="dark"] .file-info p {
  color: #ffffff;
}

[data-theme="dark"] .file-status {
  color: #ffffff !important;
}

[data-theme="dark"] .file-status::before {
  background: #a0aec0;
}

[data-theme="dark"] .remove-file-btn {
  background: #742a2a;
  color: #feb2b2;
  border-color: #e53e3e;
}

[data-theme="dark"] .remove-file-btn:hover:not(:disabled) {
  background: #e53e3e;
  color: #ffffff;
}

[data-theme="dark"] .form-actions {
  background: #2d3748;
  border-top-color: #4a5568;
}

[data-theme="dark"] .btn-cancel {
  background: #4a5568;
  color: #e2e8f0;
}

[data-theme="dark"] .btn-cancel:hover {
  background: #718096;
  color: #ffffff;
}

[data-theme="dark"] .btn-submit {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

[data-theme="dark"] .btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #20c997, #17a2b8);
}

[data-theme="dark"] .form-input.invalid,
[data-theme="dark"] .form-textarea.invalid {
  border-color: #e53e3e;
  box-shadow: 0 0 0 0.2rem rgba(229, 62, 62, 0.25);
}

[data-theme="dark"] .form-input.valid,
[data-theme="dark"] .form-textarea.valid {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

[data-theme="dark"] .error-message {
  color: #feb2b2;
}
.calificacion-container {
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.calificacion-header {
    margin-bottom: 1.5rem;
}

.calificacion-header h1 {
    font-size: 1.75rem;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}

.calificacion-header p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

.calificacion-preguntas {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    font-size: 0.9rem;
    color: #4b5563;
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
}

.calificacion-preguntas li {
    padding: 0.35rem 0;
    padding-left: 1rem;
    position: relative;
}

.calificacion-preguntas li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0d9488;
}

.calificacion-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.calificacion-stars-wrap {
    border: none;
    padding: 0;
    margin: 0;
}

.calificacion-stars-wrap legend {
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.calificacion-stars {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.calificacion-star-btn {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    font-size: 2rem;
    color: #d1d5db;
    transition:
        color 0.15s,
        transform 0.1s;
    line-height: 1;
}

.calificacion-star-btn:hover {
    color: #fbbf24;
    transform: scale(1.1);
}

.calificacion-star-btn[aria-pressed="true"],
.calificacion-star-btn i.ri-star-fill {
    color: #f59e0b;
}

.calificacion-stars-label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.calificacion-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: #374151;
}

.calificacion-field input,
.calificacion-field textarea {
    padding: 0.6rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.calificacion-field textarea {
    resize: vertical;
    min-height: 80px;
}

.calificacion-submit {
    padding: 0.75rem 1.5rem;
    background: #0d9488;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.calificacion-submit:hover:not(:disabled) {
    background: #0f766e;
}

.calificacion-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.calificacion-gracias {
    text-align: center;
    padding: 2rem 1rem;
}

.calificacion-icono-ok {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 1rem;
}

.calificacion-gracias h1 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}

.calificacion-gracias p {
    color: #6b7280;
    margin: 0;
}

[data-theme="dark"] .calificacion-header h1,
[data-theme="dark"] .calificacion-gracias h1 {
    color: #fff;
}

[data-theme="dark"] .calificacion-header p,
[data-theme="dark"] .calificacion-gracias p {
    color: #a0aec0;
}

[data-theme="dark"] .calificacion-preguntas {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .calificacion-stars-wrap legend,
[data-theme="dark"] .calificacion-field {
    color: #e2e8f0;
}

[data-theme="dark"] .calificacion-field input,
[data-theme="dark"] .calificacion-field textarea {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .calificacion-star-btn {
    color: #4a5568;
}

[data-theme="dark"] .calificacion-star-btn:hover,
[data-theme="dark"] .calificacion-star-btn[aria-pressed="true"] {
    color: #f59e0b;
}

[data-theme="dark"] .calificacion-stars-label {
    color: #a0aec0;
}
/* ──────────────────────────────────────────────────────────
   Tec Assistant — botón flotante + panel de chat
   ────────────────────────────────────────────────────────── */

.tec-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
    transition: transform 0.25s ease, filter 0.25s ease;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.18));
}

.tec-fab:hover {
    transform: translateY(-4px) scale(1.04);
    filter: drop-shadow(0 14px 22px rgba(15, 23, 42, 0.28));
}

.tec-fab:active {
    transform: translateY(-1px) scale(1.0);
}

.tec-fab__avatar {
    width: 140px;
    height: 140px;
    object-fit: contain;
    display: block;
    background: transparent;
    pointer-events: none;
    animation: tec-float 3.5s ease-in-out infinite;
}

@keyframes tec-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.tec-fab__avatar-fallback {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #2E86C1;
    font-size: 70px;
    animation: tec-float 3.5s ease-in-out infinite;
}

.tec-fab__badge {
    position: absolute;
    bottom: 10px;
    right: 8px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1A5276;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3);
    pointer-events: none;
    animation: tec-pulse 2.2s ease-in-out infinite;
}

@keyframes tec-pulse {
    0%, 100% { box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3), 0 0 0 0 rgba(46, 134, 193, 0.5); }
    50%      { box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3), 0 0 0 10px rgba(46, 134, 193, 0); }
}

.tec-fab__tooltip {
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: #1B2631;
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.tec-fab__tooltip::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #1B2631;
}

.tec-fab:hover .tec-fab__tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 600px) {
    .tec-fab__avatar,
    .tec-fab__avatar-fallback { width: 100px; height: 100px; }
    .tec-fab__badge { width: 30px; height: 30px; font-size: 15px; bottom: 6px; right: 4px; }
    .tec-fab__tooltip { display: none; }
}

/* ── Panel ─────────────────────────────────────────────── */

.tec-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.tec-panel-overlay--open {
    opacity: 1;
    pointer-events: auto;
}

.tec-panel {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 400px;
    max-width: calc(100vw - 32px);
    height: 600px;
    max-height: calc(100vh - 48px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.tec-panel--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 600px) {
    .tec-panel {
        right: 8px;
        left: 8px;
        bottom: 8px;
        width: auto;
        height: calc(100vh - 16px);
        max-height: none;
    }
}

[data-theme="dark"] .tec-panel {
    background: #1B2631;
    color: #ECF0F1;
}

/* ── Header ─────────────────────────────────────────────── */

.tec-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #1A5276 0%, #2E86C1 100%);
    color: #fff;
}

.tec-header__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.tec-header__avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    font-size: 22px;
}

.tec-header__title {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.tec-header__name {
    font-size: 15px;
    font-weight: 700;
}

.tec-header__status {
    font-size: 11px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tec-header__status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ECC71;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.3);
}

.tec-header__actions {
    display: flex;
    gap: 6px;
}

.tec-header__btn {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.15s ease;
}

.tec-header__btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ── Lista de mensajes ─────────────────────────────────── */

.tec-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #F8FAFC;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

[data-theme="dark"] .tec-messages {
    background: #212F3D;
}

.tec-messages::-webkit-scrollbar { width: 6px; }
.tec-messages::-webkit-scrollbar-thumb { background: #CBD5E0; border-radius: 4px; }

.tec-empty {
    margin: auto;
    text-align: center;
    color: #64748B;
    padding: 16px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tec-empty__hero {
    width: 88px;
    height: 88px;
    object-fit: contain;
    margin-bottom: 4px;
    animation: tec-float 3.5s ease-in-out infinite;
}

.tec-empty__title {
    font-weight: 700;
    color: #1A5276;
    font-size: 20px;
    line-height: 1.25;
    margin: 0;
}

[data-theme="dark"] .tec-empty__title {
    color: #5DADE2;
}

.tec-empty__subtitle {
    font-weight: 600;
    color: #2E86C1;
    font-size: 14px;
    margin: 0;
}

.tec-empty__lead {
    color: #475569;
    font-size: 13.5px;
    margin: 8px 0 12px;
    max-width: 280px;
    line-height: 1.4;
}

[data-theme="dark"] .tec-empty__lead {
    color: #D5DBDB;
}

.tec-empty__suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.tec-empty__suggestion {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 10px 14px;
    text-align: left;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.1s ease;
    font-family: inherit;
}

.tec-empty__suggestion:hover {
    border-color: #2E86C1;
    transform: translateX(2px);
}

[data-theme="dark"] .tec-empty__suggestion {
    background: #2C3E50;
    color: #D6DBDF;
    border-color: #34495E;
}

/* ── Bubble ─────────────────────────────────────────────── */

.tec-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    animation: tec-fade-in 0.2s ease;
}

@keyframes tec-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tec-msg--user {
    align-self: flex-end;
    background: #2E86C1;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.tec-msg--assistant {
    align-self: flex-start;
    background: #fff;
    color: #1C2833;
    border: 1px solid #E2E8F0;
    border-bottom-left-radius: 4px;
}

[data-theme="dark"] .tec-msg--assistant {
    background: #2C3E50;
    color: #ECF0F1;
    border-color: #34495E;
}

.tec-msg p { margin: 0 0 8px 0; }
.tec-msg p:last-child { margin-bottom: 0; }

.tec-msg__send-email {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: linear-gradient(135deg, #1A5276 0%, #2E86C1 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(26, 82, 118, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.tec-msg__send-email:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(26, 82, 118, 0.35);
}

.tec-msg__send-email:disabled {
    opacity: 0.7;
    cursor: wait;
}

.tec-msg__send-spinner {
    width: 11px;
    height: 11px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tec-spin 0.75s linear infinite;
}

@keyframes tec-spin {
    to { transform: rotate(360deg); }
}
.tec-msg ul, .tec-msg ol { margin: 6px 0; padding-left: 22px; }
.tec-msg li { margin-bottom: 4px; }
.tec-msg strong { font-weight: 700; }
.tec-msg code {
    background: rgba(0, 0, 0, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: Consolas, Monaco, monospace;
    font-size: 12.5px;
}
.tec-msg--user code { background: rgba(255, 255, 255, 0.2); color: #fff; }
.tec-msg table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    font-size: 13px;
}
.tec-msg th, .tec-msg td {
    border: 1px solid #E2E8F0;
    padding: 4px 8px;
    text-align: left;
}
.tec-msg th { background: #F1F5F9; font-weight: 600; }
[data-theme="dark"] .tec-msg th, [data-theme="dark"] .tec-msg td { border-color: #34495E; }
[data-theme="dark"] .tec-msg th { background: #34495E; }

/* ── Typing indicator ──────────────────────────────────── */

.tec-typing {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    padding: 10px 14px;
    display: flex;
    gap: 4px;
}

[data-theme="dark"] .tec-typing {
    background: #2C3E50;
    border-color: #34495E;
}

.tec-typing__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2E86C1;
    animation: tec-bounce 1.2s infinite ease-in-out;
}

.tec-typing__dot:nth-child(2) { animation-delay: 0.15s; }
.tec-typing__dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes tec-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-6px); opacity: 1; }
}

/* ── Input ──────────────────────────────────────────────── */

.tec-input {
    border-top: 1px solid #E2E8F0;
    padding: 12px;
    display: flex;
    gap: 8px;
    background: #fff;
}

[data-theme="dark"] .tec-input {
    background: #1B2631;
    border-top-color: #34495E;
}

.tec-input__field {
    flex: 1;
    border: 1px solid #CBD5E0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    resize: none;
    max-height: 100px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease;
}

.tec-input__field:focus { border-color: #2E86C1; }

[data-theme="dark"] .tec-input__field {
    background: #2C3E50;
    color: #ECF0F1;
    border-color: #34495E;
}

.tec-input__send {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: none;
    background: #2E86C1;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.15s ease;
}

.tec-input__send:hover:not(:disabled) { background: #1A5276; }
.tec-input__send:disabled { background: #94A3B8; cursor: not-allowed; }

.tec-disclaimer {
    text-align: center;
    font-size: 10.5px;
    color: #94A3B8;
    padding: 4px 12px 8px;
    background: #fff;
}

[data-theme="dark"] .tec-disclaimer { background: #1B2631; }
