/* Estilo del formulario */


/* Mensajes de error jQuery Validate */
label.error {
    color: red;
    font-size: 13px;
    margin-top: 2px;
    display: block;
}

/* Resultado */
#consultasws-resultado {
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-family: monospace;
}

#resumen-facturas, #resumen-facturas > .table-responsive {
  width: 100%;
  overflow-x: auto !important;
}

#listado-medidores, #listado-medidores > .table-responsive {
  width: 100%;
  overflow-x: auto !important;
}

/* Asegura que el contenedor de la tabla permita scroll horizontal */
#resumen-facturas {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch; /* scroll suave en móviles */
  width: 100%;
}

/* Asegura que la tabla tenga mínimo ancho para activar scroll */
#resumen-facturas table {
  min-width: 700px; /* Ajusta según tu número de columnas */
}




#ajaxOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    z-index: 9999;
    display: none; /* Inicialmente oculto */
}

.table-wrapper {
    max-height: 250px; /* aprox. 5 filas */
    overflow-y: auto;  /* scroll vertical */
    border: 1px solid #ddd;
    border-radius: 5px;
}

.minimal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.minimal-table th,
.minimal-table td {
    padding: 6px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.minimal-table thead {
    background-color: #f8f9fa;
    font-weight: bold;
    position: sticky;
    top: 0;
}

.minimal-table tbody tr:hover {
    background-color: #f1f1f1;
}


/* Loader centrado */
  .loader {
    position: absolute;
    top: 50%; left: 50%;
    width: 60px; height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
  }

  @keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
  }