.loading-records-query-overlay,
.gif-loading-insert-record {
    display: none;
    position: absolute;
    top: 0;
    background-color: rgba(255, 255, 255, 0.5);
    width: 100%;
    height: 100%;
    background-image: url(../img/slow-circle-loader.gif);
    background-position: center center;
    -webkit-background-size: 150px;
    -moz-background-size: 150px;
    -o-background-size: 150px;
    background-size: 150px;
    background-repeat: no-repeat;
    z-index: 5;
}
.gif-loading-insert-record {
    background-color: rgba(0, 0, 0, 0.2);
    background-size: 115px auto;
}

.load-sorted-records-links:hover {
    color: #4395ec;
    cursor: pointer;
}
.load-sorted-records-links i.fa {
    margin-left: 5px;
}
.load-sorted-records-links i.fa-sort-desc {
    vertical-align: text-top;
}
.load-sorted-records-links i.fa-sort-asc {
    vertical-align: bottom;
}

/********************/
/*** modal styles ***/
/********************/
.modal-dialog-overlay {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background-color: #000;
    opacity: 0.5;
    filter: alpha(Opacity=50);
}
.modal-dialog-overlay.ventaok {
    display: block;
}
.div-gif-loading-dialog {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 101;
    background: url("../img/spinner-1s-200px.svg") no-repeat center center;
    background-size: 225px auto;
}
.modal-dialog-window-container {
    position: fixed;
    display: none;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: auto;
    outline: 0;
    z-index: 101;
}
.modal-dialog-window-container.fade {
    opacity: 0;
    -webkit-transition: opacity .15s linear;
    -moz-transition: opacity .15s linear;
    -o-transition: opacity .15s linear;
    transition: opacity .15s linear;
}
.modal-dialog-window-container.fade.in {
    opacity: 1;
}

.modal-dialog-window-container .modal-dialog {
    position: relative;
    -webkit-transition: -webkit-transform .3s ease-out;
    -moz-transition: -moz-transform .3s ease-out;
    -o-transition: -o-transform .3s ease-out;
    transition: transform .3s ease-out;
    -webkit-transform: translate(0,-25%);
    -moz-transform: translate(0,-25%);
    -ms-transform: translate(0,-25%);
    -o-transform: translate(0,-25%);
    transform: translate(0,-25%);
    margin: 85px auto;
    background: #fff;
    -webkit-box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    -moz-box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    overflow: auto;
}
.modal-dialog-window-container .modal-dialog.artprecio {
    margin: auto;
    top: 50%;
    -webkit-transform: translateY(-50%) scale(0.5, 0.5);
    -ms-transform: translateY(-50%) scale(0.5, 0.5);
    transform: translateY(-50%) scale(0.5, 0.5);
    opacity: 0.2;
}
.modal-dialog-window-container.in .modal-dialog {
    -webkit-transform: translate(0,0);
    -moz-transform: translate(0,0);
    -ms-transform: translate(0,0);
    -o-transform: translate(0,0);
    transform: translate(0,0);
}
.modal-dialog-window-container.in .modal-dialog.artprecio {
    -webkit-transform: translateY(-50%) scale(1, 1);
    -moz-transform: translateY(-50%) scale(1, 1);
    -ms-transform: translateY(-50%) scale(1, 1);
    -o-transform: translateY(-50%) scale(1, 1);
    transform: translateY(-50%) scale(1, 1);
    opacity: 1;
}
.modal-dialog form {
    position: relative;
}
.modal-dialog .dheader {
    background-color: #456e9e;
    color: white;
    position: relative;
}
.modal-dialog.artprecio .dheader {
    background: #e06c2b;
    padding: 10px 15px;
}
.modal-dialog .dbody {
    position: relative;
}
.modal-dialog .dbody .fields > div {
    margin-bottom: 15px;
}
.modal-dialog .dbody .fields > div:last-child {
    margin-bottom: 0;
}
.modal-dialog .dfooter {
    text-align: right;
    border-top: 1px solid #ececec;
    margin-top: 10px;
}
.modal-dialog .dheader,
.modal-dialog .dbody,
.modal-dialog .dfooter {
    padding: 15px;
}
.modal-dialog .btn+.btn {
    margin-left: 10px;
}
.modal-dialog .dfooter .btn {
    font-size: 14px;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}
.modal-dialog .dheader .close {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 15px;
    height: 25px;
    width: 25px;
    font-size: 1.5em;
    margin: auto;
    color: rgba(255, 255, 255, 0.7);
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    cursor: pointer;
    line-height: 25px;
}
.modal-dialog .dheader .close:hover,
.modal-dialog .dheader .close:focus {
    color: #fff;
    background: rgba(0, 0, 0, 0.12);
}

/*** form validations ***/
form .fields > div {
    position: relative;
}
form .fields-errors {
    display: none;
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    background: #fcf8e3;
    border: 1px solid #faebcc;
    color: #8a6d3b;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    padding: 3px 5px;
    cursor: default;
}
form .fields-errors:after {
    content: '';
    position: absolute;
    border: 6px solid transparent;
    border-top-color: inherit;
    margin-left: -6px;
    bottom: -12px;
    left: 50%;
    pointer-events: none;
}

/*********************/
/*** dialog widths ***/
/*********************/
.modal-dialog.producto-marca,
.modal-dialog.producto-imagen,
.modal-dialog.producto-unidad,
.modal-dialog.producto-categoria,
.modal-dialog.editar-mision,
.modal-dialog.editar-vision,
.modal-dialog.editar-objetivos,
.modal-dialog.usuario-estado {
    width: 400px;
}
.modal-dialog.artprecio {
    width: 440px;
}
.modal-dialog.nuevo-cliente,
.modal-dialog.nuevo-proveedor,
.modal-dialog.nuevo-producto,
.modal-dialog.nuevo-empleado,
.modal-dialog.editar-empleado {
    width: 871px;
}
.modal-dialog.eliminar-producto-categoria,
.modal-dialog.eliminar-producto-unidad,
.modal-dialog.eliminar-producto-marca,
.modal-dialog.eliminar-cliente,
.modal-dialog.eliminar-proveedor,
.modal-dialog.nuevo-usuario,
.modal-dialog.envio-correo-cliente {
    width: 350px;
}
.modal-dialog.producto-estado {
    width: 400px;
}
.modal-dialog.ajustar-stock {
    width: 585px;
}
.modal-dialog.editar-datos-empresa {
    width: 500px;
}
.modal-dialog.movimiento-dinero {
    width: 585px;
}
/*.modal-dialog.movimiento-dinero .movimiento-empleado,*/ /* comentado por anthony */
.modal-dialog.movimiento-dinero .movimiento-pago,
.modal-dialog.movimiento-dinero .movimiento-operacion,
.modal-dialog.movimiento-dinero .dbody .descripcion {
    margin-right: 0 !important;
}
.modal-dialog.movimiento-dinero .dbody .descripcion {
    width: 100% !important;
}

    /*****************************/
/*** modal results windows ***/
/*****************************/
.modal-results-window > div {
    padding: 15px;
}
.modal-results-window .title {
    position: relative;
    color: white;
}
.modal-results-window .title h4 {
    font-size: 1.2em;
}
.modal-results-window .title .icon {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 15px;
    height: 25px;
    width: 25px;
    font-size: 1.5em;
    margin: auto;
    color: rgba(255, 255, 255, 0.50);
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    cursor: pointer;
}
.modal-results-window .title .icon:hover,
.modal-results-window .title .icon:focus {
    background: rgba(0, 0, 0, 0.15);
}
.modal-results-window .figure,
.modal-results-window .footer {
    text-align: center;
}
.modal-results-window .content {
    margin-top: -25px;
    text-align: center;
}
.modal-results-window .content .name {
    color: #337ab7;
}
.modal-results-window .figure i {
    font-size: 4.5em;
}
.modal-results-window .footer button {
    font-size: 14px;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.modal-results-window.success .title {
    background: #55ab73;
}
.modal-results-window.success .figure {
    color: #55ab73;
}

.modal-results-window.warning .title {
    background: #e0a911;
}
.modal-results-window.warning .figure {
    color: #e0a911;
}

.modal-results-window.error .title {
    background: #d65555;
}
.modal-results-window.error .figure {
    color: #d65555;
}

.div-input-gif {
    position: relative;
}
.div-input-gif .gif {
    display: none;
    position: absolute;
    width: 20px;
    height: 20px;
    font-size: 1.3em;
    right: 5px;
    top: 0;
    bottom: 0;
    margin: auto;
    line-height: 22px;
    text-align: center;
    color: #2196f3;
}
.div-input-gif input[disabled] + .gif {
    display: none !important;
}

.modal-dialog .table-detail {
    width: 100%;
}
.table-detail tr td:first-child {
    padding-right: 15px;
}

/* -- toggle in modal -- */
.div-toggle-triggers {
    margin: 15px 0;
    text-align: center;
    border-bottom: 1px solid #ececec;
}
.div-toggle-triggers button {
    background: white;
    color: inherit;
    border-radius: 3px 3px 0 0;
    position: relative;
    bottom: -1px;
    border-bottom: 1px solid #ececec;
}
.div-toggle-triggers button:hover,
.div-toggle-triggers button:focus {
    box-shadow: none;
    background: #ededed;
}
.div-toggle-triggers button.opened {
    color: #4395ec;
    font-family: 'FontMedium', Helvetica, sans-serif;
    border-bottom-color: transparent;
}
.div-toggle-triggers button.opened:focus {
    background: white;
}
[class|='div-trigger-contenido'] {
    display: none;
}
[class|='div-trigger-contenido'].opened {
    display: block;
}


#btn-rucdni-search {
    display: inline-block;
    padding: 4px 8px;
    margin-left: 10px;
    background: #f75454;
    visibility: hidden !important; /* !important 'not facturador' */
}
#btn-rucdni-search.visible {
    visibility: visible;
}
#btn-rucdni-search i {
    display: inline-block;
    width: 1.3em;
    text-align: center;
}
#btn-rucdni-search:disabled i {
    -webkit-animation: fa-spin 1s infinite steps(8);
    animation: fa-spin 1s infinite steps(8);
}
#btn-rucdni-search:disabled i:before {
    content: "\f110";
}


.ajax-live-search .resultados {
    position: absolute;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 7px -1px #909090;
    display: none;
    z-index: 6;
    left: 0;
    top: 55px;
}
.ajax-live-search .rst-proveedor,
.ajax-live-search .rst-waiting,
.ajax-live-search .rst-varticulo,
.ajax-live-search .rst-cliente {
    padding: 5px 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}
.ajax-live-search .rst-proveedor:hover,
.ajax-live-search .rst-varticulo:hover,
.ajax-live-search .rst-proveedor.hover,
.ajax-live-search .rst-varticulo.hover,
.ajax-live-search .rst-cliente:hover,
.ajax-live-search .rst-cliente.hover {
    background: rgba(0, 107, 199, 0.1);
}
.ajax-live-search .rst-proveedor-na,
.ajax-live-search .rst-varticulo-na,
.ajax-live-search .rst-cliente-na {
    background: rgba(199, 112, 0, 0.1);
    padding: 5px 10px;
}
.ajax-live-search .rst-waiting {
    cursor: wait;
}


input[type=checkbox].simple-checkstyle,
.simple-checkstyle input[type=checkbox] {
    background-color: #eaeaea;
    border-radius: 2px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 17px;
    height: 16px;
    cursor: pointer;
    position: relative;
    top: 5px;
    border: 1px solid transparent;
}
input[type=checkbox].simple-checkstyle:disabled,
.simple-checkstyle input[type=checkbox]:disabled {
    opacity: 0.4;
}
input[type=checkbox].simple-checkstyle:focus,
.simple-checkstyle input[type=checkbox]:focus {
    outline: 1px solid rgba(0, 0, 0, 0.2);
}
input[type=checkbox].simple-checkstyle:checked,
.simple-checkstyle input[type=checkbox]:checked {
    background-color: #0075ff;
    background: #0075ff url("data:image/gif;base64,R0lGODlhCwAKAIABAP////3cnSH5BAEKAAEALAAAAAALAAoAAAIUjH+AC73WHIsw0UCjglraO20PNhYAOw==") 2px 2px no-repeat;
}
input[type=checkbox].simple-checkstyle:not(:checked),
.simple-checkstyle input[type=checkbox]:not(:checked) {
    border-color: rgba(64, 159, 214, 0.5);
}


.simple-fixed-modal {
    display: none;
    position: fixed;
    width: 340px;
    margin: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 102;
    background: #fff;
    box-shadow: 0 0 12px 4px #484848;
    border-radius: 5px;
    text-align: left;
    overflow: hidden;
}
.simple-fixed-modal .header {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px;
    color: #fff;
    background: #456e9e;
}
.simple-fixed-modal .main {
    padding: 10px;
}
.simple-fixed-modal .footer {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #dddddd;
}
.badge-style {
    background: #f75477; /*rgba(255, 255, 255, 0.1)*/
    padding: 2px 4px;
    border-radius: 3px;
}

.even-odd-style > :nth-child(odd) {
    background: #f3f3f3;
}
.even-odd-style.trs > * {
    border: solid #e8ecef;
    border-width: 1px 0 1px 0;
}
.even-odd-style.trs > *:hover:not(.no-row-data) {
    background: rgba(182, 205, 230, 0.46);
}
.even-odd-style.trs td {
    padding: 4px;
}