body {
    font-family: Arial, sans-serif;
}

h2 {
    color: #333;
}

table {
    width: 97.5%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-left: 1rem;
}

th,
td {
    border: 1px solid #ddd;
    padding: 0.4rem;
    width: auto;
    
}
  .dato {
    max-width: 150px;
    word-wrap: break-word;
  }
tr:nth-child(even) {
    background-color: #f2f2f2;
}

form {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
  }
  .form-group {
    display: grid;
    flex-direction: row;
    padding-right: 1rem;
    padding-left: 1rem;
  }


label {
    font-weight: bold;
    display: inline-flex;
    align-items:center;
    justify-content: center;
}

input[type="text"],input[type="number"],
select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

    .button {
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0.5rem 1rem 0.5rem 1rem;
}


.dos {
    margin: 3rem 1rem ;
    border: solid 2px;
    padding: 1rem;
}
.eliminar{
    width: 90%;
}
.agregar{
    display: flex;
    margin-left: 1rem;
}

.total{
    display: inline-block;
    width: auto;
    font-weight: bold;
    text-align: center;
}

.title{
    text-align: center;
    font-size:xx-large;
    border: solid;
    border-radius: 10px;
    padding: 0.5rem;
    margin-left: 1rem;
    margin-right: 1rem;
}
@media only screen and (max-width: 768px) {
    .eliminar {
        content: "Delete"; /* Puedes reemplazar este código Unicode con el de otro icono si lo prefieres */
        font-family: "Arial";
        font-size: 0px; /* Ajusta el tamaño del icono según sea necesario */
        width:100% ;
        height: 100%;
        padding: 0;
        margin: 0;
        background-color: rgb(160, 28, 28);
    }
    .ultimo{
        padding: 0;
    }
    .tabla {
        width: 100%;
        padding: 1rem;
    }
    .miTabla{
        margin: 0;
        font-size: small;
    }
    th,
    td {
        display: block;
        width: 100%;
    }

    th {
        text-align: center;
        height: auto;
        font-size: small;
        align-items: center;
    }

    /* Ajustes adicionales para dispositivos móviles */
    .title {
        font-size: 24px;
    }

    /* Ajustes para el formulario */
    form {
        margin-top: 10px;
    }

    input[type="text"],
    input[type="number"],
    select {
        width: 100%;
        margin: 5px 0;
    }
    .enun{
        display: flex;
    }
}