﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.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,...) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* ---------------------------
   NUEVO DISEÑO ASIGNAR TAREA
---------------------------- */

/* Título centrado con fondo azul petróleo */
.titulo-asignar {
    background-color: #1a4b5d;
    color: white;
    text-align: center;
    padding: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1rem 1.5rem 2rem 1.5rem;
    border-radius: 5px;
}

.etiquetas-asginarTareas {
    color: #084972;
    font-weight: 700;
    font-size: 1.2rem;
}

.barra-xion {
    background-color: #1a4b5d; /* fondo de la barra */
    padding: 4px 20px; /* poco espacio arriba/abajo */
    border-radius: 5px; /* bordes redondeados */
    width: 97%; /* ancho del 97% */
    margin: 0 auto; /* centrado horizontal */
    box-sizing: border-box; /* incluye padding en el ancho */

    display: flex; /* todo en una línea */
    align-items: center; /* centrado vertical */
    justify-content: space-between; /* para usar un truco con flex-grow */
}

    .barra-xion .xion {
        color: #00f541; /* letras de Xion */
        font-weight: bold;
        font-size: 1.6em;
        margin-right: 8px;
    }

    .barra-xion .dashboard {
        color: #1e586d; /* letras de Dashboard */
        font-weight: bold;
        font-size: 1.4em;
    }

    .barra-xion .titulo {
        color: #ffffff; /* letras en blanco */
        font-weight: bold;
        font-size: 1.6em;
        margin: 0 auto; /* truco: lo centra en la barra */
        flex-grow: 1; /* ocupa el espacio central */
        text-align: center; /* centra el texto en ese espacio */
    }
/* Fila de etiquetas y combos alineados */
.form-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin: 1rem 1.5rem 0 1.5rem;
    padding-top: 1rem;
}

/* Cada combo con su etiqueta encima */
.combo-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 150px;
}

    .combo-group label {
        display: inline-block;
        width: 100px; /* Ajusta este valor según necesites */
        white-space: nowrap;
        font-weight: bold;
        color: #1a4b5d; /* azul petróleo */
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }


/* Contenedor de ComboBox + botón [+] */
.inline-with-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .inline-with-button select,
    .inline-with-button .form-control {
        flex: 1;
    }

/* Anchos personalizados */
.combo-dia {
    width: 160px;
    margin-left: 0.5rem;
}

.combo-tipo {
    width: 200px;
}

.combo-cliente {
    width: 220px;
}

.combo-tarea {
    width: 200px;
}

.combo-zona {
    width: 200px;
}

.combo-franjas {
    width: 200px; /* más estrecho que los 260px anteriores */
}

.combo-trab {
    width: 260px;
}

/* Botón "Asignar tarea" alineado a la derecha */
.boton-asignar {
    display: flex;
    justify-content: flex-end;
    margin: 2rem 1.5rem 0 auto;
}

.combo-zona {
    width: 200px;
}

.inline-with-button.align-top {
    align-items: flex-start;
}
/* Alinear a la izquierda las etiquetas en la fila superior */
/* Etiquetas de la fila superior alineadas con los combos */
.label-row > div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 0.5rem; /* Igual que el combo */
    font-weight: bold;
    color: #1a4b5d;
    font-size: 0.9rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* SOLO tu modal antiguo “simple” */
.simple-modal .modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}


.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    margin-top: 10px;
}

button.close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.modal-ancha {
    min-width: 600px;
    max-width: 1000px;
    width: 100%;
}

.modal-body-scrollable {
    max-height: 70vh; /* o el alto que prefieras */
    overflow-y: auto;
    padding-right: 10px;
}
/* Fuerza centrado horizontal para modales manuales */
.modal.d-block .modal-dialog {
    margin-left: auto;
    margin-right: auto;
}

/* Ancho extra */
.modal-xl-custom {
    max-width: 1200px; /* O el valor que quieras */
}

.estado-icono {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-block;
}

    .estado-icono.espera {
        background-color: black;
    }

    .estado-icono.en-curso {
        background-color: yellow;
    }

    .estado-icono.finalizado {
        background-color: green;
    }

    .estado-icono.retraso {
        background-color: red;
    }

.padding-izq {
    padding-left: 20px !important;
}




/* ---------------------------
   PANTALLA CUADRO DE MANDOS CON TODAS LAS TAREAS PARA VER EN TV
---------------------------- */


.cuadro-container {
    padding: 20px;
    height: 85vh;
    overflow-y: auto; /* vertical */
    overflow-x: auto; /* horizontal */
}

.cuadro {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .cuadro th, .cuadro td {
        border: 1px solid #ccc;
        text-align: center;
        padding: 8px;
    }

    .cuadro thead th {
        position: sticky;
        top: 0;
        z-index: 20; /* más alto que cualquier celda */
        background-color: #eaf4ff; /* opaca */
        background-clip: padding-box;
        box-shadow: 0 2px 0 #ccc; /* “falda” que oculta bordes del body */
    }

.columna-hora {
    width: 90px;
    background-color: #1a4b5d;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}

.encabezado-dia {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 22;
}

.zona-trabajo-header {
    background-color: #eaf4ff;
    color: #084972;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
}

.celda-tarea {
    background: #fff;
}

.leyenda-colores {
    margin-top: 20px;
    display: flex;
    justify-content: right;
    gap: 20px;
    font-size: 14px;
    padding-right: 40px;
}


.color-circulo {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 5px;
}

.negro {
    background-color: black;
}

.amarillo {
    background-color: yellow;
}

.verde {
    background-color: green;
}

.rojo {
    background-color: red;
}
/* CLIENTE */
.cliente-nombre {
    background-color: #f2f2f2;
    border-left: 4px solid #6f42c1; /* morado */
    padding: 2px 6px;
    font-weight: 600;
    font-size: 1.3rem;
    color: #084972;
    display: inline-block;
    margin-bottom: 2px;
}

/* TAREA */
.tarea-nombre {
    color: #C55A11; /* Naranja Oscuro */
    font-weight: bold;
    font-size: 1.3rem;
    display: block;
    margin-bottom: 2px;
}

/* TRABAJADOR */
.trabajador-nombre {
    color: #25d1f0; /* azul celeste */
    font-weight: normal;
    font-weight: 700;
    font-size: 1.3rem;
    display: inline;
    margin-left: 4px;
    align-items: center
}

.reloj-digital {
    position: fixed;
    top: 80px; /* ?? antes 20px */
    left: 10px;
    color: #1a4b5d;
    font-family: 'arial', monospace;
    font-size: 28px;
    font-weight: bold;
    padding: 10px 20px;
    z-index: 9999;
    letter-spacing: 2px;
}

/* Para la página de usuarios */
.usuarios-buscar {
    max-width: 280px;
}

.tabla-usuarios-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.usuarios-table {
    max-width: 1100px; /* Más ancha */
    width: 100%;
    font-size: 0.9rem;
    background-color: white;
}

    .usuarios-table td,
    .usuarios-table th {
        vertical-align: middle;
        padding: 6px 10px;
        text-align: center;
    }

    .usuarios-table th {
        background-color: #1a4b5d;
        color: white;
    }

.usuarios-toolbar {
    display: flex;
    justify-content: center; /* Centra todo el contenido */
    align-items: center;
    gap: 15px; /* separación entre la caja y el botón */
    margin-top: 100px; /* separa del título */
    margin-bottom: 1.5rem;
}

/* Cuando pintamos el modal manualmente con d-block, lo “convierto” en modal real */
.modal.d-block {
    position: fixed; /* fuera del flujo, tapa toda la pantalla */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1055; /* por encima del backdrop (1050) */
    display: flex; /* centrado */
    align-items: center;
    justify-content: center;
    overflow-y: auto; /* si hay mucha altura, que scrollee */
}

/* Aseguro el z-index del backdrop */
.modal-backdrop {
    z-index: 1050;
}

/* Ancho del modal de trabajadores */
.modal-xl-custom {
    max-width: 700px; /* sube a 1300–1400 si quieres más */
    width: 95%; /* responsivo en pantallas medianas */
}

/* IMPORTANTÍSIMO: quita el tope global que estrechaba todos los modales */
.modal-dialog .modal-content {
    max-width: none; /* cancela el 400px que tenías */
    width: 100%;
}

</style >
