/*==============================GENERAL==============================*/
#loding {
    display: none;
    z-index: 99999999;
}
.lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
    position: fixed; /* or absolute */
    top: 50%;
    left: 50%;
}
.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid #AA0000;
    border-color: #AA0000 transparent #AA0000 transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
}

* {
    scrollbar-width: thin;
}
::-webkit-scrollbar {
    width: 0.35rem;
}
:not(.scroll--default)::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 10px;
}
.dataTables_length, .dataTables_filter {
    display: none;
}

.badge-orange {
    background: orange;
    color: #fff;
}
.badge-red {
    background: #ca1077;
    color: #fff;
}
.error {
    color: red;
    text-align: center;
    font-size: 13px;
}

.error[data-type="validator-error"] {
    font-size: 10px;
    position: absolute;
}

input.error,
select.error{
    border: 1px solid;
}

input[type="file"] {
    border: 1px solid #ced4da;
    padding: 5px;
    border-radius: 5px;
    font-size: 13px;
}
input[type=file]::-webkit-file-upload-button {
    border: 1px solid;
    background: #FFF;
    border-radius: 10px;
    font-size: 12px;
    color: #AA0000;
    cursor: pointer;
} 

div.dt-buttons {
    position: inherit;
    float: none;
    width: 100%;
    text-align: right;
} 
div.dt-buttons > button {
    background: #fff!important;
    color: #aa0000!important;
    border-color: #aa0000!important;
    border-radius: 7px;
    transition: 300ms all ease;
    outline: none!important;
}

button.dt-button, div.dt-button, a.dt-button, input.dt-button {
    margin-bottom: 1.333em!important;
    font-size: 0.75em!important;
    text-transform: uppercase!important;
}

div.dt-buttons > button:hover {
    background: #f1f1f1!important;
}
.btn-primary.focus, .btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgb(38 143 255 / 0%)!important;
}
button.dt-button:focus:not(.disabled), div.dt-button:focus:not(.disabled), a.dt-button:focus:not(.disabled), input.dt-button:focus:not(.disabled) {
    text-shadow: 0 1px 0 #c4def100!important;
}
.dz-progress {
    display: none;
}
body {
    font-family: 'Lato', sans-serif;
    color: #484848;
}

.btn-primary {
    background-color: #aa0000!important;
    border-color: #aa0000!important;
}

.app-sigap {
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
}

.modal-dialog.modal-dialog-centered {
    height: 100%;
}

.modal-content {
    max-height: 90%;
    overflow: hidden;
}
.modal-body {
    height: 100%; 
    overflow: auto;
}

.modal-body img {
    max-width: 500px;
}

.modal-title {
    font-size: 16px;
}

.modal-open .modal {
    overflow-y: hidden;
}

@media (max-width: 900px) {
    .modal-body form {
        display: block!important;
    }
}

table.dataTable tbody tr {
    cursor: pointer;
}
/*==============================LOGIN==============================*/

.login-wrapper {
    height: 100%;
    width: 100%;
    position: absolute;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.login-wrapper > .login-background {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    background-image: url("/images/background-login.png");
    align-items: center;
    padding: 2rem;
    background-size: cover;
    background-repeat: no-repeat;
}

.login-wrapper > .login-background > .logo {
    width: 350px;
    height: auto;
}

.login-wrapper > .login-background .saludo { 
    font-size: 75px;
    color: #fff;
    font-weight: bold;
}

.login-wrapper > .login-background .title {
    width: 300px;
    position: relative;
    display: flex;
    align-items: center;
    height: 50px;
}

.login-wrapper > .login-background .title .block {
    width: 0%;
    height: inherit;
    background: #fff;
    position: absolute;
    animation: mainBlock 2s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
    display: flex;
}
  
.login-wrapper > .login-background .title h1 {
    color: #fff;
    font-size: 40px;
    -webkit-animation: mainFadeIn 2s forwards;
    -o-animation: mainFadeIn 2s forwards;
    animation: mainFadeIn 2s forwards;
    animation-delay: 1.6s;
    opacity: 0;
    display: flex;
    align-items: baseline;
    position: relative;
    font-weight: 100;
}

.login-wrapper > .login-background .title h1 span {
    width: 0px;
    height: 0px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    background: #fff;
    -webkit-animation: load 0.6s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
    animation: popIn 0.8s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
    animation-delay: 2s;
    margin-left: 5px;
    margin-top: -10px;
    position: absolute;
    bottom: 13px;
    right: -12px;
}
  
  
@keyframes mainBlock {
    0% {
      width: 0%;
      left: 0;
    }
    50% {
      width: 100%;
      left: 0; 
    }
    100% {
      width: 0;
      left: 100%;
    }
}
@keyframes secBlock {
    0% {
      width: 0%;
      left: 0;
    }
    50% {
      width: 100%;
      left: 0;
    }
    100% {
      width: 0;
      left: 100%;
    }
}
@keyframes mainFadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
}
@keyframes popIn {
    0% {
      width: 0px;
      height: 0px;
      background: #fff;
      border: 0px solid #ddd;
      opacity: 0;
    }
    50% {
      width: 10px;
      height: 10px;
      background: #fff;
      opacity: 1;
      bottom: 45px;
    }
    65% {
      width: 7px;
      height: 7px;
      bottom: 0px;
      width: 15px;
    }
    80% {
      width: 10px;
      height: 10px;
      bottom: 20px;
    }
    100% {
      width: 5px;
      height: 5px;
      background: #fff;
      border: 0px solid #222;
      bottom: 8px;
    }
}

.login-wrapper > .login-datos {
    padding: 2rem;
}

.login-wrapper > .login-datos > h3 {
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
}
.login-wrapper > .login-datos > form > .sigap-input-box {
    margin: auto;
    width: 400px;
}
.login-wrapper > .login-datos > form > .btn-ingresar {
    text-align: center;
    margin-top: 50px;
}

.login-wrapper > .login-datos > form > .btn-ingresar button  {
    width: 200px;
    background: #AA0000;
    color: #fff;
    border: 0;
    border-radius: 50px;
    padding: 5px 10px;
}

@media (max-width: 900px){
    .login-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr
    }

    .login-wrapper > .login-background > .logo {
        width: 250px;
    }
    .login-wrapper > .login-background .saludo {
        font-size: 45px;
    }
    .login-wrapper > .login-background .title h1 {
        font-size: 30px;
    }
    .login-wrapper > .login-datos > h3 {
        font-size: 1rem;
    }
    .login-wrapper > .login-datos > form > .sigap-input-box {
        width: 100%;
    }
}




/*==============================DASHBOARD==============================*/

.dashboard-wrapper {
    position: absolute;
    height: 100%;
    width: 100%;
    padding-top: 20px;
}

.dashboard-wrapper > .dashboard-body {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.dashboard-wrapper > .dashboard-body .group-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dashboard-wrapper > .dashboard-body .group-btn h5 {
    margin-bottom: 20px;
    font-weight: 300;
} 

.dashboard-wrapper > .dashboard-body .group-btn .list-btn{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
}

.dashboard-wrapper > .dashboard-body .group-btn .list-btn .btn-sigap {
    text-decoration: none;
    color: #AA0000;
    text-align: center;
}

.dashboard-wrapper > .dashboard-body .group-btn .list-btn .btn-sigap .btn-wrapper {
    display: grid;
    grid-template-rows: 1fr auto;
    justify-content: center;
    grid-template-columns: 1fr;
    width: 150px;
    height: 180px;
    background: #FBFBFB;
    box-shadow: 0px 1px 5px rgba(85, 85, 85, 0.25);
    border-radius: 10px;
    margin-right: 15px;
    margin-bottom: 15px;
    padding: 10px;
    transition: padding-bottom .4s;
}

.dashboard-wrapper > .dashboard-body .group-btn .list-btn .btn-sigap .btn-wrapper:hover {
    padding-bottom: 20px;
}  

.dashboard-wrapper > .dashboard-body .group-btn .list-btn .btn-sigap .btn-wrapper > .btn-img{
    display: grid;
    margin: 10px auto;
    background-color: #ececec;
    width: 60px;
    height: 60px;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0px 0px 0px 30px rgb(255 255 255 / 0%);
    transition: box-shadow .4s;
    justify-content: center;
    align-items: center;
}

.dashboard-wrapper > .dashboard-body .group-btn .list-btn .btn-sigap .btn-wrapper:hover > .btn-img {
    box-shadow: 0px 0px 0px 0px rgb(0 0 0 / 8%);
    transition: 0.5s;
}

.dashboard-wrapper > .dashboard-body .group-btn .list-btn .btn-sigap .btn-wrapper > .btn-txt {
    font-size: 0.8em;
    text-align: center;
    padding-top: 20px;
    opacity: .6;
    transition: padding-top .4s;
    font-weight: 600;
}

.dashboard-wrapper > .dashboard-body .group-btn .list-btn .btn-sigap .btn-wrapper:hover > .btn-txt {
    padding-top: 30px;
    transition: 0.3s;
    color: gray;
}

/*==============================HEADER==============================*/
.header-sigap {
    height: 3rem;
}

.header-sigap > #menu-detalle {
    position: absolute;
    width: 250px;
    height: 100%;
    background: #fff;
    padding: 0.5rem;
    right: 100%;
    padding-top:4rem;
    transition: 400ms all ease;
    box-shadow: 0 0px 6px rgb(0 0 0 / 30%);
    z-index: 2;
} 

.header-sigap > #menu-detalle.show {
    right: calc(100% - 250px);
}

.header-sigap > #menu-detalle ul {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
    overflow: auto;
    padding-right: 10px;
}

.header-sigap > #menu-detalle ul li a {
    display: grid;
    grid-template-columns: 20px 1fr;
    grid-gap: 10px;
    border-bottom: 1px solid #ececec;
    margin-bottom: 10px;
    padding: 5px;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    text-decoration: none; 
}

.header-sigap > #menu-detalle ul li:hover:before {
    content:'';
    width: 2px;
    height: 27px;
    background: #AA0000;
    left: 5px;
    position: absolute;
}

.header-sigap > #menu-detalle ul li img {
    width: 100%;
    height: 15px;
}

.header-sigap > .header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-gap: 10px;
    align-items: center;
    padding: 0.5rem 1rem;
    width: 100%;
    height: 3rem;
    background: #AA0000;
    box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.29);
    position: absolute;
    top: 0;
    color: #fff;
    z-index: 2;
}

.header-sigap > .header-content .header-actions {
    padding-right: 10px
}

.header-sigap >.header-content .header-actions button {
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
}

.header-sigap > .header-content .header-brand {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 10px;
}

.header-sigap > .header-content .header-brand img {
    width: 80px;
    height: auto;
}

.header-sigap > .header-content .header-brand h3 {
    font-size: 1.2rem;
    font-weight: 300;
    margin: 0;
    border-left: 1px solid;
    padding-left: 10px;
}
.header-sigap > .header-content .header-brand a {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    color: #fff;
    text-decoration: none;
}
.header-sigap > .header-content .header-user {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-gap: 0 10px;
    align-items: center;
    cursor: pointer;
    user-select: none;    
}

.header-sigap > .header-content .header-user > .icon-user {
    border: 1px solid;
    padding: 5px;
    border-radius: 100%;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.header-sigap > .header-content .header-user i:last-of-type {
    font-size: 12px;
    margin-bottom: 4px;
}

.header-sigap > .header-content .header-user #user-detalle {
    position: absolute;
    transition: 300ms all ease;
    box-shadow: 0 1px 5px rgb(0 0 0 / 20%);
    right: 0;
    background: #fff;
    height: auto;
    top: -8rem;
}

.header-sigap > .header-content .header-user #user-detalle.show {
    top: calc(100% - 0rem);
}   

.header-sigap > .header-content .header-user #user-detalle .user-detalle-body {
    padding: 10px;
}

.header-sigap > .header-content .header-user #user-detalle .user-detalle-body > .user-log {
    color: #333;
    font-weight: bold;
}

.header-sigap > .header-content .header-user #user-detalle .user-detalle-footer {
    text-align: center;
    background: #f1f1f1;
}

.header-sigap > .header-content .header-user #user-detalle .user-detalle-footer a {
    text-decoration: none;
    font-size: 13px;
    display: block;
    border-bottom: 1px solid #c7c7c7;
    padding: 7px 10px;
    text-decoration: none;
    color: #333;
}

.header-sigap > .header-content .header-user #user-detalle .user-detalle-footer a:last-child{
    border-bottom: 0;
}

@media (max-width: 900px) {
    .header-sigap > .header-content .header-actions {
        padding: 0;
    }
    .header-sigap > .header-content .header-actions .sigap-back {
        display: none;

    }
    .header-sigap > .header-content .header-brand img {
        width: 70px;
    }
    .header-sigap > .header-content .header-brand h3 {
        display: none;
    }
    .header-sigap > .header-content .header-user {
        grid-gap: 0 5px;
    }
    .header-sigap > .header-content .header-user > .icon-user {
        height: 22px;
        width: 22px;
        font-size: 10px;
    }
    .header-sigap > .header-content .header-user .user-name  {
        font-size: 14px;
    }
}

/*==============================TOOLTIP==============================*/
[data-tooltip] {
    position: relative;
    z-index: 99;
}
  
[data-tooltip]:before,
[data-tooltip]:after {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    left: 50%;
    bottom: calc(100% + 5px); 
    pointer-events: none;
    transition: 0.2s;
    will-change: transform;
}
  
[data-tooltip]:before {
    content: attr(data-tooltip);
    padding: 3px 10px;
    min-width: 50px;
    max-width: 300px;
    width: max-content;
    width: -moz-max-content;
    border-radius: 6px;
    font-size: 14px;
    background-color: rgba(59, 72, 80, 0.9);
    background-image: linear-gradient(30deg,
      rgba(59, 72, 80, 0.44),
      rgba(59, 68, 75, 0.44),
      rgba(60, 82, 88, 0.44));
    box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.2);
    color: #fff;
    text-align: center;
    white-space: pre-wrap;
    transform: translate(-50%, -5px) scale(0.5);
}
  
 
[data-tooltip]:after {
    content: '';
    border-style: solid;
    border-width: 5px 5px 0px 5px; /* CSS triangle */
    border-color: rgba(55, 64, 70, 0.9) transparent transparent transparent;
    transition-duration: 0s; 
    transform-origin: top;   
    transform: translateX(-50%) scaleY(0);
}
  
 
[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
    visibility: visible;
    opacity: 1;
}
  
[data-tooltip]:hover:before {
    transition-delay: 0.3s;
    transform: translate(-50%, -5px) scale(1);
}
  
[data-tooltip]:hover:after {
    transition-delay: 0.5s; /* Starting after the grow effect */
    transition-duration: 0.2s;
    transform: translateX(-50%) scaleY(1);
}

/* LEFT */
[data-tooltip-location="left"]:before,
[data-tooltip-location="left"]:after {
  left: auto;
  right: calc(100% + 5px);
  bottom: 50%;
}

[data-tooltip-location="left"]:before {
  transform: translate(-5px, 50%) scale(0.5);
}

[data-tooltip-location="left"]:hover:before {
  transform: translate(-5px, 50%) scale(1);
}

[data-tooltip-location="left"]:after {
  border-width: 5px 0px 5px 5px;
  border-color: transparent transparent transparent rgba(55, 64, 70, 0.9);
  transform-origin: left;
  transform: translateY(50%) scaleX(0);
}

[data-tooltip-location="left"]:hover:after {
  transform: translateY(50%) scaleX(1);
}

/* RIGHT */
[data-tooltip-location="right"]:before,
[data-tooltip-location="right"]:after {
  left: calc(100% + 5px);
  bottom: 50%;
}

[data-tooltip-location="right"]:before {
  transform: translate(5px, 50%) scale(0.5);
}

[data-tooltip-location="right"]:hover:before {
  transform: translate(5px, 50%) scale(1);
}

[data-tooltip-location="right"]:after {
  border-width: 5px 5px 5px 0px;
  border-color: transparent rgba(55, 64, 70, 0.9) transparent transparent;
  transform-origin: right;
  transform: translateY(50%) scaleX(0);
}

[data-tooltip-location="right"]:hover:after {
  transform: translateY(50%) scaleX(1);
}


/* BOTTOM */
[data-tooltip-location="bottom"]:before,
[data-tooltip-location="bottom"]:after {
  top: calc(100% + 5px);
  bottom: auto;
}

[data-tooltip-location="bottom"]:before {
  transform: translate(-50%, 5px) scale(0.5);
}
[data-tooltip-location="bottom"]:hover:before {
  transform: translate(-50%, 5px) scale(1);
}

[data-tooltip-location="bottom"]:after {
  border-width: 0px 5px 5px 5px;
  border-color: transparent transparent rgba(55, 64, 70, 0.9) transparent;
  transform-origin: bottom;
}

/*==============================BUSCADOR EN TABLA==============================*/
.sigap-search  {
    display: none;
}

.mostrar-filtro {
    display: grid!important;
    width: 99%;
    padding:10px;
    background: #c1c1c1;
    top: -39px;
    left: 0;
    border-radius: 5px 5px 0 0;
    position: absolute;
    grid-template-columns: 1fr auto;
    align-items: center;
    color: #fff;
}

.mostrar-filtro > input {
    width: 100%;
    border: 0;
    border-radius: 5px;
    color: #fff;
    background: none;
    outline: 0;
}

.mostrar-filtro i {
    cursor: pointer;
}

.mostrar-filtro > input::placeholder{
    color: #fff;
}


table thead tr:nth-child(1) th button {
    border: 0;
    background: none;
    float: right;
    margin-right: 20px; 
    position: absolute;
}

table thead tr:nth-child(1) th button i {
    font-size: 10px;
    position: absolute;
    /*top: 15px;*/
    margin-top: 3px;
}

table thead tr:nth-child(2) th{
    position: relative;
    padding: 0;
    border: 0;
}

#sin-archivo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #ababab;
}

.auto-columns {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    display: grid;
    grid-gap: 15px;
}