/****************************************************************************************
*
* Sistema            : Picking Soprole
* Módulo             : Informes
* Archivo            : ps-informes.css
* Descripción        : Estilos responsive del informe de procesos de Picking.
*
* Programador        : Freddy A. Gallegos Monsalve
* Arquitectura       : OpenAI ChatGPT
*
* Fecha Creación     : 13/07/2026
* Fecha Ult. Modif.  : 13/07/2026
* Versión            : 1.6.0
*
****************************************************************************************/

.ps-informe-page {
    min-height: calc(100vh - 52px);
    padding: 20px;
    background: #eef2f7;
}

.ps-informe-header,
.ps-informe-filtros,
.ps-informe-table-card {
    background: #ffffff;
    border: 1px solid #dfe8f2;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.ps-informe-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ps-informe-heading {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ps-informe-heading__icon {
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    border-radius: 16px;
    background: #fff1f2;
    color: #ed0016;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.ps-informe-heading span {
    color: #ed0016;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.ps-informe-heading h1 {
    margin: 1px 0 3px;
    color: #061b3a;
    font-size: 30px;
    font-weight: 900;
}

.ps-informe-heading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.ps-informe-header__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.ps-informe-btn {
    min-height: 44px;
    padding: 0 15px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-weight: 900;
}

.ps-informe-btn i {
    margin-right: 7px;
}

.ps-informe-btn--back {
    background: #ffffff;
    border-color: #0054b8;
    color: #0054b8;
}

.ps-informe-btn--back:hover {
    background: #0054b8;
    color: #ffffff;
}

.ps-informe-btn--excel {
    background: #ffffff;
    border-color: #13a538;
    color: #138a36;
}

.ps-informe-btn--excel:hover {
    background: #13a538;
    color: #ffffff;
}

.ps-informe-btn--pdf {
    background: #ffffff;
    border-color: #ed0016;
    color: #ed0016;
}

.ps-informe-btn--pdf:hover {
    background: #ed0016;
    color: #ffffff;
}

.ps-informe-filtros {
    margin-top: 16px;
    padding: 18px;
}

.ps-informe-filtros__title {
    margin-bottom: 14px;
    color: #061b3a;
    font-size: 17px;
    font-weight: 900;
}

.ps-informe-filtros__title i {
    margin-right: 7px;
    color: #ed0016;
}

.ps-informe-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.ps-informe-field {
    min-width: 0;
}

.ps-informe-field label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.ps-informe-field input,
.ps-informe-field select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 2px solid #dbe5ef;
    border-radius: 9px;
    outline: none;
    background: #ffffff;
    color: #061b3a;
    font-weight: 700;
}

.ps-informe-field input:focus,
.ps-informe-field select:focus {
    border-color: #0054b8;
    box-shadow: 0 0 0 3px rgba(0, 84, 184, .11);
}

.ps-informe-field--button {
    display: flex;
    align-items: flex-end;
}

.ps-informe-btn--search {
    width: 100%;
    background: #ed0016;
    border-color: #ed0016;
    color: #ffffff;
}

.ps-informe-btn--search:hover {
    background: #c90011;
    border-color: #c90011;
    color: #ffffff;
}

.ps-informe-resumen {
    margin: 16px 0;
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.ps-informe-kpi {
    min-height: 92px;
    padding: 16px;
    border: 1px solid #dfe8f2;
    border-radius: 14px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 13px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}

.ps-informe-kpi > i {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eef5ff;
    color: #0054b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.ps-informe-kpi span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.ps-informe-kpi strong {
    display: block;
    margin-top: 2px;
    color: #061b3a;
    font-size: 25px;
    font-weight: 900;
}

.ps-informe-table-card {
    overflow: hidden;
}

.ps-informe-table-title {
    padding: 15px 17px;
    border-bottom: 1px solid #e5edf6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #061b3a;
    font-weight: 900;
}

.ps-informe-table-title i {
    margin-right: 7px;
    color: #0054b8;
}

.ps-informe-table-title span {
    color: #64748b;
    font-size: 13px;
}

.ps-informe-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.ps-informe-table {
    width: 100%;
    min-width: 1500px;
    border-collapse: collapse;
}

.ps-informe-table th {
    padding: 14px 13px;
    background: #061b3a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
}

.ps-informe-table td {
    padding: 13px;
    border-bottom: 1px solid #e8eef5;
    color: #334155;
    font-size: 13px;
    vertical-align: top;
}

.ps-informe-table tbody tr:hover {
    background: #f8fafc;
}

.ps-informe-empty {
    height: 170px;
    color: #64748b !important;
    font-size: 15px !important;
    font-weight: 700;
    text-align: center;
}

.ps-informe-estado {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.ps-informe-estado--proceso {
    background: #fff7e6;
    color: #b45309;
}

.ps-informe-estado--finalizado {
    background: #eafaf0;
    color: #138a36;
}

.ps-informe-operarios {
    min-width: 220px;
}

.ps-informe-operario {
    margin-bottom: 5px;
}

.ps-informe-operario:last-child {
    margin-bottom: 0;
}

.ps-informe-operario strong {
    display: block;
    color: #061b3a;
}

.ps-informe-operario small {
    color: #64748b;
}

@media (max-width: 1200px) {
    .ps-informe-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .ps-informe-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ps-informe-header__actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .ps-informe-page {
        padding: 13px;
    }

    .ps-informe-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .ps-informe-resumen {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .ps-informe-page {
        padding: 9px;
    }

    .ps-informe-header,
    .ps-informe-filtros {
        padding: 14px;
        border-radius: 12px;
    }

    .ps-informe-heading {
        align-items: flex-start;
    }

    .ps-informe-heading__icon {
        width: 52px;
        height: 52px;
        font-size: 23px;
    }

    .ps-informe-heading h1 {
        font-size: 25px;
    }

    .ps-informe-header__actions,
    .ps-informe-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ps-informe-btn {
        width: 100%;
    }

    .ps-informe-table-title {
        align-items: flex-start;
        flex-direction: column;
    }
}

/****************************************************************************************
* MEJORAS VISUALES Y ACCIONES - VERSION 1.1.0
****************************************************************************************/

.ps-informe-kpi {
    position: relative;
    overflow: hidden;
}

.ps-informe-kpi::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -34px;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    opacity: .35;
}

.ps-informe-kpi--procesos {
    border-color: #cfe2ff;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #eef5ff 100%
    );
}

.ps-informe-kpi--procesos::after {
    background: #bfdbfe;
}

.ps-informe-kpi--participaciones {
    border-color: #ccebd7;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #edfbf2 100%
    );
}

.ps-informe-kpi--participaciones::after {
    background: #bbf7d0;
}

.ps-informe-kpi--participaciones > i {
    background: #dcfce7;
    color: #138a36;
}

.ps-informe-kpi--duracion {
    border-color: #fed7aa;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #fff7ed 100%
    );
}

.ps-informe-kpi--duracion::after {
    background: #fed7aa;
}

.ps-informe-kpi--duracion > i {
    background: #ffedd5;
    color: #c2410c;
}

.ps-informe-kpi > i,
.ps-informe-kpi > div {
    position: relative;
    z-index: 1;
}

.ps-informe-estado {
    align-items: center;
    gap: 5px;
}

.ps-informe-estado i {
    font-size: 11px;
}

.ps-informe-duracion {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 7px;
    background: #eef5ff;
    color: #0054b8;
    font-weight: 900;
    white-space: nowrap;
}

.ps-informe-duracion--alta {
    background: #fff1f2;
    color: #d00016;
}

.ps-informe-operarios-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 7px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef5ff;
    color: #0054b8;
    font-size: 11px;
    font-weight: 900;
}

.ps-informe-operarios-resumen {
    max-height: 95px;
    overflow-y: auto;
    padding-right: 4px;
}

.ps-informe-acciones {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ps-informe-action {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #dbe5ef;
    border-radius: 9px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease;
}

.ps-informe-action:hover {
    transform: translateY(-1px);
}

.ps-informe-action--detail {
    color: #0054b8;
}

.ps-informe-action--detail:hover {
    border-color: #0054b8;
    background: #eef5ff;
}

.ps-informe-action--delete {
    color: #ed0016;
}

.ps-informe-action--delete:hover {
    border-color: #ed0016;
    background: #fff1f2;
}

.ps-informe-fila-detalle td {
    padding: 0 !important;
    background: #f8fafc;
}

.ps-informe-detalle-grid {
    padding: 16px;
    border-top: 1px dashed #cbd5e1;
    border-bottom: 1px solid #e5edf6;
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 11px;
}

.ps-informe-detalle-item {
    min-width: 0;
    padding: 12px;
    border: 1px solid #dfe8f2;
    border-radius: 10px;
    background: #ffffff;
}

.ps-informe-detalle-item--wide {
    grid-column: span 2;
}

.ps-informe-detalle-item > span {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.ps-informe-detalle-item > strong {
    color: #061b3a;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.ps-informe-detalle-operarios {
    max-height: 145px;
    overflow-y: auto;
}

@media (max-width: 992px) {
    .ps-informe-detalle-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .ps-informe-detalle-grid {
        grid-template-columns: 1fr;
    }

    .ps-informe-detalle-item--wide {
        grid-column: auto;
    }
}

/****************************************************************************************
* INFORME COMPACTO, FILTROS PLEGABLES Y PAGINACION - VERSION 1.2.0
****************************************************************************************/

.ps-informe-page {
    padding-top: 13px;
}

.ps-informe-header {
    padding: 14px 18px;
}

.ps-informe-heading__icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    font-size: 23px;
}

.ps-informe-heading h1 {
    font-size: 25px;
}

.ps-informe-heading p {
    font-size: 13px;
}

.ps-informe-filtros {
    margin-top: 11px;
    padding: 13px 16px;
}

.ps-informe-filtros__title {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ps-informe-toggle {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.ps-informe-toggle:hover {
    border-color: #0054b8;
    color: #0054b8;
}

.ps-informe-toggle i {
    margin-right: 5px;
}

.ps-informe-filtros__contenido[hidden] {
    display: none !important;
}

.ps-informe-resumen {
    margin: 10px 0;
    gap: 10px;
}

.ps-informe-kpi {
    min-height: 62px;
    padding: 10px 14px;
    border-radius: 11px;
}

.ps-informe-kpi > i {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    font-size: 17px;
}

.ps-informe-kpi span {
    font-size: 11px;
}

.ps-informe-kpi strong {
    font-size: 20px;
}

.ps-informe-table-title {
    padding: 10px 14px;
}

.ps-informe-table-responsive {
    max-height: calc(100vh - 300px);
    min-height: 250px;
    overflow: auto;
}

.ps-informe-table thead {
    position: sticky;
    top: 0;
    z-index: 5;
}

.ps-informe-table th {
    padding: 11px 12px;
}

.ps-informe-table td {
    padding: 10px 12px;
}

.ps-informe-operarios-resumen .ps-informe-operario:not(:first-child) {
    display: none;
}

.ps-informe-paginacion {
    padding: 11px 14px;
    border-top: 1px solid #e5edf6;
    background: #ffffff;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
}

.ps-informe-paginacion__size {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.ps-informe-paginacion__size label {
    margin: 0;
}

.ps-informe-paginacion__size select {
    height: 34px;
    padding: 0 25px 0 9px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #061b3a;
    font-weight: 900;
}

.ps-informe-paginacion__rango {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.ps-informe-paginacion__botones {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.ps-informe-page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.ps-informe-page-btn:hover:not(:disabled),
.ps-informe-page-btn.is-active {
    border-color: #0054b8;
    background: #0054b8;
    color: #ffffff;
}

.ps-informe-page-btn:disabled {
    opacity: .42;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .ps-informe-paginacion {
        grid-template-columns: 1fr;
    }

    .ps-informe-paginacion__size,
    .ps-informe-paginacion__botones {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .ps-informe-table-responsive {
        max-height: none;
    }

    .ps-informe-paginacion__size {
        flex-wrap: wrap;
        justify-content: center;
    }

    .ps-informe-paginacion__botones {
        flex-wrap: wrap;
    }
}

/****************************************************************************************
* ORDENAMIENTO POR COLUMNAS - VERSION 1.3.0
****************************************************************************************/

.ps-informe-table th.ps-sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition:
        background .18s ease,
        color .18s ease;
}

.ps-informe-table th.ps-sortable span {
    vertical-align: middle;
}

.ps-informe-table th.ps-sortable i {
    min-width: 13px;
    margin-left: 7px;
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
    vertical-align: middle;
}

.ps-informe-table th.ps-sortable:hover,
.ps-informe-table th.ps-sortable:focus {
    background: #0b2d59;
    outline: none;
}

.ps-informe-table th.ps-sortable:hover i,
.ps-informe-table th.ps-sortable:focus i,
.ps-informe-table th.ps-sortable.is-sort-asc i,
.ps-informe-table th.ps-sortable.is-sort-desc i {
    color: #ffffff;
}

.ps-informe-table th.ps-sortable.is-sort-asc,
.ps-informe-table th.ps-sortable.is-sort-desc {
    background: #0054b8;
}

/****************************************************************************************
* FILA NUMERADA Y PAGINACION SIEMPRE VISIBLE - VERSION 1.5.0
****************************************************************************************/

.ps-informe-table-card {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 315px);
    min-height: 320px;
    overflow: hidden;
}

.ps-informe-table-title {
    flex: 0 0 auto;
}

.ps-informe-table-responsive {
    flex: 1 1 auto;
    min-height: 0 !important;
    max-height: none !important;
    overflow: auto;
}

.ps-informe-paginacion {
    position: sticky;
    bottom: 0;
    z-index: 8;
    flex: 0 0 auto;
    margin-top: 0;
    border-top: 1px solid #dbe5ef;
    box-shadow: 0 -4px 12px rgba(15, 23, 42, .06);
    background: #ffffff;
}

.ps-informe-col-fila,
.ps-informe-numero-fila {
    width: 58px;
    min-width: 58px;
    text-align: center !important;
}

.ps-informe-numero-fila {
    color: #0054b8 !important;
    font-weight: 900;
}

@media (max-height: 760px) {
    .ps-informe-table-card {
        height: calc(100vh - 285px);
    }
}

@media (max-width: 768px) {
    .ps-informe-table-card {
        height: auto;
        min-height: 0;
    }

    .ps-informe-paginacion {
        position: static;
    }
}

/****************************************************************************************
* LAYOUT ESTABLE: NAVBAR Y PAGINACION SIEMPRE VISIBLES - VERSION 1.6.0
****************************************************************************************/

.ps-informe-page {
    height: calc(100vh - 52px);
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ps-informe-header,
.ps-informe-filtros,
.ps-informe-resumen {
    flex: 0 0 auto;
}

.ps-informe-table-card {
    flex: 1 1 auto;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ps-informe-table-title {
    flex: 0 0 auto;
}

.ps-informe-table-responsive {
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: auto;
}

.ps-informe-paginacion {
    position: static !important;
    flex: 0 0 auto;
    bottom: auto !important;
    z-index: 8;
    background: #ffffff;
    border-top: 1px solid #dbe5ef;
    box-shadow: 0 -4px 12px rgba(15, 23, 42, .06);
}

.ps-informe-filtros__contenido[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    .ps-informe-page {
        height: auto;
        min-height: calc(100vh - 52px);
        overflow: visible;
    }

    .ps-informe-table-card {
        min-height: 420px !important;
    }
}

