﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

html {
    height: 100%;
}

body {
    min-height: 100%;
    position: relative;
    margin: 0;
    line-height: 1.5;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 400;
}

#content {
    width: 100%;
    /*   padding: 5px 15px 30px 15px;*/
    min-height: 100vh;
    transition: all 0.3s ease;
   /* background: #cbcdce;*//* gris */
    background: rgb(217 229 241); /* un poco azulillo */
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/*///////////////////// PROPIOS ////////////////////////*/
.footer {
    background: none repeat scroll 0 0 white;
    border-top: 1px solid #e7eaec;
    bottom: 0;
    left: 0;
    padding-left: 10px;
    position: absolute;
    right: 0;
    height: 25px;
}

.ml-05, .mx-05 {
    margin-left: 0.125rem !important;
}

.mr-05, .mx-05 {
    margin-right: 0.125rem !important;
}

/*//////////////////// MATRIZ /////////////////////////////////*/
.textoVertical {
    line-height: 0.1;
    /*padding-bottom: 0.5rem;*/
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
    white-space: nowrap;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
}

.filaSticky {
    position: sticky;
    top: 0;
    background-color: white !important;
}

    .filaSticky th {
        position: sticky;
        top: 0;
    }

.columnaSticky {
    position: sticky;
    left: 0;
    background-color: white !important;
}

    .columnaSticky td {
    }


/*//////////////////// TOASTR /////////////////////////////////*/
#toast-container > div {
    opacity: 0.9;
}


/*//////////////////////////////////////////////////////////////////////////////////////////////////////////*/
.badge-outline {
    color: black;
    border: 1px solid #999;
    /*background-color: transparent;*/
}

    /*//Create overriden classes for other colors :*/
    .badge-outline .badge-light {
        border-color: #468847;
    }

.bg-light {
    color: #212529 !important;
    border: 1px solid;
    border-color: #468847;
}

/*//////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/* PARA CUANDO SE PONE EL OVERLAY DE CARGANDO EN UN FOOTER CON EL BORDE REDONDEADO Q CUADRE Y NO SALGAN LOS PICOS */
.borde-redondeado-bottom {
    border-radius: 0 0 0.3rem 0.3rem;
}

.borde-redondeado {
    border-radius: 0.3rem 0.3rem 0.3rem 0.3rem;
}

/* EL ELEMENTO PADRE TIENE Q TENER  style="position: relative" PARA Q LO CUBRA POR COMPLETO CORRECTAMENTE */
.overlayCardFooter {
    background: #e9e9e9; /*<- I left your 'gray' background */
    display: none; /*<- Not displayed by default*/
    position: absolute; /*<- This and the following properties will*/
    top: 0; /*make the overlay, the element will expand*/
    right: 0; /*so as to cover the whole body of the page*/
    bottom: 0;
    left: 0;
    opacity: 0.8;
    text-align: center;
    z-index: 100;
    padding-top: 5px;
    margin: 0;
}

.overlayGris {
    background: #e9e9e9; /*<- I left your 'gray' background */
    top: 0; /*make the overlay, the element will expand*/
    right: 0; /*so as to cover the whole body of the page*/
    bottom: 0;
    left: 0;
    opacity: 0.8;
    text-align: center;
    z-index: 100;
}

.iconoAccion {
    font-size: 18px !important;
    margin: 0 2px;
    transition: 0.3s;
}

    .iconoAccion:hover {
        /*color: #333333 !important;*/
        color: #4091f5 !important;
    }

.valign-forzado {
    vertical-align: middle !important;
}

label {
    margin-bottom: 0.2rem;
}

.form-group label {
    font-weight: 600;
    color: #555555;
}

.input-group label {
    font-weight: 600;
    color: #555555;
}



.text-left {
    text-align: left !important;
}

@keyframes glowing {
    0% {
        border: 1px solid #66afe9;
        /*box-shadow: 0 0 -10px #4091f5;*/
        box-shadow: 0 0 -10px #66afe9;
    }

    40% {
        border: 1px solid #66afe9;
        box-shadow: 0 0 20px #66afe9;
    }

    60% {
        border: 1px solid #66afe9;
        box-shadow: 0 0 20px #66afe9;
    }

    100% {
        border: 1px solid #66afe9;
        box-shadow: 0 0 -10px #66afe9;
    }
}

.button-glow {
    animation: glowing 750ms ease-out;
}

button.close {
    background-color: transparent;
    border: 0;
    font-size: 1.3em;
}

/* COMENTARIOS */
.comentario {
    background-color: #F2F2F2;
    border-radius: 5px;
    box-shadow: 0 0 6px #B2B2B2;
    display: inline-block;
    padding: 6px 18px;
    position: relative;
    vertical-align: top;
}

/* COLORES LABELS */
.form-group label {
    font-weight: 600;
    color: #555555;
}

.form-group.has-error label {
    color: #ed5565;
}

.form-group.has-warning label {
    color: #f8ac59;
}

.form-group.has-success label {
    color: #1ab394;
}


/* ESTADOS INPUTS */
.form-control:focus,
.single-line:focus {
    border-color: #1ab394;
}

.has-success .form-control,
.has-success .form-control:focus {
    border-color: #1ab394;
}

.has-warning .form-control,
.has-warning .form-control:focus {
    border-color: #f8ac59;
}

.has-error .form-control,
.has-error .form-control:focus {
    border-color: #ed5565;
}

.has-success .control-label {
    color: #1ab394;
}

.has-warning .control-label {
    color: #f8ac59;
}

.has-error .control-label {
    color: #ed5565;
}

.input-validation-error {
    border-color: #ed5565;
}

.form-control.readonly {
    background-color: #e9ecef;
    opacity: 1;
}

/* checkbox de icheck */
.has-error [class*="icheck-"] > input:first-child + label::before,
.has-error [class*="icheck-"] > input:first-child + input[type="hidden"] + label::before {
    border-color: #ed5565;
}


/* label del input de archivos */
.has-success .custom-file-label, .has-success .custom-file-label:focus {
    border-color: #1ab394;
}

.has-error .custom-file-label, .has-error .custom-file-label:focus {
    border-color: #ed5565;
}

.has-warning .custom-file-label, .has-warning .custom-file-label:focus {
    border-color: #f8ac59;
}

/* label del input de archivos */
input[type=file] {
    padding: 0.1rem;
    cursor: pointer;
}

    input[type=file]::file-selector-button {
        height: calc(2rem - 4px);
        border: 2px solid #d9d9d9;
        padding: .1em .2em;
        border-radius: .2em;
        background-color: #f6f6f6;
        cursor: pointer;
    }


/** SELECTOR DE IDIOMAS **/
.selectorIdioma {
    height: 34px;
    line-height: 1.42857143;
    padding: 6px 24px 6px 12px;
    border-color: #ccc;
    color: #555555;
    background-color: #fff;
    font-size: 15px;
}

    .selectorIdioma::after {
        right: 10px !important;
    }

.dropdownIdioma {
    right: 0;
    left: auto !important;
    min-width: 1rem;
}

    .dropdownIdioma .dropdown-item {
        width: auto;
    }

/** SELECTOR EMPRESA, PLANTA ETC COSAS Q EN EL SELECT TENGAN LA PASTILLA CON COLORINES **/
/*
    ^ - empieza por
    $ - termina por

    TODOTODO hacer q poniendo un estilo select2Pastilla o algo asi ya afecte al span de dentro
*/
span[id^="select2-empresaId"], span[id^="select2-EmpresaId"] {
    margin-top: -2px;
}
span[id^="select2-plantaId"], span[id^="select2-PlantaId"] {
    margin-top: -2px;
}

/* TABS */
.tab-pane {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-radius: 0px 0px 5px 5px;
    /*padding: 10px;*/ /* para q dentro de modal quede bien el footer sin borde alrededor */
}
/*
.nav-tabs {
    margin-bottom: 0;
}*/

/* MODAL */
@media (min-width: 1200px) {
    .modal-m {
        max-width: 50%;
    }

    .modal-l {
        max-width: 70%;
    }

    .modal-xl {
        max-width: 80%;
    }

    .modal-xxl {
        max-width: 90%;
    }
}

/*mismo color q el card-header*/
.modal-header {
    background-color: rgba(0, 0, 0, 0.06);
}

.modal-footer {
    background-color: rgba(0, 0, 0, 0.06);
}

.gris {
    color: #82888d !important;
}

.card-header .fa {
    transition: .3s transform ease-in-out;
}

.card-header .collapsed .fa {
    transform: rotate(90deg);
}

.card-header-tabs {
    margin-bottom: -0.5rem;
}

    .card-header-tabs .nav-link.active {
        background-color: #fff;
        border-bottom-color: #fff;
        /* border-bottom: 0; */
    }

/* SELECT2 */
.select2 span.selection {
    width: 100%;
}

.input-group > .select2-container--bootstrap {
    width: auto !important;
    flex: 1 1 auto;
}

.disabled-select {
    background-color: #d5d5d5;
    opacity: 0.5;
    border-radius: 3px;
    cursor: not-allowed;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

select[readonly].select2-hidden-accessible + .select2-container {
    pointer-events: none;
    touch-action: none;
}

    select[readonly].select2-hidden-accessible + .select2-container .select2-selection {
        background: #c1c1c1;
        box-shadow: none;
    }

    select[readonly].select2-hidden-accessible + .select2-container .select2-selection__arrow,
    select[readonly].select2-hidden-accessible + .select2-container .select2-selection__clear {
        display: none;
    }

/* DATATABLES */
div.dataTables_wrapper div.dataTables_filter {
    text-align: left;
}

div.dataTables_wrapper div.dataTables_length {
    text-align: right;
    padding-top: 0.5em;
}

div.dataTables_wrapper div.dataTables_info {
    padding-top: 0.5em;
}

div.dataTables_wrapper div.dataTables_paginate {

    padding-top: 0.5em;
}

    div.dataTables_wrapper div.dataTables_paginate ul.pagination {
        justify-content: center;
    }

thead {
    background-color: #0d6efd;
    color: #fff;
}

.dt-down-arrow {
    display: none;
}
.buttons-colvis::after {
    display: none;
}


/* DATEPICKER */
/*.datepicker table.table-condensed {
    width: 100%;
}*/
.input-group-addon {
    background-color: #ced4da;
    border: 1px solid #ced4da;
    border-radius: 1px;
    color: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    padding: 7px 12px;
    text-align: center;
}

.input-group-text {
    width: auto;
    min-width: 16px;
    padding: 5px 15px;
    font-weight: 600;
    color: #555555;
    line-height: 1.428571429;
    text-align: center;
    text-shadow: 0 1px 0 #fff;
    vertical-align: middle;
    background-color: #eee;
    margin-left: -5px;
    /*margin-right: -5px;*/
}

.input-daterange .input-group-addon /*,.input-group-text*/ {
    width: auto;
    min-width: 16px;
    padding: 5px 10px;
    font-weight: normal;
    line-height: 1.428571429;
    text-align: center;
    text-shadow: 0 1px 0 #fff;
    vertical-align: middle;
    background-color: #eee;
    border-width: 1px 0;
    margin-left: -5px;
    margin-right: -5px;
}

/* COLOR PARA LOS TR PINCHADOS EN LOS DATATABLE */
.trseleccionado td {
    background-color: #77b0ff;
    color: #ffffff !important;
}

/* DRAG & DROP DE ARCHIVOS */
.box__dragndrop {
    display: none;
}

.box.has-advanced-upload {
    background-color: #F2F2F2;
    outline: 2px dashed black;
    /*outline-offset: -10px;*/
    padding: 10px;
    margin: 0 0px;
}

    .box.has-advanced-upload .box__dragndrop {
        display: inline;
    }

.box.is-dragover {
    background-color: grey;
}

.box.is-uploading .box__input {
    visibility: none;
}

.box.is-uploading .box__uploading {
    display: block;
}

.box__file {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

    .box__file + label {
        max-width: 100%;
        text-overflow: ellipsis;
        white-space: nowrap;
        cursor: pointer;
        display: inline-block;
        overflow: hidden;
    }

        .box__file + label:hover strong, .box__file:focus + label strong, .box__file.has-focus + label strong {
            color: #4091f5;
        }

.botonArchivo {
    margin-bottom: 5px;
}

/***********************************************/
/*  FULLCALENDAR  */
.fc-event {
    cursor: pointer;
}


/* === General: base común para eventos y filas === */
.fc-event,
tr.evento,
.estado {
    position: relative;
    overflow: visible;
    z-index: 1;
}

    /* === Círculo del semáforo === */
    .fc-event::before,
    tr.evento::before,
    .estado::before {
        content: "";
        position: absolute;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        border: 1px solid white;
        box-shadow: 0 0 4px rgba(0,0,0,0.4);
        z-index: 5;
        transition: transform 0.15s ease;
    }

    /* === Posición según contexto === */

    /* En los eventos de FullCalendar: arriba a la derecha */
    .fc-event::before {
        top: 4px;
        right: 4px;
    }

    /* En las filas de tabla: arriba a la derecha */
    tr.evento::before {
        top: 6px;
        right: 8px;
    }

    /* En celdas específicas (.estado): a la izquierda del texto */
    .estado {
        padding-left: 24px; /* espacio para el círculo */
    }

        .estado::before {
            top: 50%;
            left: 4px;
            transform: translateY(-50%);
        }

    /* === Colores del semáforo === */
    .bordeRojo::before {
        background-color: rgba(255, 0, 0, 0.9);
    }

    .bordeVerde::before {
        background-color: rgba(0, 200, 0, 0.9);
    }

    .bordeAmarillo::before {
        background-color: rgba(255, 215, 0, 0.9);
    }

    /* === Efecto hover (ligeramente más grande) === */
    .fc-event:hover::before,
    tr.evento:hover::before,
    .estado:hover::before {
        transform: scale(1.2);
    }

#calendarDatePicker::-webkit-calendar-picker-indicator {
    filter: brightness(0) invert(1);
    cursor: pointer;
}

/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*
    DEMO STYLE
*/
a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar {
    padding: 5px 0px;
    background: #fff;
    border: none;
    border-radius: 0;
    /*margin-bottom: 15px;*/
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

i,
span {
    display: inline-block;
}

.bg-dark {
    /* color: #fff !important; */
    background-color: RGBA(33, 37, 41, var(--bs-bg-opacity, 1)) !important;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    align-items: stretch;
    min-height: 100%;
    margin-bottom: -25px; /* Altura del footer para q se quede abajo */
}

/* el contenido se desplaza a la derecha, pone los modales por debajo del "gris del modal" */
/*#divBody {
    transition: transform 0.5s ease;
    transform: translateX(0);
}

    #divBody.menu-open {
        transform: translateX(250px);
    }*/


/* El contenido se estrecha para mantener el mismo ancho, problemas con el calendario, no le sale scroll y no se ve la parte derecha */
/*#divBody {
    width: 100%;
    transition: margin-left 0.5s ease, width 0.5s ease;
}

    #divBody.menu-open {
        margin-left: 16rem;
        width: calc(100% - 16rem);
    }*/

#sidebar {
    min-width: 16rem;
    max-width: 16rem;
    background: #222b40;
    color: #fff;
    transition: transform 0.5s ease;
    padding-top: 3.5rem;
    z-index: 3;
    position: fixed;
    height: 100%;
    overflow-y: scroll;
    scrollbar-width: none;
    /* Oculto fuera de pantalla */
    transform: translateX(-100%);
}

    #sidebar.active {
        /* Visible: vuelve a su posición original */
        transform: translateX(0);
    }

    /* cabecera menu*/
    #sidebar .sidebar-header {
        /*background: #222b40;*/
    }

    /* enlaces del menu*/
    #sidebar a {
        padding: 15px;
        font-size: 1em;
        display: block;
        background: #222b40; /* Lo mantengo para q no sea transparente y se vea el cartel de desarrollo */
        color: rgba(255, 255, 255, 0.9);
    }

    /* hover enlace del menu*/
    #sidebar ul li a:hover {
        color: #F8B940;
    }

    #sidebar ul li a.nivel1:hover {
        /*color: #F8B940;*/
        padding-left: 4rem;
    }

    /*Icono en los enlaces del menu*/
    #sidebar ul li a i {
        margin-left: 10px;
        margin-right: 15px;
    }

    /* enlace activo */
    #sidebar ul li > a.active {
        color: #F8B940; /*#fff;*/
    }

    /* Nivel 1*/
    #sidebar ul li a.btn-toggle {
        font-size: 1.1em;
    }

    /* Nivel 2 */
    #sidebar ul.collapse a, #sidebar ul.collapsing a {
        padding-left: 3rem;
    }

    /* Pastillas menu  */
    #sidebar ul.PastillaMenu {
        padding: 20px;
    }

        #sidebar ul.PastillaMenu a {
            font-size: 0.9em;
            display: block;
            border-radius: 5px;
            margin-bottom: 5px;
            background: #222b40;
        }

/*FLECHITA DE LOS COLLAPSE*/
.btn-toggle::after {
    width: 1.25em;
    line-height: 1.5;
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba(255,255,255,0.6)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
    transition: transform .35s ease;
    transform-origin: 0.5em 50%;
    float: right;
}

.btn-toggle[aria-expanded="true"]::after {
    transform: rotate(90deg);
}



/* LOGOS EMPRESAS */
.logoCabecera {
    width: 130px;
    border-radius: 5px;
    margin-left: 10px;
}

/* logos en el lateral */
.logoLateral {
    width: 230px; /* EL MENU LATERAL TIENE 250px, 10 px de margen x cada lado*/
    background: #ffffff;
    border-radius: 5px;
    padding: 5px;
    margin-left: 10px;
}

/* BUSCADOR MENU */
.input-wrapper {
    padding: 2px;
    position: relative;
}

#busquedamenu {
    /*border-radius: 0;*/
    color: rgba(255, 255, 255, 0.8);
    background: #7697b8;
    padding-left: 30px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

    #busquedamenu:focus {
        border: 1px solid #ced4da;
        border-color: #1ab394;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

.input-icon {
    position: absolute;
    left: 8px;
    top: calc(50% - 0.5em);
}

.busquedaOK {
    background: rgb(59, 170, 59) !important;
}

.busquedaKO {
    background: rgb(200, 54, 54) !important;
}


/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */


/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (max-width: 768px) {
    #sidebar {
        min-width: 80px;
        max-width: 80px;
        text-align: center;
        margin-left: -80px;
    }

        #sidebar.active {
            margin-left: 0 !important;
        }

        #sidebar .sidebar-header h3,
        #sidebar .CTAs {
            display: none;
        }

        #sidebar .sidebar-header strong {
            display: block;
            font-size: 1.4em;
        }

        #sidebar ul li a {
            padding: 20px 10px;
        }

            #sidebar ul li a span {
                font-size: 0.85em;
            }

            #sidebar ul li a i {
                margin-right: 0;
                display: block;
            }

        #sidebar ul ul a {
            padding: 10px !important;
        }

        #sidebar ul li a i {
            font-size: 1.3em;
        }

    /*#sidebar {*/
    /*margin-left: 0;*/
    /*}*/

    #sidebarCollapse span {
        display: none;
    }
}


/**********************************************************************
    BARRA SUPERIOR, ocultar segun anchos
*/

.menuCabecera {
    position: fixed;
    top: 0;
    z-index: 7;
    width: 16rem;
    height: 3.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #222b40;
}

    .menuCabecera a {
        text-align: center;
        display: flex;
        justify-content: flex-start;
        color: #fff;
        align-items: center;
    }

.menuSuperior {
    position: fixed;
    top: 0;
    z-index: 5;
    width: 100%;
    height: 3.5rem; /* alto de la barra superior */
    padding-left: 17rem; /* ancho del menu + padding por la izquierda */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.barraImpersonate {
    height: 40px;
    padding-top: 3px;
    position: fixed;
    width: 100%;
    z-index: 10;
}
}

.ocultoMenos992 {
    display: none;
}

.ocultoMas992 {
    display: flex;
}

@media (min-width: 992px) {
    .ocultoMenos992 {
        display: flex;
    }

    .ocultoMas992 {
        display: none;
    }
}

.nav-control {
    cursor: pointer;
    position: absolute;
    right: -0.7rem;
    text-align: center;
    top: 50.8%;
    transform: translateY(-50%);
    z-index: 9999;
    font-size: 1.4rem;
    border-radius: 0.375rem;
    background-color: #fff;
    height: 30px;
    width: 30px;
}

.iconoDesplegarMenu {
    display: inline-block;
    left: 0rem;
    position: relative;
    top: 0rem;
    -webkit-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
    width: 1.625rem;
    z-index: 999;
}

    .iconoDesplegarMenu.active svg {
        transform: rotate(180deg);
    }
