﻿
/* =========================================================
       FUENTES
========================================================= */
@font-face {
    font-family: 'Astrud';
    src: url('../Fuentes/Astrud.ttf') format('truetype');
}

@font-face {
    font-family: 'Space Bd BT';
    src: url('../Fuentes/tt1254m_.ttf') format('truetype');
}


/* =========================================================
       GENÉRICOS
========================================================= */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f5ea8, #16a1cf, #75bd3d);
}

form {
    width: 100%;
    min-height: 100vh;
}


/* =========================================================
       PANEL LOGIN
========================================================= */

.login-wrapper {
    width: 100%;
    min-height: 100vh;
    padding: 14px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border: 2px solid #111111;
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
    padding: 22px;
}

.portal-header {
    background: #eda72b;
    padding: 10px 12px;
    margin: -22px -22px 28px -22px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.satellite-title {
    font-family: Astrud, Arial, sans-serif;
    font-size: clamp(26px, 6vw, 42px);
    color: #000000;
}

.logo-box img {
    height: clamp(38px, 6vw, 50px);
    width: auto;
}

.header-subtitle {
    margin-top: 6px;
    text-align: center;
    font-family: 'Space Bd BT', Arial, sans-serif;
    font-size: clamp(16px, 3vw, 21px);
    color: #000000;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: bold;
    color: #000000;
}

.form-input {
    width: 100%;
    height: 48px;
    border: 1px solid #cccccc;
    padding: 8px 10px;
    font-size: 20px;
    border-radius: 3px;
    outline: none;
    transition: 0.2s;
}

    .form-input:focus {
        border-color: #26a69a;
        box-shadow: 0 0 0 1px #26a69a;
    }

.login-button {
    width: 100%;
    margin-top: 18px;
    padding: 13px;
    background: #26a69a;
    color: #ffffff;
    font-size: 25px;
    font-weight: 500;
    border: none;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .login-button:hover {
        background: #2bbbad;
        box-shadow: 0 4px 7px rgba(0,0,0,0.3);
    }

    .login-button:active {
        transform: scale(0.98);
    }

.forgot-password {
    margin-top: 16px;
    text-align: center;
}

.link-recuperar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: #0f5ea8;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

    .link-recuperar:hover {
        color: #0c4f8d;
        text-decoration: underline;
    }

.icono-sobre {
    font-size: 18px;
}


/* =========================================================
       PANEL PRINCIPAL DE LA APLICACIÓN
========================================================= */

.app-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.app-header {
    width: 100%;
    background: #f5a400;
}

.app-wrapper .app-header-top {
    height: 58px;
    padding: 2px 10px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 12px;
}

.app-wrapper .satellite-title {
    margin: 0;
    padding: 0;
    font-family: Astrud, Arial, sans-serif;
    font-size: 42px;
    line-height: 1;
    color: #000000;
}

.app-wrapper .app-title {
    margin: 0;
    padding: 0;
    text-align: center;
    font-family: 'Space Bd BT', Arial, sans-serif;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1;
    color: #000000;
}

.app-wrapper .app-logo-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.app-wrapper .logo-box img {
    height: 42px;
    width: auto;
    display: block;
}

.app-wrapper .menu-button {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    color: #009bd3;
    font-size: 34px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
}

    .app-wrapper .menu-button i,
    .app-wrapper .modulo-menu i {
        line-height: 1;
    }

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}


/* =========================================================
       MÓDULO GENERAL
========================================================= */

.modulo-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-wrapper .modulo-header {
    height: 28px;
    background: #000000;
    color: #ffffff;
    display: grid;
    grid-template-columns: 70px 1fr 70px;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

.app-wrapper .modulo-home {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

    .app-wrapper .modulo-home i {
        font-size: 18px;
        color: #ffffff;
    }

.app-wrapper .modulo-title {
    text-align: center;
    font-size: 16px;
    line-height: 1;
}

.app-wrapper .modulo-menu {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    text-align: center;
    color: #009bd3;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.app-wrapper .modulo-content {
    flex: 1;
    padding: 8px 10px 10px 10px;
    text-align: center;
    font-size: 21px;
    color: #333333;
    overflow-y: auto;
}

.modulo-vacio {
    width: 100%;
    padding: 24px;
    text-align: left;
    font-size: 24px;
    font-weight: 600;
    color: #555555;
}


/* =========================================================
   FILTRO DE OTs S.A.T. - CSS OPTIMIZADO Y ORDENADO
========================================================= */

/* -------------------------
   PANEL PRINCIPAL
------------------------- */
.filtro-panel {
    width: 100%;
    padding: 10px;
    background: #f4f4f4;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* -------------------------
   CONTENEDOR PRINCIPAL DE COLUMNAS
------------------------- */
.filtro-columns {
    display: flex;
    gap: 12px;
}

/* =========================================================
   COLUMNAS
========================================================= */

/* Columna izquierda (90%) */
.filtro-col-left {
    flex: 0 0 90%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Columna derecha (10%) - buscador */
.filtro-col-right {
    flex: 0 0 10%;
    min-width: 100px;
    box-sizing: border-box;
    margin-right: 8px; /* aire externo */
    padding-right: 12px; /* aire interno */
    display: flex;
    flex-direction: column;
    gap: 6px; /* espacio vertical entre filas */
}

/* -------------------------
   FILAS
------------------------- */

/* Filas dentro de columnas */
.filtro-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Fila de etiquetas (columna izquierda) */
.filtro-col-left .filtro-row:first-child {
    align-items: end; /* alinea etiquetas al fondo */
    gap: 6px;
}

    .filtro-col-left .filtro-row:first-child .filtro-field label {
        height: 100%;
        display: flex;
        align-items: end; /* misma altura que los selects derechos */
    }

/* Fila de altura fija (para alinear todas las filas) */
.filtro-row-fixed {
    height: 30px; /* Ajustar según necesidades */
    min-height: 30px;
    display: flex;
    align-items: initial;
    gap: 6px;
}

/* -------------------------
   CAMPOS
------------------------- */
.filtro-field {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 100px;
}

    .filtro-field label {
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 2px;
    }

/* Inputs */
.filtro-input,
.filtro-input-inline {
    width: 100%;
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

    .filtro-input:focus,
    .filtro-input-inline:focus {
        border-color: #0f5ea8;
        box-shadow: 0 0 0 1px #0f5ea8;
    }


/* -------------------------
   BOTONES
------------------------- */

/* Fila de botones en 3 columnas (columna izquierda) */
.botones-row {
    display: flex;
    gap: 6px;
    align-items: center;
    padding-right: 12px; /* aire para que no queden pegados */
}

/* Celda vacía (izquierda) */
.boton-col-empty {
    flex: 0 0 80%;
    min-width: 0;
}

/* Botón Aplicar */
.boton-col-aplicar {
    flex: 0 0 10%;
    min-width: 0;
}

/* Botón Limpiar */
.boton-col-limpiar {
    flex: 0 0 10%;
    min-width: 0;
}

/* Botones dentro de las celdas */
.filtro-boton {
    width: 100%;
    padding: 6px 8px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

    /* Estilos individuales */
    .filtro-boton.aplicar {
        background: #26a69a;
        color: #fff;
    }

        .filtro-boton.aplicar:hover {
            background: #2bbbad;
        }

    .filtro-boton.limpiar {
        background: #f5a400;
        color: #111;
    }

        .filtro-boton.limpiar:hover {
            background: #f7b22b;
        }

    .filtro-boton.buscar {
        background: #009bd3;
        color: #fff;
    }

        .filtro-boton.buscar:hover {
            background: #0083b8;
        }

    /* BOTÓN BUSCADOR DEL FILTRO */
    .filtro-boton.buscador-toggle {
        background-color: #4f8fc9;
        color: #ffffff;
        border: none;
    }

        .filtro-boton.buscador-toggle:hover {
            background-color: #3f7fb8;
        }


/* Ajustes columna derecha - buscador */
.filtro-col-right .filtro-row {
    width: 100%;
}

/* Botones de filtro deshabilitados */
.filtro-boton:disabled,
.filtro-boton[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(35%);
}

/* CAMPOS SIEMPRE VISIBLES Y DINAMICOS*/

/* Campos visibles al iniciar o limpiar */
.filtro-campo-inicial {
    display: flex;
}

/* Campos ocultos al iniciar o limpiar */
.filtro-campo-dinamico {
    display: none;
}

    /* Campos dinámicos visibles por lógica de negocio */
    .filtro-campo-dinamico.filtro-visible {
        display: flex;
    }


/* =========================================================
   FILTROS - RESPONSIVE MÓVIL
   ========================================================= */

/* Botón Buscador oculto en escritorio */
.boton-col-buscador {
    display: none;
}

/* En escritorio mantenemos visible la columna derecha del buscador */
.panel-buscador-filtro {
    display: flex;
}

@media (max-width: 768px) {

    /* Contenedor general en vertical */
    .filtro-columns {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .filtro-col-left,
    .filtro-col-right {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }

    /*
       En móvil convertimos la zona izquierda en GRID.
       Así controlamos el orden exacto:
       etiqueta Proyecto -> control Proyecto
       etiqueta Estado   -> control Estado
       etiqueta Desde    -> control Desde
       etiqueta Hasta    -> control Hasta
       botones
    */
    .filtro-col-left {
        display: grid !important;
        grid-template-columns: 1fr;
        row-gap: 6px;
    }

        /*
       Las dos primeras filas del ASPX dejan de comportarse como filas.
       Sus hijos pasan a ser elementos directos del grid.
    */
        .filtro-col-left > .filtro-row:nth-of-type(1),
        .filtro-col-left > .filtro-row:nth-of-type(2) {
            display: contents !important;
        }

            /* =========================
       Proyecto
       ========================= */

            .filtro-col-left > .filtro-row:nth-of-type(1) [data-campo-filtro="Proyecto"] {
                order: 10;
            }

            .filtro-col-left > .filtro-row:nth-of-type(2) [data-campo-filtro="Proyecto"] {
                order: 11;
                margin-bottom: 10px;
            }

            /* =========================
       Estado
       ========================= */

            .filtro-col-left > .filtro-row:nth-of-type(1) [data-campo-filtro="Estado"] {
                order: 20;
            }

            .filtro-col-left > .filtro-row:nth-of-type(2) [data-campo-filtro="Estado"] {
                order: 21;
                margin-bottom: 10px;
            }

            /* =========================
       Desde
       ========================= */

            .filtro-col-left > .filtro-row:nth-of-type(1) [data-campo-filtro="Desde"] {
                order: 30;
            }

            .filtro-col-left > .filtro-row:nth-of-type(2) [data-campo-filtro="Desde"] {
                order: 31;
                margin-bottom: 10px;
            }

            /* =========================
       Hasta
       ========================= */

            .filtro-col-left > .filtro-row:nth-of-type(1) [data-campo-filtro="Hasta"] {
                order: 40;
            }

            .filtro-col-left > .filtro-row:nth-of-type(2) [data-campo-filtro="Hasta"] {
                order: 41;
                margin-bottom: 10px;
            }

            /* =========================
   Tipo de OT
   ========================= */

            .filtro-col-left > .filtro-row:nth-of-type(1) [data-campo-filtro="TipoOrden"] {
                order: 50;
            }

            .filtro-col-left > .filtro-row:nth-of-type(2) [data-campo-filtro="TipoOrden"] {
                order: 51;
                margin-bottom: 10px;
            }

            /* =========================
   Clase de OT
   ========================= */

            .filtro-col-left > .filtro-row:nth-of-type(1) [data-campo-filtro="ClaseOrden"] {
                order: 60;
            }

            .filtro-col-left > .filtro-row:nth-of-type(2) [data-campo-filtro="ClaseOrden"] {
                order: 61;
                margin-bottom: 10px;
            }

            /* =========================
   Técnico
   ========================= */

            .filtro-col-left > .filtro-row:nth-of-type(1) [data-campo-filtro="Tecnico"] {
                order: 70;
            }

            .filtro-col-left > .filtro-row:nth-of-type(2) [data-campo-filtro="Tecnico"] {
                order: 71;
                margin-bottom: 10px;
            }

            /* =========================
   Provincia
   ========================= */

            .filtro-col-left > .filtro-row:nth-of-type(1) [data-campo-filtro="Provincia"] {
                order: 80;
            }

            .filtro-col-left > .filtro-row:nth-of-type(2) [data-campo-filtro="Provincia"] {
                order: 81;
                margin-bottom: 10px;
            }


    /* Campos */
    .filtro-field {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

        .filtro-field label {
            display: block;
            width: 100%;
            margin-bottom: 2px;
        }

    .filtro-input,
    .filtro-input-inline {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    /*
       Campos dinámicos:
       Ocultos por defecto.
       Visibles solo cuando VB añade filtro-visible.
    */
    .filtro-campo-dinamico {
        display: none !important;
    }

        .filtro-campo-dinamico.filtro-visible {
            display: flex !important;
            flex-direction: column;
        }

    .filtro-campo-inicial {
        display: flex !important;
        flex-direction: column;
    }

    /* =========================
       Botonera móvil
       ========================= */

    .botones-row {
        order: 100;
        display: flex !important;
        flex-direction: row !important;
        gap: 8px;
        width: 100%;
        margin-top: 8px;
    }

    .boton-col-empty {
        display: none !important;
    }

    .boton-col-buscador,
    .boton-col-aplicar,
    .boton-col-limpiar {
        display: flex !important;
        flex: 1 1 0;
        min-width: 0;
    }

    .filtro-boton {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        white-space: nowrap;
        padding-left: 6px;
        padding-right: 6px;
    }

    /* =========================
       Buscador móvil
       ========================= */

    .panel-buscador-filtro {
        display: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 8px;
    }

        .panel-buscador-filtro.buscador-visible {
            display: flex !important;
            flex-direction: column;
            gap: 6px;
        }

        .panel-buscador-filtro .filtro-row {
            display: flex !important;
            flex-direction: column !important;
            width: 100%;
        }
}


/* =========================================================
   MÓDULO INICIO
========================================================= */

.inicio-wrapper {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 18px;
    text-align: left;
}

.inicio-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 18px;
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #f4f7fa);
    border: 1px solid #d9d9d9;
    border-left: 6px solid #f5a400;
    border-radius: 10px;
    padding: 24px 28px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.inicio-etiqueta {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1.6px;
    color: #009bd3;
}

.inicio-hero h1 {
    margin: 0;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.1;
    color: #111111;
}

.inicio-hero p {
    max-width: 820px;
    margin: 12px 0 0 0;
    font-size: 18px;
    line-height: 1.45;
    color: #555555;
}

.inicio-hero-icono {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    background: #f5a400;
    color: #111111;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 44px;
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.14);
}

.inicio-servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.servicio-card {
    background: #ffffff;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    padding: 20px;
    min-height: 200px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .servicio-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 7px 18px rgba(0,0,0,0.14);
    }

.servicio-icono {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #111111;
    color: #f5a400;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    margin-bottom: 16px;
}

.servicio-card h2 {
    margin: 0 0 10px 0;
    font-size: 21px;
    line-height: 1.2;
    color: #111111;
}

.servicio-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #555555;
}

.inicio-mensaje {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    margin-top: 20px;
    background: #111111;
    color: #ffffff;
    border-radius: 10px;
    padding: 18px 22px;
}

.inicio-mensaje-icono {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #f5a400;
    color: #111111;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
}

.inicio-mensaje h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    color: #ffffff;
}

.inicio-mensaje p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: #dddddd;
}

.inicio-centrado {
    min-height: calc(100vh - 180px);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ANIMACIÓN DE ENTRADA */

.inicio-hero,
.servicio-card,
.inicio-mensaje {
    opacity: 0;
    transform: translateY(14px);
    animation: entradaInicio 0.55s ease forwards;
}

.inicio-hero {
    animation-delay: 0.02s;
}

.servicio-card:nth-child(1) {
    animation-delay: 0.10s;
}

.servicio-card:nth-child(2) {
    animation-delay: 0.18s;
}

.servicio-card:nth-child(3) {
    animation-delay: 0.26s;
}

.inicio-mensaje {
    animation-delay: 0.42s;
}

@keyframes entradaInicio {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================================================= */
/* PARAMETRIZACIÓN                                           */
/* ========================================================= */

.parametrizacion-wrapper {
    width: 100%;
    padding: 8px 34px 30px 34px;
    box-sizing: border-box;
}


/* ========================================================= */
/* SELECCIÓN PRINCIPAL                                       */
/* ========================================================= */

.parametrizacion-seleccion {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}


/* ========================================================= */
/* BLOQUES PRINCIPALES                                       */
/* ========================================================= */

.parametrizacion-bloque-principal {
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    padding: 22px;
    box-sizing: border-box;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .parametrizacion-bloque-principal:hover {
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    }

.parametrizacion-bloque-activo {
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.13);
}

.parametrizacion-bloque-inactivo {
    opacity: 0.42;
}


/* ========================================================= */
/* CABECERA DE BLOQUE                                        */
/* ========================================================= */

.parametrizacion-bloque-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.parametrizacion-bloque-icono {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #e8f3fb;
    color: #4a9bd3;
    font-size: 21px;
}

.parametrizacion-bloque-header h2 {
    margin: 0;
    font-size: 21px;
    color: #252525;
}

.parametrizacion-bloque-header p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #777777;
}


/* ========================================================= */
/* OPCIONES                                                  */
/* ========================================================= */

.parametrizacion-opciones {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e4e4e4;
}

.parametrizacion-opciones-ocultas {
    display: none;
}

.parametrizacion-opcion {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 14px;
    border: 1px solid #dddddd;
    border-left: 4px solid #e9a923;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

    .parametrizacion-opcion:hover {
        background: #f8fbfd;
        border-color: #c8dce9;
        transform: translateX(2px);
    }


/* ========================================================= */
/* ICONO DE OPCIÓN                                           */
/* ========================================================= */

.parametrizacion-opcion-icono {
    width: 34px;
    min-width: 34px;
    display: flex;
    justify-content: center;
    color: #56a1d3;
    font-size: 17px;
}


/* ========================================================= */
/* TEXTO DE OPCIÓN                                           */
/* ========================================================= */

.parametrizacion-opcion-texto {
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .parametrizacion-opcion-texto strong {
        font-size: 15px;
        color: #262626;
    }

    .parametrizacion-opcion-texto small {
        margin-top: 2px;
        font-size: 12px;
        color: #858585;
    }


/* ========================================================= */
/* FLECHA                                                    */
/* ========================================================= */

.parametrizacion-opcion-flecha {
    color: #b8b8b8;
    font-size: 12px;
}


/* ========================================================= */
/* ÁREA DE TRABAJO                                           */
/* ========================================================= */

.parametrizacion-trabajo {
    width: 100%;
    min-height: calc(100vh - 170px);
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    box-sizing: border-box;
}

.parametrizacion-trabajo-oculto {
    display: none;
}


/* ========================================================= */
/* CABECERA DEL ÁREA DE TRABAJO                              */
/* ========================================================= */

.parametrizacion-trabajo-header {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 18px;
    border-bottom: 1px solid #e2e2e2;
    box-sizing: border-box;
}

.parametrizacion-trabajo-ruta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

    .parametrizacion-trabajo-ruta span {
        color: #777777;
    }

    .parametrizacion-trabajo-ruta i {
        color: #b5b5b5;
        font-size: 10px;
    }

    .parametrizacion-trabajo-ruta strong {
        color: #252525;
    }


/* ========================================================= */
/* BOTÓN VOLVER                                              */
/* ========================================================= */

.parametrizacion-volver {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 7px;
    background: #ffffff;
    color: #555555;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
}

    .parametrizacion-volver:hover {
        background: #f5f5f5;
    }


/* ========================================================= */
/* CONTENIDO DEL ÁREA DE TRABAJO                             */
/* ========================================================= */

.parametrizacion-trabajo-contenido {
    padding: 24px;
    box-sizing: border-box;
}

.parametrizacion-trabajo-vacio {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #8a8a8a;
}

    .parametrizacion-trabajo-vacio i {
        margin-bottom: 12px;
        font-size: 30px;
        color: #c0c0c0;
    }

    .parametrizacion-trabajo-vacio h3 {
        margin: 0;
        font-size: 18px;
        color: #505050;
    }

    .parametrizacion-trabajo-vacio p {
        margin: 5px 0 0 0;
        font-size: 13px;
    }


/* ========================================================= */
/* RESPONSIVE                                                */
/* ========================================================= */

@media (max-width: 850px) {

    .parametrizacion-wrapper {
        padding: 8px 12px 24px 12px;
    }

    .parametrizacion-seleccion {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .parametrizacion-bloque-principal {
        padding: 16px;
    }

    .parametrizacion-trabajo {
        min-height: calc(100vh - 140px);
    }

    .parametrizacion-trabajo-header {
        padding: 8px 12px;
    }

    .parametrizacion-trabajo-contenido {
        padding: 16px;
    }
}



/* =========================================================
   MI PERFIL
========================================================= */

.perfil-card {
    margin: 18px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #d8d8d8;
    border-radius: 14px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.08);
}

.perfil-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e1e1e1;
    margin-bottom: 18px;
}

.perfil-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #1c1c1c;
    color: #e5aa24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.perfil-card-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
}

.perfil-card-header p {
    margin: 4px 0 0 0;
    color: #666666;
    font-size: 15px;
}

.perfil-card-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.4fr;
    gap: 18px;
}

.perfil-card-section {
    background: #f7f7f7;
    border: 1px solid #dddddd;
    border-radius: 12px;
    padding: 16px;
}

    .perfil-card-section h3 {
        margin: 0 0 14px 0;
        font-size: 20px;
        font-weight: 800;
    }

.perfil-dato {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e3e3e3;
}

    .perfil-dato:last-child {
        border-bottom: none;
    }

    .perfil-dato span {
        font-weight: 700;
    }

.perfil-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .perfil-lista li {
        padding: 8px 10px;
        margin-bottom: 8px;
        background: #ffffff;
        border: 1px solid #dddddd;
        border-left: 5px solid #e5aa24;
        border-radius: 8px;
        font-weight: 600;
    }

/* Responsive */
@media (max-width: 768px) {

    .perfil-card {
        margin: 12px;
        padding: 16px;
    }

    .perfil-card-header {
        align-items: flex-start;
    }

    .perfil-card-grid {
        grid-template-columns: 1fr;
    }

    .perfil-dato {
        flex-direction: column;
        gap: 3px;
    }
}

/* =========================================================
   MENÚ PRINCIPAL DERECHO
========================================================= */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.42);
    opacity: 0;
    visibility: hidden;
    z-index: 900;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

    .menu-overlay.activo {
        opacity: 1;
        visibility: visible;
    }

.menu-principal {
    position: fixed;
    top: 0;
    right: 0;
    width: 25vw;
    min-width: 320px;
    max-width: 420px;
    height: 100vh;
    background: #ffffff;
    z-index: 901;
    transform: translateX(100%);
    transition: transform 0.26s ease;
    box-shadow: -8px 0 24px rgba(0,0,0,0.28);
    display: flex;
    flex-direction: column;
}

    .menu-principal.activo {
        transform: translateX(0);
    }

.menu-principal-header {
    min-height: 72px;
    background: #f5a400;
    border-bottom: 4px solid #111111;
    padding: 12px 14px 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-principal-titulo {
    font-size: 22px;
    font-weight: bold;
    color: #111111;
    line-height: 1.1;
}

.menu-principal-subtitulo {
    margin-top: 3px;
    font-size: 14px;
    color: #333333;
}

.menu-cerrar {
    width: 38px;
    height: 38px;
    border: none;
    background: #111111;
    color: #ffffff;
    border-radius: 8px;
    font-size: 22px;
    cursor: pointer;
}

.menu-principal-lista {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

.menu-principal-item {
    width: 100%;
    min-height: 48px;
    margin-bottom: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-left: 5px solid #f5a400;
    border-radius: 8px;
    color: #111111;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

    .menu-principal-item:hover {
        background: #f7f7f7;
        transform: translateX(-3px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.10);
    }

    .menu-principal-item i {
        width: 24px;
        text-align: center;
        color: #009bd3;
        font-size: 20px;
    }

    .menu-principal-item span {
        flex: 1;
    }

.menu-principal-item-final {
    margin-top: 14px;
    border-left-color: #009bd3;
}


/* =========================================================
   DATATABLES - ESTILO SATÉLITE
========================================================= */

/* Contenedor general de DataTables */
.dataTables_wrapper {
    width: 100%;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #222222;
}

/* =========================================================
   HELPERS TIPO BOOTSTRAP, PERO SIN BOOTSTRAP
========================================================= */

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.gap-2 {
    gap: 8px;
}

.mb-3 {
    margin-bottom: 8px;
}

.row {
    width: 100%;
    margin: 0;
}

.col-md-12 {
    width: 100%;
}


/* =========================================================
   BARRA SUPERIOR: CONTADOR + BUSCADOR + EXCEL
========================================================= */

/* Contador de registros */
.dataTables_wrapper .info {
    font-size: 16px;
    font-weight: bold;
    color: #222222;
    line-height: 32px;
}

/* Contenedor del buscador global */
.dataTables_wrapper .dataTables_filter {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #333333;
}

    .dataTables_wrapper .dataTables_filter label {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 0;
    }

    /* Input del buscador global */
    .dataTables_wrapper .dataTables_filter input {
        height: 28px;
        width: 190px;
        padding: 4px 8px;
        margin: 0;
        border: 1px solid #c9c9c9;
        border-radius: 3px;
        font-size: 14px;
        outline: none;
        box-sizing: border-box;
    }

        .dataTables_wrapper .dataTables_filter input:focus {
            border-color: #0f5ea8;
            box-shadow: 0 0 0 1px #0f5ea8;
        }

/* Contenedor botones DataTables */
.dataTables_wrapper .dt-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

/* Botón genérico DataTables */
.dataTables_wrapper .dt-button {
    margin: 0;
    border: none;
    border-radius: 4px;
    background: #f5a400;
    color: #111111;
    font-weight: bold;
    cursor: pointer;
}

/* Botón solo icono, por ejemplo Excel */
.dataTables_wrapper .btn-icon-only {
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #5aa646;
    color: #ffffff;
    border-radius: 5px;
    font-size: 18px;
}

    .dataTables_wrapper .btn-icon-only:hover {
        background: #4c923b;
        color: #ffffff;
    }

/* =========================================================
   TABLA
========================================================= */

.dataTables_wrapper table.dataTable {
    width: 100% !important;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0 !important;
    font-size: 14px;
}

    /* Cabecera principal */
    .dataTables_wrapper table.dataTable thead th {
        padding: 8px 10px;
        background: #ffffff;
        color: #222222;
        border-bottom: 1px solid #cfcfcf;
        font-size: 15px;
        font-weight: bold;
        text-align: left;
        vertical-align: middle;
        white-space: nowrap;
    }

    /* Flechas de ordenación más discretas */
    .dataTables_wrapper table.dataTable thead .sorting,
    .dataTables_wrapper table.dataTable thead .sorting_asc,
    .dataTables_wrapper table.dataTable thead .sorting_desc {
        cursor: pointer;
    }

    /* Fila de filtros por columna */
    .dataTables_wrapper table.dataTable thead tr.filters th {
        padding: 6px 10px 8px 10px;
        background: #ffffff;
        border-bottom: 1px solid #d7d7d7;
    }

/* Inputs de filtro por columna */
.dataTables_wrapper .column_filter {
    width: 100%;
    height: 26px;
    padding: 4px 7px;
    border: 1px solid #c9c9c9;
    border-radius: 3px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

    .dataTables_wrapper .column_filter:focus {
        border-color: #0f5ea8;
        box-shadow: 0 0 0 1px #0f5ea8;
    }

/* Cuerpo */
.dataTables_wrapper table.dataTable tbody td {
    padding: 7px 10px;
    border-bottom: 1px solid #e2e2e2;
    font-size: 14px;
    color: #222222;
    vertical-align: middle;
}

/* Filas alternas */
.dataTables_wrapper table.dataTable tbody tr:nth-child(odd) {
    background: #f4f4f4;
}

.dataTables_wrapper table.dataTable tbody tr:nth-child(even) {
    background: #ffffff;
}

/* Hover */
.dataTables_wrapper table.dataTable tbody tr:hover {
    background: #eaf4fb;
}

/* Fila seleccionada */
.dataTables_wrapper table.dataTable tbody tr.selected {
    background: #d6ecfa !important;
}


/* DATATABLES - Alineación de textos */
table.dataTable tbody td {
    text-align: left !important;
}

table.dataTable thead th {
    text-align: center !important;
}

table.dataTable thead tr.filters th {
    text-align: left !important;
}

table.dataTable thead input.column_filter {
    text-align: left !important;
}

/* =========================================================
   LIMPIEZA DE ELEMENTOS QUE NO USAMOS
========================================================= */

/* Como paging está en false, normalmente no aparecerá, pero por si acaso */
.dataTables_wrapper .dataTables_paginate {
    display: none;
}

/* Ajuste del texto de información estándar si aparece */
.dataTables_wrapper .dataTables_info {
    padding: 0;
    margin: 0;
}


/* =========================================================
   DATATABLES - FIXEDHEADER / FILTROS CLONADOS
   ========================================================= */

/* Filtros de columna tanto en tabla normal como en cabecera flotante */
table.dataTable thead input.column_filter,
table.fixedHeader-floating thead input.column_filter,
table.fixedHeader-locked thead input.column_filter {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block;
}

/* Celdas de la fila de filtros en cabecera normal y flotante */
table.dataTable thead tr.filters th,
table.fixedHeader-floating thead tr.filters th,
table.fixedHeader-locked thead tr.filters th {
    padding: 6px 10px 8px 10px !important;
    box-sizing: border-box !important;
}



/* =========================================================
       FOOTER
========================================================= */

.app-footer {
    height: 32px;
    background: #f5a400;
    color: #000000;
    text-align: center;
    font-size: 18px;
    line-height: 32px;
}

    .app-footer a {
        color: #009bd3;
        text-decoration: none;
    }


/* =========================================================
       RESPONSIVE LOGIN
========================================================= */

@media screen and (max-width: 600px) {

    form {
        display: block;
    }

    .login-wrapper {
        max-width: 100%;
        min-height: 100vh;
        padding: 0;
        display: flex;
    }

    .login-card {
        width: 100%;
        min-height: 100vh;
        border: none;
        box-shadow: none;
        padding: 22px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .portal-header {
        margin: -22px -22px 28px -22px;
        padding: 8px 10px;
    }

    .satellite-title {
        font-size: clamp(36px, 9vw, 56px);
    }

    .logo-box img {
        height: clamp(46px, 7vw, 60px);
    }
}


/* =========================================================
       RESPONSIVE PANEL APLICACIÓN
========================================================= */

@media screen and (max-width: 600px) {

    .app-wrapper .app-header-top {
        height: 54px;
        padding: 2px 8px;
        grid-template-columns: auto 1fr auto;
        column-gap: 8px;
    }

    .app-wrapper .satellite-title {
        font-size: 34px;
    }

    .app-wrapper .app-title {
        font-size: 17px;
    }

    .app-wrapper .logo-box img {
        height: 36px;
    }

    .app-wrapper .menu-button {
        font-size: 30px;
    }

    .app-wrapper .modulo-header {
        height: 28px;
        grid-template-columns: 48px 1fr 48px;
    }

    .app-wrapper .modulo-title {
        font-size: 16px;
    }

    .app-wrapper .modulo-content {
        font-size: 18px;
    }

    .app-footer {
        height: auto;
        min-height: 32px;
        padding: 4px 8px;
        font-size: 15px;
        line-height: 22px;
    }
}


/* =========================================================
   RESPONSIVE MÓDULO INICIO
========================================================= */

/* Tablet */
@media screen and (max-width: 1100px) {

    .inicio-servicios {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móvil */
@media screen and (max-width: 600px) {

    .inicio-wrapper {
        padding: 12px;
    }

    .inicio-hero {
        grid-template-columns: 1fr;
        padding: 18px;
    }

        .inicio-hero h1 {
            font-size: 28px;
        }

        .inicio-hero p {
            font-size: 16px;
        }

    .inicio-hero-icono {
        display: none;
    }

    .inicio-servicios {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .servicio-card {
        min-height: auto;
        padding: 16px;
    }

        .servicio-card h2 {
            font-size: 19px;
        }

    .inicio-mensaje {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .inicio-mensaje-icono {
        display: none;
    }
}


/* =========================================================
       RESPONSIVE MENÚ PRINCIPAL DERECHO
========================================================= */

@media screen and (max-width: 600px) {

    .menu-principal {
        width: 88vw;
        min-width: auto;
        max-width: none;
    }

    .menu-principal-header {
        min-height: 66px;
    }

    .menu-principal-titulo {
        font-size: 20px;
    }

    .menu-principal-item {
        min-height: 46px;
        font-size: 16px;
    }
}


/* =========================================================
   REPORTES
========================================================= */

.reporte-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px;
}

.reporte-orden-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.10);
    overflow: hidden;
}

.reporte-orden-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #111111;
    color: #ffffff;
}

.reporte-orden-icono {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    background: #f5a400;
    color: #111111;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 23px;
}

.reporte-orden-etiqueta {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.2px;
    color: #cccccc;
}

.reporte-orden-numero {
    margin-top: 2px;
    font-size: 25px;
    font-weight: bold;
}

.reporte-orden-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.reporte-dato {
    padding: 14px 16px;
    border-right: 1px solid #e3e3e3;
}

    .reporte-dato:last-child {
        border-right: none;
    }

.reporte-dato-titulo {
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: #777777;
}

.reporte-dato-valor {
    font-size: 16px;
    font-weight: 600;
    color: #111111;
}


/* =========================================================
   REPORTES - RESPONSIVE
========================================================= */

@media screen and (max-width: 900px) {

    .reporte-orden-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reporte-dato {
        border-right: none;
        border-bottom: 1px solid #e3e3e3;
    }
}

@media screen and (max-width: 600px) {

    .reporte-wrapper {
        padding: 10px;
    }

    .reporte-orden-header {
        padding: 14px;
    }

    .reporte-orden-icono {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 21px;
    }

    .reporte-orden-numero {
        font-size: 22px;
    }

    .reporte-orden-grid {
        grid-template-columns: 1fr;
    }

    .reporte-dato {
        padding: 11px 14px;
        border-bottom: 1px solid #e3e3e3;
    }

        .reporte-dato:last-child {
            border-bottom: none;
        }
}

/* =========================================================
   REPORTES - TARJETAS DE PASOS
========================================================= */

.reporte-paso-card {
    width: 100%;
    margin-top: 14px;
    background: #ffffff;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.10);
    overflow: hidden;
}

.reporte-paso-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #f4f4f4;
    border-bottom: 1px solid #dddddd;
}

.reporte-paso-icono {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 10px;
    background: #f5a400;
    color: #111111;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 21px;
}

.reporte-paso-titulo {
    font-size: 20px;
    font-weight: bold;
    color: #111111;
}

.reporte-paso-subtitulo {
    margin-top: 3px;
    font-size: 14px;
    color: #666666;
}

.reporte-paso-body {
    padding: 18px;
}

.reporte-form-group {
    margin-bottom: 16px;
}

    .reporte-form-group label {
        display: block;
        margin-bottom: 6px;
        font-size: 15px;
        font-weight: bold;
        color: #555555;
    }

.reporte-input {
    width: 100%;
    height: 46px;
    padding: 8px 10px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 18px;
    box-sizing: border-box;
}

    .reporte-input:focus {
        border-color: #009bd3;
        outline: none;
        box-shadow: 0 0 0 1px #009bd3;
    }

.reporte-botonera {
    margin-top: 22px;
}

.reporte-boton-principal {
    width: 100%;
    min-height: 50px;
    padding: 10px 14px;
    background: #26a69a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

    .reporte-boton-principal:hover {
        background: #2bbbad;
    }

    .reporte-boton-principal:active {
        transform: scale(0.99);
    }


/* =========================================================
   REPORTES - TEXTAREA
========================================================= */

.reporte-textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.4;
    resize: vertical;
    box-sizing: border-box;
}

    .reporte-textarea:focus {
        border-color: #009bd3;
        outline: none;
        box-shadow: 0 0 0 1px #009bd3;
    }

/* =========================================================
   REPORTES - DIMENSIONES
========================================================= */

.reporte-dimensiones-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media screen and (max-width: 600px) {

    .reporte-dimensiones-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* =========================================================
   REPORTES - DIMENSIONES EN TRES COLUMNAS
========================================================= */

.reporte-dimensiones-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media screen and (max-width: 600px) {

    .reporte-dimensiones-grid-3 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ---------------------------------------------------------
   CÁMARA
--------------------------------------------------------- */

.reporte-panel-camara {
    margin-top: 15px;
}

.reporte-video-camara {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* ---------------------------------------------------------
   BOTONES DE FOTOS
--------------------------------------------------------- */

.reporte-botones-fotos {
    display: flex;
    width: 100%;
    gap: 10px;
}

    .reporte-botones-fotos .reporte-boton-principal {
        flex: 1;
        width: 50%;
    }

/* ---------------------------------------------------------
   GALERÍA DE FOTOS
--------------------------------------------------------- */

.reporte-galeria-fotos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 15px;
}


/* MINIATURA */
.reporte-miniatura-foto {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 3px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
}


/* FOTO SELECCIONADA */
.reporte-miniatura-foto-seleccionada {
    border-color: #555;
}


/* ---------------------------------------------------------
   PREVISUALIZACIÓN GRANDE
--------------------------------------------------------- */

.reporte-previsualizacion-foto {
    width: 100%;
    margin-top: 15px;
}

    .reporte-previsualizacion-foto img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 10px;
    }


/* ---------------------------------------------------------
   BOTÓN ELIMINAR
--------------------------------------------------------- */

.reporte-boton-eliminar {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 600px) {

    .reporte-galeria-fotos {
        grid-template-columns: repeat(3, 1fr);
    }
}

.reporte-botonera-orden-fallida {
    margin-top: 22px;
}

.reporte-boton-orden-fallida {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 10px;
    background-color: #d97706;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

/* ---------------------------------------------------------
   OVERLAY SUBIDA DE FOTOS
--------------------------------------------------------- */

.reporte-overlay-subida {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.60);
    z-index: 99999;
}

.reporte-subida-contenido {
    width: calc(100% - 40px);
    max-width: 420px;
    padding: 30px;
    background: #ffffff;
    border-radius: 14px;
    text-align: center;
    box-sizing: border-box;
}

.reporte-subida-icono {
    font-size: 42px;
    margin-bottom: 15px;
}

.reporte-subida-titulo {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.reporte-barra-subida {
    width: 100%;
    height: 12px;
    overflow: hidden;
    border-radius: 6px;
    background: #e5e5e5;
}

.reporte-barra-subida-animada {
    width: 35%;
    height: 100%;
    background: #555;
    border-radius: 6px;
    animation: AnimacionSubidaFotos 1.2s infinite ease-in-out;
}

.reporte-subida-texto {
    margin-top: 15px;
    font-size: 14px;
}

@keyframes AnimacionSubidaFotos {

    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(320%);
    }
}



/* ==================================================================================================================
   ==================================================================================================================
                                                ESCANEADO DE DOCUMENTOS
   ================================================================================================================== 
   ================================================================================================================== */

/* #region ESCANEADO DE DOCUMENTOS */

.panel-escaneado-documentos {
    width: 100%;
}


.bloque-escaneado-documento,
.panel-camara-documento,
.panel-previsualizacion-documento {
    width: 100%;
    text-align: center;
}


.texto-escaneado-documento,
.texto-guia-documento {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.5;
}


.contenedor-camara-documento {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 0 auto 20px auto;
    overflow: hidden;
    background: #000;
}


.video-camara-documento {
    display: block;
    width: 100%;
    height: auto;
}


/* --------------------------------------------------------- */
/* CAPA DE GUÍA Y DETECCIÓN DEL DOCUMENTO                   */
/* --------------------------------------------------------- */

.svg-guia-documento {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}


/* --------------------------------------------------------- */
/* GUÍA PROVISIONAL                                         */
/* --------------------------------------------------------- */

.rect-guia-documento {
    fill: none;
    stroke: #00c853;
    stroke-width: 8;
}


/* --------------------------------------------------------- */
/* POLÍGONO DEL DOCUMENTO DETECTADO                         */
/* --------------------------------------------------------- */

.poligono-documento-detectado {
    fill: rgba(0, 200, 83, 0.08);
    stroke: #00c853;
    stroke-width: 8;
}


/* --------------------------------------------------------- */
/* PREVISUALIZACIÓN DEL DOCUMENTO                            */
/* --------------------------------------------------------- */

.contenedor-previsualizacion-documento {
    width: 100%;
    max-width: 650px;
    margin: 0 auto 20px auto;
}


.imagen-documento-escaneado {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    margin: 0 auto;
    object-fit: contain;
}


/* --------------------------------------------------------- */
/* BOTONES                                                   */
/* --------------------------------------------------------- */

.boton-escaneado-documento,
.boton-secundario-documento {
    min-width: 180px;
    padding: 12px 20px;
    margin: 6px;
    border: 0;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}


.boton-escaneado-documento {
    background-color: #198754;
    color: white;
}


.boton-secundario-documento {
    background-color: #e9ecef;
    color: #212529;
}


.botones-previsualizacion-documento {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* ========================================================= */
/* PREVISUALIZACIÓN DEL DOCUMENTO                            */
/* ========================================================= */

.contenedor-previsualizacion-documento {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 0 auto 20px auto;
}

.imagen-documento-escaneado {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    margin: 0 auto;
    object-fit: contain;
}

.svg-previsualizacion-documento {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

.poligono-previsualizacion-documento {
    fill: rgba(0, 200, 83, 0.08);
    stroke: #00c853;
    stroke-width: 8;
    pointer-events: none;
}

.titulo-escaneado-documentos {
    margin-left: 16px;
}


/* ========================================================= */
/* VÉRTICES EDITABLES DEL ÁREA DE ESCANEO                   */
/* ========================================================= */

.vertice-documento {
    fill: #e6a72b;
    stroke: #ffffff;
    stroke-width: 3;
    cursor: grab;
    touch-action: none;
    pointer-events: all;
}

    .vertice-documento:active {
        cursor: grabbing;
    }


/* #endregion */


/* ========================================================================== */
/* TIEMPOS DE ESPERA DE ÓRDENES DE TRABAJO                                  */
/* ========================================================================== */

#PanelTiemposDeEsperaAnadidosDeOrdenDeTrabajo {
    margin-top: 20px;
    margin-bottom: 20px;
}

#ListaTiemposDeEsperaDeOrdenDeTrabajo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reporte-tiempo-espera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background-color: #ffffff;
}

.reporte-tiempo-espera-datos {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.reporte-tiempo-espera-motivo {
    font-size: 16px;
    font-weight: 700;
    color: #222222;
}

.reporte-tiempo-espera-minutos {
    font-size: 14px;
    color: #666666;
}

.reporte-tiempo-espera .reporte-boton-eliminar {
    flex-shrink: 0;
    width: auto;
    margin: 0;
    padding: 9px 12px;
    font-size: 14px;
}

@media (max-width: 600px) {

    .reporte-tiempo-espera {
        align-items: stretch;
        flex-direction: column;
    }

        .reporte-tiempo-espera .reporte-boton-eliminar {
            width: 100%;
        }
}


.reporte-acciones-espera {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    margin-bottom: 20px;
}

.reporte-boton-anadir-espera {
    width: auto;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    background-color: #e9aa22;
    color: #111111;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

    .reporte-boton-anadir-espera i {
        margin-right: 6px;
    }

@media (max-width: 600px) {

    .reporte-boton-anadir-espera {
        width: 100%;
    }
}


/* ==================================================================================================================
   ==================================================================================================================
                                                CREACIÓN DE SOLICITUDES
   ================================================================================================================== 
   ================================================================================================================== */

/* #region CREACIÓN DE SOLICITUDES */

.module-card {
    position: relative;
    width: 100%;
    max-width: 1050px;
    background: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.18);
    padding: 38px 42px 34px 48px;
    overflow: hidden;
}


    .module-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 8px;
        height: 100%;
        background: #d8aa3f;
    }



.module-content {
    padding-right: 180px;
}



.module-brand {
    margin-bottom: 14px;
    color: #5a8bc7;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}



.module-title {
    margin: 0 0 18px 0;
    color: #111111;
    font-size: clamp(34px,5vw,56px);
    line-height: 1.05;
    font-weight: 700;
}



.module-description {
    margin: 0;
    max-width: 780px;
    color: #5d5d5d;
    font-size: clamp(18px,2.5vw,24px);
    line-height: 1.5;
}



.module-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    padding: 9px 14px;
    background: #fff6df;
    border: 1px solid #e6c875;
    border-radius: 20px;
    color: #8c6815;
    font-size: 15px;
    font-weight: 700;
}



.status-point {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d8aa3f;
}



.module-icon {
    position: absolute;
    top: 50%;
    right: 45px;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    border-radius: 24px;
    background: #d8aa3f;
    box-shadow: 0 6px 0 #b48c2f;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .module-icon svg {
        width: 64px;
        height: 64px;
        fill: none;
        stroke: #111111;
        stroke-width: 7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.form-textarea {
    height: auto;
    min-height: 50px;
    resize: vertical;
}


.mercancia-grid-dimensiones {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.mercancia-gridview-wrapper {
    width: 100%;
    margin-top: 22px;
    overflow-x: auto;
}

.mercancia-gridview {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

    .mercancia-gridview th {
        padding: 9px 10px;
        border: 1px solid #cccccc;
        font-weight: bold;
        text-align: center;
    }

    .mercancia-gridview td {
        padding: 8px 10px;
        border: 1px solid #dddddd;
        vertical-align: middle;
    }

.mercancia-grid-action {
    margin-right: 12px;
    cursor: pointer;
    text-decoration: none;
}

    .mercancia-grid-action.danger {
        margin-right: 0;
    }

@media screen and (max-width: 900px) {

    .mercancia-grid-dimensiones {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {

    .mercancia-grid-dimensiones {
        grid-template-columns: 1fr;
    }
}

.module-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eceff2;
    color: #8a8a8a;
    font-size: 14px;
}

/* #endregion */


/* ==================================================================================================================
   ==================================================================================================================
                                                GENERACIÓN DE DECA
   ================================================================================================================== 
   ================================================================================================================== */

/* #region GENERACIÓN DE DECA */

.deca-wrapper {
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
    padding: 10px 12px 18px 12px;
    box-sizing: border-box;
}


.deca-header-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    padding: 18px 26px 16px 26px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
}


.deca-header-brand {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #5d7fc4;
    margin-bottom: 6px;
}


.deca-header-title {
    margin: 0 0 8px 0;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    color: #1f1f1f;
}


.deca-header-description {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    color: #555555;
    max-width: 900px;
}


.deca-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    margin-top: 12px;
}

.deca-data-panel {
    padding-top: 14px;
}

.deca-card {
    background: #ffffff;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    padding: 16px 18px 14px 18px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


.deca-card-title {
    margin: 0 0 10px 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
}


.deca-card .form-group {
    margin-bottom: 10px;
}


    .deca-card .form-group:last-child {
        margin-bottom: 0;
    }


.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}


.deca-card .form-label {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}


.deca-card .form-input {
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    box-sizing: border-box;
    font-size: 15px;
}


.deca-comments-card {
    display: flex;
    flex-direction: column;
}


    .deca-comments-card .deca-comments-group {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        margin-bottom: 0 !important;
        min-height: 0;
    }


    .deca-comments-card textarea.deca-comments {
        flex: 1 1 auto;
        display: block;
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        box-sizing: border-box;
        resize: none;
    }

.deca-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 14px;
    margin-bottom: 6px;
}


.deca-button {
    width: 100%;
    min-height: 58px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 22px;
    font-weight: 600;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}


    .deca-button:hover {
        opacity: 0.88;
    }


    .deca-button.secondary {
        background: #e4e4e4;
        color: #333333;
    }

    .deca-button.secondary {
        background: #e4e4e4;
        color: #333333;
        border: 1px solid #cccccc;
    }

        .deca-button.secondary:hover {
            background: #d7d7d7;
            opacity: 1;
        }


.deca-section-spacing {
    margin-top: 18px;
}

.deca-gridview-wrapper {
    width: 100%;
    overflow-x: auto;
}


/* SEPARACIÓN DE LA PREVISUALIZACIÓN */
.deca-preview-card {
    margin-top: 18px !important;
}


/* CONTENEDOR DEL GRIDVIEW */
.deca-gridview-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 12px;
}


/* GRIDVIEW */
.deca-gridview {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}


    /* CABECERA */
    .deca-gridview th {
        padding: 8px 7px;
        border: 1px solid #c7c7c7;
        background-color: #eeeeee;
        font-weight: 700;
        text-align: left;
        vertical-align: middle;
    }


    /* CELDAS */
    .deca-gridview td {
        padding: 7px 7px;
        border: 1px solid #d2d2d2;
        vertical-align: middle;
    }


    /* FILAS */
    .deca-gridview tr {
        background-color: #ffffff;
    }


.deca-grid-input {
    width: 120px;
    box-sizing: border-box;
    padding: 5px 6px;
    font-size: 13px;
    border: 1px solid #bfc3c7;
    border-radius: 3px;
}



/* RESPONSIVE */
@media (max-width: 768px) {

    .deca-wrapper {
        padding: 10px 10px 16px 10px;
    }


    .deca-header-card {
        padding: 16px 18px 14px 18px;
        margin-bottom: 10px;
    }


    .deca-header-title {
        font-size: 28px;
    }


    .deca-header-description {
        font-size: 16px;
    }


    .deca-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 10px;
    }


    .deca-card {
        padding: 14px 14px 12px 14px;
    }


    .deca-card-title {
        font-size: 24px;
        margin-bottom: 10px;
    }


    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }


    .deca-actions {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 12px;
    }


    .deca-button {
        min-height: 54px;
        font-size: 20px;
    }
}


/* VISOR PDF DECA
   ================================================================================================================= */

.deca-pdf-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
}


    .deca-pdf-modal.visible {
        display: flex;
    }


.deca-pdf-modal-content {
    width: 100%;
    max-width: 1420px;
    height: 94vh;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.35);
}


.deca-pdf-modal-header {
    flex: 0 0 auto;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: #ffffff;
    border-bottom: 1px solid #d7d7d7;
    box-sizing: border-box;
}


.deca-pdf-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #333333;
}


.deca-pdf-modal-close {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    color: #444444;
}


    .deca-pdf-modal-close:hover {
        color: #000000;
    }


.deca-pdf-iframe {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
}


/* MÓVIL */
@media (max-width: 768px) {

    .deca-pdf-modal {
        padding: 0;
    }


    .deca-pdf-modal-content {
        width: 100vw;
        max-width: none;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
    }


    .deca-pdf-modal-header {
        min-height: 54px;
        padding: 0 12px;
    }


    .deca-pdf-modal-title {
        font-size: 18px;
    }
}

.deca-pdf-modal-email {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 15px;
}


.deca-pdf-email-input {
    width: 280px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}


.deca-pdf-email-button {
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}


@media (max-width: 768px) {

    .deca-pdf-modal-header {
        flex-wrap: wrap;
        padding-top: 7px;
        padding-bottom: 7px;
    }


    .deca-pdf-modal-email {
        order: 3;
        width: 100%;
        margin: 7px 0 0 0;
    }


    .deca-pdf-email-input {
        flex: 1 1 auto;
        width: auto;
    }


    .deca-pdf-email-button {
        flex: 0 0 auto;
    }
}

/*====================================================================
  ENVÍO DEL DECA POR EMAIL / WHATSAPP
====================================================================*/

.deca-pdf-envio-documento {
    display: grid;
    grid-template-columns: 90px 350px 180px;
    row-gap: 8px;
    column-gap: 12px;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 14px;
}

.deca-pdf-envio-label {
    text-align: right;
    font-weight: bold;
}

.deca-pdf-envio-input {
    width: 100%;
    box-sizing: border-box;
}

.deca-pdf-envio-button {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.deca-pdf-envio-button-email {
    background-color: #0F6CBD;
}

    .deca-pdf-envio-button-email:hover {
        background-color: #0B5CAD;
    }

.deca-pdf-envio-button-whatsapp {
    background-color: #25D366;
}

    .deca-pdf-envio-button-whatsapp:hover {
        background-color: #1EBE5D;
    }



/* #endregion */