/* ------------------------------- */
/*       Estilos Globales          */
/* ------------------------------- */
body {
  background-color: #ffffff;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  font-size: 0.85rem; /* ~1pt menos que 16px */
}

.container {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ------------------------------- */
/*   Contenedor de la Tabla        */
/* ------------------------------- */
.table-container {
  padding: 1rem;
  position: relative;
}


/* Celdas: sin forzar ancho fijo */
#tabla-propuestas th,
#tabla-propuestas td {
  white-space: normal !important;
  min-width: 200px;
}

td[data-col="descripcion_propuesta"],
th[data-col="descripcion_propuesta"] {
  min-width: 300px !important;
}
td[data-col="Ministerios Asociados"],
th[data-col="Ministerios Asociados"] {
  min-width: 250px !important;
}

/* Barra horizontal fija al fondo (slider siempre visible) */
.horizontal-scroll-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background-color: #eee;
  overflow-x: auto;
  z-index: 9999;
}
#table-scroll-sync {
  width: 2000px; /* Se ajustará dinámicamente desde JS */
  height: 20px;
}

/* Controles de DataTables (fijos en la parte superior) */
#table-controls-container {
  padding: 0 1rem;
  background-color: #f8f9fa;
}
.dataTables_wrapper .dt-buttons,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  position: relative !important;
  left: 0 !important;
}

/* Popover de filtro */
.filter-popover {
  position: absolute;
  width: 300px;
  background-color: #fff;
  border: 1px solid #ccc;
  z-index: 10000;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  padding: 10px;
  display: none;
}
.filter-popover .popover-title {
  font-weight: bold;
  margin-bottom: 10px;
}
.filter-popover .popover-body {
  max-height: 300px;
  overflow-y: auto;
  height: 100%;
}

/* Hover en filas */
.row-hover:hover {
  background-color: #f0f8ff !important;
  cursor: pointer;
}

/* Botones custom */
.btn-docfilter-active {
  background-color: #0d6efd !important;
  color: #fff !important;
}
.btn-limpiar-filtros:hover {
  cursor: pointer;
}
.buttons-container .dt-buttons .btn {
  margin-right: 0.5rem;
  margin-bottom: 0;
}

/* Footer de la página */
footer {
  margin-bottom: 3rem;
}


.dt-left > * {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
  vertical-align: middle;
}

.dt-right > *:not(:first-child) {
  margin-left: 1rem;
}


.dt-buttons-container,
.dt-search-container {
    display: flex;
    align-items: center;
}
.dt-buttons-container {
    justify-content: flex-start;
}
.dt-search-container {
    justify-content: flex-end;
}

.dt-buttons{
  display: inline-flex;
  align-items: center;
}

/* Capa de loading con efecto heartbeat */
#loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: heartbeat 3s infinite;
}

/* Animación de pulsación (heartbeat) */
@keyframes heartbeat {
  0%   { opacity: 1; }
  50%  { opacity: 0.5; }
  100% { opacity: 1; }
}

