/* FASE 2.1 - Asignación administrativa (solo interfaz; sin estilos globales) */
.wgs-asig-columna {
    width: 54px;
    min-width: 54px;
    text-align: center !important;
}

    .wgs-asig-columna input {
        width: 17px;
        height: 17px;
        cursor: pointer;
        accent-color: #1769d2;
    }

.wgs-asig-barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 12px 0;
    padding: 12px 15px;
    border-radius: 8px;
    background: #f0f6ff;
    border: 1px solid #bcd5f8;
}

.wgs-asig-barra-info {
    color: #173b67;
    font-size: 13px;
}

.wgs-asig-barra-botones, .wgs-asig-acciones {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.wgs-asig-btn {
    border: 1px solid #cbd5e1;
    padding: 9px 15px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.35;
}

.wgs-asig-btn-primario {
    background: #1769d2;
    border-color: #1769d2;
    color: #fff;
}

    .wgs-asig-btn-primario:hover:not(:disabled) {
        background: #1259b3;
    }

.wgs-asig-btn-secundario {
    background: #fff;
    color: #173b67;
}

    .wgs-asig-btn-secundario:hover:not(:disabled) {
        background: #eef4fc;
    }

.wgs-asig-btn-correo {
    background: #0f766e;
    color: #fff;
    border-color: #0f766e;
}

.wgs-asig-btn:disabled {
    opacity: .48;
    cursor: not-allowed;
}

.wgs-asig-fondo {
    position: fixed;
    inset: 0;
    z-index: 2050;
    background: rgba(15,23,42,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wgs-asig-ventana {
    width: min(1080px, 100%);
    max-height: min(94vh, 1000px);
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 65px rgba(0,0,0,.3);
}

.wgs-asig-encabezado {
    padding: 17px 22px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

    .wgs-asig-encabezado h3 {
        margin: 0 0 6px;
        font-size: 21px;
        color: #173b67;
        font-weight: 700;
    }

    .wgs-asig-encabezado p {
        color: #475569;
        font-size: 12px;
        margin: 0;
    }

.wgs-asig-cerrar {
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 6px;
    color: #475569;
    width: 36px;
    height: 36px;
    font-size: 24px;
    cursor: pointer;
    flex-shrink: 0;
}

.wgs-asig-cuerpo {
    overflow-y: auto;
    padding: 20px 24px;
}

.wgs-asig-seccion {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

    .wgs-asig-seccion h4, .wgs-asig-confirmacion h4 {
        color: #173b67;
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 13px;
    }

.wgs-asig-resumen {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    margin-bottom: 12px;
}

    .wgs-asig-resumen span {
        display: flex;
        flex-direction: column;
        padding: 10px 12px;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        border-radius: 8px;
        overflow-wrap: anywhere;
    }

    .wgs-asig-resumen small {
        font-size: 11px;
        color: #64748b;
        margin-bottom: 2px;
    }

    .wgs-asig-resumen strong {
        font-size: 14px;
        color: #334155;
    }

.wgs-asig-tabla-wrap {
    max-height: 210px;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    margin: 9px 0;
}

.wgs-asig-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

    .wgs-asig-tabla th {
        position: sticky;
        top: 0;
        background: #eef3fb;
        color: #173b67;
        text-align: left;
        font-weight: 700;
        padding: 8px 10px;
    }

    .wgs-asig-tabla td {
        border-top: 1px solid #e2e8f0;
        padding: 8px 10px;
        overflow-wrap: anywhere;
    }

.wgs-asig-opciones {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

    .wgs-asig-opciones label {
        flex: 1;
        min-width: 215px;
        display: block;
        padding: 11px 14px;
        cursor: pointer;
        background: #f8fafc;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        font-size: 13px;
        color: #334155;
        font-weight: 600;
    }

    .wgs-asig-opciones small {
        display: block;
        padding-left: 20px;
        font-weight: 400;
        margin-top: 5px;
        color: #64748b;
    }

.wgs-asig-desplegable {
    border: 1px solid #cbd5e1;
    border-radius: 7px;
}

    .wgs-asig-desplegable summary {
        padding: 11px 14px;
        color: #173b67;
        font-weight: 600;
        cursor: pointer;
        font-size: 13px;
    }

.wgs-asig-personas {
    padding: 12px;
    border-top: 1px solid #e2e8f0;
}

    .wgs-asig-personas > label, .wgs-asig-label {
        font-weight: 600;
        color: #334155;
        font-size: 13px;
        display: block;
        margin-bottom: 6px;
    }

    .wgs-asig-personas input[type=search], #wgsAsigObservaciones {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #cbd5e1;
        border-radius: 7px;
        font-size: 13px;
        color: #334155;
        box-sizing: border-box;
    }
/* Plazo obligatorio de asignación: valor común para todas las solicitudes del lote. */
.wgs-asig-plazo-campo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wgs-asig-plazo-input {
    max-width: 125px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    color: #334155;
    box-sizing: border-box;
    font-size: 14px;
}

.wgs-asig-plazo-unidad {
    color: #475569;
    font-size: 13px;
}

.wgs-asig-lista-funcionarios {
    max-height: 180px;
    overflow: auto;
    margin-top: 9px;
}
/* CheckBoxList nativo: ASP.NET genera una tabla de una columna (tr/td).
   Conservar el comportamiento de lista buscable del prototipo anterior. */
.wgs-asig-checkboxlist {
    width: 100%;
    border-collapse: collapse;
}

    .wgs-asig-checkboxlist td {
        padding: 7px;
        font-size: 13px;
    }

    .wgs-asig-checkboxlist tr:hover {
        background: #f0f6ff;
    }

    .wgs-asig-checkboxlist label {
        display: inline;
        padding-left: 5px;
        cursor: pointer;
        font-size: 13px;
    }

    .wgs-asig-checkboxlist input[type=checkbox] {
        width: 16px;
        height: 16px;
        vertical-align: middle;
        cursor: pointer;
    }

    .wgs-asig-checkboxlist tr[hidden] {
        display: none !important;
    }

.wgs-asig-advertencia {
    color: #8a5100;
    background: #fff7e6;
    border: 1px solid #fbd38d;
    border-radius: 7px;
    padding: 10px;
    font-size: 12px;
    margin: 10px 0 0;
}

.wgs-asig-ayuda {
    font-size: 12px;
    color: #64748b;
    margin: 9px 0;
}

.wgs-asig-error {
    color: #a31f28;
    background: #fff0f0;
    border: 1px solid #f2b5b9;
    border-radius: 7px;
    padding: 10px;
    margin-top: 9px;
    font-size: 13px;
}

.wgs-asig-confirmacion {
    border: 1px solid #93b8ea;
    padding: 15px;
    border-radius: 8px;
    background: #f0f6ff;
    margin-bottom: 15px;
    font-size: 13px;
}

.wgs-asig-exito {
    background: #eaf8ef;
    border: 1px solid #9ed6ad;
    border-radius: 7px;
    padding: 13px;
    color: #176638;
    font-size: 13px;
    margin-bottom: 15px;
}

.wgs-asig-pie {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 22px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-wrap: wrap;
}
/* El atributo hidden prima sobre display:flex definidos para barras, modales y etiquetas. */
.wgs-asig-fondo[hidden], .wgs-asig-barra[hidden], .wgs-asig-ventana [hidden],
.wgs-asig-lista-funcionarios [hidden] {
    display: none !important;
}

@media (max-width: 650px) {
    .wgs-asig-fondo {
        padding: 6px;
    }

    .wgs-asig-cuerpo {
        padding: 12px;
    }

    .wgs-asig-resumen {
        grid-template-columns: 1fr;
    }

    .wgs-asig-encabezado {
        padding: 12px;
    }

    .wgs-asig-pie {
        padding: 10px;
        justify-content: stretch;
    }

        .wgs-asig-pie button {
            flex: 1;
        }
}
