:root {
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 70px;
  --primary-color: #23395d;
  --secondary-color: #2f6db2;
  --hover-color: #1d2f4a;
  --transition-speed: 0.3s;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

.admin-layout {
  display: flex;
  height: 100vh;
  transition: all var(--transition-speed) ease;
}
/* Agrega esto a tu AprovacionesTable.css */

.loading {
  padding: 20px;
  text-align: center;
  font-style: italic;
  color: #666;
}

.detail-row {
  background-color: #f9f9f9;
}

.requisicion-details {
  padding: 15px;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.detail-label {
  font-weight: bold;
  color: #555;
  display: block;
  margin-bottom: 5px;
}

.full-width {
  grid-column: 1 / -1;
}

.status-bubble {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8em;
}

.estado.enviado .status-bubble {
  background-color: #d4edda;
  color: #155724;
}

.estado.pendiente .status-bubble {
  background-color: #fff3cd;
  color: #856404;
}

.btn-view {
  background-color: #17a2b8;
  color: white;
}

.btn-view:hover {
  background-color: #138496;
}
.sidebar {
  width: var(--sidebar-width);
  background: var(--primary-color);
  color: white;
  padding: 20px 0;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
  margin: 0;
  font-size: 18px;
  white-space: nowrap;
}

.toggle-sidebar {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  transition: transform var(--transition-speed) ease;
}

.toggle-sidebar:hover {
  transform: scale(1.1);
}

.sidebar-menu {
  list-style: none;
  padding: 20px 0;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu li {
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all var(--transition-speed) ease;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-menu li:hover {
  background-color: var(--hover-color);
  padding-left: 25px;
}

.sidebar-menu li.active {
  background-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 3px 0 #60a5fa;
}

.menu-icon {
  margin-right: 10px;
  font-size: 16px;
  min-width: 20px;
}

.filter-section {
  padding: 15px 20px;
  transition: all var(--transition-speed) ease;
}

.filter-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 0;
  transition: all var(--transition-speed) ease;
}

.filter-header:hover {
  color: #a8c6f8;
}

.filter-icon {
  margin-right: 10px;
  font-size: 14px;
}

.filter-options {
  margin-top: 10px;
  padding-left: 25px;
  animation: fadeIn var(--transition-speed) ease;
}

.filter-options label {
  display: block;
  margin: 8px 0;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.filter-options label:hover {
  color: #a8c6f8;
}

.filter-options input {
  margin-right: 8px;
}

.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-speed) ease;
}

.top-header {
  background: #ffffff;
  padding: 15px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

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

.user-label {
  font-weight: 500;
  color: #555;
}

.logout-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: #555;
  transition: color 0.2s;
}

.logout-btn:hover {
  color: #d32f2f;
}

.content-area {
  padding: 20px;
  flex-grow: 1;
  overflow-y: auto;
  background-color: white;
  margin: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.inicio-view {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 18px;
}

.table-container {
  overflow-x: auto;
  animation: fadeIn 0.5s ease;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.styled-table thead {
  background-color: var(--secondary-color);
  color: white;
}

.styled-table th,
.styled-table td {
  padding: 12px 15px;
  text-align: left;
  transition: all 0.2s ease;
}

.styled-table tbody tr {
  border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
  background-color: #f8fafc;
}

.styled-table tbody tr:hover {
  background-color: #f1f5f9;
  transform: translateX(2px);
}

.estado.aprobado {
  color: #10b981;
}

.estado.rechazado {
  color: #ef4444;
}

.status-bubble {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.estado.aprobado .status-bubble {
  background-color: #d1fae5;
}

.estado.rechazado .status-bubble {
  background-color: #fee2e2;
}

.btn {
  margin-right: 5px;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.btn-view {
  background-color: #3b82f6;
  color: white;
}

.btn-edit {
  background-color: #f59e0b;
  color: white;
}

.btn-delete {
  background-color: #ef4444;
  color: white;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Collapsed state */
.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed-width);
}

.sidebar-collapsed .sidebar-header h2,
.sidebar-collapsed .sidebar-menu span,
.sidebar-collapsed .filter-header span {
  display: none;
}

.sidebar-collapsed .sidebar-header {
  justify-content: center;
  padding: 20px 0;
}

.sidebar-collapsed .sidebar-menu li {
  justify-content: center;
  padding: 12px 0;
}

.sidebar-collapsed .menu-icon {
  margin-right: 0;
  font-size: 18px;
}

.sidebar-collapsed .filter-header {
  justify-content: center;
  padding: 8px 0;
}

.sidebar-collapsed .filter-icon {
  margin-right: 0;
  font-size: 16px;
}

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

/* Responsive */
@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .sidebar {
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    padding: 12px 0 0;
  }

  .sidebar-header {
    padding: 0 16px 12px;
  }

  .toggle-sidebar {
    display: none;
  }

  .sidebar-menu,
  .sidebar-collapsed .sidebar-menu,
  .sidebar-collapsed .filter-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 4px;
    padding: 8px;
  }

  .sidebar-collapsed .sidebar {
    width: 100%;
    height: auto;
  }

  .sidebar-collapsed .sidebar-header {
    justify-content: space-between;
    padding: 0 16px 12px;
  }

  .sidebar-collapsed .sidebar-header h2,
  .sidebar-collapsed .sidebar-menu span,
  .sidebar-collapsed .filter-header span {
    display: initial;
  }

  .sidebar-menu li,
  .sidebar-collapsed .sidebar-menu li {
    min-width: 0;
    padding: 10px 12px;
  }

  .sidebar-menu li:hover {
    padding-left: 12px;
  }

  .sidebar-collapsed .menu-icon {
    margin-right: 10px;
    font-size: 16px;
  }

  .filter-section,
  .sidebar-collapsed .filter-section {
    display: none;
  }

  .main-content {
    min-width: 0;
  }

  .content-area {
    margin: 10px;
    padding: 14px;
  }
}

.convenios-view {
  background-color: #fff;
  padding: 30px;
  text-align: center;
}

.btn-subir-excel {
  background-color: #28a745;
  color: white;
  font-size: 18px;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-subir-excel:hover {
  background-color: #218838;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}
.inicio-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(to bottom, #f5f7fa, #eef2f5);
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - 80px);
  padding: 2rem;
  box-sizing: border-box;
}

.inicio-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1.4rem 2rem;
  box-sizing: border-box;
}

.inicio-intro {
  width: 100%;
  text-align: left;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.inicio-intro h1 {
  margin: 0 0 0.35rem 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.025em;
  text-align: left;
}

.inicio-intro p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  text-align: left;
}

/* Honeycomb styles */
.honeycomb-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
}

.honeycomb {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.honeycomb-row {
  display: flex;
  justify-content: center;
}

.honeycomb-row-offset {
  margin-top: -56px;
}

.honeycomb-cell {
  width: 220px;
  height: 250px;
  margin: 0 3px;
  position: relative;
  transition: all 0.3s ease;
}

/* z-index alto al hacer hover para que el efecto resalte por encima de los demás */
.honeycomb-cell:hover {
  z-index: 10;
}

.honeycomb-cell:focus-visible {
  outline: 3px solid #ff8c00;
  outline-offset: 4px;
}

.honeycomb-hex {
  width: 100%;
  height: 100%;
  background: #ffffff;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.honeycomb-cell:hover .honeycomb-hex {
  transform: scale(1.05);
  /* Escala más suave para que no empuje las otras celdas */
  box-shadow: 0 15px 30px rgba(74, 107, 175, 0.25);
}

.honeycomb-icon {
  color: #4a6baf;
  margin-bottom: 20px;
  transition: all 0.4s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.honeycomb-cell:hover .honeycomb-icon {
  color: #ff8c00;
  transform: scale(1.15) rotate(5deg);
}

.honeycomb-hex-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(74, 107, 175, 0.95) 0%, rgba(58, 87, 149, 0.95) 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.4s ease;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transform: scale(0.95);
}

.honeycomb-cell:hover .honeycomb-hex-content {
  opacity: 1;
  transform: scale(1);
}

.honeycomb-hex-content h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.honeycomb-hex-content p {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.honeycomb-hex-content .honeycomb-action {
  display: inline-block;
  background-color: rgba(255, 165, 0, 0.95);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  font-size: 0.95rem;
  min-width: 120px;
}

.honeycomb-hex-content .honeycomb-action:hover {
  background-color: rgba(255, 140, 0, 1);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Slogan box styles */
.slogan-box {
  width: 100%;
  max-width: 500px;
  margin: 3rem auto -1rem;
  padding: 1.5rem;
  background: linear-gradient(145deg, #ffffff, #f0f4f8);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.slogan-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.slogan-content h2 {
  font-size: 2rem;
  /* Reducido de 2.5rem */
  color: #2c3e50;
  margin-bottom: 0.1rem;
  font-weight: 700;
}

.slogan-content p {
  font-size: 1.2rem;
  /* Reducido de 1.5rem */
  color: #4a6baf;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.slogan-decoration {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  background: rgba(255, 165, 0, 0.1);
  border-radius: 50%;
  z-index: 1;
}

.slogan-decoration::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: rgba(74, 107, 175, 0.1);
  border-radius: 50%;
}
/* RequisicionesView.module.css */
._container_hxqut_2 {
  background: linear-gradient(to bottom, #f5f7fa, #eef2f5);
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

._header_hxqut_8 {
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 20px;
  padding: 0;
  text-align: left;
  letter-spacing: -0.025em;
}

._filterContainer_hxqut_19 {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

._tabs_hxqut_27 {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}

._tab_hxqut_27 {
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

._tab_hxqut_27:focus:not(:focus-visible) {
  outline: none;
}

._tab_hxqut_27:focus-visible {
  outline: 2px solid #3182ce;
  outline-offset: 2px;
}

._tabActive_hxqut_54 {
  background: #3182ce;
  color: white;
  box-shadow: 0 2px 5px rgba(49, 130, 206, 0.3);
}

._tabInactive_hxqut_60 {
  background: white;
  color: #3182ce;
  border: 1px solid #bee3f8;
}

._tabInactive_hxqut_60:hover {
  background: #ebf8ff;
}

._searchContainer_hxqut_70 {
  position: relative;
  width: 100%;
  margin: 15px 0;
}

._searchInput_hxqut_76 {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 15px 12px 40px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
}

._searchInput_hxqut_76:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

._searchIcon_hxqut_92 {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
}

._refreshButton_hxqut_100 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  background: #ebf8ff;
  color: #3182ce;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

._refreshButton_hxqut_100:hover {
  background: #bee3f8;
}

._requisicionList_hxqut_118 {
  background: transparent;
  box-shadow: none;
}

._requisicionList_hxqut_118 ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

._requisicionItem_hxqut_132 {
  background: white;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #edf2f7;
  transition: all 0.3s ease;
}

._requisicionItem_hxqut_132:hover {
  background: #F3F6F9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
}

._requisicionHeader_hxqut_147 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 768px) {
  ._requisicionHeader_hxqut_147 {
    flex-direction: row;
    justify-content: space-between;
  }
}

._requisicionInfo_hxqut_160 {
  flex: 1;
  min-width: 0;
}

._requisicionTitle_hxqut_165 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

._requisicionName_hxqut_172 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._requisicionMeta_hxqut_182 {
  font-size: 0.9rem;
  color: #718096;
  margin: 5px 0;
}

._requisicionDesc_hxqut_188 {
  color: #4a5568;
  margin: 10px 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

._reqId_hxqut_196 {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  background-color: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
}

._badgePendiente_hxqut_205 {
  background-color: #fef08a;
  color: #854d0e;          
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

._requisicionBadge_hxqut_214 {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

._badgeTic_hxqut_221 {
  background: #ebf5ff;
  color: #3182ce;
}

._badgeLogistica_hxqut_226 {
  background: #f0fff4;
  color: #38a169;
}

._badgeCompras_hxqut_231 {
  background: #faf5ff;
  color: #805ad5;
}

._badgeRrhh_hxqut_236 {
  background: #fff7ed;
  color: #c05621;
}

._badgeComercial_hxqut_241 {
  background: #ecfeff;
  color: #0f766e;
}

._badgeOtros_hxqut_246 {
  background: #f3f4f6;
  color: #4b5563;
}

._requisicionButtons_hxqut_251 {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

@media (min-width: 768px) {
  ._requisicionButtons_hxqut_251 {
    margin-top: 0;
  }
}

._button_hxqut_263 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

._buttonIcon_hxqut_275 {
  margin-right: 5px;
}

._buttonView_hxqut_279 {
  background: #ebf8ff;
  color: #3182ce;
}

._buttonView_hxqut_279:hover {
  background: #bee3f8;
}

._buttonApprove_hxqut_288 {
  background: #f0fff4;
  color: #38a169;
}

._buttonApprove_hxqut_288:hover {
  background: #c6f6d5;
}

._buttonReject_hxqut_297 {
  background: #fff5f5;
  color: #e53e3e;
}

._buttonReject_hxqut_297:hover {
  background: #fed7d7;
}

._detailsContainer_hxqut_306 {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #edf2f7;
}

._detailsGrid_hxqut_312 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  ._detailsGrid_hxqut_312 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  ._detailsGrid_hxqut_312 {
    grid-template-columns: repeat(3, 1fr);
  }
}

._detailItem_hxqut_330 {
  padding: 12px;
  border-radius: 8px;
}

._detailLabel_hxqut_335 {
  font-size: 0.75rem;
  font-weight: 600;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

._detailValue_hxqut_344 {
  color: #2d3748;
  font-size: 0.9rem;
}

._loadingContainer_hxqut_349 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

._spinner_hxqut_356 {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(49, 130, 206, 0.2);
  border-radius: 50%;
  border-top-color: #3182ce;
  animation: _spin_hxqut_356 1s ease-in-out infinite;
}

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

._errorMessage_hxqut_371 {
  padding: 20px;
  text-align: center;
  color: #e53e3e;
  font-weight: 500;
}

._emptyMessage_hxqut_378 {
  padding: 20px;
  text-align: center;
  color: #718096;
}
/* Base styles */
.approval-list-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 20px;
  background: linear-gradient(to bottom, #f5f7fa, #eef2f5);
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  animation: module-entry 0.5s ease-out both;
}

.list-title {
  color: #1e293b;
  text-align: left;
  margin: 0 0 20px;
  padding: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  position: relative;
}

/* Carga y estados de error */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
}

.spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

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

.error-message {
  color: #e74c3c;
  text-align: center;
  padding: 15px;
  background: #fde8e8;
  border-radius: 5px;
  margin-bottom: 20px;
  border-left: 4px solid #e74c3c;
}

.no-results {
  text-align: center;
  color: #7f8c8d;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 5px;
  margin: 20px 0;
}

/* Secciones Aprobadas, Rechazadas y Entregadas */
.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e6ed;
  background-color: white;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.department-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.department-tab {
  flex: 0 0 auto;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.department-tab-active {
  background: #3182ce;
  color: white;
  box-shadow: 0 2px 5px rgba(49, 130, 206, 0.3);
}

.department-tab-inactive {
  background: white;
  color: #3182ce;
  border: 1px solid #bee3f8;
}

.department-tab-inactive:hover {
  background: #ebf8ff;
}

.barraBusqueda {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.barraBusqueda-campo {
  position: relative;
}

.barraBusqueda-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
  font-size: 18px;
  pointer-events: none;
}

.barraBusqueda input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px 12px 42px;
  border: 1px solid #d5dce3;
  border-radius: 8px;
  font-size: 15px;
}

.barraBusqueda input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.tab-button {
  padding: 12px 25px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #7f8c8d;
  position: relative;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
}

.tab-button.approved:hover {
  color: #3498db;
  background-color: #E8F2FC;
}

.tab-button.approved.active {
  color: #3498db;
  background-color: #F4F9FD;
}

.tab-button.approved.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #3498db;
}

.tab-button.rejected:hover {
  color: #e74c3c;
  background-color: #fdf2f2;
}

.tab-button.rejected.active {
  color: #e74c3c;
  background-color: #fdf8f8;
}

.tab-button.rejected.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #e74c3c;
}

.tab-button.delivered:hover {
  color: #2ecc71;
  background-color: #E6FFE6;
}

.tab-button.delivered.active {
  color: #2ecc71;
  background-color: #f4fbf7;
}

.tab-button.delivered.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #2ecc71;
}

.approval-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.approval-item {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border-left: 4px solid #3498db;
  margin-bottom: 15px;
}

/* Bordes dinámicos según el estado */
.approval-item.aprobado {
  border-left-color: #3498db;
}

.approval-item.rechazado {
  border-left-color: #ef4444;
}

.approval-item.entregado {
  border-left-color: #2ecc71;
}

.approval-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  background-color: #fdffee;
}

/* Encabezado de las cards */
.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background: white;
  transition: background 0.3s ease;
}

.item-header:hover {
  background: #F3F6F9;
}

.header-info {
  flex: 1;
  min-width: 0;
}

.header-info h3 {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-info .department {
  margin: 0 0 8px 0;
  color: #406890;
  font-weight: 600;
  font-size: 15px;
}

.header-info .description {
  margin: 0;
  color: #4D5555;
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.header-dates {
  display: flex;
  flex-direction: column;
  margin: 0 20px;
  min-width: 180px;
}

.header-dates p {
  margin: 3px 0;
  font-size: 13px;
}

.header-dates span {
  font-weight: 600;
  color: #2c3e50;
  margin-right: 5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.view-button {
  background: #3498db;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.view-button:hover {
  background: #2980b9;
  transform: scale(1.03);
}

.view-button:disabled {
  background: #95a5a6;
  cursor: not-allowed;
}

/* Iconos de las cards */
.status-icon {
  font-size: 24px;
}

.status-icon.approved {
  color: #3498db;
}

.status-icon.rejected {
  color: #e73c3c;
}

.status-icon.pending {
  color: #f39c12;
}

.status-icon.delivered {
  color: #2ecc71;
}

.item-details {
  background: #f8fafc;
  padding: 20px;
  border-top: 1px solid #e0e6ed;
  animation: slideDown 0.3s ease-out;
}

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

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

.details-section {
  margin-bottom: 20px;
}

.details-section h4 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid #e0e6ed;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-weight: 600;
  color: #3498db;
  font-size: 13px;
  text-transform: capitalize;
}

.detail-value {
  color: #34495e;
  font-size: 14px;
  word-break: break-word;
}


.reqId {
  font-size: 13px;
  color: #5A6464;
  font-weight: 600;
  background-color: #F1F2F3;
  padding: 2px 8px;
  border-radius: 6px;
}

.approval-info {
  display: flex;
  gap: 30px;
  background: white;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.approval-field {
  display: flex;
  flex-direction: column;
}

.approval-field span:first-child {
  font-weight: 600;
  color: #3498db;
  font-size: 13px;
}

.approval-field span:last-child {
  color: #25303b;
  font-size: 14px;
  margin-top: 3px;
}

/* Estados */
.status-text {
  font-weight: 600;
  text-transform: capitalize;
}

.approval-field span.status-text.aprobado {
  color: #3498db;
}

.approval-field span.status-text.rechazado {
  color: #e74c3c;
}

.approval-field span.status-text.entregado {
  color: #2ecc71;
}

.status-text.pendiente {
  color: #f39c12;
}

/* Seccion de Entrega */
.delivery-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e6ed;
}

.delivery-section h4 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 15px;
}

.delivery-form {
  background: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s;
  background-color: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
  background-color: white;
}

.form-group input:disabled,
.form-group textarea:disabled {
  background-color: #ecf0f1;
  cursor: not-allowed;
}

.deliver-button {
  background: #27ae60;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  width: 100%;
}

.deliver-button:hover {
  background: #219653;
  transform: scale(1.02);
}

.deliver-button:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  transform: none;
}

.reject-button {
  background: #dc3545;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  width: 100%;
}

/* Seccion Rechazadas*/
.reject-button:hover {
  background: #c82333;
  transform: scale(1.02);
}

.rejected-button:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  transform: none;
}

/* Estilos lista de Entrega */
.delivery-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.delivery-item {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border-left: 4px solid #27ae60;
}

.delivery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(to right, #f8fafc, #ffffff);
}

.delivery-info h3 {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.delivery-icon {
  color: #27ae60;
}

.delivery-info .department {
  margin: 0 0 8px 0;
  color: #3498db;
  font-weight: 500;
  font-size: 14px;
}

.delivery-info .description {
  margin: 0;
  color: #7f8c8d;
  font-size: 14px;
  line-height: 1.4;
}

.delivery-dates {
  display: flex;
  flex-direction: column;
  margin: 0 20px;
  min-width: 180px;
}

.delivery-dates p {
  margin: 3px 0;
  font-size: 13px;
}

.delivery-dates span {
  font-weight: 600;
  color: #2c3e50;
  margin-right: 5px;
}

.delivery-details {
  padding: 20px;
  border-top: 1px solid #e0e6ed;
}

.observations {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #e0e6ed;
}

.observations h4 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 15px;
}

.observations p {
  margin: 0;
  color: #34495e;
  font-size: 14px;
  line-height: 1.5;
}

/* Responsividad */
@media (max-width: 768px) {
  .item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .header-dates {
    margin: 0;
    width: 100%;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .approval-info {
    flex-direction: column;
    gap: 15px;
  }

  .delivery-header {
    flex-direction: column;
    gap: 15px;
  }

  .delivery-dates {
    width: 100%;
    margin: 0;
  }
}

/* Estilos para entregas */
.delivered-list .approval-item {
  background-color: #f5e9dc;
  border-left: 4px solid #2ecc71;
}

.delivered-list .approval-item:hover {
  background-color: #ebd5c1;
}

.delivered-item .status-icon.delivered {
  color: #8b4513;
}

.delivered-item .status-text.entregado {
  color: #8b4513;
  font-weight: bold;
}

.delivery-observations {
  margin-top: 15px;
  padding: 10px;
  background-color: #E6F7F2;
  border-radius: 4px;
  color: #156d1c
}

.delivery-observations h4 {
  margin-top: 0;
  color: #2ecc71;
}

.delivery-observations.approved-observations {
  background-color: #eaf4ff;
  color: #204768;
}

.delivery-observations.approved-observations h4 {
  color: #2196f3;
}

.delivery-observations.delivered-observations {
  background-color: #fdf2f2;
  color: #ee041b;
}

.delivered-item .delivery-date {
  color: #5a3a1e;
  font-weight: bold;
}

/* Estilo específico para las observaciones cuando Logistica marca como rechazado */
.delivery-observations.rejected-observations {
  background-color: #fdf2f2;
  color: #721c24;
}

.delivery-observations.rejected-observations h4 {
  color: #e74c3c;
}.convenios-page {
  min-height: 100%;
  background: linear-gradient(to bottom, #f5f7fa, #eef2f5);
  animation: module-entry 0.5s ease-out both;
}

.convenios-container {
  padding: 20px;
  background-color: transparent;
  font-family: inherit;
}

/* Cabecera superior: Título y Botón Nuevo Convenio */
.convenios-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 20px;
}

.convenios-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

/* Estilo base para todos los botones del módulo */
.convenios-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.convenios-button:focus-visible {
  outline: 3px solid rgba(30, 64, 175, 0.35);
  outline-offset: 2px;
}

.convenios-button--new {
  background-color: #059669;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(5, 150, 105, 0.18);
}

.convenios-button--new:hover {
  background-color: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.24);
}

/* Barra de Pestañas y Exportación (Diseño tipo tarjeta contenedora) */
.convenios-tabs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-bottom: 20px;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.convenios-tabs__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.convenios-tabs__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.convenios-tab {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-weight: 600;
  text-transform: uppercase;
}

.convenios-tab:hover {
  background-color: #e2e8f0;
  color: #1e293b;
  transform: translateY(-1px);
}

.convenios-tab--active {
  background-color: #1e40af !important;
  color: #ffffff !important;
  border-color: #1e3a8a !important;
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.25);
}

.convenios-button--export {
  border: 1px solid #a7f3d0;
  background-color: #ecfdf5;
  color: #047857;
  box-shadow: none;
}

.convenios-button--export:hover {
  border-color: #6ee7b7;
  background-color: #d1fae5;
  transform: translateY(-1px);
}

/* Ajuste responsive para pantallas pequeñas */
@media (max-width: 768px) {
  .convenios-tabs__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .convenios-tabs__actions {
    width: 100%;
    margin-left: 0;
  }

  .convenios-tabs__actions .convenios-button {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .convenios-tabs__actions {
    flex-direction: column;
  }

  .convenios-tabs__actions .convenios-button {
    width: 100%;
  }
}

.searchContainer {
  position: relative;
  width: 100%;
  margin: 15px 0 0;
}

.searchInput {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 15px 12px 40px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
}

.searchInput:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.searchIcon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #718096;
}

.convenios-loading {
  padding-bottom: 10px;
  padding-top: 20px;
  color: #007bff;
}

.convenios-table-container {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
  /* Para pantallas pequeñas o tablas anchas */
  margin-top: 20px;
  border: 1px solid #e2e8f0;
  transition: background-color 0.15s ease-in-out;
}

.convenios-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: inherit;
}

.convenios-table__header th {
  background-color: #1e40af;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  padding: 12px 16px;
  border-bottom: 2px solid #1e3a8a;
  letter-spacing: 0.4px;
  text-align: center;
  padding: 18px;
}

.convenios-table__header th.convenios-table__description-heading {
  padding: 10px 12px;
  font-size: 13.5px;
}

.convenios-table td {
  padding: 9px 16px;
  font-size: 12.5px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.convenios-table td.convenios-table__description-cell {
  padding: 8px 12px;
  font-size: 13px;
  color: #555;
}

.convenios-table__row {
  transition: background-color 0.15s ease-in-out;
}

.convenios-table__row:hover {
  background-color: #e2e8f0;
  cursor: pointer;
}

/* Filas alternas (Zebra striping) para no perderse entre tantos datos */
.convenios-table__row:nth-child(even) {
  background-color: #f0f7ff;
}

.convenios-table__row:nth-child(even):hover {
  background-color: #e2e8f0;
}

.convenios-table__empty {
  text-align: center;
  padding: 30px;
  color: #64748b;
  font-style: italic;
  font-size: 13px;
}

.convenios-table__actions {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.convenios-button--edit {
  padding: 6px 10px;
  background: #FFD24D;
}

.convenios-button--edit:hover {
  background: #ffc107;
}

.convenios-button--delete {
  padding: 6px 10px;
  background: #dc3545;
  color: #fff;
}

.convenios-button--delete:hover {
  background: #c82333;
}

.convenios-pagination {
  margin-top: 15px;
  padding: 10px 15px;
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.convenios-pagination__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.convenios-pagination__jump {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 8px;
}

.convenios-pagination__jump-label {
  font-size: 13px;
  font-weight: 500;
}

.convenios-pagination__page-input {
  width: 55px;
  padding: 4px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  background-color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.convenios-pagination__button {
  padding: 6px 12px;
  background: #007bff;
  color: #fff;
}

.convenios-pagination__button:hover {
  padding: 6px 12px;
  background: #0056b3;
  color: #fff;
}

.convenios-pagination__button--disabled {
  background: #e0e0e0;
  color: #888;
}

.convenios-pagination__button--disabled:hover {
  background: #e0e0e0;
  color: #888;
}

.convenios-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

.convenios-modal {
  width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.convenios-modal h3 {
  text-align: center;
}

.convenios-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
}

.convenios-form__notice {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid #1e40af;
  border-radius: 4px;
  background-color: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
}

.convenios-form .convenios-form__field {
  box-sizing: border-box;
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.convenios-form input,
.convenios-form select,
.convenios-form textarea {
  width: 100%;
}

.convenios-form__field:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

.convenios-form__group {
  margin-bottom: 12px;
}

.convenios-form__label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.convenios-form__hint {
  display: block;
  margin-top: 4px;
  color: #666;
  font-size: 12px;
}

.convenios-form__description {
  resize: vertical;
}

.convenios-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.convenios-button--cancel,
.convenios-button--save {
  padding: 8px 12px;
  color: #fff;
}

.convenios-button--cancel {
  background: #81888F;
}

.convenios-button--cancel:hover {
  background: #6c757d;
}

.convenios-button--save {
  background: #46B35F;
}

.convenios-button--save:hover {
  background: #28a745;
}.usuarios-page {
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(to bottom, #f5f7fa, #eef2f5);
    animation: module-entry 0.5s ease-out both;
}

.usuarios-container {
    margin: 0 auto;
    padding: 0 0px 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1e293b;
}

.usuarios-header {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 20px;
    padding: 0;
    letter-spacing: -0.025em;
}

.usuarios-card {
    padding: 24px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

/* Efecto hover elegante para las tarjetas principales */
.usuarios-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.usuarios-form-card {
    margin-bottom: 30px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.usuarios-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.usuarios-input {
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Efecto cuando haces clic o escribes en los inputs */
.usuarios-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.usuarios-button-group {
    display: flex;
    gap: 10px;
}

.usuarios-button {
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.usuarios-button:active {
    transform: translateY(1px);
}

.usuarios-button-primary {
    border: none;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2);
}

.usuarios-button-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.3);
}

.usuarios-button-secondary {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
}

.usuarios-button-secondary:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #94a3b8;
}

.usuarios-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.usuarios-searchContainer {
    position: relative;
    width: 100%;
    margin: 15px 0;
}

.usuarios-searchInput {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.usuarios-searchInput:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.usuarios-searchIcon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
}

.usuarios-empty {
    padding: 16px 14px;
    color: #64748b;
    text-align: center;
}

/* Cada fila de la lista se ilumina y se desplaza sutilmente al pasar el mouse */
.usuarios-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 14px;
    border-bottom: 2px solid #f1f5f9;
    transition: background-color 0.2s ease, padding 0.2s ease;
    border-radius: 8px;
}

.usuarios-item:hover {
    background-color: #F3F6F9;
    padding-left: 18px;
    padding-right: 18px;
}

.usuarios-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.usuarios-info strong {
    font-size: 16px;
    color: #0f172a;
}

.usuarios-info span {
    font-size: 14px;
    color: #64748b;
}

.usuarios-button-edit,
.usuarios-button-delete {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.usuarios-button-edit {
    background: #2563eb;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.usuarios-button-edit:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.usuarios-button-delete {
    background: #ef4444;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.usuarios-button-delete:hover {
    background: #dc2626;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
}

@media (max-width: 600px) {
    .usuarios-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .usuarios-button-group {
        flex-wrap: wrap;
        width: 100%;
    }

    .usuarios-button-edit,
    .usuarios-button-delete {
        flex: 1;
        text-align: center;
        padding: 10px;
    }
}.chatbot-dashboard {
  box-sizing: border-box;
  min-height: 100vh;
  padding: 25px 20px;
  overflow-y: auto;
  background: linear-gradient(to bottom, #f5f7fa, #eef2f5);
  color: #333;
  font-family: 'Segoe UI', sans-serif;
  animation: module-entry 0.5s ease-out both;
}

.chatbot-dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.chatbot-dashboard__title-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.chatbot-dashboard__title {
  margin: 0;
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  padding: 0;
}

.chatbot-dashboard__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0 4px;
}

.chatbot-dashboard__tab {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #e2e8f0;
  color: #475569;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.chatbot-dashboard__tab:hover:not(.chatbot-dashboard__tab--active) {
  background: #D7E2EC;
}

.chatbot-dashboard__tab--active {
  background: #1e3a8a;
  color: #ffffff;
}

.chatbot-dashboard__tab:focus-visible {
  outline: 3px solid rgba(30, 58, 138, 0.3);
  outline-offset: 2px;
}

.chatbot-dashboard__tab-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke-width: 2;
}

.chatbot-dashboard__kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.chatbot-dashboard__kpi-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.chatbot-dashboard__kpi-icon {
  display: flex;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.4rem;
}

.chatbot-dashboard__kpi-icon--blue {
  background: rgba(47, 109, 178, 0.12);
  color: #2f6db2;
}

.chatbot-dashboard__kpi-icon--green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.chatbot-dashboard__kpi-icon--purple {
  background: rgba(155, 89, 182, 0.15);
  color: #9b59b6;
}

.chatbot-dashboard__kpi-icon--orange {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.chatbot-dashboard__kpi-info {
  display: flex;
  flex-direction: column;
}

.chatbot-dashboard__kpi-value {
  color: #23395d;
  font-size: 1.6rem;
  font-weight: 700;
}

.chatbot-dashboard__kpi-label {
  margin-top: 4px;
  color: #666;
  font-size: 0.85rem;
}

.chatbot-dashboard__section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.chatbot-dashboard__kpi-grid[hidden],
.chatbot-dashboard__section-grid[hidden] {
  display: none;
}

.chatbot-dashboard__panel {
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (hover: hover) {
  .chatbot-dashboard__kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(35, 57, 93, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chatbot-dashboard__kpi-card {
    transition: none;
  }

  .chatbot-dashboard__kpi-card:hover {
    transform: none;
  }
}

.chatbot-dashboard__panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px;
  color: #23395d;
  font-size: 1.1rem;
  font-weight: 600;
}

.chatbot-dashboard__panel-title--compact {
  margin: 0;
}

.chatbot-dashboard__table {
  width: 100%;
  overflow: hidden;
  border-collapse: collapse;
  border-radius: 6px;
  text-align: center;
}

.chatbot-dashboard__table thead {
  background-color: #2f6db2;
  color: #fff;
}

.chatbot-dashboard__table th {
  padding: 20px 6px;
  font-size: 0.87rem;
}

.chatbot-dashboard__table td {
  padding: 10px 6px;
  font-size: 0.87rem;
}

.chatbot-dashboard__table th {
  font-weight: 500;
}

.chatbot-dashboard__table tbody tr {
  border-bottom: 1px solid #ddd;
}

.chatbot-dashboard__table tbody tr:nth-of-type(even) {
  background-color: #f8fafc;
}

.chatbot-dashboard__table tbody tr:hover {
  background-color: #f1f5f9;
}

.chatbot-dashboard__empty-state {
  color: #666;
  text-align: center;
}

.chatbot-dashboard__status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.chatbot-dashboard__status-badge--success {
  background: #d1fae5;
  color: #10b981;
}

.chatbot-dashboard__status-badge--warning {
  background: #fef3c7;
  color: #d97706;
}

.chatbot-dashboard__status-badge--info {
  background: #dbeafe;
  color: #2f6db2;
}

.chatbot-dashboard__panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.chatbot-dashboard__live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 600;
}

.chatbot-dashboard__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  animation: chatbot-dashboard-pulse 1.5s infinite;
}

.chatbot-dashboard__health-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.chatbot-dashboard__health-item:last-child {
  border-bottom: 0;
}

.chatbot-dashboard__health-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  font-size: 0.92rem;
}

.chatbot-dashboard__health-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.chatbot-dashboard__health-icon--green,
.chatbot-dashboard__latency.latency--good {
  color: #10b981;
}

.chatbot-dashboard__health-icon--purple {
  color: #9b59b6;
}

.chatbot-dashboard__latency {
  font-size: 0.9rem;
  font-weight: 600;
}

.chatbot-dashboard__latency.latency--unknown,
.chatbot-dashboard__health-icon.latency--unknown {
  color: #2f6db2;
}

.chatbot-dashboard__latency.latency--warning,
.chatbot-dashboard__health-icon.latency--warning {
  color: #f59e0b;
}

.chatbot-dashboard__latency.latency--error,
.chatbot-dashboard__health-icon.latency--error {
  color: #ef4444;
}

.chatbot-dashboard__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  color: #666;
  font-size: 0.85rem;
}

.chatbot-dashboard__pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chatbot-dashboard__page-button {
  padding: 5px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #f8fafc;
  color: #333;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.chatbot-dashboard__page-button:hover:not(:disabled) {
  background: #e2e8f0;
}

.chatbot-dashboard__page-button--active {
  background: #2f6db2;
  color: #fff;
}

.chatbot-dashboard__page-button--active:hover:not(:disabled) {
  background: #1d2f4a;
}

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

@keyframes chatbot-dashboard-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@media (max-width: 1024px) {
  .chatbot-dashboard__kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .chatbot-dashboard__section-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .chatbot-dashboard {
    padding: 20px 14px;
  }

  .chatbot-dashboard__kpi-grid {
    grid-template-columns: 1fr;
  }

  .chatbot-dashboard__panel {
    overflow-x: auto;
    padding: 16px;
  }

  .chatbot-dashboard__panel-header,
  .chatbot-dashboard__pagination {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .chatbot-dashboard__pagination-controls {
    flex-wrap: wrap;
  }
}
/* Contenedor Principal */
.panel-errores-container {
  padding: 2rem;
  background-color: #f8fafc;
  min-height: 100vh;
  font-family: inherit;
}

/* Título de la Sección */
.panel-errores-header {
  margin-bottom: 1.5rem;
}

.panel-errores-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.panel-errores-header p {
  font-size: 0.875rem;
  color: #64748b;
}

/* Tarjeta de Contenido */
.panel-errores-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
}

/* Pestañas / Filtros */
.panel-errores-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.panel-errores-tabs-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-errores-period-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 1.25rem;
  border-left: 1px solid #E2EBF0;
}

.panel-errores-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 10px 20px;
  border-radius: 8px;
  border: 0;
  background: #ffffff;
  color: #3182ce;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.panel-errores-tab svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.panel-errores-tab:focus:not(:focus-visible) {
  outline: none;
}

.panel-errores-tab:focus-visible {
  outline: 2px solid #3182ce;
  outline-offset: 2px;
}

.btn-limpiar-historial:focus-visible,
.btn-resolver:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.panel-errores-tab.active {
  background: #3182ce;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(49, 130, 206, 0.3);
}

.panel-errores-tab:not(.active) {
  border: 1px solid #bee3f8;
}

.panel-errores-tab:not(.active):hover {
  background: #ebf8ff;
}

.panel-errores-tab-count {
  min-width: 1.25rem;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  background: rgba(49, 130, 206, 0.12);
  font-size: 0.75rem;
  line-height: 1rem;
  text-align: center;
}

.panel-errores-tab.active .panel-errores-tab-count {
  background: rgba(255, 255, 255, 0.2);
}

.panel-errores-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.panel-errores-period-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.panel-errores-period-label svg {
  width: 1rem;
  height: 1rem;
  color: #3182ce;
}

.panel-errores-period-select {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.panel-errores-period-select select {
  min-width: 11.5rem;
  appearance: none;
  padding: 0.6rem 2.25rem 0.6rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.panel-errores-period-select select:hover {
  border-color: #93c5fd;
}

.panel-errores-period-select select:focus-visible {
  outline: 2px solid #3182ce;
  outline-offset: 2px;
}

.panel-errores-period-select > svg {
  position: absolute;
  right: 0.75rem;
  width: 1rem;
  height: 1rem;
  color: #64748b;
  pointer-events: none;
}

.btn-limpiar-historial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid #dc2626;
  border-radius: 8px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-limpiar-historial:hover {
  background-color: #dc2626;
  border-color: #b91c1c;
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.2);
}

.btn-limpiar-historial svg,
.btn-resolver svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Mensaje cuando está vacío */
.panel-errores-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
  background-color: #f8fafc;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
}

.panel-errores-empty p {
  margin: 0;
  font-weight: 500;
}

.panel-errores-error {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background-color: #fef2f2;
  color: #b91c1c;
  font-size: 0.875rem;
}

/* Tabla de Errores */
.panel-errores-table-wrapper {
  overflow-x: auto;
}

.panel-errores-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.875rem;
}

.panel-errores-table th {
  background-color: #1e40af;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.panel-errores-table .panel-errores-action-heading {
  text-align: center;
}

.panel-errores-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.panel-errores-message {
  font-family: monospace;
  font-size: 0.8rem;
}

.panel-errores-table td.panel-errores-origin {
  color: #2563eb;
  font-family: monospace;
}

.panel-errores-table .panel-errores-date {
  color: #334155;
  font-size: 0.8rem;
}

.panel-errores-action {
  text-align: center;
}

.panel-errores-table tr:hover {
  background-color: #f3f6f9;
}

/* Insignias de Estado (Badges) */
.badge-status {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-status.pendiente {
  background-color: #fef3c7;
  color: #d97706;
}

.badge-status.resuelto {
  background-color: #d1fae5;
  color: #059669;
}

/* Botón de Resolver */
.btn-resolver {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: #10b981;
  color: #ffffff;
  border: none;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-resolver:hover {
  background-color: #059669;
}

.btn-resolver:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 640px) {
  .panel-errores-container {
    padding: 1rem;
  }

  .panel-errores-card {
    padding: 1rem;
  }

  .panel-errores-toolbar {
    justify-content: flex-start;
  }

  .panel-errores-tabs {
    align-items: stretch;
    gap: 1rem;
  }

  .panel-errores-tabs-group {
    width: 100%;
    overflow-x: auto;
  }

  .panel-errores-period-group {
    width: 100%;
    padding-top: 1rem;
    padding-left: 0;
    border-top: 1px solid #e2e8f0;
    border-left: 0;
  }

  .panel-errores-period-select {
    flex: 1;
  }

  .panel-errores-period-select select {
    width: 100%;
  }
}
