*{
    box-sizing: border-box;
}

body{
    margin: 0;
    font-family: sans-serif;
    background: #eceff1;
    padding: 2px;
    font-size: 14px;
}

.form-register{
    padding-top: 10px;
    max-width: 90%;
    margin: auto;
    background: white;
    box-shadow: 0 0 30px #546e7a;
}

.form-titulo {
    background: #2e7d32;
    color: #fff;
    padding: 18px;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
}

.form-titulo2 {
    background: #4caf50;
    color: #fff;
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
    margin: 15px 0;
    text-align: center;
}

.contenedor-inputs{
    padding: 10px 30px;
    display: flex;
    flex-direction: column;
}

.caja-48{
    width: 49%;
}

.caja-30{
    width: 32%;
}

.caja-24{
    width: 23.5%;
}

.caja-20{
    width: 20%;
}

.caja-18{
    width: 18%;
}

.caja-100{
    width: 100%;
}

.btn-enviar , .btn-enviar2, .agregacli {
    background: #2e7d32 !important;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
    text-decoration: none;
    display: block;       /* ahora respeta width y height */
    text-align: center;
}

.agregacli{
    padding: 5px 10px;
}

.btn-enviar:hover, .btn-enviar2:hover, .agregacli:hover {
    background: #fff !important;
    color: black;
    transform: scale(1.02);
    border: 1px solid #2e7d32;
}

.juntos{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.buscar{
    padding-top: 10px;
    padding-bottom: 10px;
    max-width: 90%;
    margin: auto;
    background: white;
    box-shadow: 0 0 30px #546e7a;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.buscar form{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: 50%;
    margin: auto;
}

.buscarBig{
    padding-top: 10px;
    max-width: 90%;
    margin: auto;
    background: white;
    box-shadow: 0 0 30px #546e7a;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.buscarBig form{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: 90%;
    margin: auto;
}

.label-in{
    display: block;
    width: 100%;
    border: none;
    padding: 0px 0px;
    position: relative;
    box-sizing: border-box;
    border-color: #367781;
}

.label-in .span-in{
    color: #808b96;
    background: white;
    position: absolute;
    top: -8px;
    left: 20px;
}

#form2 .label-in{
    margin-bottom: 10px;
}

#tbl{
    margin: auto;
    max-width: 100%;
    max-height: 300px;
    overflow: scroll;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tablita {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.tablita th {
    background: #2e7d32;
    color: #fff;
    padding: 10px;
    text-align: left;
}

.tablita td {
    padding: 8px 10px;
    border-bottom: 1px solid #eceff1;
}

.tablita tr:nth-child(even) {
    background: #f9fbe7;
}

.tablita tr:hover {
    background: #e8f5e9;
}

input, select, textarea, .fake-textarea {
    width: 100%;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    transition: border 0.3s, box-shadow 0.3s;
}

input:focus, select:focus, textarea:focus, .fake-textarea:focus {
    border: 1px solid #2e7d32;
    box-shadow: 0 0 5px rgba(46, 125, 50, 0.4);
    outline: none;
}

input:read-only {
    background: #f9f9f9;
    border: 1px solid #ddd;
}

.mensajevc{
    color: red;
    text-decoration: underline;
}

.ti-sep{
    margin: auto;
    color: #808b96;
    background: white;
    position: relative;
    top: +8px;
}

.lin-sep{
    margin-bottom: 30px;
}

.clavep2{
    width: 58%;
}

.clavep1{
    width: 40%;
}

.detalle{
    max-width: 100%;
    overflow: scroll;
    border: 1px solid #666;
    margin: auto;
    max-height: 300px;
    margin-bottom: 15px;
}

@media screen and (max-width: 800px){
    .label-in .span-in{
        color: #808b96;
        background: white;
        position: absolute;
        top: -8px;
        left: 0px;
        font-size: 12px;
    }

    .caja-24{
        width: 48%;
    }

    .btn-enviar{
        padding: 5px;
        font-size: 15px;
        max-width: 48%;
    }
    
    .clavep1{
        width: 100%;
    }
    .clavep2{
        width: 100%;
    }

}