@import url('https://fonts.googleapis.com/css?family=Nunito');
* {
    font-family: 'Nunito';
}

#app {
    position: relative;
}

#main {
    margin-left: 260px;
    background-color: #F7FAFF;
    min-height: 100vh;
    transition: margin-left .6s ease-out;
    .main-content {
        padding: 2rem 1.5rem;
        .page-title h3 {
            font-size: 2rem;
        }
        .text-subtitle {
            font-size: .9rem;
        }
    }
}

.breadcrumb-header {
    .breadcrumb {
        justify-content: flex-end;
    }
}

.alert.alert-dismissible .close:focus,
.custom-switch .custom-control-label:focus,
.dropdown .dropdown-toggle:focus,
.dropleft .dropdown-toggle:focus,
.dropright .dropdown-toggle:focus,
.dropup .dropdown-toggle:focus,
.list-group button.list-group-item:focus,
.modal .modal-content .modal-header .close:active,
.modal .modal-content .modal-header .close:focus,
.modal .modal-content .modal-header .close:hover,
.navbar-components-wrapper .navbar .navbar-container.navbar-dark .navbar-toggler:focus,
.navbar-components-wrapper .navbar .navbar-container.navbar-light .navbar-toggler:focus,
.toast .toast-header .close:active,
.toast .toast-header .close:focus,
a:focus {
    outline: 0;
}

section {
    .section-title {
        &:after {
            width: 70px;
            height: 2px;
            content: '';
            margin: .6rem 0 1rem;
            background-color: map-get($theme-colors, 'primary');
            display: block;
        }
    }
}

a {
    text-decoration: none;
    outline: 0;
}

button {
    outline: 0;
}

svg.feather,
i {
    font-size: 14px;
    height: 1rem
}

footer {
    padding: 1rem 1.5rem;
}

.is-invalid ~ .form-control-icon {
    top: calc(50% - 12px) !important;
}

body {
    .sidebar-wrapper {
        .sidebar-header {
            padding: 15px 15px 0;

            img {
                height: auto;
                display: block;
                margin: auto;
            }
        }
        .menu {
            .sidebar-item {
                .sidebar-link, .sidebar-link span {
                    font-size: 14px !important;
                    color: #053382;
                    font-weight: 500;
                    opacity: 0.8;
                }
            }
        }
    }

    .navbar .nav-link-user img {
        width: auto;
    }

    a {
        &:hover {
            text-decoration: none;
        }
    }
}

.min-height-500{
    min-height: 500px;
}

.ui-avatar {
    border-radius: 50%;
    height: auto;

    &.md {
        width: 48px;
    }
}

.bg-gray-100 {
    background-color: $gray-100 !important;
}

.row-flex {
    display: flex;
    flex-wrap: wrap;
}

.card {
    &.card-dashboard,
    &.card-calendar,
    &.card-search {
        height: calc(100% - 30px);
        margin-bottom: 30px;
        min-height: 132px;
    }

    &.card-dashboard {
        max-height: 432px;
    }

    &.card-dashboard {
        &.full {
            height: calc(100vh - 235px);
            max-height: calc(100vh - 235px);
        }

        .card-title {
            text-align: center;
            font-weight: bold;
            color: #fff;
            font-size: 18px;
        }

        .card-value {
            text-align: center;
            margin: 0;
            font-weight: bold;
            color: #fff;
            font-size: 32px;
        }

        .card-body {
            padding: 15px 10px;
            overflow-y: auto;
        }

        .card-item {
            padding: 10px 0;
        }
    }

    &.card-calendar,
    &.card-search {
        .card-title {
            text-align: center;
            font-weight: bold;
            font-size: 18px;
            margin: 0;
        }
    }

    &.card-search {
        .links-pagination {
            nav {
                div:nth-child(2) {
                    flex-direction: column;
                }
            }
        }
    }
}

.preview-image {
    display: block;
    width: 200px;
    height: 200px;
    padding: 5px;
    border: 1px solid #dfe3e7;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;

    img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    span, div {
        width: 100%;
        height: 100%;
        display: block;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #dfe3e7;
        border-radius: 5px;
        color: #232323;
    }
}

::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 6px rgba(map-get($theme-colors, "primary"),0.8);
	border-radius: 5px;
	background-color: #F5F5F5;
}
::-webkit-scrollbar {
	width: 6px;
	background-color: #F5F5F5;
}
::-webkit-scrollbar-thumb {
	border-radius: 5px;
	-webkit-box-shadow: inset 0 0 6px rgba(map-get($theme-colors,"primary"),.8);
	background-color: #555;
}

body .daterangepicker {
    top: 0;
    left: 0;
    margin-top: 0;
}

.btn {
    &.btn-link {
        &.btn-link2 {
            background-color: transparent;
            border-color: transparent;
            &:hover,
            &:not(:disabled):not(.disabled):active,
            &:not(:disabled):not(.disabled):active:focus,
            &:focus {
                color: inherit;
                text-decoration: none;
                background-color: transparent;
                border-color: transparent;
                box-shadow: none;
            }
        }
    }
    &.btn-warning {
        &:not(:disabled):not(.disabled):active,
        &:hover {
            color: #fff;
        }
    }
}

.card-quote-details {
    .card-body {
        max-height: 771px;
        overflow-y: auto;
    }
}

.form-autocomplete {
    position: relative;

    .wrapper-autocomplete {
        position: absolute;
        z-index: 2;
        width: 100%;
        margin-top: 5px;
        max-height: 310px;
        overflow: auto;

        .list-group {
            box-shadow: 0px 0px 5px 0px rgb(0 0 0 / 15%);

            .list-group-item {
                &:hover {
                    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
                    border-right: 1px solid rgba(0, 0, 0, 0.125);

                    &:first-child {
                        border-top: 1px solid rgba(0, 0, 0, 0.125);
                    }
                }

                &:first-child {
                    border-top-left-radius: 0;
                    border-top-right-radius: 0;
                }

                &:last-child {
                    border-bottom-right-radius: 0;
                    border-bottom-left-radius: 0;
                }
            }
        }
    }
}

.form-row-filter .form-control {
    z-index: 0;
    margin-bottom: 5px;
}

.form-row-filter .daterangepicker {
    width: calc(100% - 10px);
    margin-left: 5px;
}

.wrapper-search {
    position: relative;

    .btn {
        position: absolute;
        right: 15px;
        padding: 0;
        margin: 0;
        z-index: 100;
        top: 8px;
    }
}

// Spinner Circle Rotation
.loading {
    position:absolute;
    top: 50px;
    left: calc(50% - 20px);
    width: 40px;
    height: 40px;
    z-index: 1;

    animation:fadein 200ms;
}
@keyframes fadein {
    from {opacity:0}
    to {opacity:1}
}
.sp {
	width: 32px;
	height: 32px;
	clear: both;
	margin: 20px auto;
}
.sp-circle {
	border: 4px rgba(27, 61, 147, 0.25) solid;
	border-top: 4px rgba(27, 61, 147, 1) solid;
	border-radius: 50%;
	animation: spCircRot .6s infinite linear;
}
@keyframes spCircRot {
	from { transform: rotate(0deg); }
	to { transform: rotate(359deg); }
}

.ui-timepicker-container {
    z-index: 9999 !important;
}

body .nav-tabs .nav-link:hover,
body .nav-tabs .nav-link:focus {
    border-color: transparent;
}
body .nav-tabs .nav-link:hover {
    border: 1px solid transparent;
}

@media (min-width: 768px) {
    .row-cards-dashboard {
        .col-cards-dashboard {
            flex: 0 0 50%;
            max-width: 50%;
        }
    }
}

@media (min-width: 992px) {
    .row-cards-dashboard {
        .col-cards-dashboard {
            flex: 0 0 33.33%;
            max-width: 33.33%;
        }
        .col-card-calendar {
            flex: 0 0 60%;
            max-width: 60%;
        }
        .col-card-search {
            flex: 0 0 40%;
            max-width: 40%;
        }
    }
}

@media (min-width: 1200px) {
    .row-cards-dashboard {
        .col-cards-dashboard {
            flex: 0 0 25%;
            max-width: 25%;
        }
    }

    .btn-add-quote {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .btn-add-quote,
    .btn-add-quote i {
        font-size: 12px !important;
    }
}

@media (min-width: 1600px) {
    .row-cards-dashboard {
        .col-cards-dashboard {
            flex: 0 0 20%;
            max-width: 20%;
        }
    }
}

@media screen and (max-width: 767px) {
    #main {
        margin-left: 0;
    }
    .breadcrumb-header {
        .breadcrumb {
            justify-content: flex-start;
            padding: 0;
            font-size: .8rem;
        }
    }
}

@media(max-width: 767px) {
    .form-row-filter {
        .form-control {
            margin-bottom: 5px;
        }
    }
}

//Reclamaciones
.float-end
{
  float: right !important;
}

.vh-60 {
  height: 60vh !important;
}

.div_list_g .select2-container {
    width: 90% !important;
  }

  #view_list_generic {
    cursor: pointer;
  }

  #view_list_generic:hover {
    color:#ccc !important;
  }

  .div_list_g i {
    cursor: pointer;
  }

  .swal2-actions .swal2-confirm, .swal2-actions .swal2-cancel {
    font-size: 13px !important;
  }

  /* button quickly a */
  .w-92 {
    width: 92%;
  }

  #deleteListGe, #updateListGe, #addListGe {
    transition: color 0.3s linear 0.2s;
  }

  #addListGe:hover {
    color: #39da8a !important
  }

  #updateListGe:hover {
    color: #ffc107!important;
  }

  #deleteListGe:hover {
    color: #ff5b5c !important;
  }

  .select2 {
    width: 100% !important;
  }

  .spinner_pdf {
    top: 40%;
    left: 50%;
    width: 4rem !important;
    height: 4rem !important;
  }

  .visually-hidden, .visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute!important;
    width: 1px!important;
    height: 1px!important;
    padding: 0!important;
    margin: -1px!important;
    overflow: hidden!important;
    clip: rect(0,0,0,0)!important;
    white-space: nowrap!important;
    border: 0!important;
}

.files-content {
    max-height: 400px;
    overflow: auto;
}

.kt-overlay {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    background: rgba(255, 255, 255, 0.75);
    z-index: 1000;

    .kt-overlay__inner {
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        position: absolute;

        .kt-overlay__content {
            left: 50%;
            position: absolute;
            top: 50%;
            transform: translate(-50%, -50%);

            .kt-spinner {
                width: 75px;
                height: 75px;
                display: inline-block;
                border-width: 2px;
                border-color: red;
                border-top-color: #fff;
                animation: ktspin 1s infinite linear;
                border-radius: 100%;
                border-style: solid;
            }
        }
    }
}

@keyframes ktspin {
    100% {
        transform: rotate(360deg);
    }
}
