﻿
/*Activos*/
.activos-page {
    padding: 22px 16px;
    background: #f6f8fb;
    color: #202b3c;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.activos-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

    .activos-header h2 {
        font-size: 22px;
        margin: 0 0 4px;
    }

    .activos-header p {
        margin: 0;
        color: #7b8797;
    }

.header-filters {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 10px;
}

.activos-page label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #596578;
}

.activos-page input,
.activos-page select {
    box-sizing: border-box;
    height: 35px;
    min-width: 110px;
    border: 1px solid #d7dee8;
    border-radius: 5px;
    padding: 7px 9px;
    background: #fff;
    color: #26344a;
    font-size: 12px;
}

.activos-page button {
    cursor: pointer;
    border-radius: 5px;
    padding: 8px 10px;
    font-size: 11px;
}

.btn-filtro, .btn-limpiar {
    border: 1px solid #cbd4e0;
    background: white;
    color: #34445d;
}

.activos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 273px;
    gap: 22px;
    align-items: start;
}

.activos-main {
    min-width: 0;
}

.indicadores {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.indicador {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 9px;
    padding: 13px 11px;
    min-height: 94px;
    box-shadow: 0 2px 5px #17233c08;
    position: relative;
}

    .indicador strong {
        display: block;
        font-size: 19px;
        margin: 12px 0;
        color: #17233c;
    }

    .indicador i {
        position: absolute;
        right: 12px;
        top: 43px;
        font-size: 24px;
        color: #0878f9;
        font-style: normal;
    }

    .indicador small {
        display: block;
        color: #7b8797;
    }

.filtros-activos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    background: white;
    border: 1px solid #e8edf3;
    border-radius: 9px;
    margin-bottom: 70px;
}

    .filtros-activos input,
    .filtros-activos select {
        width: 100%;
        min-width: 0;
    }

.acciones-filtro {
    grid-column: 1 / -1;
    display: flex;
    justify-content: end;
    gap: 8px;
}

.btn-aplicar {
    color: white;
    background: #078c69;
    border: 0;
}

.tabla-activos, .panel {
    background: #fff;
    border: 1px solid #e7ebf1;
    border-radius: 9px;
    box-shadow: 0 2px 5px #17233c08;
}

.tabla-activos {
    overflow: hidden;
}

.tabla-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
}

    .tabla-header h3 {
        margin: 0;
        font-size: 14px;
    }

.btn-exportar {
    color: white;
    background: #0878f9;
    border: 0;
}

.tabla-scroll {
    overflow-x: auto;
}

.tabla-activos table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.tabla-activos th, .tabla-activos td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #e8edf2;
    font-size: 10px;
}

.tabla-activos th {
    font-weight: 500;
    color: #69768a;
    background: #fcfdff;
}

.activo-nombre strong, .activo-nombre small {
    display: block;
}

.activo-nombre small {
    margin-top: 4px;
    color: #8792a1;
}

.tipo-badge, .ambiente-badge, .nivel-badge {
    display: inline-block;
    border-radius: 15px;
    padding: 5px 10px;
}

.tipo-pc {
    color: #176bb5;
    background: #d8edff;
}

.tipo-servidor {
    color: #7540aa;
    background: #eedbff;
}

.ambiente-badge {
    color: #a16a00;
    background: #fff0d5;
}

.nivel-badge {
    background: #ffe0e3;
    color: #cf2438;
}

.barra-fondo {
    height: 6px;
    background: #e8ebef;
    border-radius: 8px;
    overflow: hidden;
    min-width: 90px;
    margin-top: 5px;
}

.barra {
    height: 100%;
    border-radius: 8px;
}

.bar-verde {
    background: #0aa56a;
}

.bar-amarillo {
    background: #ffb900;
}

.bar-rojo {
    background: #ed2438;
}

.activos-aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel {
    padding: 14px;
}

    .panel h3 {
        text-align: center;
        font-size: 12px;
        margin: 0 0 18px;
    }

.so-item {
    margin-bottom: 13px;
}

    .so-item div:first-child {
        display: flex;
        justify-content: space-between;
        margin-bottom: 5px;
    }

.resumen-nivel {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 10px;
}

.nota {
    display: block;
    color: #6f7b8d;
    line-height: 1.5;
    margin-top: 12px;
}

@media (max-width: 1250px) {
    .activos-layout {
        grid-template-columns: 1fr;
    }

    .indicadores {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .activos-aside {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .indicadores {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filtros-activos {
        grid-template-columns: 1fr;
        margin-bottom: 20px;
    }

    .activos-aside {
        grid-template-columns: 1fr;
    }
}

/*Hallazgos*/
.hallazgos-page {
    padding: 18px 16px;
    background: #f6f8fb;
    min-height: 100vh;
    color: #202b3c;
    font: 12px Arial, sans-serif;
}

.hallazgos-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 18px;
}

    .hallazgos-header h2 {
        margin: 0 0 5px;
        font-size: 22px;
    }

    .hallazgos-header p {
        margin: 0;
        color: #7b8797;
    }

.hallazgos-page label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #596578;
}

.hallazgos-page input,
.hallazgos-page select {
    box-sizing: border-box;
    min-width: 105px;
    height: 34px;
    padding: 6px 8px;
    border: 1px solid #d7dee8;
    border-radius: 5px;
    background: #fff;
    color: #26344a;
    font-size: 12px;
}

.hallazgos-filtros-superiores {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 10px;
}

.hallazgos-page button {
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 11px;
}

.h-btn-outline {
    background: white;
    border: 1px solid #cbd4e0;
    color: #34445d;
}

.h-btn-green {
    background: #078c69;
    color: white;
    border: 0;
}

.h-btn-blue {
    background: #0878f9;
    color: white;
    border: 0;
}

.hallazgos-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.h-kpi {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 90px;
    padding: 12px 10px;
    background: white;
    border: 1px solid #e8edf3;
    border-radius: 9px;
    box-shadow: 0 2px 5px #17233c08;
}

    .h-kpi span, .h-kpi small {
        display: block;
    }

    .h-kpi span {
        color: #596578;
        margin-bottom: 5px;
    }

    .h-kpi strong {
        display: block;
        font-size: 20px;
        margin-bottom: 5px;
    }

    .h-kpi small {
        color: #7b8797;
        line-height: 1.4;
    }

.h-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 19px;
}

.blue {
    color: #1680e8;
}

.green {
    color: #11966a;
}

.yellow {
    color: #e6ae00;
}

.purple {
    color: #8b51bb;
}

.hallazgos-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 282px;
    gap: 14px;
    align-items: start;
}

    .hallazgos-grid main {
        min-width: 0;
    }

.h-filtro-card, .h-tabla-card, .h-panel {
    background: white;
    border: 1px solid #e7ebf1;
    border-radius: 9px;
    box-shadow: 0 2px 5px #17233c08;
}

.h-filtro-card {
    padding: 14px;
    margin-bottom: 16px;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
}

    .h-filtro-card label {
        max-width: 300px;
    }

    .h-filtro-card select {
        width: 210px;
    }

.h-filtro-acciones {
    display: flex;
    justify-content: end;
    gap: 7px;
}

.h-tabla-card {
    overflow: hidden;
}

.h-tabla-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
}

    .h-tabla-header h3, .h-panel h3 {
        margin: 0;
        font-size: 13px;
    }

.h-tabla-scroll {
    overflow-x: auto;
}

.h-tabla-card table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.h-tabla-card th, .h-tabla-card td {
    padding: 9px 7px;
    border-bottom: 1px solid #e0e5eb;
    text-align: left;
    font-size: 10px;
}

.h-tabla-card th {
    color: #657287;
    font-weight: 500;
}

.req-badge {
    display: inline-block;
    min-width: 28px;
    text-align: center;
    padding: 5px 8px;
    border-radius: 14px;
    background: #d6edff;
    color: #1675bd;
}

.h-progress {
    width: 100%;
    min-width: 80px;
    height: 6px;
    background: #edf0f4;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 4px;
}

    .h-progress div {
        height: 100%;
        border-radius: 8px;
    }

.h-bar-good {
    background: #078c69;
}

.h-bar-medium {
    background: #ffb900;
}

.h-bar-low {
    background: #ed2438;
}

.h-panel {
    padding: 14px 12px;
}

    .h-panel h3 {
        text-align: center;
        margin-bottom: 18px;
    }

.ranking-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1fr 20px;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 10px;
}

    .ranking-row .h-progress {
        min-width: 0;
        margin: 0;
    }

    .ranking-row strong {
        text-align: right;
        font-weight: 500;
    }

.h-panel > small {
    display: block;
    color: #778397;
    line-height: 1.5;
    margin-top: 15px;
}

@media (max-width: 1250px) {
    .hallazgos-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hallazgos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .hallazgos-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hallazgos-filtros-superiores {
        width: 100%;
    }

        .hallazgos-filtros-superiores label {
            flex: 1;
        }
}
/*cumplimiento*/
.cumplimiento-page {
    padding: 18px 10px;
    min-height: 100vh;
    background: #f6f8fb;
    color: #202b3c;
    font: 12px Arial, sans-serif;
}

.cum-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

    .cum-header h2 {
        margin: 0 0 5px;
        font-size: 21px;
    }

    .cum-header p {
        margin: 0;
        color: #7b8797;
    }

.cum-top-filters {
    display: flex;
    align-items: end;
    gap: 9px;
    flex-wrap: wrap;
}

.cumplimiento-page label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #586579;
}

.cumplimiento-page input,
.cumplimiento-page select {
    box-sizing: border-box;
    height: 34px;
    min-width: 100px;
    padding: 6px 8px;
    border: 1px solid #d7dee8;
    border-radius: 5px;
    background: white;
    color: #27364c;
    font-size: 11px;
}

.cumplimiento-page button {
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 11px;
}

.cum-btn-outline {
    border: 1px solid #cbd4e0;
    background: white;
    color: #34445d;
}

.cum-btn-blue {
    border: 0;
    background: #0878f9;
    color: white;
}

.cum-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.cum-kpi {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 82px;
    padding: 12px 10px;
    background: white;
    border: 1px solid #e9edf2;
    border-radius: 9px;
    box-shadow: 0 2px 5px #17233c08;
}

    .cum-kpi span,
    .cum-kpi small {
        display: block;
    }

    .cum-kpi span {
        color: #566378;
        margin-bottom: 5px;
    }

    .cum-kpi strong {
        display: block;
        font-size: 19px;
        margin-bottom: 5px;
    }

    .cum-kpi small {
        color: #7b8797;
    }

.cum-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 18px;
}

.verde {
    color: #11966a;
}

.amarillo {
    color: #e6ae00;
}

.morado {
    color: #8751b5;
}

.azul {
    color: #1680e8;
}

.cum-charts {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.cum-card {
    background: white;
    border: 1px solid #e7ebf1;
    border-radius: 9px;
    box-shadow: 0 2px 5px #17233c08;
}

.cum-chart-card,
.cum-environment-card {
    padding: 13px;
    min-height: 155px;
}

.cum-card h3 {
    margin: 0 0 15px;
    font-size: 12px;
    font-weight: 600;
}

.cum-chart {
    display: flex;
    align-items: stretch;
    gap: 8px;
    height: 128px;
    padding: 0 5px;
    overflow-x: auto;
    border-bottom: 1px solid #e5eaf0;
}

.cum-bar-item {
    flex: 1 0 29px;
    min-width: 29px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
}

.cum-bar-value {
    font-size: 9px;
    margin-bottom: 4px;
    white-space: nowrap;
}

.cum-bar {
    width: 17px;
    min-height: 2px;
    border-radius: 4px 4px 0 0;
}

.cum-bar-label {
    margin-top: 5px;
    font-size: 9px;
    color: #596578;
    white-space: nowrap;
}

.cum-progress {
    height: 6px;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #e8edf2;
}

    .cum-progress > div {
        height: 100%;
        border-radius: inherit;
    }

.cum-good {
    background: #09a45e;
}

.cum-medium {
    background: #ffb900;
}

.cum-low {
    background: #ed1c2e;
}

.cum-orange {
    background: #ff7600;
}

.cum-environment-row {
    margin-bottom: 15px;
}

.cum-environment-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 11px;
}

.cum-table-card {
    overflow: hidden;
}

.cum-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
}

    .cum-table-header h3 {
        margin: 0;
    }

.cum-table-scroll {
    overflow-x: auto;
}

.cum-table-card table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.cum-table-card th,
.cum-table-card td {
    padding: 9px 7px;
    text-align: left;
    border-bottom: 1px solid #e0e5eb;
    font-size: 10px;
}

.cum-table-card th {
    color: #667388;
    font-weight: 500;
}

.cum-requisito {
    display: inline-block;
    min-width: 28px;
    padding: 5px 8px;
    text-align: center;
    border-radius: 14px;
    background: #d8edff;
    color: #176bb5;
}

.cum-nivel {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 15px;
    background: #ffe0e3;
    color: #cf2438;
}

.cum-tendencia {
    text-align: center;
}

@media (max-width: 1150px) {
    .cum-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cum-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .cum-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cum-top-filters label {
        flex: 1;
    }
}
/*Evidencias*/
.evidencias-page {
    padding: 16px 10px;
    background: #f6f8fb;
    color: #202b3c;
    min-height: 100vh;
    font: 12px Arial, sans-serif;
}

.ev-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}

    .ev-header h2 {
        font-size: 20px;
        margin: 0 0 4px;
    }

    .ev-header p {
        color: #788497;
        margin: 0;
    }

.ev-top-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 9px;
}

.evidencias-page label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #566378;
    min-width: 0;
}

.evidencias-page input,
.evidencias-page select {
    box-sizing: border-box;
    width: 100%;
    height: 34px;
    padding: 6px 8px;
    border: 1px solid #d6dee8;
    border-radius: 5px;
    background: white;
    color: #27364c;
    font-size: 11px;
    min-width: 0;
}

.evidencias-page button {
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 11px;
}

.ev-btn-outline {
    background: white;
    border: 1px solid #cbd4e0;
    color: #34445d;
}

.ev-btn-green {
    background: #078c69;
    color: white;
    border: 0;
}

.ev-btn-blue {
    background: #0878f9;
    color: white;
    border: 0;
}

.ev-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.ev-kpi {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 83px;
    padding: 12px;
    background: white;
    border: 1px solid #e9edf2;
    border-radius: 9px;
    box-shadow: 0 2px 5px #17233c08;
    min-width: 0;
}

    .ev-kpi span,
    .ev-kpi small {
        display: block;
    }

    .ev-kpi span {
        color: #596578;
        margin-bottom: 4px;
    }

    .ev-kpi strong {
        display: block;
        font-size: 19px;
        margin-bottom: 4px;
    }

    .ev-kpi .ev-date {
        font-size: 14px;
    }

    .ev-kpi small {
        color: #788497;
        line-height: 1.4;
    }

.ev-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 20px;
}

.icon-blue {
    color: #1680e8;
}

.icon-green {
    color: #14966b;
}

.icon-purple {
    color: #8751b5;
}

.icon-yellow {
    color: #e9b31a;
}

.ev-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 13px;
    align-items: start;
}

.ev-main {
    min-width: 0;
}

.ev-filter-card,
.ev-table-card,
.ev-detail {
    background: white;
    border: 1px solid #e8edf3;
    border-radius: 9px;
    box-shadow: 0 2px 5px #17233c08;
}

.ev-filter-card {
    padding: 12px;
    margin-bottom: 12px;
}

.ev-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.ev-filter-actions {
    display: flex;
    justify-content: end;
    gap: 7px;
    margin-top: 12px;
}

.ev-table-card {
    overflow: hidden;
}

.ev-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
}

    .ev-table-header h3 {
        font-size: 13px;
        margin: 0;
    }

.ev-table-scroll {
    overflow-x: auto;
}

.ev-table-card table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.ev-table-card th,
.ev-table-card td {
    text-align: left;
    padding: 9px 7px;
    border-bottom: 1px solid #e2e7ed;
    font-size: 10px;
}

.ev-table-card th {
    color: #667388;
    font-weight: 500;
}

.ev-table-card tbody tr {
    cursor: pointer;
}

    .ev-table-card tbody tr:hover {
        background: #f0f7ff;
    }

    .ev-table-card tbody tr.selected {
        background: #e8edf4;
        box-shadow: inset 3px 0 #0878f9;
    }

.ev-type-badge,
.ev-req-badge {
    display: inline-block;
    min-width: 28px;
    text-align: center;
    padding: 5px 9px;
    border-radius: 15px;
    background: #cdeaff;
    color: #176bb5;
}

.ev-req-badge {
    background: #c9f5e7;
    color: #087b60;
}

.ev-file-link {
    border: 0;
    background: transparent;
    color: #0878f9;
    padding: 4px !important;
    font-size: 16px !important;
}

    .ev-file-link:disabled {
        color: #aeb8c5;
        cursor: not-allowed;
    }

.ev-detail {
    padding: 12px;
    position: sticky;
    top: 12px;
}

.ev-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

    .ev-detail-header h3 {
        margin: 0;
        font-size: 13px;
    }

    .ev-detail-header button {
        border: 0;
        background: transparent;
        color: #7b8797;
        font-size: 21px !important;
    }

.ev-detail-line {
    margin-bottom: 10px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

    .ev-detail-line strong {
        color: #34445d;
    }

.ev-detail-section {
    margin-top: 18px;
}

    .ev-detail-section h4 {
        margin: 0 0 8px;
        font-size: 12px;
    }

.ev-detail-progress {
    height: 6px;
    background: #e7ebf0;
    border-radius: 8px;
    overflow: hidden;
    margin: 7px 0;
}

    .ev-detail-progress div {
        height: 100%;
        background: #ffb900;
    }

.ev-file-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
    border: 1px solid #dce3ec;
    border-radius: 6px;
    margin-top: 7px;
}

    .ev-file-card strong,
    .ev-file-card small {
        display: block;
        line-height: 1.5;
    }

    .ev-file-card small {
        color: #788497;
    }

.ev-download {
    border: 1px solid #b7cde7;
    background: white;
    color: #0878f9;
    flex-shrink: 0;
}

.ev-detail-empty {
    color: #788497;
    line-height: 1.6;
}

.ev-empty {
    padding: 20px;
    text-align: center;
    color: #788497;
}

@media (max-width: 1250px) {
    .ev-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .ev-detail {
        position: static;
    }

    .ev-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 750px) {
    .ev-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ev-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ev-top-filters label {
        flex: 1;
    }
}
/*Reportes*/
.reportes-page {
    padding: 16px 10px;
    min-height: 100vh;
    background: #f6f8fb;
    color: #202b3c;
    font: 12px Arial, sans-serif;
}

.rp-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

    .rp-header h2 {
        margin: 0 0 5px;
        font-size: 21px;
    }

    .rp-header p,
    .rp-section-title p,
    .rp-history-heading p {
        color: #7b8797;
        margin: 0;
    }

.rp-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 9px;
}

.reportes-page label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #596578;
}

.reportes-page input,
.reportes-page select {
    box-sizing: border-box;
    min-width: 95px;
    max-width: 100%;
    height: 34px;
    padding: 6px 8px;
    border: 1px solid #d6dee8;
    border-radius: 5px;
    background: white;
    color: #27364c;
    font-size: 11px;
}

.rp-filters label:last-of-type input {
    width: 190px;
}

.reportes-page button {
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 11px;
}

.rp-btn-outline {
    background: white;
    border: 1px solid #cbd4e0;
    color: #34445d;
}

.rp-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.rp-kpi {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 82px;
    padding: 12px;
    background: white;
    border: 1px solid #e9edf2;
    border-radius: 9px;
    box-shadow: 0 2px 5px #17233c08;
    min-width: 0;
}

    .rp-kpi span,
    .rp-kpi small {
        display: block;
    }

    .rp-kpi span {
        color: #596578;
        margin-bottom: 4px;
    }

    .rp-kpi strong {
        display: block;
        font-size: 17px;
        margin-bottom: 4px;
        overflow-wrap: anywhere;
    }

    .rp-kpi small {
        color: #788497;
    }

.rp-icon,
.rp-report-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 20px;
}

.azul {
    color: #1680e8;
}

.verde {
    color: #11966a;
}

.morado {
    color: #8751b5;
}

.amarillo {
    color: #e9b31a;
}

.rp-section,
.rp-history {
    background: white;
    border: 1px solid #e8edf3;
    border-radius: 9px;
    box-shadow: 0 2px 5px #17233c08;
    margin-bottom: 14px;
}

.rp-section {
    padding: 12px;
}

.rp-section-title {
    margin-bottom: 12px;
}

    .rp-section-title h3,
    .rp-history-heading h3 {
        font-size: 13px;
        margin: 0 0 5px;
    }

.rp-report-types {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.rp-report-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    min-height: 125px;
    padding: 20px 16px;
    border: 1px solid #edf0f4;
    border-radius: 9px;
    box-shadow: 0 2px 4px #17233c08;
}

.rp-report-icon {
    margin-top: 4px;
}

.rp-report-body {
    flex: 1;
    min-width: 0;
}

    .rp-report-body h4 {
        margin: 0 0 5px;
        font-size: 12px;
        font-weight: 600;
    }

    .rp-report-body p {
        color: #68768a;
        line-height: 1.5;
        margin: 0 0 8px;
        font-size: 11px;
    }

    .rp-report-body select {
        width: 100%;
        margin-top: 2px;
    }

.rp-arrow {
    display: block;
    margin: 12px 0 0 auto;
    border: 0;
    background: transparent;
    font-size: 21px !important;
}

.rp-message {
    margin: 10px 0 0;
    color: #34445d;
}

.rp-history {
    padding: 13px 12px;
}

.rp-history-heading {
    margin-bottom: 8px;
}

.rp-table-scroll {
    overflow-x: auto;
}

.rp-history table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.rp-history th,
.rp-history td {
    padding: 10px 7px;
    border-bottom: 1px solid #e0e5eb;
    text-align: left;
    font-size: 10px;
}

.rp-history th {
    color: #667388;
    font-weight: 500;
}

.rp-type-badge {
    display: inline-block;
    border-radius: 14px;
    padding: 5px 9px;
    background: #eedbff;
    color: #7540aa;
}

.rp-format {
    color: #d9293e;
    font-weight: 600;
}

.rp-download {
    border: 1px solid #cbd4e0;
    background: white;
    color: #53647a;
}

.rp-empty {
    padding: 20px;
    text-align: center;
    color: #788497;
}

@media (max-width: 1200px) {
    .rp-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rp-report-types {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .rp-kpis {
        grid-template-columns: 1fr;
    }

    .rp-filters label {
        flex: 1;
    }

    .rp-report-card {
        padding: 14px 10px;
    }
}
/*Inventario*/

.inventario-page {
    padding: 16px 10px;
    min-height: 100vh;
    background: #f6f8fb;
    color: #202b3c;
    font: 12px Arial, sans-serif;
}

.inv-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}

    .inv-header h2 {
        font-size: 21px;
        margin: 0 0 5px;
    }

    .inv-header p {
        color: #788497;
        margin: 0;
    }

.inventario-page label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    color: #596578;
}

.inventario-page input,
.inventario-page select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 6px 8px;
    border: 1px solid #d6dee8;
    border-radius: 5px;
    background: white;
    color: #27364c;
    font-size: 11px;
}

.inv-top-filters {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 9px;
}

    .inv-top-filters label {
        min-width: 95px;
    }

.inventario-page button {
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 11px;
}

.inv-btn-outline {
    background: white;
    border: 1px solid #cbd4e0;
    color: #34445d;
}

.inv-btn-green {
    background: #078c69;
    border: 0;
    color: white;
}

.inv-btn-blue {
    background: #0878f9;
    border: 0;
    color: white;
}

.inv-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.inv-kpi {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 82px;
    padding: 12px;
    background: white;
    border: 1px solid #e9edf2;
    border-radius: 9px;
    box-shadow: 0 2px 5px #17233c08;
}

    .inv-kpi span,
    .inv-kpi small {
        display: block;
    }

    .inv-kpi span {
        margin-bottom: 5px;
        color: #596578;
    }

    .inv-kpi strong {
        display: block;
        font-size: 19px;
        margin-bottom: 4px;
    }

    .inv-kpi small {
        color: #788497;
    }

.inv-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 19px;
}

.inv-blue {
    color: #1680e8;
}

.inv-cyan {
    color: #20bfd2;
}

.inv-green {
    color: #15966c;
}

.inv-table-card {
    background: white;
    border: 1px solid #e8edf3;
    border-radius: 9px;
    box-shadow: 0 2px 5px #17233c08;
    overflow: hidden;
}

.inv-table-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
}

    .inv-table-heading h3 {
        margin: 0;
        font-size: 13px;
    }

.inv-table-actions {
    display: flex;
    gap: 7px;
    align-items: center;
}

    .inv-table-actions input {
        width: 155px;
    }

.inv-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.inv-table-card table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.inv-table-card th,
.inv-table-card td {
    padding: 10px 7px;
    text-align: left;
    border-bottom: 1px solid #e0e5eb;
    font-size: 10px;
    vertical-align: middle;
    max-width: 180px;
}

.inv-table-card th {
    color: #667388;
    font-weight: 500;
}

.inv-table-card td {
    overflow-wrap: anywhere;
    white-space: normal;
}

.inv-table-card tbody tr:hover {
    background: #f4f8fd;
}

.inv-ambiente {
    min-width: 115px !important;
}

.inv-actions {
    position: relative;
}

    .inv-actions button {
        background: white;
        border: 1px solid #cbd4e0;
        color: #34445d;
    }

.inv-action-menu {
    position: absolute;
    z-index: 10;
    right: 0;
    top: 35px;
    width: 130px;
    padding: 5px;
    background: white;
    border: 1px solid #dce3ec;
    border-radius: 6px;
    box-shadow: 0 5px 15px #17233c20;
}

    .inv-action-menu button {
        display: block;
        width: 100%;
        text-align: left;
        border: 0;
    }

.inv-table-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: #788497;
}

.inv-pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

    .inv-pagination button {
        border: 1px solid #d6dee8;
        background: white;
        color: #34445d;
    }

    .inv-pagination span {
        padding: 8px 12px;
        background: #0878f9;
        color: white;
        border-radius: 5px;
    }

.inv-page-size {
    width: 120px;
    justify-self: end;
}

.inv-modal[hidden] {
    display: none !important;
}

.inv-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #10182788;
}

.inv-modal-content {
    width: min(700px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 18px;
    background: white;
    border-radius: 10px;
}

.inv-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

    .inv-modal-header h3 {
        margin: 0;
    }

    .inv-modal-header button {
        border: 0;
        background: transparent;
        font-size: 22px;
    }

.inv-modal form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.inv-modal-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: end;
    gap: 8px;
    margin-top: 8px;
}

.inv-message {
    margin-top: 10px;
    color: #087b60;
}

@media (max-width: 1200px) {
    .inv-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .inv-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inv-table-footer {
        grid-template-columns: 1fr;
    }

    .inv-page-size {
        justify-self: start;
    }

    .inv-modal form {
        grid-template-columns: 1fr;
    }
}
