@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --blanco: rgba(255,255,255,1); /* #ffffff  */
    --verdesagem: rgba(0,150,0,1); /* #006400  */
    --verdemenu: rgba(2,181,38,.8); /* #006400  */
    --verdemenuhover: rgba(2,181,38,1); /* #006400  */
    --verdeclaro: rgba(140,210,140,1); /* #e1ffe1  */
    --verdemuyclaro: rgba(210,255,210,0.75); 
    /* Status de las OTs */
    --otgen: gray; /* gris 1 */
    --otpro: rgb(19, 10, 135); /* azul 2 */
    --otsus: rgb(226, 128, 7); /* tono naranja 3 */
    --otcer: rgba(2,181,38,.8); /* verdemenu 4 */
    --otanu: rgb(146, 84, 16); /* tono marron 5 */
    --otcan: rgb(180, 36, 10); /* tono marron 6 */
    --otlib: rgb(61, 180, 14); /* tono verde claro 7 */
    /* Origen de las OTs */
    --otfalla: rgb(205, 92, 92); /* indianred */
    --otsoltra: rgb(121, 177, 10); /* verde  */
    --otplan: rgb(105, 96, 219); /* azul  */
    --otprog: rgb(209, 200, 26); /* amarillo  */
    /* Criticidades */
    --crilev: rgb(121, 177, 10); /* verde  */
    --crimod: rgb(105, 96, 219); /* azul  */
    --criurg: rgb(209, 70, 0); /* naranja  */
    --cricri: rgb(187, 44, 8); /* rojo */
    /* Prioridades */
    --prinul: black; /* negro  */
    --pribaj: green; /* verde  */
    --primed: rgb(209, 200, 26); /* amarillo  */
    --prialt: rgb(187, 44, 8); /* rojo */
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}C

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.background-container {
    background-image: url('/images/fondo_25.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    /* text-align: center; */
    min-height: max-content;
    height: 100%;
}

/* valores iniciales */

.valoresdisplay {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    min-width: 400px;
    max-height: 200px;
    margin-top: 20px;
}

/*************************************/

.custom-toast {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}



/*************************************/

.green-event {
    background-color: #28a745 !important;
    color: white !important;
}

.red-event {
    background-color: #dc3545 !important;
    color: white !important;
}

.blue-event {
    background-color: #007bff !important;
    color: white !important;
}

/*************************************/
/*************************************/
/*************************************/

.panel-titulo {
    background-color: var(--verdeclaro) !important;
}

.panel-cuerpo {
    color: black;
    background-color: var(--blanco);
    margin: 4px;
    padding: 4px;
}

    .panel-cuerpo h5 {
        display: flex;
        /*color: white;
        background-color: darkgreen;*/
        justify-content: flex-end;
        font-weight: 700;
    }

    .panel-cuerpo h6 {
        display: flex;
        /*color: black;
        background-color: darkgreen;*/
        justify-content: flex-end;
        font-weight: 500;
    }

    .panel-cuerpo p {
        display: flex;
        color: black;
        background-color: white; /* lightgreen; */
        justify-content: flex-start;
        font-weight: 600;
    }

.icono-sagem {
    width: calc(1rem + 2vw);
    height: auto;
    padding: .3rem;
}

.btn-sagem {
    background-color: var(--verdemenu); /* Verde similar al btn-success */
    color: white; /* Texto blanco */
    border: none; /* Sin borde */
    padding: 10px 20px; /* Espaciado interno */
    border-radius: 5px; /* Esquinas redondeadas */
}

    .btn-sagem:hover {
        background-color: var(--verdemenuhover);
        color: white; /* Texto blanco */
        font-weight: 700;
    }

.btn-amarillo {
    background-color: gold;
    color: black;
    font-weight: 500;
    border: none; /* Sin borde */
    padding: 10px 20px; /* Espaciado interno */
    border-radius: 5px; /* Esquinas redondeadas */
}

    .btn-amarillo:hover {
        background-color: goldenrod;
        color: black; 
        font-weight: 700;
    }


.icono-usuario {
    width: calc(2rem + 1.5vw);
    height: auto;
    padding: .3rem;
}

.btn-filtro {
    background-color: gray; /* Verde similar al btn-success */
    color: white; /* Texto blanco */
    border: none; /* Sin borde */
    font-size: 0.7rem;
    margin: .5rem;
    padding: 0.25rem 0.5rem; /* Espaciado interno */
    border-radius: 5px; /* Esquinas redondeadas */
}

    .btn-filtro:hover {
        background-color: dimgray;
        color: white; /* Texto blanco */
        font-weight: 700;
    }

.enc-tabla {
    color: var(--verdesagem); /* darkgreen; */
    background-color: var(--verdeclaro); /* lightgreen; */
}

.background-container {
    background-image: url('/images/fondo_25.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    /* text-align: center; */
    min-height: max-content;
    height: 100%;
}

.tarjeta-justified {
    display: flex;
    justify-content: space-between; /* Distribuye los elementos a ambos extremos */
    align-items: center; /* Alinea verticalmente los elementos */
    padding: 0.5rem 0; /* Espaciado opcional */
}

    .tarjeta-justified strong,
    .tarjeta-justified span,
    .tarjeta-justified em {
        margin-left: auto; /* Mueve el valor numérico al final */
    }

/*************************************/
/***   Mensajes   ********************/
/*************************************/
.imagen-mensaje {
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: 250px;
    height: auto;
}


/* OrgEquipos */

.table {
    margin: .5rem 1rem 0 1rem;
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    width: 90%;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
}

/*** CALENDARIO   ***/

.calendario-datos {
    margin: .5rem 1rem 0 1rem;
    background-color: white;
    padding: 0rem 0rem 1rem;
    border-radius: 10px;
    width: 80vw;
    height: 160vh;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
    max-height: 600px !important;
    overflow-y: auto !important;
    position: relative; /* Asegura que el contenido interno esté relativo al contenedor */
}

/***   TABLA DE DATOS   ***/
.tabla-datos {
    margin: .5rem 1rem 0 1rem;
    background-color: white;
    padding: 0rem 0rem 1rem;
    border-radius: 10px;
    width: 80vw;
    height: 80vh;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
    max-height: 300px !important;
    overflow-y: auto !important;
    position: relative; /* Asegura que el contenido interno esté relativo al contenedor */
}

.tabla-datos-table {
    width: 100%; /* Asegura que la tabla ocupe todo el ancho disponible */
    border-collapse: collapse; /* Elimina los espacios entre los bordes de celdas */
}

.tabla-datos-thead {
    position: sticky;
    top: 0;
    background-color: var(--verdeclaro);
    z-index: 1;
}

.tabla-datos-th {
    padding: 0.5rem; /* Ajusta el padding dentro de los headers */
    text-align: left; /* Alinea el texto de los headers */
    /*border-bottom: 1px solid #ccc;  Añade un borde inferior para separar el header de los datos */
}

.tabla-datos-tbody-tr {
    border-bottom: 1px solid #eee; /* Opcional: Añade un borde para cada fila de datos */
}

.tabla-datos-tbody-td {
    padding: 0.5rem;
}

/***   FIN TABLA DE DATOS   ***/

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000; 
}


.modal-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    width: 50%; 
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit; /* Mantiene el color original del texto */
}

    /* Estilos al pasar el mouse */
    .close-btn:hover {
        background-color: red; /* Fondo rojo al pasar el mouse */
        color: white; /* Texto blanco al pasar el mouse */
    }


/* Hide the popup and overlay by default */
.hidden {
    display: none;
}

.checkbutton {
    display: flex;
    justify-content: center;
}

.btnfijar {
    width: fit-content;
}

/* Modal background overlay */
.partesmodal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 1000; 
}

/* Modal popup */
.partesmodal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001; 
    width: 50%; 
    max-width: 600px;
}

/* Close button */
.partesclose-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Optional: Style adjustments for your form */
.modal form {
    display: flex;
    flex-direction: column;
}

/* Button to open modal (already in use) */
.partesbtn-primary {
    margin-top: 20px;
}

/*......*/

.btns-tablas {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: .2rem;
}

.form-check-EjeOT {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/********************************/
/***   SfCarousel   *************/
/********************************/

.carousel-container {
    background-color: transparent !important;
    /*border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;*/
    height: auto;
    width: 100%;
}

.control-container {
    background-color: transparent !important;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
    height: fit-content; /* Altura fija del carrusel */
    margin: 0 auto;
    width: 500px; /* Ancho fijo del carrusel */
    padding-top: .5rem;
    padding-bottom: .5rem;
    /* overflow: hidden; Ocultar cualquier contenido que sobresalga */
    position: relative;
}

.e-carousel .e-carousel-items .e-carousel-item .img-container {
    height: 100%; /* Asegurar que el contenedor ocupe toda la altura disponible */
    width: 100%; /* Asegurar que el contenedor ocupe todo el ancho disponible */
    overflow: hidden; /* Ocultar cualquier contenido que sobresalga */
    position: relative;
}

.e-carousel .e-carousel-items .e-carousel-item .img-caption {
    bottom: 4em;
    color: #fff;
    font-size: 12pt;
    height: 2em;
    position: relative;
    padding: 0.3em 1em;
    text-align: center;
    width: 100%;
}

.e-carousel .e-carousel-navigators .e-btn {
    background-color: var(--verdesagem) !important;
    border-radius: 10% !important;
}

.e-carousel .e-carousel-items .e-carousel-item img {
    height: 100%; /* Escalar la imagen para que llene el contenedor */
    width: 100%; /* Escalar la imagen para que llene el contenedor */
    object-fit: cover; /* Ajusta la imagen para cubrir el área sin deformarse */
    display: block; /* Evita que las imágenes tengan espacio extra alrededor */
}

/********************************/
/*  SfGrid y Otros Componentes  */
/********************************/

.card {
    height: 100%; /* Hace que todas las cards ocupen la misma altura */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .card img {
        object-fit: contain; /* cover;Ajusta las imágenes para que no se deformen */
        height: 100px; /* Altura fija para las imágenes */
        width: auto; /* 100%;Asegura que las imágenes ocupen el ancho completo */
    }

.card-body {
    flex-grow: 1; /* Asegura que el contenido del cuerpo de la card llene el espacio */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.custom-img {
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
    height: 150px; /* Define una altura fija */
    object-fit: cover; /* Recorta y centra la imagen manteniendo proporciones */
    object-position: center; /* Centra la parte visible de la imagen */
    border-radius: 5px; /* Opcional: bordes redondeados */
}

.e-gridheader .e-headercell {
    background-color: #4CAF50; /* Verde */
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
    border-bottom: 2px solid #FFFFFF;
}

    .e-gridheader .e-headercell:hover {
        background-color: #45a049; /* Verde más oscuro */
        cursor: pointer;
    }

.e-grid .e-row {
    height: 50px; /* Ajusta el alto de las filas */
}

    .e-grid .e-row .image img {
        max-height: 40px; /* Ajusta la altura máxima de la imagen */
        width: auto; /* Mantiene la proporción de la imagen */
    }

.image img {
    height: 50px; /* 60px; */
    width: auto; /* 60px; */
    object-fit: contain;
    border-radius: 0px; /* 50px; */
    box-shadow: inset 0 0 1px #e0e0e0, inset 0 0 14px rgba(0, 0, 0, 0.2);
}

/* Color para OT de tipo Preventivo */
.preventivo-event {
    width: 100%;
    background-color: #28a745; /* Verde */
    color: #fff; /* Blanco para el texto */
}

/* Color para OT de tipo Correctivo */
.correctivo-event {
    width: 100%;
    background-color: #dc3545; /* Rojo */
    color: #fff; /* Blanco para el texto */
}

.e-tab .e-tab-header .e-tab-wrap {
    background-color: white; /* var(--verdemenuhover); */
    color: var(--verdemenuhover);
    border-radius: 5px;
    padding: 10px;
}

    .e-tab .e-tab-header .e-tab-wrap span {
        font-weight: bold;
        /* color: white; */
    }

    /* Estilo al pasar el mouse */
    .e-tab .e-tab-header .e-tab-wrap:hover span {
        color: green !important;
    }

/* Estilo predeterminado para todos los eventos */
.e-schedule .e-appointment {
    background-color: white; /* Color de fondo */
    color: white; /* Color del texto */
    border-color: #004d40; /* Color del borde */
}