﻿@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/*#region Menu-Abierto*/
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    background: #333333;
    width: 200px;
    transition: all 0.6s ease;
    z-index: 33;
    -webkit-transition: all 0.6s ease;
    -moz-transition: all 0.6s ease;
    -ms-transition: all 0.6s ease;
    -o-transition: all 0.6s ease;
}

    .sidebar .logo-details {
        background-color: #FF6633;
        width: 100%;
        height: 60px;
        display: flex;
        align-items: center;
        color: #Fff;
        padding-left: 10px;
        font-size: 20px;
    }

.logo-details:hover {
    background: #FF8844;
    cursor: pointer;
}

.sidebar .logo-details .logo-name {
    margin-left: 5px;
    font-size: 30px;
    font-weight: bold;
    color: #Fff;
    text-align: center;
    transition: all 0.1s ease;
    transition-delay: 0.2s;
}

.sidebar .nav-links {
    height: calc(100% - 110px);
    overflow: auto;
    overflow-x: hidden;
}

    .sidebar .nav-links li {
        position: relative;
        list-style: none;
        transition: all 0.4s ease;
        text-decoration: none;
        margin-left: 5px;
    }

    .sidebar .nav-links ul {
        padding-left: 0rem !important;
    }

    .sidebar .nav-links:hover li:hover {
        background: #5f5d5d;
        border-radius: 10px 0px 0px 10px;
    }

    .sidebar .nav-links li svg {
        min-width: 50px;
        text-align: center;
        line-height: 50px;
        color: #fff;
        font-size: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .sidebar .nav-links li a {
        padding: 10px 0px 10px 5px;
        display: flex;
        align-items: center;
        text-decoration: none;
        color: #FFF !important;
    }

        .sidebar .nav-links li a .link-name {
            font-size: 14px;
            max-width: 130px;
            font-weight: 400;
            color: #fff;
            transition: all 0.1s ease;
            transition-delay: 0.2s;
        }

    .sidebar .nav-links li .sub-menu .link-name {
        font-size: 18px;
        font-weight: 600;
        color: #fff;
        display: none;
    }

    .sidebar .nav-links li .icon-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all 1s;
        transition-delay: 0.2s;
    }


    .sidebar .nav-links li .sub-menu a {
        color: #fff;
        font-size: 16px;
        font-weight: 400;
        padding: 5px 0;
        white-space: nowrap;
        opacity: 0.4;
        transition: all 0.6s ease;
    }

    .sidebar .nav-links li:hover .sub-menu a:hover {
        opacity: 1;
    }

    .sidebar .nav-links li .sub-menu {
        color: #fff;
        padding: 6px 6px 14px 40px;
        margin-top: -10px;
        background-color: #5f5d5d;
        border-left: 0px;
        display: none;
    }

.showMenu {
    display: block !important;
}

.rotar {
    transform: rotate(-180deg);
}

.sidebar .nav-links li:hover .sub-menu:hover {
    background-color: #5f5d5d;
}

.sidebar .nav-links li .sub-menu:hover .link-name {
    background-color: #5f5d5d;
}

.sidebar.closed .logo-details .logo-name {
    opacity: 0;
    pointer-events: none;
    transition-delay: 0.1s;
}

.sidebar.closed .nav-links li svg {
    transition: all 0.1s ease;
    transition-delay: 1s;
}

.fa-chevron-down {
    font-size: 18px !important;
    min-width: 50px !important;
    transition: all 0.6s ease;
    color: #fff;
}

.sidebar .profile-details {
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #4e4e4e;
    padding: 2px 0;
    color: #fff;
    width: 100%;
    height: 50px;
    transition: all 0.2s ease;
}

.sidebar .profile-content {
    display: flex;
    align-items: center;
}

.sidebar .profile-details img {
    height: 45px;
    width: 50px;
    object-fit: cover;
    border-radius: 50px;
    margin: 2px 0px 2px 9px;
    background: #c0c0c0;
    transition: all 0.5s ease;
}

.sidebar .profile-details i {
    height: 50px;
    width: 50px;
    text-align: center;
    line-height: 50px;
    font-size: 30px;
    text-decoration: none;
    color: #fff;
}

.sidebar .profile-details .profile-name {
    font-size: 18px;
    font-weight: 500;
}

.sidebar .profile-details .job {
    font-size: 14px;
}

/*#endregion Menu-Abierto*/

/*#region Menu-Cerrado*/
.sidebar.closed .nav-links li a .link-name {
    opacity: 0;
    pointer-events: none;
    transition-delay: 0s;
    font-size: 6px;
}

.sidebar.closed .nav-links li .icon-link {
    display: block;
    transition: all 0.8s ease;
}

.sidebar.closed {
    width: 70px;
}

    .sidebar.closed .nav-links {
        overflow: initial !important;
    }

        .sidebar.closed .nav-links li .sub-menu {
            color: #fff;
            position: absolute;
            left: 100%;
            top: -10px;
            margin-top: 0;
            padding: 5px 20px;
            border-radius: 0 8px 8px 0;
            transition: all 0.6s ease;
            opacity: 0;
            pointer-events: none;
            display: block;
        }

        .sidebar.closed .nav-links li:hover .sub-menu {
            top: 0px;
            opacity: 1;
            pointer-events: auto;
            transition: all 0.6s ease;
        }

        .sidebar.closed .nav-links li .sub-menu .link-name {
            font-size: 18px;
            opacity: 1;
            display: block;
        }

        .sidebar.closed .nav-links .arrow {
            display: none;
            transition: all 0.1s ease;
            transition-delay: 0.2s;
        }

    .sidebar.closed .profile-details {
        width: 70px;
        transition: all 4s ease;
    }

        .sidebar.closed .profile-details img {
            padding: 5px;
        }

        .sidebar.closed .profile-details .profile-name,
        .sidebar.closed .profile-details .job,
        .sidebar.closed .profile-details i {
            display: none;
        }

    .sidebar.closed ~ .header-section,
    .sidebar.closed ~ .body-section,
    .sidebar.closed ~ .footer-section,
    .sidebar.closed ~ .modals-section {
        left: 70px;
        width: calc(100% - 70px);
    }

/*#endregion Menu-Cerrado*/

/*#region Header*/
.header-section {
    position: fixed;
    top: 0px;
    left: 200px;
    width: calc(100% - 200px);
    height: 60px;
    transition: 0.6s ease;
}

    .header-section .header-header {
        height: 60px;
        align-items: center;
        display: flex;
        background-color: #FF6633;
        color: #fff;
    }

.header-header .logo-pequeño {
    height: 60px;
    width: 150px;
    padding-left: 5px;
}

.header-right {
    position: absolute;
    right: 0px;
    justify-content: space-between;
    display: flex;
}

    .header-right a:hover {
        background: #FF8844;
        cursor: pointer;
    }

.textCliente {
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    padding: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
}

    .textCliente:hover {
        background: #FF8844;
        cursor: pointer;
    }

.iconImg {
    padding: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
}

    .iconImg:hover {
        background: #FF8844;
        cursor: pointer;
    }

.iconFa {
    margin-right: 20px;
    padding: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
    color: #fff;
}

.fa-circle-info {
    text-decoration: none;
    color: #fff;
    font-size: 25px;
}

.fa-bell {
    text-decoration: none;
    color: #fff;
    font-size: 25px;
}

.fa-arrow-right-from-bracket {
    text-decoration: none;
    color: #fff;
    font-size: 25px;
}

.fa-shuffle {
    text-decoration: none;
    color: #fff;
    font-size: 25px;
}

.sidebar.closed .fa-chevron-down {
    display: none;
}
/*#endregion Header*/
/*#region Body*/
.body-section {
    position: fixed;
    top: 60px;
    left: 200px;
    width: calc(100% - 200px);
    height: calc(100% - 110px);
    transition: 0.6s ease;
    overflow: auto;
    padding: 15px;
    background-color: #f4f6f9;
}

.table-alma {
    background-color: #0513b3 !important;
    color: #fff;
}
/*#endregion Body*/
/*#region Footer*/
.footer-section {
    position: fixed;
    bottom: 0px;
    left: 260px;
    width: calc(100% - 260px);
    height: 50px;
    transition: all 0.6s ease;
    border-top: 1px solid #eeeeee;
}

    .footer-section .footer-content {
        text-align: center;
        line-height: 48px;
        font-size: 16px;
    }

        .footer-section .footer-content a {
            text-decoration: none !important;
        }

/*#endregion Footer*/


.banners {
    height: 780px;
    object-fit: fill;
}

/*#region switch*/
.switch {
    position: relative;
    top: 4px;
    width: 80px;
    height: 30px;
    text-align: center;
    background: #4cd964;
    transition: all 0.2s ease;
    border-radius: 11px;
}

    .switch span {
        background: white;
        width: 8px;
        height: 4px;
        margin: -10px 0px 0px 55px;
        display: block;
        transform: rotate(-140deg);
        transition: all .2s ease;
        border-radius: 2px;
    }

        .switch span:after {
            content: "";
            display: block;
            width: 4px;
            height: 15px;
            margin-top: -8px;
            background: white;
            transition: all .2s ease;
            border-radius: 2px;
        }


    .switch label {
        cursor: pointer;
        color: rgba(0, 0, 0, 0.2);
        width: 80px;
        transition: all 0.2s ease;
        font-family: sans-serif;
        font-weight: 400;
    }

.Activo {
    margin-top: 4px;
    margin-left: -20px;
}

.Pendiente {
    margin-top: 4px;
}

    .Pendiente:checked ~ .switch {
        background: #f57914;
        width: 100px;
    }

        .Pendiente:checked ~ .switch span:after {
            display: none;
        }

        .Pendiente:checked ~ .switch span {
            display: none;
        }

.Inactivo {
    margin-top: 4px;
    margin-left: -20px;
}

    .Inactivo:checked ~ .switch {
        background: #ff3b30;
    }


        .Inactivo:checked ~ .switch span {
            background: white;
            height: 4px;
            width: 15px;
            margin-top: -14px;
            margin-left: 60px;
            transform: rotate(-135deg);
        }

            .Inactivo:checked ~ .switch span::after {
                background: white;
                height: 4px;
                width: 15px;
                margin-top: -10px;
                transform: rotate(-90deg);
            }

.switch .check {
    color: white;
}
/*#endregion switch*/

.border-left-almarchivos {
    border-left: 0.25rem solid rgba(255, 102, 51, 0.8855917366946778) !important;
}

.autocomplete-list {
    border: 1px solid #ccc;
    background: white;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    width: 100%; /* Ajuste automático al input */
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    border-radius: 5px;
}

.autocomplete-item {
    padding: 8px;
    cursor: pointer;
}

    .autocomplete-item:hover {
        background: #f0f0f0;
    }

.autocomplete-container {
    position: relative; /* Necesario para posicionar la lista correctamente */
}


.swal-contenedor {
    text-align: left;
}

.swal-alerta-warning {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.swal-panel {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}


.mensaje-cajas-multiples {
    background: #e7f1ff;
    border-left: 5px solid #0d6efd;
    padding: 12px;
    border-radius: 10px;
    margin-top: 15px;
    font-size: 14px;
}

.mensaje-caja-unica {
    background: #f8f9fa;
    border-left: 5px solid #6c757d;
    padding: 12px;
    border-radius: 10px;
    margin-top: 15px;
    font-size: 14px;
}

.mensaje-salida-permanente {
    background: #f8d7da;
    border-left: 5px solid #dc3545;
    padding: 12px;
    border-radius: 10px;
    margin-top: 15px;
    font-size: 14px;
}




.swal-resultado {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 15px;
}


.swal-servicio {
    background: #eef5ff;
    border: 1px solid #cfe2ff;
    border-radius: 14px;
    padding: 18px;
    margin-top: 20px;
    margin-bottom: 20px;
}


.swal-servicio-titulo {
    font-size: 18px;
    font-weight: 600;
    color: #0d6efd;
    margin-bottom: 8px;
}


.swal-servicio-descripcion {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 12px;
}


.card-estado {
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    height: 100%;
}


.estado-numero {
    font-size: 32px;
    font-weight: 700;
}


.estado-texto {
    font-size: 14px;
    font-weight: 600;
}


.estado-prestamo {
    background: #fff3cd;
}


.numero-prestamo {
    color: #ff9800;
}


.estado-custodia {
    background: #d1e7dd;
}


.numero-custodia {
    color: #198754;
}


.estado-pendiente {
    background: #cff4fc;
}


.numero-pendiente {
    color: #0dcaf0;
}


.estado-salida {
    background: #f8d7da;
}


.numero-salida {
    color: #dc3545;
}

.chk-unit-size {
    width: 20px;
    height: 20px;
}

.bloqueado {
    opacity: 0.6;
    background-color: #f8f9fa;
}

.textarea-auto {
    overflow: hidden;
    resize: none;
}

.col-codigo-unidad {
    width: 180px;
}

.col-estado {
    width: 180px;
}

.col-eliminar {
    width: 80px;
}


.col-numero {
    width: 50px;
}


.permiso-aplica {
    color: green;
}

.permiso-no-aplica {
    color: red;
}

.tabla-documento td {
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
    max-width: 300px; /* puedes ajustarlo */
}
