﻿html {
    position: relative;
    min-height: 100%;
}

.row {
    margin: 0 !important;
}

/* ================== LOGIN PAGE ================= */

.login-body {
    background: url("./images/foto-home.jpg") no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
.login-body .row {
    margin-right: -15px !important;
    margin-left: -15px !important;
}
.login-container{
    height: 100%;
}
.login-card {
    width: 100%;
    height: 100%;
    border: none;
}
.login-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 50px !important;
    padding-bottom: 50px !important;
    min-height: 100vh;
}
.login-logo{
    height: 60px;
}
.login-btn{
    background-color: #2a2559;
    text-align: center;
    transition: .5s all ease;
    color: white;
}
.login-btn:hover {
    background-color: #1d4389;
    transition: .5s all ease;
    color: white;
}

.login-rec{
    text-align: center;
    margin-top: 50px;
    font-size: .8rem;
}
.login-rec a{
    color:#222222;
    text-decoration: underline;
}
.login-rec a:hover, .login-rec a:focus{
    color:#2a2559;
}
.slogan {
    font-size: 1.1rem;
    margin-top: 30px;
    text-align: center;
}
.login-card .form-control {
    border-left: 0;
    border-top: 0;
    border-right: 0;
}
.login-card .form-control:focus {
    box-shadow: none;
}

/* Checkbox de remember me color celeste */
#formIngreso .custom-checkbox .custom-control-input:checked~.custom-control-label::before {
    background-color: #009CDC;
    border-color: #009CDC;
}
#formIngreso .custom-control-input:active~.custom-control-label::before {
    background-color: #bce4f5;
}
#formIngreso .custom-checkbox .custom-control-input:focus~.custom-control-label::before {
    -webkit-box-shadow: 0 0 0 0.15rem rgba(0, 150, 240, 0.25);
        box-shadow: 0 0 0 0.15rem rgba(0, 150, 240, 0.25);
}
#formIngreso .custom-control-input:focus:not(:checked) ~ .custom-control-label::before {
    border-color: #009CDC;
}
#formIngreso .custom-control-input:not(:disabled):active ~ .custom-control-label::before {
    border-color: #009CDC;
}


/* ================== ENCABEZADO ================= */

.navbar {
    padding: .4rem 1rem;
    z-index: 10;
    position: relative;
}

.navbar-brand img {
    height: 24px;
    margin-left: 2px;
    margin-bottom: 2px;
}

.notificaciones-dd {
    width: 340px;
    height: auto;
    max-height: 400px;
    overflow-x: hidden;
}

.notificaciones-dd button {
    white-space: normal !important;
    cursor: pointer;
}


/* ============== BARRA DE MENU LATERAL ============= */

#side-nav {
    z-index: 9;
    overflow: auto;
    background-color: #2e353d;
    position: absolute;
    top: 0px;
    left: 0;
    width: 260px;
    height: 100%;
    padding-top: 3.1rem;
    transition: margin 0.3s;
    background-color: #edecf1;
    border-right: 1px solid #dbdbdd;
}
#sidebar.active {
    margin-left: -260px;
}

/* Hide scrollbar in Chrome */
#side-nav::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Hide scrollbar in Firefox */
#side-nav {
    scrollbar-width: none;
}

#side-nav .list-group-item {
    background-color: #edecf1;
    padding: 0.5rem 1.25rem;
    color: #444;
}

#side-nav .list-group-item.selected {
    background-color: #dbdbdd !important;
    font-weight:bold;
}

#side-nav .list-group-item-action:active {
    color: #444;
    background-color: #dbdbdd !important;
}

.list-group-item-action:hover, .list-group-item-action:focus {
    background-color: #dbdbdd !important;
}

#side-nav > .list-group > .list-group-item:first-child {
    margin-top: 10px;
}

@media (max-width: 409px) {
    #side-nav > .list-group > .list-group-item:first-child {
        margin-top:30px;
    }
}

#side-nav .list-group-item.sub-item {
    background-color: #e3e3e6;
    padding: 0.4rem 1.25rem 0.4rem 2.5rem;
}

i.arrowToggle {
    width: 8px;
    text-align: center;
}
i.arrowToggle:before {
    content: "\f107";
}
.collapsed i.arrowToggle:before {
    content: "\f105";
}


/* ============== CONTENEDOR PRINCIPAL ============= */

#main-content {
    float: right;
    width: calc(100% - 260px);
    transition: width 0.3s;
    margin-bottom: 60px; /* Margin bottom by footer height */
}


@media(max-width:909px) {
    .tam_b {
        width:185px;
    }
    .tam_b_200 {
        width:200px;
    }
    .tam_b_230 {
        width:230px;
    }
    .tam_b_250 {
        width:250px;
    }
}

@media(max-width:575px) {
    .tam_b {
        width:70%;
    }
    .tam_b_200 {
        width:100%;
    }
    .tam_b_230 {
        width:100%;
    }
    .tam_b_250 {
        width:100%;
    }
}

@media(max-width:430px) {
    .tam_b {
        width:100%;
    }
}

@media(max-width:749px) {
    #main-content {
        margin-bottom: 150px; /* Margin bottom by footer height */
    }
    ul.pagination {
        justify-content:initial !important;
    }
}

#main-content.active {
    width: 100%;
}


/* ================= STICKY FOOTER ================ */

.footer {
    position: absolute;
    bottom: 0;
    width: calc(100% - 260px);
    transition: width 0.3s;
}


/* ============== MENU LATERAL RESPONSIVE ============= */

@media (max-width: 768px) {
    #side-nav {
        margin-left: -260px;
    }
    #side-nav.active {
        margin-left: 0;
    }
    #main-content {
        width: 100%;
    }
    .footer {
        width: 100%;
    }
}


/* ============== FORMULARIOS Y LABELS ============= */

.form-group {
    margin-bottom: .8rem;
}

label {
    margin-bottom: .2rem;
}

.modal label {
    font-weight: bold;
}

.formulario label {
    font-weight: bold;
}

.formulario label.custom-file-label {
    font-weight: normal;
}

textarea.form-control {
    min-height: 35px;
}

/* agrega asterisco rojo a los campos required */
label.required:after { 
    content: " *"; 
    color: red;
}

label.error{
    color: red;
    font-style: italic;
    display:block;
}

.dropdown-menu {
   min-width: 8rem;
}

.dropdown-header {
    padding-top: 6px; 
    padding-bottom: 6px;
}

.dropdown-toggle.btn-light {
    background-color: white;
}
.dropdown-toggle.btn-light:not(:disabled):not(.disabled):active, 
.dropdown-toggle.btn-light:not(:disabled):not(.disabled).active,
.show > .dropdown-toggle.btn-light {
    background-color: #EDEDED;
}


/* correccion del color del borde del bootstrap-select */
.bootstrap-select .dropdown-toggle:focus,
.bootstrap-select > select.mobile-device:focus + .dropdown-toggle {
    border-color: #593196;
    outline: 0 !important;
    -webkit-box-shadow: 0 0 5px rgba(100, 65, 164, 0.4);
    box-shadow: 0 0 5px rgba(100, 65, 164, 0.4);
}

.bootstrap-select .dropdown-toggle {
    border: 1px solid #cbc8d0;
}

.badge {
    padding: 0.25em 0.6em;
    font-size: 90%;
}


/* ==================== MODALS =================== */

.modal-header h1,
.modal-header h2,
.modal-header h3,
.modal-header h4,
.modal-header h5,
.modal-header h6 {
    margin-bottom: 0;   
    width: 100%;
}


/*fix for bootstrap modal*/
.modal {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

@media (min-width: 576px) {
    .modal-lg {
        max-width: 90%;
    }
    .modal-xl{
        max-width:80% !important;
    }
}

@media (min-width: 992px) {
    .modal-lg {
        max-width: 800px;
    }
}


/* =============== ARBOL PARA DOCUMENTOS ============== */

.tree {
    min-height:20px;
    margin:10px 0 20px;
}
.tree li {
    list-style-type:none;
    margin:0;
    padding: 10px 0 0 5px;
    position:relative
}
.tree li::before, .tree li::after {
    content:'';
    left:-20px;
    position:absolute;
    right:auto
}
.tree li::before {
    border-left:1px solid #999;
    bottom:50px;
    height:100%;
    top:0;
    width:1px
}
.tree li::after {
    border-top:1px solid #999;
    height:20px;
    top:25px;
    width:25px
}
.tree li span {
    border:1px solid #999;
    display:inline-block;
    padding:3px 8px;
    text-decoration:none
}
.tree li.parent_li>span {
    cursor:pointer
}
.tree>ul>li::before, .tree>ul>li::after {
    border:0
}
.tree li:last-child::before {
    height:25px
}
.tree li.parent_li>span.documento:hover, .tree li.parent_li>span.documento:hover+ul li span {
    background:#eee;
    border:1px solid #94a0b4;
    color:#000
}

.tree li.documento:hover > span {
    background-color: #DDD
}

.tree > .carpetas {
    padding-left: 0;
}


/* ============= MATRIZ DE RIESGOS =============== */

#matrizRiesgos td {
    border: 1px solid #999;
    border-collapse: collapse;
    text-align: center;
    width: 110px;
}

#matrizRiesgos th {
    border: 1px solid #999;
    border-collapse: collapse;
    padding: 6px;
}

#matrizRiesgos tr:first-child th:first-child {
    width: 150px;
}

/* =========== TABLAS DE FICHA DE PERSONAL ========== */

#ficha table {
    margin-bottom: 0 !important;
}
.tablaFichaPersonal th {
    padding-left: 0;
}
.tablaFichaPersonal td {
    padding-right: 0;
}

/* ===================== FODA ======================= */
@media (min-width: 769px) {
    .tablaFODA {
        height:260px; 
        overflow-y:auto;
    }
}
/* =============== OTROS ESTILOS ============== */

.table-sm th, .table-sm td {
    padding: 0.4rem 0.5rem;
}

.datetimepicker .table-sm th, 
.datetimepicker .table-sm td,
.datepicker .table-sm th, 
.datepicker .table-sm td {
    padding: 0.3rem;
}

.text-small {
    font-size: 0.80rem;
}

.carga {
    width: 100%;
    vertical-align: central;
    text-align: center;
}

.wrap {
    width: 1px !important;
    white-space: nowrap !important;
}

td {
    word-wrap: break-word;
}

.tdwrap {
    white-space: pre-wrap !important;
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
}

.dl-horizontal dt {
    white-space: normal;
}

.w280 {
    max-width: 280px;
}

@media (max-width:518px)
{
.w280 {
    max-width: 100%;
}
}

a.deco-none {
    text-decoration: none;
}

@media all and (max-width:575px) {
   .btn-xs-block { width: 100%; display:block; }
}
@media all and (max-width:767px) {
   .btn-sm-block { width: 100%; display:block; }
}

.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn)
{
    width:200px !important;
}
@media(max-width:767px) {
  .bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn)
{
    width:100%!important;
}

}


@media(max-width:433px)
{
    .d_noti
    {
        display:none !important;
    }

    .bell_danger
    {
       color: #FC3939;
    }

    .d_noti_show
    {
       visibility:visible !important;
    }
}
/* =============== FONT AWESOME ============== */

/* Fix para iconos con ancho fijo */
/*.fa, .fas, .far, .fal, .fab {  
    text-align: center;
    width: 1.25em; 
}*/

i.h5 {
    font-size: 1.2em
}

/* =============== MENSAJE ENTORNO ============== */

.environment-fixed {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: inline-block;
}


/* ================ GOOGLE CHARTS =============== */

.grafico {
    align-content: center;
    display: flex;
    justify-content: center;
}

.grafico * {
    font-size: 12px !important;
}

svg > g > g:last-child { 
    pointer-events: none 
}

#ajaxLoad {
    position: fixed;
    left: 50vw;
    top: 50vh;
    z-index:1100;
}


/* ================ BOOTSTRAP SELECT =============== */

.dropdown-header {
    color: black;
    font-weight: bold;
    font-style: italic;
}

.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn)
{
    width:350px !important;
}
@media (max-width: 767px)
{

.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
    width: 100%!important;
}
}

@media (min-width: 769px)
{

.d-md-none {
    display: none !important;
}
}

@media (max-width: 768px)
{

.d-md-none {
    display:  block !important;
}
}
