/****************************************************************************************
*
* Sistema            : Picking Soprole
* Módulo             : Operarios
* Archivo            : ps-operarios.css
* Descripción        : Estilos responsive de tabla, formulario y acciones de operarios.
*
* Programador        : Freddy A. Gallegos Monsalve
* Arquitectura       : OpenAI ChatGPT
*
* Fecha Creación     : 11/07/2026
* Fecha Ult. Modif.  : 11/07/2026
* Versión            : 1.3.0
*
****************************************************************************************/

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

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

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

.ps-operarios-heading {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

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

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

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

.ps-operarios-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.ps-btn-operario {
    min-height: 46px;
    padding: 0 17px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-weight: 900;
}

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

.ps-btn-operario--back {
    background: #ffffff;
    border-color: #0054b8;
    color: #0054b8;
    text-decoration: none;
}

.ps-btn-operario--back:hover,
.ps-btn-operario--back:focus {
    background: #0054b8;
    border-color: #0054b8;
    color: #ffffff;
    text-decoration: none;
}

.ps-btn-operario--primary {
    min-width: 205px;
    background: #ed0016;
    border-color: #ed0016;
    color: #ffffff;
}

.ps-btn-operario--primary:hover {
    background: #c90011;
    border-color: #c90011;
    color: #ffffff;
}

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

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

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

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

.ps-operarios-card {
    overflow: hidden;
}

.ps-operarios-toolbar {
    padding: 16px 18px;
    border-bottom: 1px solid #e5edf6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ps-operarios-search {
    position: relative;
    width: min(520px, 100%);
}

.ps-operarios-search i {
    position: absolute;
    top: 50%;
    left: 16px;
    color: #94a3b8;
    transform: translateY(-50%);
}

.ps-operarios-search input {
    width: 100%;
    min-height: 46px;
    padding: 0 16px 0 44px;
    border: 2px solid #dbe5ef;
    border-radius: 10px;
    outline: none;
    color: #061b3a;
    font-weight: 700;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

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

.ps-operarios-total {
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ps-operarios-total i {
    color: #0054b8;
}

.ps-operarios-total strong {
    color: #061b3a;
    font-size: 18px;
}

.ps-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

.ps-table thead th {
    padding: 15px 16px;
    background: #061b3a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .4px;
    text-align: left;
    text-transform: uppercase;
}

.ps-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #e8eef5;
    color: #334155;
    font-size: 14px;
    vertical-align: middle;
}

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

.ps-table__actions-title,
.ps-table__actions {
    text-align: center !important;
}

.ps-table__loading,
.ps-table__empty {
    height: 180px;
    color: #64748b !important;
    font-size: 16px !important;
    font-weight: 700;
    text-align: center;
}

.ps-table__loading i {
    margin-right: 8px;
    color: #ed0016;
}

.ps-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.ps-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.ps-status--active {
    background: #eafaf0;
    color: #138a36;
}

.ps-status--active::before {
    background: #13a538;
}

.ps-status--inactive {
    background: #fff1f2;
    color: #c90011;
}

.ps-status--inactive::before {
    background: #ed0016;
}

.ps-action-buttons {
    display: flex;
    justify-content: center;
    gap: 7px;
}

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

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

.ps-table-action--edit {
    color: #0054b8;
}

.ps-table-action--edit:hover {
    background: #0054b8;
    color: #ffffff;
}

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

.ps-table-action--delete:hover {
    background: #ed0016;
    color: #ffffff;
}

.ps-table-action--state {
    color: #8a5a00;
}

.ps-table-action--state:hover {
    background: #f59e0b;
    color: #ffffff;
}

.ps-operario-modal {
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, .24);
}

.ps-operario-modal .modal-header {
    padding: 20px 22px;
    border: 0;
    background:
        linear-gradient(
            135deg,
            #c90011,
            #ed0016
        );
    color: #ffffff;
}

.ps-operario-modal__eyebrow {
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;
    opacity: .82;
    text-transform: uppercase;
}

.ps-operario-modal .modal-title {
    font-size: 24px;
    font-weight: 900;
}

.ps-operario-modal__close {
    color: #ffffff;
    opacity: 1;
    text-shadow: none;
}

.ps-operario-modal .modal-body {
    padding: 22px;
}

.ps-form-group {
    margin-bottom: 17px;
}

.ps-form-group:last-child {
    margin-bottom: 0;
}

.ps-form-group label {
    display: block;
    margin-bottom: 7px;
    color: #061b3a;
    font-size: 14px;
    font-weight: 900;
}

.ps-form-group label span {
    color: #ed0016;
}

.ps-form-group input {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 2px solid #dbe5ef;
    border-radius: 10px;
    outline: none;
    color: #061b3a;
    font-weight: 700;
}

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

.ps-operario-modal .modal-footer {
    padding: 16px 22px 20px;
    border: 0;
    background: #f8fafc;
}

.ps-btn-modal {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 9px;
    font-weight: 900;
}

.ps-btn-modal--secondary {
    background: #ffffff;
    border: 2px solid #94a3b8;
    color: #475569;
}

.ps-btn-modal--primary {
    background: #ed0016;
    border: 2px solid #ed0016;
    color: #ffffff;
}

.ps-btn-modal--primary:hover {
    background: #c90011;
    border-color: #c90011;
    color: #ffffff;
}

@media (max-width: 992px) {
    .ps-operarios-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ps-operarios-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

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

    .ps-operarios-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .ps-operarios-search {
        width: 100%;
    }

    .ps-operarios-total {
        align-self: flex-end;
    }
}

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

    .ps-operarios-header {
        padding: 15px;
        border-radius: 12px;
    }

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

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

    .ps-operarios-heading h1 {
        font-size: 26px;
    }

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

    .ps-operarios-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .ps-operarios-card {
        border-radius: 12px;
    }

    .ps-operarios-toolbar {
        padding: 13px;
    }

    .ps-operario-modal .modal-header {
        padding: 17px;
    }

    .ps-operario-modal .modal-title {
        font-size: 21px;
    }

    .ps-operario-modal .modal-body {
        padding: 17px;
    }

    .ps-operario-modal .modal-footer {
        display: grid;
        grid-template-columns: 1fr;
        padding: 14px 17px 17px;
    }

    .ps-btn-modal {
        width: 100%;
        margin: 0 !important;
    }
}

.ps-form-help {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.ps-form-help--warning {
    color: #b45309;
}

.ps-form-group input:disabled {
    background: #eef2f7;
    color: #64748b;
    cursor: not-allowed;
    opacity: 1;
}

/****************************************************************************************
* TABLA ESTANDAR: FILA, ORDENAMIENTO Y PAGINACION - VERSION 1.3.0
****************************************************************************************/

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

.ps-operarios-header {
    flex: 0 0 auto;
}

.ps-operarios-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.ps-operarios-toolbar {
    flex: 0 0 auto;
}

.ps-operarios-table-layout {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.ps-table-responsive {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

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

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

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

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

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

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

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

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

.ps-operarios-paginacion {
    flex: 0 0 auto;
    padding: 11px 14px;
    border-top: 1px solid #dbe5ef;
    background: #ffffff;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    box-shadow: 0 -4px 12px rgba(15, 23, 42, .05);
}

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

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

.ps-operarios-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-operarios-paginacion__rango {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

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

.ps-operarios-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-operarios-page-btn:hover:not(:disabled),
.ps-operarios-page-btn.is-active {
    border-color: #0054b8;
    background: #0054b8;
    color: #ffffff;
}

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

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

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

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

    .ps-operarios-card {
        min-height: 500px;
    }
}

@media (max-width: 576px) {
    .ps-operarios-paginacion__size,
    .ps-operarios-paginacion__botones {
        flex-wrap: wrap;
    }
}

