.btn-eliminar{
    background: transparent;
    border: none;
    color: #d32f2f;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-eliminar i{
    font-size: 16px;
}

.btn-eliminar:hover{
    background: rgba(211,47,47,.12);
    color: #b71c1c;
}

.footer-contacto{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:30px;
    max-width:900px;
    margin:0 auto;
    padding:20px;
    color:#fff;
}

.footer-contacto,
.footer-contacto div,
.footer-contacto a{
    color:#fff;
}

.contacto{
    line-height:1.6;
}

.contacto div:first-child{
    font-size:18px;
    font-weight:700;
    color:#fff;
    margin-bottom:5px;
}

.whatsapp{
    text-align:right;
}

.whatsapp a{
    color:#fff;
    text-decoration:none;
    transition:color .25s ease;
}

.whatsapp a:hover{
    color:#9fd3ff;
}

@media (max-width:700px){

    .footer-contacto{
        flex-direction:column;
        align-items:center;
        gap:20px;
        text-align:center;
    }

    .whatsapp{
        text-align:center;
    }

}

#miModal{
    width: 900px;
    max-width: 95vw;
    padding: 20px;
    border: none;
    border-radius: 8px;
}

.modal-body{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.modal-body > div{
    display: contents;
}

.modal-body > div.ancho-completo{
    grid-column: span 2;
}

.ancho-completo {
    grid-column: 1 / -1;
}

@media (max-width: 700px){
    .modal-body{
        grid-template-columns: 1fr;
    }

    #miModal{
        width: 95vw;
    }
}

.btn-cerrar-modal{
    position: absolute;
    top: 50%;
    right: 12px;

    transform: translateY(-50%);

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    background: transparent;

    color: #666;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
    transition: all .2s ease;
}

.btn-cerrar-modal i{
    font-size:20px;
    line-height:1;
}

.btn-cerrar-modal span,
.btn-cerrar-modal{
    display:flex;
    align-items:center;
    justify-content:center;
}

.btn-cerrar-modal:hover{
    color: #d32f2f;
    background: rgba(211,47,47,.08);
    border-radius: 50%;
}

.btn-cerrar-modal:focus{
    outline: none;
    box-shadow: none;
}

.modal-header{
    position: relative;
    display: flex;
    align-items: center;   
    justify-content: center;
    padding: 15px 45px 15px 0;
    border-bottom: 1px solid #ddd;
}

.modal-footer{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;

    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.modal-footer button{
    min-width: 120px;
    height: 42px;

    padding: 0 24px;

    border: 1px solid #cfcfcf;
    border-radius: 0;

    font-size: 15px;
    font-weight: 500;

    cursor: pointer;
    transition: all .2s ease;
}

.btn-cerrar{
    background: #fff;
    color: #444;
}

.btn-cerrar:hover{
    background: #f5f5f5;
    border-color: #999;
}

.btn-guardar{
    background: #1f5d92;
    color: #fff;
    border-color: #1f5d92;
}

.btn-guardar:hover{
    background: #174972;
    border-color: #174972;
}

.modal-footer button:focus{
    outline: none;
    box-shadow: none;
}

.acciones-formulario{
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
    margin-bottom: 20px;
}

#enviar{
    min-width: 180px;
    height: 48px;

    padding: 0 24px;

    background: #174972;
    color: #fff;

    border: 1px solid #174972;
    border-radius: 6px;

    font-size: 16px;
    font-weight: 500;

    cursor: pointer;
    transition: all .2s ease;

    width:250px;
}

#enviar:hover{
    background: #103754;
    border-color: #103754;
}

#enviar:focus{
    outline: none;
    box-shadow: none;
}

.cabecera{
    display:grid;
    grid-template-columns: 280px 1fr 1fr;
    align-items:center;
    column-gap:40px;

    padding:30px 0;
}

.cabecera-logo img{
    max-width:220px;
    height:auto;
}

.cabecera-contacto{
    font-size:16px;
    line-height:1.5;
    margin:0 !important;
    padding:0 !important;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    justify-self:center;
    gap:0px;
}

.cabecera-contacto p{
    display:flex;
    gap:8px;
    align-items:center;
    justify-content:center;
    margin:0;
    line-height:1.5;
}

.cabecera + hr{
    margin:25px 0 40px;
    margin-top:10px;
    border:0;
    border-top:1px solid #ddd;
}

@media (max-width:700px){

    .cabecera{
        grid-template-columns:1fr;
        text-align:center;
        row-gap:25px;
    }

    .cabecera-logo{
        text-align:center;
    }

    .cabecera-contacto p{
        justify-content:center;
        flex-wrap:wrap;
    }

}

.cabecera-contacto a,
.cabecera-contacto-link{
    color:#1f5d92;
    text-decoration:none;
    font-weight:500;
    line-height:1.5;
}

.cabecera-contacto a:hover{
    color:#174972;
    text-decoration:underline;
}

#bloqueo-envio{
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.6);
    z-index: 99999;

    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:white;
}

.loader-box{
    background:#fff;
    color:#333;
    padding:30px;
    border-radius:8px;
}

.spinner{
    width:40px;
    height:40px;
    margin:0 auto 15px;
    border:4px solid #ddd;
    border-top:4px solid #1f5d92;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

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

.aviso-error div{
    background:#fff;
    padding:25px;
    border-radius:8px;
    text-align:center;
    max-width:400px;
}

.aviso-error button{
    margin-top:15px;
    padding:10px 20px;
    border:none;
    background:#d32f2f;
    color:#fff;
    cursor:pointer;
}

.cabecera-direccion{
    text-align:right;
    font-size:14px;
    line-height:1.4;
    padding-right:20px;
}

.cabecera-direccion strong{
    font-size:15px;
}

@media (max-width:700px){
    .cabecera-contacto,
    .cabecera-direccion{
        font-size:14px;
        text-align:center;
        padding-right: 0;
    }
}

#fila-agregar td{
    background: #f9f9f9;
    border-top: 2px dashed #ddd;
}

#fila-agregar button{
    width:100%;
    padding:12px;
    background:#1f5d92;
    color:white;
    border:none;
    cursor:pointer;
}

#mytable{
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

#mytable td:last-child{
    text-align: center;
    vertical-align: middle;
}

#mytable th {
    font-size: 12px;
    font-weight: 600;
}

#mytable td {
    font-size: 12px;
}

#mytable th,
#mytable td{
    height: 45px;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: auto;
    word-break: break-word;
}

#mytable th:nth-child(1),
#mytable td:nth-child(1) { width: 5%; }   /* Posición */

#mytable th:nth-child(2),
#mytable td:nth-child(2) { width: 8%; }   /* Material */

#mytable th:nth-child(3),
#mytable td:nth-child(3) { width: 10%; }  /* Tipo producto */

#mytable th:nth-child(4),
#mytable td:nth-child(4) { width: 7%; }   /* Ancho */

#mytable th:nth-child(5),
#mytable td:nth-child(5) { width: 7%; }   /* Alto */

#mytable th:nth-child(6),
#mytable td:nth-child(6) { width: 9%; }

#mytable th:nth-child(7),
#mytable td:nth-child(7) { width: 9%; }

#mytable th:nth-child(8),
#mytable td:nth-child(8) { width: 6%; }

#mytable th:nth-child(9),
#mytable td:nth-child(9) { width: 7%; }

#mytable th:nth-child(10),
#mytable td:nth-child(10) { width: 7%; }

#mytable th:nth-child(11),
#mytable td:nth-child(11) { width: 6%; }

#mytable th:nth-child(12),
#mytable td:nth-child(12) { width: 6%; }

#mytable th:nth-child(13),
#mytable td:nth-child(13) { width: 6%; }

#mytable th:nth-child(14),
#mytable td:nth-child(14) { width: 8%; }

#mytable th:nth-child(15),
#mytable td:nth-child(15) { width: 5%; }

.vs-header-top{
    max-width:1100px;
    margin:0 auto;
    padding:14px 24px;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.header-left{
    display:flex;
    align-items:center;
    gap:28px;
}

.vs-header a.brand,
.vs-header a.brand:visited,
.vs-header a.brand:active{
    color:#fff !important;
    font-size:24px;
    font-weight:700;
    text-decoration:none;
}

.vs-header a.brand:hover{
    color:#9fd3ff !important;
}

.vs-header a.header-link,
.vs-header a.header-link:visited,
.vs-header a.header-link:active{
    color:#fff !important;
    font-size:16px;
    font-weight:500;
    text-decoration:none;

    padding:8px 14px;
    transition:all .25s ease;
}

.vs-header a.header-link:hover{
    color:#9fd3ff !important;
    text-decoration:none;
}

.vs-header a.header-link,
.vs-header a.header-link:link,
.vs-header a.header-link:visited,
.vs-header a.header-link:active,
.vs-header a.header-link:hover{
    border:none !important;
    outline:none !important;
    box-shadow:none !important;

    background:transparent !important;

    color:#fff;
    text-decoration:none;

    font-size:16px;
    font-weight:500;

    padding:8px 14px;

    transition:color .25s ease;
}

.vs-header a.header-link:hover{
    color:#9fd3ff !important;
}

@media (max-width:700px){

    .vs-header-top{
        justify-content:center;
        text-align:center;
    }

    .header-left{
        flex-direction:column;
        gap:14px;
    }

    .brand{
        font-size:26px;
    }

    .header-link{
        width:100%;
        max-width:260px;
        text-align:center;
    }

}

.vs-header{
    background:#1f5d92;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.vs-header a{
    color:#fff;
}

.form-grid{
    display:grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap:30px;
    width: 100%;
    max-width: 100%;
}

.form-grid .campo{
    display:flex;
    flex-direction:column;
    width: 100%;
    min-width: 0;
}

.form-grid > .campo{
    float: none !important;
    display: flex !important;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
}

.form-grid input{
    height:42px;
    padding:0 12px;
    border:1px solid #ccc;
    border-radius:0;
    font-size:14px;
    width: 100%;
    box-sizing: border-box;
}

.form-grid input[type="file"]{
    width:100%;
}

@media (max-width:700px){
    .form-grid{
        grid-template-columns:1fr !important;
    }
}

.contenedor-principal{
    width:100%;
    margin: auto;
    /*padding: 0 20px;*/

    background:#fff;

    border-radius:10px;

    padding:35px;

    box-shadow:0 8px 30px rgba(0,0,0,.08);
}

.tabla-wrapper{
    width: 100%;
    overflow-x: auto;
    margin-top:35px;
}

.form-cliente{
    width: 100%;
    margin: 0;
    padding: 0;
}

.wrapper {
    width:min(92%, 1750px);
    margin:40px auto;
    padding:0;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.row {
    width:100% !important;
    max-width:none !important;
    margin:0 auto;
}

@media (max-width: 700px) {

    #mytable {
        border: 0;
    }

    #mytable thead {
        display: none;
    }

    #mytable tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        padding: 10px;
        border-radius: 6px;
        background: #fff;
    }

    #mytable tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 8px 0;
        border: none;
        font-size: 13px;
        height: auto;
        min-height:40px;

        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: break-word;
    }

    #mytable tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #333;
    }

    #mytable tbody td:last-child {
        justify-content: flex-end;
    }

     #mytable td[data-label="Anotaciones"]{
        display:block;
        width:100%;
    }

    #mytable td[data-label="Anotaciones"]::before{
        display:block;
        margin-bottom:6px;
    }

    #mytable td[data-label="Anotaciones"]{
        word-break:break-word;
        white-space:normal;
    }

    #mytable th:nth-child(1),
    #mytable td:nth-child(1) { width: 100%; }   /* Posición */

    #mytable th:nth-child(2),
    #mytable td:nth-child(2) { width: 100%; }   /* Material */

    #mytable th:nth-child(3),
    #mytable td:nth-child(3) { width: 100%; }  /* Tipo producto */

    #mytable th:nth-child(4),
    #mytable td:nth-child(4) { width: 100%; }   /* Ancho */

    #mytable th:nth-child(5),
    #mytable td:nth-child(5) { width: 100%; }   /* Alto */

    #mytable th:nth-child(6),
    #mytable td:nth-child(6) { width: 100%; }

    #mytable th:nth-child(7),
    #mytable td:nth-child(7) { width: 100%; }

    #mytable th:nth-child(8),
    #mytable td:nth-child(8) { width: 100%; }

    #mytable th:nth-child(9),
    #mytable td:nth-child(9) { width: 100%; }

    #mytable th:nth-child(10),
    #mytable td:nth-child(10) { width: 100%; }

    #mytable th:nth-child(11),
    #mytable td:nth-child(11) { width: 100%; }

    #mytable th:nth-child(12),
    #mytable td:nth-child(12) { width: 100%; }

    #mytable th:nth-child(13),
    #mytable td:nth-child(13) { width: 100%; }

    #mytable th:nth-child(14),
    #mytable td:nth-child(14) { width: 100%; }

    #mytable th:nth-child(15),
    #mytable td:nth-child(15) { width: 100%; }
}

#mytable tbody tr:hover{
    background:#f7fbff;
}

.columns {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width:none !important;
    flex:0 0 100% !important;
}

h2{
    text-align:center;
    margin-bottom:10px;
}

.wrapper p:first-of-type{
    text-align:center;
    margin-bottom:40px;
}

.aviso-exito > div{
    background:#fff;
    color:#333;
    padding:30px;
    border-radius:8px;
    text-align:center;
    max-width:420px;
    width:90%;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.aviso-exito p:first-child{
    color:#1f5d92;
    font-size:18px;
    margin-bottom:15px;
}

.aviso-exito button{
    margin-top:20px;
    padding:10px 25px;
    border:none;
    border-radius:5px;
    background:#1f5d92;
    color:#fff;
    cursor:pointer;
    font-size:15px;
}

.aviso-exito button:hover{
    background:#174972;
}