#error-container {
    position: fixed;
    bottom: 0;
    right: 0;
    color: #fff;
    padding: 10px;
    /* display: none; */
    flex-direction: column;
    align-items: flex-end;
    width: auto;
    max-width: 100%;
    /* overflow: hidden; */
    white-space: nowrap;
}

.error-message {
    margin-bottom: 10px;
    background-color: rgba(255, 0, 0, 0.8);
    color: #fff;
    margin-top: 5px;
    padding: 10px 10px;
    border-radius: 5px;
    transition: opacity 0.5s ease;
}

.success-message{
    margin-bottom: 10px;
    background-color: rgb(0, 138, 5);
    color: #fff;
    margin-top: 5px;
    padding: 10px 33px;
    border-radius: 5px;
    transition: opacity 0.5s ease;
}

#dynamic-table td {
    margin-right: -8px;
}

a{
    cursor: pointer;
    text-decoration: none;
}

.table th, .table td {
    white-space: nowrap; /* Evita el salto de línea */
    overflow: hidden;    /* Oculta el contenido que no cabe */
}

.table th{
    text-align: center; /* Centrar horizontalmente */
    vertical-align: middle; /* Centrar verticalmente */
}
.campo {
    position: relative;
  }

#autocompletar {
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 350px;
    overflow-y: auto;
    position: absolute;
    width: 30%;
    background-color: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

#autocompletar div {
    padding: 10px;
}

.sinResultados, .imgCerrar {
    pointer-events: none;
}

.etiquetaAutocompletar{
    margin-left: 15px;
}

.cerrarIcon {
    position: absolute;
    top: 7px;
    right: 0;
    cursor: pointer;
}

.imgCerrar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Ajusta el espacio entre los elementos */
    background-color: #007bff;
    color: white;
    padding: 10px; /* Ajusta el espacio interno según tus necesidades */
    position: relative; /* Cambiado a relativo para permitir el posicionamiento absoluto */
}

.contenido{
    margin-left: 8px;
}

.contenido table td{
    padding: 0px 0px 10px 0px;
    cursor: pointer;
}

.etiquetaAutocompletar, .etiquetaAutocompletar:hover{
    color:black;
    text-decoration: none;   
}

/* Estilos para la tabla de contabilidad */
.tablaContabilidadContrato {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
.tablaContabilidadContrato th,
.tablaContabilidadContrato td {
    border: 1px solid #dee2e6;
    padding: 12px;
    text-align: center;
}

.tablaContabilidadContrato th {
    background-color: #007bff;
    color: #ffffff;
}

.tablaContabilidadContrato tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.tablaContabilidadContrato .total-row {
    font-weight: bold;
    background-color: #343a40;
    color: #ffffff;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 4% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Media query for screens smaller than 600px */
@media screen and (max-width: 600px) {
    .modal-content {
        width: 90%;
    }
}

#errores-container {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 10px;
    max-width: 100%; /* Asegurar que no se desborde del ancho de la pantalla */
    box-sizing: border-box; /* Incluir padding en el ancho total */
}

.mensaje-error {
    margin-bottom: 14px;
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    height: 34px;
}

.tablaContabilidadContrato {
    width: 100%;
    border: 1px solid black;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tablaContabilidadContrato th,
.tablaContabilidadContrato td {
    padding: 12px;
    text-align: center;
}

.tablaContabilidadContrato th {
    background-color: #007bff;
    color: #ffffff;
}

.tablaContabilidadContrato tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.tablaContabilidadContrato .total-row {
    font-weight: bold;
    background-color: #343a40;
    color: #ffffff;
}
