/*        RESET       */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video, main {
	margin: 0;
	padding: 0;
	border: 0;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, main {
	display: block;
    width: 100%;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
* { box-sizing:border-box;}

/*----------------------------------------------------------------- */
/* GENERAL */
/*----------------------------------------------------------------- */
body{
    font-size: 16px;
    color: #333;
    line-height: 1.4;
    font-family:  'Roboto', Verdana, Helvetica , sans-serif; 
    min-height: 100%;
}

.flex{
    display: flex;
}

.columna {
    flex-flow: column;
}

.fila{
    flex-flow: row wrap;
    align-items: center;
}

.btn-aceptar{
    width: 100px;
    height: 30px;
    color: #FFF;
    background: teal;
    border: 1px solid teal;
    border-radius: 5px;
    padding: 3px;
    font-size: 14px;
}

.btn-aceptar:hover{
    background: #26adad;
}
/*----------------------------------------------------------------- */
/* LAYOUT */
/*----------------------------------------------------------------- */
.container-principal{
    height: 100vh;
    min-height: 100%;
    width: 100%;
    background: #FFF;
      /*FLEX*/
    display: flex;
    flex-flow: column;
}

.container{
    width: 100%;
    margin: 0 auto;
    height: auto; 
    padding: 10px 5%;
}



main{
    flex: 1;
    padding: 25px 20px;
    background: #eeeded;
}



header{
    min-height: 130px;
    width: 100%;
}


footer{
    min-height: 40px;
    color: #FFF;
    background: #202324;
}

/*----------------------------------------------------------------- */
/* HEADER */
/*----------------------------------------------------------------- */

.cabecera{
    padding: 10px 50px;
    border-bottom: solid 1px #DDD;
    
    /*FLEX*/
    justify-content: space-between;
    align-items: flex-end;
}

.cabecera div.sesion{
    /*FLEX*/
    justify-content: space-around;
    align-items: center;
}

.cabecera div.sesion a, .menu-bar a, .footer-1 a{
    text-decoration: none;
    color: #333;
    font-weight: bold;
} 

.cabecera div.sesion a{
    padding-left: 15px;
}

.cabecera div.sesion label{
    margin-left: 20px;
}

.cabecera div.separador{
    margin-left: 15px;
    width: 1px;
    height: 15px;
    background: #333;
}

.menu-bar{
    padding: 0px 10%;
    border-bottom: solid 1px #DDD;
    
    /*FLEX*/
    justify-content: center;
    align-items: center;
}

.menu-bar a{
    font-size: 1.1em;
    padding: 5px 20px;
    height: 31px;
}

div.btn-group a span{
    padding-left: 20px;
}

.menu-bar a.active{
    color: #1f63a1;
}
.menu-bar a:hover{
    color: #1f63a1;
}

div.mensaje-header{
    width: 100%;
    height: 60px;
    font-size: 18px;
    font-weight: bold;
    color: #FFF;
    background: #1f63a1;
    padding: 18px;
    border-bottom: solid 2px #DDD;
   
}

/*----------------------------------------------------------------- */
/* FOOTER */
/*----------------------------------------------------------------- */

footer{
    text-align: center;
    font-size: 12px;
}

footer .footer-1{
    padding: 0px 50px;
    /*FLEX*/
    justify-content: center;
}

footer .footer-1 a {
    color: rgba(32, 72, 188, 0.95);
}

footer .footer-1 a:hover {
    color: #cbc6c6;
}

.footer-1 a.arriba{
    color: #cbc6c6;
    position: relative;
    left: 40%;
    font-size: 2.5em;
    text-align: right;
}

/*----------------------------------------------------------------- */
/* LOGIN */
/*----------------------------------------------------------------- */

.wraper{
    width: 100%;
    height: 100%;
    /*background: #f1f1f1;*/
    
    /*FLEX*/
    flex-flow:  column wrap;
    justify-content: center;
    align-items: center;

}

.wraper h2{
    padding-bottom: 50px;
    font-size: 2.8em;
}

.form-login{
     /*FLEX*/
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    text-align: left;
    
    width: 350px;
    height: auto;
    padding: 10px;
}

.form-login input, .form-login button, .form-login h2, .form-login img{
    margin-bottom: 15px;
}

.form-login input{
    padding: 0px 10px;
    height: 35px;
}

.form-login label{
    font-size: .8em;
}

.form-login input, .form-login label{
    display: block;
    width: 100%;
    text-align: left;
}

.form-login input#enviarLogin{
    width: 100%;
    height: 35px;
    background: #272793;
    color: #FFF;
    border: 0px;
    border-radius: 5px; 
}

.form-login input#enviarLogin:hover{
    background: #3737b7;
}

.contenedorMensaje{
    width: 100%;
    height: 50px;
    border-radius: 5px;
}

.contenedorMensaje p{
    padding: 10px;
}

.mensaje{
    font-size: 1em;
    text-align: center;
}

.error {
    text-align: center;
    color:#8b1818;
}

.bien{
    text-align: center;
    color:#3ba832;
}

.active{
    color: #000;
}

/*----------------------------------------------------------------- */
/* DATATABLES */
/*----------------------------------------------------------------- */
.m-l-5{
    margin-left: 5px;
}

table.dataTable thead th{
    background: #5e6061;
    color: #FFF;
}

table.estilo-tabla{
    padding-bottom: 2px;
    border: 1px solid #333;
    border-radius: 5px;
}

div.dataTables_filter{
    margin-bottom: 5px;
}

div.dataTables_filter input{
    width: 250px;
    height: 30px;
    border: 2px solid #DDD;
    border-radius: 3px;
}


table tbody.tabla-fila td{
    padding: 5px;
}

a.btn-accion{
    text-decoration: none;
}

.btn-accion{
    color: #FFF;
    background: #000000;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 4px 8px;
    margin-left: 3px;
    font-size: 1.2em;
}

.toolbar{
    width: 700px;
    float:left;
    padding-left: 30px;
}

.toolbar input#from, .toolbar input#to{
    height: 32px;
    width: 120px;
    margin-left: 5px;
    margin-right: 5px;
     border: solid  2px #DDD ;
    border-radius: 3px;
    padding-left: 5px;
    padding-right: 5px;
}

.toolbar a{
    text-decoration: none;
}

.toolbar a span{
    padding-right: 10px;
    font-size: 14px;
}

div.toolbar a.boton-nuevo, div.toolbar button.boton-nuevo{
    background: #1f63a1;
    color: #FFF;
    padding: 3px 12px;
    margin-right: 20px;
    border: solid 1px #1f63a1;
    border-radius: 3px;
}

.toolbar .boton-nuevo:hover{
    background: #4b81b3;
}

.btn-verde{
    background: #22692c;
}

.btn-rojo{
    background: #c31111;
}

.btn-azul{
    background: #1f63a1;
}

/*----------------------------------------------------------------- */
/* MODALES */
/*----------------------------------------------------------------- */

#ui-datepicker{
    z-index:1003;
} 

.ui-autocomplete{
    z-index: 1100;
    background: #FFF;
    border: 2px solid #DDD;
    border-radius: 3px;
    width: 200px;
}

/*Agregar una imagen mientras se cargan los datos del sistema*/
.ui-autocomplete-loading {
    background: white url("../images/spinner.gif") right center no-repeat;
}

.modal-chico{
    width: 350px;
}

.modal-grande{
    width: 1100px;
}

.small-words{
    font-size: .9em;
    color: #b2b0b0;
    text-align: right;
}

.modal-body input, .modal-body select{
    padding: 5px;
    height: 30px;
    border: solid  2px #DDD ;
    border-radius: 3px;
}

.modal-body div{
    margin-bottom: 5px;
}


/* Clases para los campos dinamicos */
a#agregarCampo{
    text-decoration: none;
}

a#agregarCampo span{
    font-size: .9em;
}

.modal-orden div.pie-productos{
    padding: 10px;
    
    /*FLEX*/
    justify-content: space-between;
    align-items: center;
}

.modal-orden div#select_descuento{
    margin-right: 10px;
}

.modal-orden div.datos-orden{
    justify-content: space-around;
    padding-bottom: 10px;
}

.modal-orden div.datos-orden div{
    padding-right: 5px;
    width: 340px;
}

.modal-orden h4{
    padding-top: 10px;
    border-top: 1px solid #DDD;
}

#contenedorDetalles{
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #DDD;
}

#contenedorDetalles input, #contenedorDetalles select{
    vertical-align: middle;
    margin-left: 5px;
}

#contenedorDetalles input.input-orden, #contenedorDetalles select{
    width: 110px;
}

#contenedorDetalles input.input-desc{
    width: 310px;
}

#contenedorDetalles input.input-obs{
    width: 150px;
}

a.eliminar {
    text-decoration: none;
}

/*----------------------------------------------------------------- */
/* NUEVA ORDEN */
/*----------------------------------------------------------------- */
main.nuevo{
    flex: 1;
    padding: 10px;
    background: #eeeded;
}

.contenedor-main{
    /*padding: 10px;*/
    background: #FFF;
    border: solid 1px #DDD;
    border-radius: 4px;
    overflow: hidden;
}

.contenedor-main input,.contenedor-main select{
    height: 30px;
    padding: 1px 8px;
    border: 1px solid #a2a2a2;
    border-radius: 3px;
    overflow: hidden;
} 

/* Datos de clave */
.datos-clave{
    padding: 10px 10px;
    justify-content: flex-start;
}

.datos-clave div input, .datos-clave div label, .datos-clave div select{
    margin-right: 8px;
}

.datos-clave div input{
    padding: 5px;
    width: 120px;
}

/* Datos de la orden */
.datos-moneda{
    
    width: 100%;
    justify-content: space-between;
    padding: 10px 10px;
    align-items: center;
}

.datos-moneda label{
    padding-left: 8px;
    padding-right: 8px;
}

.entregar-a {
    justify-content: space-around;
    align-items: center;
    width: 35%;
}

.entregar-a input{
    margin-left: 5px;
    width: 80%;
}

.entregar-a label{
    padding-left: 0;
}


.datos-orden{
    padding: 10px 10px;;
    justify-content: space-between;
    align-items: center;
}

.datos-orden input{
    width: 26%;
}


/* Controles de la orden */

.controles-orden{
    padding: 10px 10px;
}

.btn-agregar{
    width: 40px;
    padding: 3px 12px;
    background: #5cb85c; 
    color: #fff;
    text-align: center;
    border: 1px solid #a2a2a2;
    border-radius: 3px;
    overflow: hidden;
}

.controles-orden form{
    width: 100%;
}

.buscador-prod{
    justify-content: space-between;
    align-items: center;
}

.agregar-prod select{
    width: 18%;
}

.agregar-prod input{
    margin-left: 10px;
    width: 450px;
}


.agregar-prod input#tipo{
    width: 20%;
}

input#tipo_cambio{
    width: 100px;
    margin-right: 10px;
    text-align: center;
}

.readOnly{
    background: #d1d1d1;
}

select#desc_porcentaje{
    margin-left: 10px;
}

div#descuento_pesos label{
    margin-left: 10px;
}

div#descuento_pesos input{
    width: 200px;
    text-align: center;
}

/* Tabla de productos */
.tabla-nuevo{
    padding: 5px;
    width: 100%;
}

#tabla-detalle tbody td {
    text-align: center;
}

table#tabla-detalle{
    width: 100%;
}

.detalle-input{
    width: 180px;
    height: 25px;
    border: 1px solid #DDD;
    border-radius: 3px;
    overflow: hidden;
    text-align: center;
    padding-left: 1px;
    padding-right: 1px;
}

.detalle-input-small{
    width: 80px;
    height: 25px;
    border: 1px solid #DDD;
    border-radius: 3px;
    overflow: hidden;
    text-align: center;
    padding-left: 3px;
    padding-right: 3px;
}

.detalle-input-big{
    width: 350px;
    height: 25px;
    border: 1px solid #DDD;
    border-radius: 3px;
    overflow: hidden;
    text-align: center;
    padding-left: 3px;
    padding-right: 3px;
}


.btn-opc-small{
    margin-left: 3px;
    padding-bottom: 1px;
    padding-top: 1px;
    padding-left: 5px;
    padding-right: 5px;
}
/* Precios, totales, calculos */

.panel-footer{
    justify-content: space-between;
    align-items: center;
}

.datos-precios{
    padding: 10px 10px;
    justify-content: center;
    align-items: center;
}

.datos-precios input{
    text-align: center;
    height: 40px;
    background: #f5a3a3;
    font-weight: bold;
    border: 1px solid #f82d2d;
    color: #000;
    margin-right: 20px;
}

.datos-precios input#desc_pesos{
    width: 150px;
    height: 30px;
    background: #FFF;
    font-weight:  normal;
    border: 1px solid #DDD;
    color: #000;
}

/*----------------------------------------------------------------- */
/* CONFIRMACION */
/*----------------------------------------------------------------- */
.loginbox{
    width: 300px;
    border: 1.5px solid #DDD;
    border-radius: 3px;
    margin: auto;
    margin-top: 50px;
    
    font-family: 'Roboto';
   -webkit-box-shadow: 2px 3px 13px 2px rgba(0,0,0,0.4); 
    box-shadow: 2px 3px 13px 2px rgba(0,0,0,0.4);
}

.loginbox div.titulo-confirmacion{
    border-bottom: 1px solid #DDD;
    padding: 15px;
    justify-content: center;
    align-items: center;
}

.loginbox div.titulo-confirmacion p{
    width: 180px;
    display: inline-block;
    font-size: 1.4em;
    padding-left: 10px;
}

.loginbox form.form-confirmacion{
    padding: 15px;
    height: 220px;
    justify-content: space-around;
    background-color: rgba(237, 237, 237, 0.29);
}

.loginbox form.form-confirmacion input{
    height: 30px;
    border: 1px solid #DDD;
    border-radius: 3px;
    overflow: hidden;
}

.loginbox form.form-confirmacion label{
    font-size: .85em;
}

.loginbox form.form-confirmacion input#btnAutorizar{
    height: 35px;
    background-color: #342fac;
    color: #FFF;
}

.loginbox form.form-confirmacion input#btnAutorizar:hover{
    background-color: #4d49a7;
}





















