﻿
/* =========================================================
   RESUMEN / LLENADO DE INDICADORES DE LOGRO
========================================================= */

.ind-panel {
    margin-bottom: 28px;
    overflow: hidden;
    border: 1px solid #e7ddd0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 7px 22px rgba(104, 9, 27, 0.07);
}


/* =========================================================
   CABECERA
========================================================= */

.ind-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    background: linear-gradient(135deg, #7b0b23, #550614);
    color: #ffffff;
}

.ind-header-icono {
    width: 44px;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.6rem;
}

.ind-header-texto {
    flex: 1;
    min-width: 0;
}

    .ind-header-texto h3 {
        margin: 0 0 2px;
        color: #ffffff;
        font-size: 1.05rem;
        font-weight: 700;
    }

    .ind-header-texto p {
        margin: 0;
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.78rem;
    }

.ind-btn-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .ind-btn-header:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.14);
    }

    .ind-btn-header:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }


/* =========================================================
   CUERPO
========================================================= */

.ind-cuerpo {
    padding: 18px 20px 20px;
}

.ind-aviso {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 11px 14px;
    border: 1px solid #f0dfc3;
    border-radius: 10px;
    background: #fff8ec;
    color: #7a5a22;
    font-size: 0.8rem;
}

    .ind-aviso i {
        margin-top: 2px;
        color: #e49a20;
    }

.ind-vacio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px;
    border: 1px dashed #d8cbbb;
    border-radius: 12px;
    background: #fffdf9;
    color: #777;
    font-size: 0.85rem;
}

    .ind-vacio i {
        color: #e49a20;
    }


/* =========================================================
   TABLA
========================================================= */

.ind-tabla-scroll {
    overflow-x: auto;
}

.ind-tabla {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
}

    .ind-tabla.llenado {
        min-width: 820px;
    }

    .ind-tabla thead th {
        padding: 11px 14px;
        border-bottom: 1px solid #f0e0dc;
        background: #fbf1f0;
        color: #6b3b3b;
        font-size: 0.72rem;
        font-weight: 700;
        text-align: left;
        white-space: nowrap;
    }

    .ind-tabla tbody td {
        padding: 12px 14px;
        border-bottom: 1px solid #f3ebe3;
        color: #493333;
        font-size: 0.82rem;
        vertical-align: middle;
    }

    .ind-tabla tbody tr:last-child td {
        border-bottom: none;
    }


/* N° grande y notorio */

.ind-celda-num {
    width: 76px;
    text-align: center;
}

.ind-numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7b0b23, #550614);
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 5px 12px rgba(104, 9, 27, 0.25);
}


/* Texto del indicador */

.ind-celda-indicador {
    min-width: 220px;
    max-width: 380px;
    color: #3e2929;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.45;
}


/* Fechas del resumen */

.ind-fecha-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    background: #f8f1e6;
    color: #68091b;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

    .ind-fecha-chip i {
        color: #e49a20;
    }



.ind-estado {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

    .ind-estado.concluido {
        background: #e4f4e9;
        color: #1d7a3b;
    }

    .ind-estado.pendiente {
        background: #fdf0d8;
        color: #a8660a;
    }
/* =========================================================
   DESCRIPCIÓN (modo llenado)
========================================================= */

.ind-textarea {
    width: 100%;
    min-width: 240px;
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid #e0d5c8;
    border-radius: 10px;
    background: #ffffff;
    color: #493333;
    font-family: inherit;
    font-size: 0.82rem;
    resize: vertical;
}

    .ind-textarea:focus {
        outline: none;
        border-color: #68091b;
    }


/* =========================================================
   ACCIONES
========================================================= */

.ind-acciones {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.ind-btn-guardar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 26px;
    background: linear-gradient(135deg, #7b0b23, #550614);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(104, 9, 27, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

    .ind-btn-guardar:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(104, 9, 27, 0.25);
    }

    .ind-btn-guardar:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }


/* =========================================================
   MÓVIL
   Cada indicador pasa a ser una tarjeta apilada, con el nombre
   de cada campo (data-label) encima de su valor.
========================================================= */

@media (max-width: 700px) {

    .ind-header {
        flex-wrap: wrap;
        padding: 14px 16px;
    }

    .ind-cuerpo {
        padding: 14px;
    }

    .ind-tabla,
    .ind-tabla.llenado {
        min-width: 0;
    }

        .ind-tabla thead {
            display: none;
        }

        .ind-tabla,
        .ind-tabla tbody,
        .ind-tabla tr,
        .ind-tabla td {
            display: block;
            width: 100%;
        }

            .ind-tabla tbody tr {
                margin-bottom: 14px;
                padding: 14px;
                border: 1px solid #ece2d7;
                border-radius: 14px;
                background: #fffdf9;
            }

            .ind-tabla tbody td {
                padding: 6px 0;
                border-bottom: none;
            }

                .ind-tabla tbody td::before {
                    content: attr(data-label);
                    display: block;
                    margin-bottom: 4px;
                    color: #a07846;
                    font-size: 0.66rem;
                    font-weight: 800;
                    letter-spacing: 0.4px;
                    text-transform: uppercase;
                }

                .ind-tabla tbody td.ind-celda-num {
                    width: auto;
                    text-align: left;
                }

                    .ind-tabla tbody td.ind-celda-num::before {
                        display: none;
                    }

    .ind-celda-indicador {
        min-width: 0;
        max-width: none;
    }

    .ind-textarea {
        min-width: 0;
    }

    .ind-acciones {
        justify-content: stretch;
    }

    .ind-btn-guardar {
        width: 100%;
        justify-content: center;
    }
}


@media (prefers-reduced-motion: reduce) {

    .ind-btn-guardar,
    .ind-btn-header {
        transition: none;
    }
}


.nt-panel {
    margin-bottom: 28px;
    overflow: hidden;
    border: 1px solid #e7ddd0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(104,9,27,.07);
}

/* Cabecera */
.nt-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    background: linear-gradient(135deg,#7b0b23,#550614);
    color: #fff;
}

.nt-header-icono {
    font-size: 1.6rem;
}

.nt-header-texto {
    flex: 1;
    min-width: 200px;
}

    .nt-header-texto h3 {
        margin: 0 0 2px;
        color: #fff;
        font-size: 1.05rem;
        font-weight: 700;
    }

    .nt-header-texto p {
        margin: 0;
        color: rgba(255,255,255,.82);
        font-size: .78rem;
    }

.nt-progreso {
    min-width: 230px;
    font-size: .75rem;
    font-weight: 600;
}

.nt-barra {
    height: 8px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(255,255,255,.25);
}

.nt-barra-fill {
    height: 100%;
    border-radius: 6px;
    background: #5fd38d;
    transition: width .3s ease;
}

.nt-cuerpo {
    padding: 18px 20px 20px;
}

.nt-vacio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px;
    border: 1px dashed #d8cbbb;
    border-radius: 12px;
    background: #fffdf9;
    color: #777;
    font-size: .85rem;
}

/* Pestañas */
.nt-tabs {
    display: flex;
    gap: 10px;
    padding: 16px 20px 0;
    overflow-x: auto;
}

.nt-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e7ddd0;
    border-radius: 12px;
    background: #fffdf9;
    color: #493333;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}

    .nt-tab:hover {
        border-color: #d59a3d;
    }

    .nt-tab.activa {
        border-color: #7b0b23;
        box-shadow: 0 0 0 2px rgba(123,11,35,.12);
        background: #fff;
    }

.nt-tab-todas {
    color: #68091b;
}

.nt-candado {
    color: #a07846;
    font-size: .75rem;
}

.nt-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    background: #7b0b23;
}

    .nt-num.grande {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .nt-num.proceso {
        background: #e49a20;
    }

    .nt-num.pendiente {
        background: #a9a9a9;
    }

.nt-chip {
    padding: 3px 10px;
    border-radius: 14px;
    font-size: .68rem;
    font-weight: 700;
}

    .nt-chip.completado {
        background: #e4f4e9;
        color: #1d7a3b;
    }

    .nt-chip.proceso {
        background: #fdf0d8;
        color: #a8660a;
    }

    .nt-chip.pendiente {
        background: #fde4e4;
        color: #b3261e;
    }

    .nt-chip.singuardar {
        background: #fff3cd;
        color: #8a6200;
    }

/* Distribución */
.nt-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 18px;
    align-items: start;
}

    .nt-grid.solo {
        grid-template-columns: 1fr;
    }

.nt-lateral {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nt-card {
    padding: 14px;
    border: 1px solid #ece2d7;
    border-radius: 14px;
    background: #fffdf9;
}

.nt-card-titulo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #68091b;
}

    .nt-card-titulo .nt-chip {
        margin-left: auto;
    }

.nt-descripcion {
    padding: 12px;
    border-radius: 10px;
    background: #fff6ea;
}

.nt-descripcion-titulo {
    margin-bottom: 6px;
    color: #68091b;
    font-size: .8rem;
    font-weight: 700;
}

.nt-descripcion p {
    margin: 0;
    color: #3e2929;
    font-size: .8rem;
    line-height: 1.45;
}

.nt-fechas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

    .nt-fechas div {
        padding: 8px 10px;
        border: 1px solid #ece2d7;
        border-radius: 10px;
        background: #fff;
    }

    .nt-fechas small {
        display: block;
        color: #a07846;
        font-size: .66rem;
        font-weight: 700;
    }

    .nt-fechas strong {
        color: #3e2929;
        font-size: .8rem;
    }

.nt-plazo {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .nt-plazo i {
        font-size: 1.3rem;
    }

    .nt-plazo strong {
        display: block;
        font-size: .85rem;
    }

    .nt-plazo span {
        font-size: .74rem;
    }

    .nt-plazo.abierto {
        background: #f0faf3;
        color: #1d7a3b;
        border-color: #cfe9d7;
    }

    .nt-plazo.cerrado {
        background: #fdf0f0;
        color: #b3261e;
        border-color: #f1cccc;
    }

.nt-avance {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #68091b;
}

    .nt-avance i {
        font-size: 1.3rem;
    }

    .nt-avance strong {
        display: block;
        font-size: .85rem;
    }

    .nt-avance span {
        color: #7a6a6a;
        font-size: .72rem;
    }

.nt-ayuda {
    background: #fff8ec;
    border-color: #f0dfc3;
}

.nt-ayuda-titulo {
    margin-bottom: 6px;
    color: #7a5a22;
    font-size: .82rem;
    font-weight: 700;
}

.nt-ayuda ol {
    margin: 0;
    padding-left: 18px;
    color: #7a5a22;
    font-size: .75rem;
    line-height: 1.6;
}

/* Panel principal */
.nt-principal {
    min-width: 0;
}

.nt-principal-titulo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #68091b;
    font-size: 1rem;
}

.nt-chip-indicador {
    margin-left: auto;
    padding: 5px 16px;
    border-radius: 16px;
    background: #fde4e4;
    color: #b3261e;
    font-size: .78rem;
    font-weight: 700;
}

.nt-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.nt-buscar {
    position: relative;
    flex: 1;
    min-width: 190px;
}

    .nt-buscar i {
        position: absolute;
        top: 50%;
        left: 12px;
        transform: translateY(-50%);
        color: #b9ab9b;
    }

    .nt-buscar input {
        width: 100%;
        padding: 9px 12px 9px 34px;
        border: 1px solid #e0d5c8;
        border-radius: 10px;
        font-size: .82rem;
    }

.nt-select {
    padding: 9px 12px;
    border: 1px solid #e0d5c8;
    border-radius: 10px;
    background: #fff;
    font-size: .82rem;
}

    .nt-select.corto {
        padding: 6px 8px;
    }

.nt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}

.nt-btn-guardar {
    background: linear-gradient(135deg,#7b0b23,#550614);
    color: #fff;
    box-shadow: 0 6px 16px rgba(104,9,27,.2);
}

    .nt-btn-guardar:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.nt-badge {
    padding: 1px 8px;
    border-radius: 10px;
    background: #e49a20;
    color: #fff;
    font-size: .7rem;
}

/* Tabla */
.nt-tabla-scroll {
    overflow-x: auto;
    border: 1px solid #f0e0dc;
    border-radius: 12px;
}

.nt-tabla {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

    .nt-tabla thead th {
        padding: 11px 14px;
        background: #fbf1f0;
        color: #6b3b3b;
        font-size: .72rem;
        font-weight: 700;
        text-align: left;
        white-space: nowrap;
    }

    .nt-tabla tbody td {
        padding: 9px 14px;
        border-top: 1px solid #f3ebe3;
        color: #493333;
        font-size: .82rem;
        vertical-align: middle;
    }

    .nt-tabla tbody tr.cambiada {
        background: #fffaf0;
    }

.nt-centro {
    text-align: center !important;
}

.nt-col-codigo {
    color: #2c5aa0;
}

.nt-col-nombre {
    font-weight: 600;
}
.nt-col-fecha {
    white-space: nowrap;
    color: #64748b;
    font-size: 0.8rem;
}
.nt-sin-resultados {
    padding: 22px !important;
    color: #888;
    text-align: center;
}

.nt-input {
    width: 82px;
    padding: 6px 8px;
    border: 1px solid #e0d5c8;
    border-radius: 8px;
    text-align: center;
    font-size: .85rem;
    font-weight: 700;
}

    .nt-input:focus {
        outline: none;
        border-color: #68091b;
    }

    .nt-input.invalida {
        border-color: #b3261e;
        background: #fde4e4;
    }

    .nt-input:disabled {
        background: #f3f0ec;
        color: #8a8a8a;
        cursor: not-allowed;
    }

.nt-estado {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: .74rem;
    font-weight: 700;
}

    .nt-estado.registrada {
        background: #e4f4e9;
        color: #1d7a3b;
    }

    .nt-estado.pendiente {
        background: #fde4e4;
        color: #b3261e;
    }

/* Pie y paginación */
.nt-pie {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    color: #6b6b6b;
    font-size: .78rem;
}

.nt-paginacion {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .nt-paginacion button {
        min-width: 32px;
        height: 32px;
        border: 1px solid #ded5c8;
        border-radius: 8px;
        background: #fff;
        color: #68091b;
        cursor: pointer;
    }

        .nt-paginacion button.activa {
            border-color: #7b0b23;
            background: #7b0b23;
            color: #fff;
        }

        .nt-paginacion button:disabled {
            opacity: .35;
            cursor: not-allowed;
        }

.nt-mostrar {
    margin-left: 8px;
}

@media (max-width: 900px) {
    .nt-grid {
        grid-template-columns: 1fr;
    }

    .nt-cuerpo {
        padding: 14px;
    }
}

.nt-btn-excel {
    border-color: #2f8f5b;
    background: #fff;
    color: #1d7a3b;
}

    .nt-btn-excel:hover {
        background: #f0faf3;
    }
.ind-guardado-texto {
    color: #4b4b52;
    font-size: .9rem;
    line-height: 1.35;
}

/* ---- Pantalla flotante de solicitud ---- */
.sol-fondo {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(30, 10, 15, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.sol-dialogo {
    background: #fff;
    border-radius: 16px;
    width: min(600px, 100%);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}

.sol-cabecera {
    background: #68091b;
    color: #fff;
    border-radius: 16px 16px 0 0;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .sol-cabecera div {
        display: flex;
        flex-direction: column;
    }

    .sol-cabecera span {
        font-size: .8rem;
        opacity: .85;
    }

.sol-cerrar {
    background: none;
    border: 0;
    color: #fff;
    font-size: 1.1rem;
}

.sol-cuerpo {
    padding: 16px 18px;
    overflow-y: auto;
}

.sol-destino {
    background: #fff8ec;
    border: 1px solid #e8c9a0;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 14px;
    font-size: .9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

    .sol-destino strong {
        color: #68091b;
    }

.sol-campo {
    margin-bottom: 14px;
}

    .sol-campo > label {
        display: block;
        font-weight: 600;
        color: #3b3b42;
        margin-bottom: 6px;
    }

.sol-indicador {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    border: 1px solid #ece3d6;
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 6px;
    font-weight: 400 !important;
}

    .sol-indicador:hover {
        background: #fdf8f1;
    }

    .sol-indicador input {
        margin-top: 4px;
    }

.sol-indicador-num {
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #68091b;
    color: #fff;
    font-size: .8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sol-indicador-texto {
    font-size: .88rem;
    color: #4b4b52;
    line-height: 1.35;
}

.sol-contador {
    display: block;
    text-align: right;
    color: #8a8a92;
}

.sol-error {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #fdeeee;
    border: 1px solid #f1b9b9;
    color: #9b1c1c;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: .9rem;
}

.sol-pie {
    padding: 12px 18px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.sol-btn-secundario {
    border: 1px solid #c9b79d;
    background: #fff;
    color: #4b4b52;
    border-radius: 999px;
    padding: 8px 18px;
}

    .sol-btn-secundario:hover {
        background: #f6efe4;
    }
.nt-inasist-alta {
    color: #b42318;
    font-weight: 700;
}
.nt-btn-deshabilitado {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
}