﻿html {
    font-size: 14px;
}

body {
    font-size: 14px !important;
    background-color: #f4f7fa;
}

.container,
.container-fluid,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm {
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 776px) {
    .container-sm, .container {
        max-width: 94%;
    }
}

@media (min-width: 768px) {
    .container-md, .container-sm, .container {
        max-width: 92%;
    }
}

@media (min-width: 992px) {
    .container-lg, .container-md, .container-sm, .container {
        max-width: 94%;
        font-size: 1rem !important;
    }
}



/*-------------------------------------------------------------------------------------------- [Card] ------------------------------------------------------------------------------------------------*/
.card {
    border: none;
    box-shadow: 0 7px 14px 0 rgba(65, 69, 88, 0.1), 0 3px 6px 0 rgba(0, 0, 0, 0.07);
    border-radius: 0.375rem;
}

.card-header {
    background-color: transparent;
}

.card-title {
    font-family: sans-serif;
    color: #5e6e82;
    margin-bottom: 0;
}

.modal-title {
    font-weight: 400;
}



/*-------------------------------------------------------------------------------------- [Forms-Inputs-Btn] -----------------------------------------------------------------------------------------*/
.form-check-input:focus {
    border-color: #bfbfbf;
}

.form-control {
    color: #262626;
}

    .form-control:focus {
        box-shadow: rgba(22, 119, 255, 0.2) 0px 0px 0px 2px;
    }

    .form-control:hover {
        border-color: #86b7fe;
    }

.form-select {
    color: #262626;
}

    .form-select:focus {
        box-shadow: rgba(22, 119, 255, 0.2) 0px 0px 0px 2px;
    }

    .form-select:hover {
        border-color: #86b7fe;
    }

.btn-table {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    margin-left: .167em;
    margin-right: .167em;
    margin-bottom: .333em;
    padding: .5em 1em;
    border: 1px solid rgb(0 0 0 / 24%);
    border-radius: 4px;
    cursor: pointer;
    font-size: .88em;
    line-height: 1.6em;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    background-color: #f6f7f8 !important;
    background: none;
    filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr="rgba(230, 230, 230, 0.1)", EndColorStr="rgba(0, 0, 0, 0.1)");
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-decoration: none;
    outline: none;
    text-overflow: ellipsis;
}

    .btn-table:active {
        box-shadow: inset 0 0 3px #111;
    }

.input-with-icon {
    position: relative;
}

    .input-with-icon input {
        padding-right: 2.5rem;
    }

    .input-with-icon svg {
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        pointer-events: none;
    }

.btn:focus {
    box-shadow: 0 0 0 0.1rem transparent, 0 0 0 0.25rem transparent !important;
}

.btn-primary {
    transition: transform 0.1s ease-in-out;
}

    .btn-primary:hover {
        background-color: #0b5ed7;
        border-color: #0a58ca;
        transform: scaleX(1.01) scaleY(1.03);
    }

    .btn-primary:focus {
        background-color: #0d6efd;
        border-color: #0d6efd;
    }

    .btn-primary:active {
        background-color: #0b5ed7;
        border-color: #0a58ca;
        transform: scale(0.98, 0.98);
    }

.btn-secondary {
    color: #292929;
    background-color: #f4f4f4;
    border-color: #f4f4f4;
    transition: transform 0.1s ease-in-out;
}

    .btn-secondary:hover {
        color: #292929;
        background-color: #e9e9e9;
        border-color: #e9e9e9;
        transform: scaleX(1.01) scaleY(1.03);
    }

    .btn-secondary:active {
        color: #292929 !important;
        background-color: #e9e9e9 !important;
        border-color: #e9e9e9 !important;
        transform: scale(0.98, 0.98);
    }

    .btn-check:focus + .btn-secondary, .btn-secondary:focus {
        color: #292929;
        background-color: #f4f4f4;
        border-color: #f4f4f4;
    }

.btn-secondary-dropdown {
    color: #292929;
    background-color: transparent;
    border-color: #d2d2d2;
    transition: transform 0.1s ease-in-out;
}

    .btn-secondary-dropdown:hover {
        color: #292929;
        background-color: #e9e9e9;
        border-color: #e9e9e9;
        transform: scaleX(1.08) scaleY(1.06);
    }

    .btn-secondary-dropdown:active {
        color: #292929;
        background-color: #e9e9e9;
        border-color: #e9e9e9;
        transform: scale(0.98, 0.98);
    }

    .btn-check:focus + .btn-secondary-dropdown, .btn-secondary-dropdown:focus {
        color: #292929;
        background-color: #e9e9e9;
        border-color: #e9e9e9;
    }

.btn-black {
    color: #ffffff;
    background-color: #000000;
    border-color: #000000;
    transition: transform 0.1s ease-in-out;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 0 #0000, 0 0 #0000, 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}

    .btn-black:hover {
        color: #ffffff;
        background-color: #000000;
        border-color: #000000;
        transform: scaleX(1.01) scaleY(1.03);
    }

    .btn-black:active {
        color: #ffffff !important;
        background-color: #000000 !important;
        border-color: #000000 !important;
        transform: scale(0.98, 0.98);
    }

    .btn-check:focus + .btn-black, .btn-black:focus {
        color: #ffffff;
        background-color: #000000;
        border-color: #000000;
    }

.btn-transparent {
    color: #000000 !important;
    background-color: #00000000;
    border-color: #00000000;
    transition: transform 0.1s ease-in-out;
}

    .btn-transparent:hover {
        background-color: #f2f3f4 !important;
        border-color: #f2f3f4 !important;
        transform: scaleX(1.02) scaleY(1.03);
    }

    .btn-transparent:active {
        transform: scale(0.98, 0.98);
    }

.btn-white {
    color: #000000;
    background-color: #00000000;
    border-color: #c8c8c8;
    transition: transform 0.1s ease-in-out;
}

    .btn-white:hover {
        color: #000000;
        background-color: #00000000;
        border-color: #c8c8c8;
        transform: scaleX(1.01) scaleY(1.03);
    }

    .btn-white:active {
        color: #000000 !important;
        background-color: #00000000 !important;
        border-color: #c8c8c8 !important;
        transform: scale(0.98, 0.98);
    }

    .btn-check:focus + .btn-white, .btn-white:focus {
        color: #000000;
        background-color: #00000000;
        border-color: #c8c8c8;
    }

.btn-dark {
    color: #000000;
    background-color: #ffffff;
    border-color: #c0c0c0;
}

    .btn-dark:hover {
        color: #fff;
        background-color: #1c1f23;
        border-color: #1a1e21;
    }

.btn-darkblue {
    color: #ffffff;
    background-color: #1e293b;
    border-color: #1e293b;
    transition: transform 0.1s ease-in-out;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 0 #0000, 0 0 #0000, 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}

    .btn-darkblue:hover {
        color: #ffffff;
        background-color: #000000;
        border-color: #000000;
        transform: scaleX(1.01) scaleY(1.03);
    }

    .btn-darkblue:active {
        color: #ffffff !important;
        background-color: #000000 !important;
        border-color: #000000 !important;
        transform: scale(0.98, 0.98);
    }

    .btn-check:focus + .btn-darkblue, .btn-darkblue:focus {
        color: #ffffff;
        background-color: #000000;
        border-color: #000000;
    }

.btn-actualizar {
    outline: none;
    height: 40px;
    text-align: center;
    width: 130px;
    padding: .375rem .75rem;
    border-radius: .25rem;
    background: transparent;
    color: black;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border-width: 2px;
    border-style: solid;
    border-color: transparent;
    position: relative;
}

    /* Texto por defecto */
    .btn-actualizar:after {
        content: attr(data-text);
        display: inline-block;
    }

    /* Spinner: estilo al activarse */
    .btn-actualizar.onclic {
        width: 30px;
        height: 30px;
        padding: 0;
        background-color: transparent !important;
        border-color: #bbbbbb;
        border-width: 3px;
        border-style: solid;
        border-left-color: black;
        border-radius: 50%;
        font-size: 0;
        animation: rotating 0.5s linear infinite;
        margin-bottom: 3px;
    }

        /* Oculta el texto mientras está el spinner */
        .btn-actualizar.onclic:after {
            content: "";
        }

    /* Estado :hover opcional */
    .btn-actualizar:hover {
        background-color: #fafafa;
    }

    /* Estado :active */
    .btn-actualizar:active {
        background-color: #fafafa;
    }

    /* Estado :disabled */
    .btn-actualizar:disabled {
        background-color: #f6f7f8;
        font-size: 11px;
        width: 130px;
        height: 33px;
        color: #989898;
        cursor: not-allowed;
    }

/* Animación del spinner */
@keyframes rotating {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}



/*-------------------------------------------------------------------------------------------- [NavMenu] ----------------------------------------------------------------------------------------------*/
.offcanvas {
    border-end-end-radius: 5px;
    border-start-end-radius: 5px;
}

.offcanvas-body {
    padding: 16px 16px;
}

.menu-nav {
    color: rgb(255 255 255 / 60%) !important;
    font-size: 0.9rem !important;
}

    .menu-nav:hover {
        color: rgb(255 255 255 / 98%) !important;
    }

.navbar-light .navbar-toggler {
    color: rgba(0, 0, 0, .55);
    border-color: rgb(0 0 0 / 0%);
    transform: scale(0.9);
    transition: transform 0.1s ease-in-out;
}

.navbar-toggler:hover {
    box-shadow: none;
    transform: scale(1.1);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler:active {
    transform: scale(1);
}

.nav-item:hover {
    background-color: #9191912e;
    border-radius: 10px;
}

.nav-submenu-item:hover {
    background-color: #91919100 !important;
    border-radius: 0px;
}

.subMenu-nav {
    color: rgb(255 255 255 / 60%) !important;
    font-size: 1rem !important;
    width: fit-content;
}

    .subMenu-nav:hover {
        color: rgb(255 255 255 / 98%) !important;
    }

.navbar-dark .navbar-toggler {
    color: rgb(255 255 255 / 0%);
    border-color: rgb(255 255 255 / 0%);
    transition: transform 0.1s ease-in-out;
}

.offcanvas-backdrop.show {
    opacity: 0;
}

.navbar-toggler.move-with-offcanvas {
    transform: translateX(270px);
    transition: transform 0.3s ease;
}

.navbar {
    padding-top: 0.72rem;
    padding-bottom: .72rem;
}

@media (max-width: 776px) {
    .material-symbols-rounded {
        font-size: 19px !important;
    }

    .navbar-title {
        font-size: 14px;
    }
}

.material-symbols-rounded {
    font-size: 22px;
}

.material-symbols-rounded {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: sub;
    margin-right: 0.4rem;
}



/*---------------------------------------------------------------------------------------- [Circle Drop-down] ----------------------------------------------------------------------------------------*/
.user-pic {
    width: 36px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 30px;
    margin-right: 15px;
    transition: transform 0.1s ease-in-out;
}

.user-pic:hover {
    transform: scale(1.1);
}

    .user-pic:active {
        transform: scale(1);
    }

.sub-menu-wrap {
    position: absolute;
    top: 100%;
    right: 1.2%;
    width: auto;
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.3s;
    z-index: 9999;
}

    .sub-menu-wrap.open-menu {
        max-height: 400px;
    }

.sub-menu {
    background: #fff;
    padding: 20px;
    padding-bottom: 11px;
    margin: 10px;
    margin-top: 0px;
    border-radius: 5px;
    box-shadow: 0px 0.7px 7px 0px rgb(145 158 171 / 29%);
}

.user-info {
    display: flex;
    align-items: center;
}

    .user-info h3 {
        font-weight: 500;
    }

    .user-info img {
        width: 60px;
        border-radius: 50%;
        margin-right: 15px;
    }

.sub-menu hr {
    border: 0;
    height: 1px;
    width: 100%;
    background: #b5bcc2;
    margin: 15px 0 10px;
}

.sub-menu-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #525252 !important;
    margin: 12px 0;
}

    .sub-menu-link:hover {
        background-color: #f5f5f5;
        border-radius: 5px;
    }

    .sub-menu-link p {
        width: 100%;
        margin-bottom: 0;
    }

    .sub-menu-link i {
        width: 40px;
        background: #ffffff00;
        border-radius: 50%;
        padding: 8px;
        margin-left: auto;
        font-size: 16px;
    }

    .sub-menu-link span {
        font-size: 22px;
        transition: transform 0.5s;
    }

    .sub-menu-link:hover span {
        transform: translateX(5px);
    }

    .sub-menu-link:hover p {
        font-weight: 500;
    }



/*-------------------------------------------------------------------------------------- [DataTables & Table] ----------------------------------------------------------------------------------------*/
.table {
    color: #3e3e3e;
}

thead {
    background-color: #f6f7f8;
}

tr {
    border-color: #f1f1f1;
}

/*div.dt-scroll {
    border: 1px solid #f1f1f1 !important;
    border-radius: 10px !important;
}*/

.table-hover > tbody > tr:hover {
    --bs-table-accent-bg: #f4f7fa;
    color: var(--bs-table-hover-color);
}

.table > :not(:last-child) > :last-child > * {
    border-bottom-color: #f1f1f1;
}

.table > tbody {
    vertical-align: middle;
}

table.dataTable thead > tr > th.dt-orderable-asc:hover, table.dataTable thead > tr > th.dt-orderable-desc:hover, table.dataTable thead > tr > td.dt-orderable-asc:hover, table.dataTable thead > tr > td.dt-orderable-desc:hover {
    outline: 0 !important;
    outline-offset: 0 !important;
}

.dt-search label {
    display: none !important;
}

div.dt-container.dt-empty-footer tbody > tr:last-child > * {
    border-bottom-color: rgb(0 0 0 / 0%) !important;
}

div.dt-container.dt-empty-footer .dt-scroll-body {
    border-bottom: 1px solid transparent !important;
}

div.dt-container .dt-search input {
    border: 1px solid #ced4da !important;
    border-radius: .25rem !important;
    color: #212529 !important;
    outline: 0;
}

    div.dt-container .dt-search input:hover {
        border-color: #86b7fe !important;
    }    

    div.dt-container .dt-search input:focus {
        border-color: #86b7fe !important;
        box-shadow: rgba(22, 119, 255, 0.2) 0px 0px 0px 2px !important;
    }

div.dt-buttons > .dt-button:focus:not(.disabled), div.dt-buttons > div.dt-button-split .dt-button:focus:not(.disabled) {
    outline: none !important;
    box-shadow: inset 0 0 3px #111 !important;
}

div.dt-container .dt-paging .dt-paging-button.current, div.dt-container .dt-paging .dt-paging-button.current:hover {
    background: none !important;
    background-color: #f6f7f8 !important;
    border-color: #f6f7f8 !important;
    border-radius: 20px !important;
}

    div.dt-container .dt-paging .dt-paging-button.current:focus:not(:hover) {
        background: none !important;
        background-color: #f6f7f8 !important;
        border-color: #f6f7f8 !important;
    }

div.dt-container .dt-paging .dt-paging-button:not(.current):focus:not(:hover) {
    background: transparent !important;
    border-radius: 20px !important;
}

div.dt-container .dt-paging .dt-paging-button:hover {
    border: 1px solid #010b24 !important;
    background: none !important;
    background-color: #010b24 !important;
    border-radius: 20px !important;
}

div.dt-container .dt-paging .dt-paging-button {
    padding: .2em 0.7em;
}

    div.dt-container .dt-paging .dt-paging-button.first:not(.disabled):hover {
        color: black !important;
        border: 1px solid #fff !important;
        background: linear-gradient(to bottom, #ffffff 0%, #fff 100%) !important;
    }

    div.dt-container .dt-paging .dt-paging-button.first:not(.disabled):active {
        background: none !important;
        box-shadow: none !important;
    }

    div.dt-container .dt-paging .dt-paging-button.previous:not(.disabled):hover {
        color: black !important;
        border: 1px solid #fff !important;
        background: linear-gradient(to bottom, #ffffff 0%, #fff 100%) !important;
    }

    div.dt-container .dt-paging .dt-paging-button.previous:not(.disabled):active {
        background: none !important;
        box-shadow: none !important;
    }

    div.dt-container .dt-paging .dt-paging-button.next:not(.disabled):hover {
        color: black !important;
        border: 1px solid #fff !important;
        background: linear-gradient(to bottom, #ffffff 0%, #fff 100%) !important;
    }

    div.dt-container .dt-paging .dt-paging-button.next:not(.disabled):active {
        background: none !important;
        box-shadow: none !important;
    }

    div.dt-container .dt-paging .dt-paging-button.last:not(.disabled):hover {
        color: black !important;
        border: 1px solid #fff !important;
        background: linear-gradient(to bottom, #ffffff 0%, #fff 100%) !important;
    }

    div.dt-container .dt-paging .dt-paging-button.last:not(.disabled):active {
        background: none !important;
        box-shadow: none !important;
    }

    div.dt-container .dt-paging .dt-paging-button.disabled, div.dt-container .dt-paging .dt-paging-button.disabled:hover, div.dt-container .dt-paging .dt-paging-button.disabled:active {
        cursor: default;
        color: #00000036 !important;
        border: 1px solid transparent !important;
        background: transparent !important;
        box-shadow: none;
    }

div.dt-buttons > .dt-button, div.dt-buttons > div.dt-button-split .dt-button {
    border: 1px solid rgb(0 0 0 / 24%) !important;
    border-radius: 4px !important;
    background-color: rgba(0, 0, 0, 0.1) !important;
    background: none !important;
    background-color: #f6f7f8 !important;
}

div.dt-container div.dt-layout-table > div {
    display: block !important;
    border: 1px solid #f1f1f1 !important;
    border-radius: 10px !important;
}

/* Sort ultima version Datatable */
th .dt-column-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important; 
}

th .dt-column-title {
    order: 1 !important; 
}

th .dt-column-order {
    order: 2 !important;
    margin-left: 0.35rem !important;
    margin-right: 0 !important;
}



/*----------------------------------------------------------------------------------- [Spinner2] -----------------------------------------------------------------------------------*/
.spinner-overlay-white {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255 255 255 / 27%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1069;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

    .spinner-overlay-white.show {
        opacity: 1;
        visibility: visible;
        touch-action: none;
        pointer-events: all;
        user-select: none;
        overscroll-behavior: none;
    }

.spinner {
    animation: spinner-rotation 1.4s linear infinite;
    width: 13vw;
    height: 13vh;
}

@media (max-width: 776px) {
    .spinner {
        width: 23vw;
        height: 23vh;
    }
}

@media (min-width: 1800px) {
    .spinner {
        width: 10vw;
        height: 10vh;
    }
}

.spinner__track {
    /*stroke: #ccc;*/
}

.spinner__circle {
    stroke-dashoffset: 0;
    transform-origin: center;
}

.spinner--small .spinner__circle {
    stroke: #fff;
    stroke-dasharray: 87.96; /* 2 * π * 14(radio) ≈ 87.96 */
    animation: spinner-dashoffset-small 1.4s ease-in-out infinite, spinner-colors-small 2.8s ease-in-out infinite;
}

@keyframes spinner-rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(270deg);
    }
}

@keyframes spinner-dashoffset-small {
    0% {
        stroke-dashoffset: 87.96;
    }

    50% {
        stroke-dashoffset: 21.99;
        transform: rotate(135deg);
    }

    100% {
        stroke-dashoffset: 87.96;
        transform: rotate(450deg);
    }
}

@keyframes spinner-colors-small {
    0%, 50%, 100% {
        stroke: #1e293b;
    }
}
