/** { font: arial, sans-serif;}*/
/** { font: normal 11px/13px tahoma,arial,verdana,sans-serif}*/

.loading {width: 100%; display: flex; justify-content: center; align-items: center; margin: 15px}
.loading div{border: solid; background-color: white; padding: 5px}
/*.table-responsive table{font: normal 11px/13px calibri, tahoma,arial,verdana,sans-serif}*/

html, body{background-size: 100%; background-repeat: no-repeat; overflow: no-display; font-family: calibri ; }
body{margin-top: 119px}

table caption {caption-side: top;}

ul{-webkit-padding-start: 1em;
   list-style-type: disc;
   -webkit-margin-before: 0em;
   -webkit-margin-after: 0em;
   -webkit-margin-start: 0px;
   -webkit-margin-end: 0px;
}

h1{margin-bottom: 0px; text-align: center}
h1, h2, h3, h4, h5 {font-style: italic}
a, p, label {line-height: 1 }

a{text-decoration: none}

/*p{display: inline-block}

div{border: 0 none;    margin: 0;    padding: 0; word-wrap: break-word;}
button{border: 0 none; margin: 0; padding: 0; word-wrap: break-word;}
td{word-wrap: break-word;}*/

/** Chrome **/
input[type=number]::-webkit-inner-spin-button { 
    -webkit-appearance: none;
    cursor:pointer;
    display:block;
    width:8px;
    color: #333;
    text-align:center;
    position:relative;
}
input[type=number]::-webkit-inner-spin-button:before,
input[type=number]::-webkit-inner-spin-button:after {
    content: "^";
    position:absolute;
    right: 0;
    font-family:monospace;
    /*line-height:*/
}

input[type=number]::-webkit-inner-spin-button:before {
    top:0px;
}

input[type=number]::-webkit-inner-spin-button:after {
    bottom:0px;
    -webkit-transform: rotate(180deg);
}

/** Mozilla **/
input[type=number] { 
    -moz-appearance: textfield;
    appearance: textfield;
    margin: 0; 
}

td input[type=number], td input[type=text]{padding: .2rem}

/*input[type="checkbox"] {
    display:none;
}
input[type="checkbox"] + label span {
    display:inline-block;
    width:50px;
    height:20px;
    margin:-1px 4px 0 0;
    vertical-align:middle;
    background:url(img/check-.png) left top no-repeat;
    cursor:pointer;
}
input[type="checkbox"]:checked + label span {
    background:url(img/check+.png) left top no-repeat;
}

input[type="checkbox"] + label b{
    display:inline-block;
    width:20px;
    height:20px;
    margin:-1px 4px 0 0;
    vertical-align:middle;
    background:url(img/select-.png) left top no-repeat;
    cursor:pointer;
}
input[type="checkbox"]:checked + label b{
    background:url(img/select.png) left top no-repeat;
}*/

hr { margin-top: 0.2rem; margin-bottom: 0.2rem;}

.table td, .table th {
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.ui-autocomplete-loading { background: white url("./images/16x16.gif") right center no-repeat; background-size: contain;}

.left-text{    
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
    width: 35px;
    margin: 5px;
    font-weight: 500;
    writing-mode: vertical-lr;
    text-align: center;
}

.t1 {font-size: xx-large; text-transform: uppercase}
.t2 {font-size: x-large; text-transform: uppercase}
.t3 {font-size: large; text-transform: uppercase}

caption{font-weight: bold}

div[data-tipo = 'row'] {display: flex; width: calc(100% - 5px); flex-direction: row; padding: 5px 0px 0px 5px}
div[data-tipo = 'row-footer'] {display: flex; width: calc(100% - 5px); flex-direction: row; padding: 5px 0px 0px 5px}

row {display:block; width: calc(100% - 5px); padding: 5px 0px 0px 5px;}
/*row input, input[type=number], select {margin-left: 5px; height: 25px; max-width: calc(100% - 6px);}*/
.row [data-contenido = 'flex'] {display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; min-height: 35px}
.row [data-tipo = 'footer'] {display: flex; width: calc(100% - 5px); flex-direction: row; padding: 5px 0px 0px 5px}
.row [data-tipo = 'check'] {/*background:url(img/check-bg.png) repeat-y 4px;*/ padding: 10px 0px 5px 5px; cursor: pointer}
.row [data-tipo = 'check-datos'] {background:url(img/check-bg.png) repeat-y 4px; padding-top: 1em; padding-left: 25px;}
.row [data-border="bottom"] {border-bottom: solid #A7A9AC 1px; padding-bottom: 5px}
row h1, h2, h3{width: 100%; display: block; font-style: normal}
row h2, h3{margin-bottom: 0px; font-style: normal}
row-item {justify-content: center; flex-grow: 0}
row-footer {display: flex; width: calc(100% - 5px); flex-direction: row; padding: 5px 0px 0px 5px}


#loading{margin: 0 auto; position: absolute; height: 32px; top: 50%; left: 50%; margin: -16px 0 0 -16px;}
#loading img{margin-left: calc(50% - 15px)}

/*Encabezado de la pantalla*/
.navbar {background-color: #00272D}
#mainMenu {height: 65px}
#user {min-width: 100px; }
#user ul {list-style:none; display: block; padding: 0px}
#user ul li {float:right; display: block; width: 100%; cursor: pointer; background: #000; text-align: -webkit-right;}
#user li ul {display: none;}
#user li li {float: left; padding: 10px; background: #000}
#user li li:hover {background: #CCCCCC}
#user li:hover ul {display: block;}
#user a {color: white}


#main{background-size: 100%; background-repeat-y : no-repeat; height: 100%;}
#indexMenu{margin: unset}
content {position: absolute; top: 40px; left: 200px; height: calc(100% - 40px); width: calc(100% - 220px); padding-left: 10px; padding-right: 10px}

/*div.contentMatriz::-webkit-scrollbar{width: 1px; height: 1px;}*/

numKeyPad{width: 100%; height: 100%; display: flex; flex-direction: column}
numKeyPad input[type=number]{width: calc(100% - 10px); height: 50px; text-align: right}
numKeyPad buttons {height: calc(100% - 130px); width: 100%}
numKeyPad buttons button {margin: 5px; width: calc(33% - 10px); height: calc(25% - 10px); }

/* TableReport */
header-table {display: flex;  padding-bottom: 5px; padding-right: 10px; padding-top: 5px; }
.txtSearch { border-radius: 15px; height: 30px; width: 50%; padding-left: 7px; background-color: #A7A9AC; background-repeat: no-repeat; background-position-y: center; background-position-x: calc(100% - 10px); color: white; text-transform: uppercase; border: none; margin-right: 10px;}
.txtSearch::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    font-style: italic;
    color: #EEEEEE;
}
.txtSearch::-moz-placeholder { /* Firefox 19+ */
    font-style: italic;
    color: #EEEEEE;
}
.txtSearch:-ms-input-placeholder { /* IE 10+ */
    font-style: italic;
    color: #EEEEEE;
}
.txtSearch :-moz-placeholder { /* Firefox 18- */
    font-style: italic;
    color: #EEEEEE;
}



#dialog-proveedor input{font-size: 1em}

/** AUTO COMPLETE **/
.ui-autocomplete {z-index: 2000;}

.ui-combobox{display: flex; align-items: end;}
.ui-combobox button {height: 38px; width: 38px;}
.ui-combobox input{background: none} 
.ui-widget-content{max-height: 250px; overflow-y: auto; overflow-x: no-display}

#leftMenu{width: 50px !important; background-repeat: repeat-y; background-color: white; background-position-x: 15px; overflow-y: auto}
btnLeftMenu img {width : 30px !important;}


.panel-default {
    border-color: #ddd;
}
.panel-body {
    padding: 15px;
}
.panel-footer {
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
}

@media screen and (min-width : 768px) {

    #leftMenu{ width: 100px !important;}
    btnLeftMenu img {width : 40px !important;}
    
    #mainMenu {height: 90px}
    body{margin-top: 144px }
}

/* ================================================================
   CLIENTE DOMICILIO
   ================================================================ */

.dlg-cliente-domicilio .modal-body {
    padding: 0;
    background: #f5f6f7;
}

/* Secciones principales: Cliente / Dirección / Pedido */
.dlg-cliente-domicilio .dom-section {
    padding: 24px;
    margin-bottom: 8px;
    background: #fff;
    border-bottom: 1px solid #e5e8ea;
}

.dlg-cliente-domicilio .dom-section-last {
    margin-bottom: 0;
    border-bottom: 0;
}

/* Encabezado numerado de cada sección */
.dlg-cliente-domicilio .dom-section-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.dlg-cliente-domicilio .dom-section-header .dom-step {
    display: flex;
    width: 30px;
    height: 30px;
    min-width: 30px;
    margin-right: 12px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e9f3f5;
    color: #08798a;
    font-weight: bold;
}

.dlg-cliente-domicilio .dom-section-header strong,
.dlg-cliente-domicilio .dom-section-header small {
    display: block;
}

.dlg-cliente-domicilio .dom-section-header strong {
    font-size: 16px;
    line-height: 18px;
}

.dlg-cliente-domicilio .dom-section-header small {
    margin-top: 3px;
    color: #747d85;
    line-height: 16px;
}

/* ================================================================
   DIRECCIONES GUARDADAS
   ================================================================ */

.dlg-cliente-domicilio .dom-address-card {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 78px;
    padding: 14px 115px 14px 48px;
    margin-bottom: 10px;
    align-items: center;
    border: 1px solid #d7dce0;
    border-radius: 6px;
    background: #fff;
    color: #282d31;
    text-align: left;
    cursor: pointer;
}

.dlg-cliente-domicilio .dom-address-card:hover {
    border-color: #8fbac0;
    background: #fafcfc;
}

.dlg-cliente-domicilio .dom-address-card.active {
    padding: 13px 114px 13px 47px;
    border: 2px solid #08798a;
    background: #f5fbfc;
}

/* Radio visual */
.dlg-cliente-domicilio .dom-address-radio {
    position: absolute;
    left: 17px;
    top: 50%;
    width: 19px;
    height: 19px;
    margin-top: -10px;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    background: #fff;
}

.dlg-cliente-domicilio .dom-address-card.active .dom-address-radio {
    border: 6px solid #08798a;
}

/* Texto dirección */
.dlg-cliente-domicilio .dom-address-body {
    min-width: 0;
}

.dlg-cliente-domicilio .dom-address-body strong,
.dlg-cliente-domicilio .dom-address-body small {
    display: block;
}

.dlg-cliente-domicilio .dom-address-body strong {
    line-height: 18px;
    word-break: break-word;
}

.dlg-cliente-domicilio .dom-address-body small {
    margin-top: 5px;
    color: #727b84;
    line-height: 15px;
}

/* Etiqueta seleccionada */
.dlg-cliente-domicilio .dom-address-badge {
    position: absolute;
    right: 14px;
    top: 50%;
    display: none;
    padding: 5px 8px;
    transform: translateY(-50%);
    border-radius: 3px;
    background: #e4f2f4;
    color: #08798a;
    font-size: 10px;
    font-weight: bold;
    line-height: 12px;
    text-transform: uppercase;
}

.dlg-cliente-domicilio .dom-address-card.active .dom-address-badge {
    display: block;
}

/* ================================================================
   NUEVA DIRECCIÓN
   ================================================================ */

.dlg-cliente-domicilio .dom-new-address {
    display: flex;
    width: 100%;
    min-height: 68px;
    padding: 12px 15px;
    align-items: center;
    border: 1px dashed #aeb7bd;
    border-radius: 6px;
    background: #fff;
    color: #343a40;
    text-align: left;
    cursor: pointer;
}

.dlg-cliente-domicilio .dom-new-address:hover {
    border-color: #08798a;
    background: #fafcfc;
}

.dlg-cliente-domicilio .dom-new-address-icon {
    display: flex;
    width: 34px;
    height: 34px;
    min-width: 34px;
    margin-right: 12px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f3f5;
    color: #08798a;
    font-size: 25px;
    line-height: 34px;
}

.dlg-cliente-domicilio .dom-new-address strong,
.dlg-cliente-domicilio .dom-new-address small {
    display: block;
}

.dlg-cliente-domicilio .dom-new-address strong {
    line-height: 17px;
}

.dlg-cliente-domicilio .dom-new-address small {
    margin-top: 3px;
    color: #747d85;
    line-height: 15px;
}

/* ================================================================
   EDITOR DIRECCIÓN
   ================================================================ */

.dlg-cliente-domicilio .dom-address-editor {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #e4e7e9;
    border-radius: 6px;
    background: #f7f8f9;
}

.dlg-cliente-domicilio .dom-editor-title {
    margin-bottom: 15px;
    color: #343a40;
    font-weight: bold;
}

.dlg-cliente-domicilio .dom-back-search {
    color: #08798a;
    font-size: 13px;
    text-decoration: none;
}

/* Evita que las reglas globales line-height:1 compriman demasiado
   los textos internos del componente */
.dlg-cliente-domicilio label {
    line-height: 1.3;
}

.dlg-cliente-domicilio .form-text {
    line-height: 1.3;
}

/* ================================================================
   MOBILE
   ================================================================ */

@media screen and (max-width: 767px) {

    .dlg-cliente-domicilio .dom-section {
        padding: 18px 16px;
    }

    .dlg-cliente-domicilio .dom-address-card {
        padding-right: 48px;
    }

    .dlg-cliente-domicilio .dom-address-card.active {
        padding-right: 47px;
    }

    .dlg-cliente-domicilio .dom-address-badge {
        display: none !important;
    }

    .dlg-cliente-domicilio .dom-address-editor {
        padding: 15px;
    }
}

.dlg-cliente-domicilio .modal-content > form {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    max-height: inherit;
}