:root {
    --sal-rojo: #e70f3c;
    --sal-rojo-1: #db0e37;
    --sal-rojo-2: #c80f34;
}

@font-face {
    font-family: 'Rochester';
    src: url('../fonts/BananaYeti.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background: url('../images/background.jpg') no-repeat center/cover fixed;
    background-color: #162430;
    background-position: top;
}

/* ► MODO OSCURO */
[data-bs-theme="dark"] {
    .form-label {
        color: #ddeeff !important;
    }

    .text-danger {
        color: #fe3555 !important;
    }

    .table-header tr th {
        border-bottom: 2px solid rgba(255, 255, 255, 0.304) !important;
    }
}

.cursor-pointer {
    cursor: pointer;
}

.dvh-100 {
    height: 100dvh !important;
}

.fs-7 {
    font-size: .88rem !important;
}
.navbar {
    /* background: rgba(7, 7, 7, 0.25) !important; */
    background: linear-gradient(to bottom, rgba(3, 3, 3, 0.34), rgba(3, 3, 3, 0.16)) !important;
    backdrop-filter: blur(4.3px);

    .navbar-username {
        color: #888;
        animation: sidebar-username 3.4s infinite ease-in-out;
        text-shadow: 0.52px 0.52px 1.33px rgba(0, 0, 0, 0.898) !important;
    }

    .bi-person-circle::before {
        content: "\f4d7";
        animation: sidebar-username 3.4s infinite ease-in-out;
        text-shadow: 0.52px 0.52px 1.33px rgba(0, 0, 0, 0.898) !important;
    }
}

.footer {
    background: none !important;
}

[class*="-title"]:not(.dataTable .dt-column-title) {
    font-family: 'Rochester', sans-serif;
    text-shadow: 0.52px 0.52px 1.33px rgba(0, 0, 0, 0.25);
    color: #fe3555;
}

.rochester-font {
    font-family: 'Rochester', sans-serif;
}

.text-shadow-1 {
    text-shadow: 0.52px 0.52px 1.33px rgba(0, 0, 0, 0.25) !important;
}

.text-shadow-2 {
    text-shadow: 0.52px 0.52px 1.33px rgba(0, 0, 0, 0.61) !important;
}

.text-shadow-3 {
    text-shadow: 0.52px 0.52px 1.33px rgba(0, 0, 0, 0.88) !important;
}

.text-rojo-1 {
    color: #fe3555;
}

.main-title {
    font-size: 2.5rem !important;
}

.card-title {
    font-size: 2.23rem !important;
}

.swal2-title {
    font-size: 2.23rem;
    font-weight: normal;
}

.wrapper {
    /* min-height: calc(100dvh - 54px); */
    min-height: calc(100dvh - 46px - 40px);
}

.status-switch {
    transform: scale(1.33);
}

.btn-module-menu {
    text-shadow: 1.033px 1.033px 2.5px rgba(0, 0, 0, .7);
    color: #fff;
}

.flex-equal {
    flex: 1 1 16rem;
}

/*--------------------------------------------------------------
# ► LOGIN
--------------------------------------------------------------*/

.card-logo-container,
.logo-container {
    /* margin-top: -70px; */
    place-content: center;
    background: rgba(34, 41, 50, 0.106);
    backdrop-filter: blur(7px);
    border: 3px solid rgba(202, 202, 202, 0.106);
}

.logo-container {
    /* background: rgba(33, 24, 24, 0.43); */
    background: linear-gradient(to top, rgba(25, 16, 16, 0.7) 16%, transparent 61%);
    border: none;
}

.logo-login {
    width: 100%;
    height: auto;
}

@media (width < 768px) {
    .logo-login {
        width: auto;
        height: 169px;
    }

    .logo-container {
        border-radius: 0.25rem 0.25rem 0 0 !important;
    }
}

/*--------------------------------------------------------------
# ► PASSWORD EYE TOGGLE
--------------------------------------------------------------*/

.eye-toggle {
    z-index: 7;
}

.eye-toggle>i {
    cursor: pointer;
    user-select: none;
    transition: color .3s ease;
}

.eye-toggle:hover>i {
    color: var(--sal-rojo) !important;
}

/*--------------------------------------------------------------
# ► TABLES
--------------------------------------------------------------*/

.acciones-col {
    width: 1%;
}

.table-header tr th {
    /* font-weight: normal; */
    font-weight: 520;
    font-size: .88rem;
    border-bottom: 2px solid rgba(24, 40, 49, 0.205) !important;
}

.badge-roles {
    min-width: 115px;
}

.badge-nro-mesa {
    min-width: 34px;
}

/*--------------------------------------------------------------
# ► FLASH MESSAGES
--------------------------------------------------------------*/

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(-10px);
    }

    61% {
        opacity: 1;
        transform: scale(1.15) translateY(5px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.flash-message {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1050;
    max-width: calc(100% - 32px);
    opacity: .97;
    transition: opacity .34s ease;
    overflow: hidden;
    word-wrap: break-word;
    animation: popIn 0.43s ease-out;
    /* Evita que la animación se repita */
    animation-fill-mode: backwards;
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.196);
    font-weight: 500;
    letter-spacing: -0.2px;

    &:hover {
        opacity: 1;
    }
}

/*--------------------------------------------------------------
# ► THEME CUSTOMIZATION
--------------------------------------------------------------*/

body {
    letter-spacing: .16px;
}

.btn {
    font-weight: normal;
    text-transform: none;
    font-size: .97rem;
}

.btn.btn-login:not(.disabled) {
    border-bottom-width: 4px;
    background-color: var(--sal-rojo);
    border-color: var(--sal-rojo);
}

.btn.btn-login:not(.disabled):focus,
.btn.btn-login:not(.disabled):hover {
    background-color: var(--sal-rojo-1);
    border-color: var(--sal-rojo-1);
}

.btn.btn-login:not(.disabled):active {
    background-color: var(--sal-rojo-2);
    border-color: var(--sal-rojo-2);
}

/* .btn-danger:not(.disabled):hover,
.btn-danger:not(.disabled):focus {
    border-color: #e22547;
} */

.btn.btn-danger:not(.disabled):hover {
    border-color: #c60c2e;
}

/* .btn-danger:not(.disabled):active {
    border-color: #d42142;
} */

.btn.btn-danger {
    background-color: var(--sal-rojo);
    border-color: #c60c2e;
}

.btn.btn-danger:hover,
.btn.btn-danger:focus {
    background-color: var(--sal-rojo);
}

.btn.btn-danger:active {
    background-color: var(--sal-rojo-1);
}

.form-label {
    font-size: .907rem;
    font-weight: 500;
    color: #49667c;
    margin-bottom: .205rem;
}

/*--------------------------------------------------------------
# => Estilos personalizados para la barra de scroll
--------------------------------------------------------------*/

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgb(33 142 255 / 52%) rgba(255, 255, 255, 0.1);
}

/* Chrome, Edge, Safari */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: rgb(33 142 255 / 52%);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgb(33 142 255 / 70%);
    border: 2px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
    background: transparent;
}


/*--------------------------------------------------------------
# => SIDEBAR
--------------------------------------------------------------*/
.sidebar {
    position: fixed;
    top: 0;
    /* left: -278px;
    width: 277px; */
    left: -287px;
    width: 286px;
    border-right: 1px solid rgba(70, 70, 70, 0.25);
    height: 100dvh;
    /* background: rgba(16, 16, 16, 0.952); */
    background: rgba(3, 3, 3, 0.907);
    transition: left .808s ease;
    /* backdrop-filter: blur(8.8px); */
    z-index: 10000;

    .app-title a {
        color: #ff0e41;
        font-size: 1.87rem;
        text-align: center;
        padding: 15px;
        letter-spacing: 0.34px;

        &.menu-title {
            font-size: 3.04em;
        }
    }

    .sidebar-logo {
        max-width: 151px;
        height: auto;
    }

    .user-info {
        padding: 5px 15px 0 15px;
        text-align: center;
    }

    .user-rol {
        color: #0dc7e8;
        padding: 10px 7px 0 7px;
        font-size: .808rem;
    }

    .separator {
        height: 1px;
        background-color: rgba(70, 70, 70, .7);
        width: 83.5%;
        margin: 15px auto;
    }

    .sidebar-username {
        font-size: 1.15rem;
        font-weight: 300;
        color: #888;
        text-shadow: none;
        animation: sidebar-username 3.4s infinite ease-in-out;
    }
}

@keyframes sidebar-username {

    0%,
    100% {
        color: #fff;
        text-shadow: 0 0 7px rgb(255, 255, 255, .97);
    }

    60% {
        color: #777;
        text-shadow: none;
    }
}

/* Estilos específicos para el scroll del sidebar */
.sidebar .links::-webkit-scrollbar {
    width: 5px;
}

.sidebar .links::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    /* margin: 8px 0; */
}

.sidebar .links::-webkit-scrollbar-thumb {
    background: #00d9ff88;
    border-radius: 5px;
}

.sidebar .links::-webkit-scrollbar-thumb:hover {
    background: #00d9ffaa;
}

.sidebar .links::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.52);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 900;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sidebar .toggle-btn {
    position: absolute;
    /* top: 5px; */
    top: 13px;
    right: -34px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    transition: all .43s;
}

.sidebar.show .toggle-btn {
    right: 16px;
}

.sidebar.show .toggle-btn span {
    background: #aaa;
}

.sidebar .toggle-btn span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: #aaa;
    transform: translateY(-50%);
    transition: all .43s;
    border-radius: 3px;
}

/* .sidebar.show .toggle-btn span {
    transition: all .43s;
} */

.sidebar .toggle-btn:hover>span {
    background: #fff;
}

.sidebar.show .toggle-btn:hover>span {
    background: #fe3555;
}

.sidebar .toggle-btn span:nth-child(1) {
    top: 20%;
}

.sidebar .toggle-btn span:nth-child(2) {
    top: 50%;
}

.sidebar .toggle-btn span:nth-child(3) {
    top: 80%;
}

.sidebar .links {
    overflow-y: auto;
    height: calc(100% - 346px);
    padding-right: 2px;
    /* Espacio para la barra de scroll */
}

.sidebar .links a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #777;
    cursor: pointer;
    transition: all .34s ease;
    font-size: .943rem;
    border-left: 3px solid transparent;
    box-shadow: inset 0 0 0 0 transparent;
}

.sidebar .links a.show,
.sidebar .links a:hover {
    color: #fff !important;
    border-left: 3px solid #fff;
    /* box-shadow: inset 0 0 61px -7px rgba(13, 199, 232, .88); */
    background-color: #008ea8;
}

.sidebar a.link-logout {
    color: var(--sal-rojo) !important;
}

.sidebar a.link-logout:hover {
    color: #fff !important;
    border-left: 3px solid #fff;
    /* box-shadow: inset 0 0 61px -7px rgba(229, 28, 35, .88); */
    background-color: var(--sal-rojo);
}

.sidebar .links a i {
    display: inline-block;
    margin: 0 10px;
}

.sidebar.show {
    left: 0;
}

.sidebar.show .toggle-btn span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.sidebar.show .toggle-btn span:nth-child(2) {
    display: none;
}

.sidebar.show .toggle-btn span:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/*--------------------------------------------------------------
# => DATA TABLES
--------------------------------------------------------------*/

table.dataTable thead th,
table.dataTable thead td,
table.dataTable tfoot th,
table.dataTable tfoot td,
table.dataTable .dt-type-numeric {
    text-align: center !important;
}

table.dataTable .dt-column-header {
    flex-direction: row !important;
}

#usuariosTable_wrapper>.row>div {
    padding: 0 !important;
}


.form-control,
.form-select {
    box-shadow: inset 0 2px 0 rgba(0, 0, 0, .075);
}