/* Grilla de Pedidos: scroll nativo en ambos ejes con encabezado fijo dentro de la grilla. */
.atenea-sticky-table {
    min-width: 0;
    max-width: 100%;
}

.atenea-sticky-table .fi-ta-content-ctn {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 12rem);
    overflow: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.atenea-sticky-table .fi-ta-table {
    min-width: 84rem;
    transform: none !important;
}

.atenea-sticky-table .atenea-receipt-column {
    width: 5.25rem !important;
    min-width: 5.25rem !important;
    max-width: 5.25rem !important;
    padding-inline: 0.25rem !important;
}

.atenea-sticky-table .atenea-receipt-column .fi-ta-text-input,
.atenea-sticky-table .fi-ta-text-input.atenea-receipt-input {
    width: 4.75rem !important;
    min-width: 4.75rem !important;
    max-width: 4.75rem !important;
}

.atenea-sticky-table .atenea-receipt-input .fi-input-wrp,
.atenea-sticky-table .atenea-receipt-input .fi-input-wrp-content-ctn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.atenea-sticky-table .atenea-receipt-input input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding-inline: 0.25rem !important;
}

.atenea-sticky-table .fi-ta-table > thead {
    position: sticky;
    top: 0;
    z-index: 25;
    box-shadow: 0 1px 0 rgb(209 213 219), 0 4px 8px rgb(0 0 0 / 0.06);
}

/* Los menús de filtros y columnas deben quedar por encima del encabezado fijo. */
.atenea-sticky-table .fi-dropdown-panel {
    z-index: 50 !important;
}

.atenea-sticky-table .fi-ta-table > thead > tr,
.atenea-sticky-table .fi-ta-table > thead .fi-ta-header-cell,
.atenea-sticky-table .fi-ta-table > thead .fi-ta-selection-cell {
    background: rgb(249 250 251);
}

.dark .atenea-sticky-table .fi-ta-table > thead > tr,
.dark .atenea-sticky-table .fi-ta-table > thead .fi-ta-header-cell,
.dark .atenea-sticky-table .fi-ta-table > thead .fi-ta-selection-cell {
    background: rgb(31 41 55);
}

.atenea-excel-header{display:inline-flex;align-items:center}.atenea-excel-header-label{display:inline-flex;align-items:center;gap:.38rem;cursor:pointer;border:0;background:transparent;padding:0;font:inherit;color:inherit}.atenea-excel-header-icon{display:inline-flex;align-items:center;justify-content:center;width:1rem;height:1rem;font-size:1rem;line-height:1;color:#64748b}.atenea-excel-header-icon svg{width:1rem;height:1rem}.atenea-excel-header-icon[x-cloak]{display:none!important}.atenea-sticky-table .fi-ta-header-cell-sort-btn>svg,.atenea-sticky-table .fi-ta-header-cell-sort-btn>.fi-loading-indicator{display:none!important}.atenea-order-filter-reset{display:flex;justify-content:flex-end;margin:.45rem 0}.atenea-order-filter-reset button{border:1px solid #cbd5e1;border-radius:.45rem;background:#fff;color:#334155;padding:.42rem .7rem;font-size:.78rem;font-weight:700}.atenea-column-filter-backdrop{position:fixed;inset:0;z-index:10020;background:rgba(15,23,42,.26);display:flex;align-items:flex-start;justify-content:center;padding:8rem 1rem}.atenea-column-filter-menu{width:min(26rem,100%);max-height:calc(100vh - 10rem);overflow:auto;background:#fff;border:1px solid #dbe4ef;border-radius:.85rem;box-shadow:0 20px 48px rgba(15,23,42,.25);padding:1rem;color:#172033}.atenea-column-filter-menu header,.atenea-column-filter-menu footer{display:flex;justify-content:space-between;align-items:center;gap:.6rem}.atenea-column-filter-menu header button{border:0;background:transparent;font-size:1.4rem;color:#64748b}.atenea-column-filter-actions{display:grid;grid-template-columns:1fr 1fr;gap:.55rem;margin:1rem 0}.atenea-column-filter-actions button,.atenea-column-filter-menu footer button{border:1px solid #cbd5e1;border-radius:.45rem;background:#fff;padding:.55rem .7rem;font-weight:700}.atenea-column-filter-text{display:grid;gap:.35rem;font-size:.82rem;font-weight:700}.atenea-column-filter-text input,.atenea-column-filter-range input{border:1px solid #cbd5e1;border-radius:.45rem;padding:.55rem}.atenea-column-filter-range{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:.75rem}.atenea-column-filter-range label{display:grid;gap:.35rem;font-size:.82rem;font-weight:700}.atenea-column-filter-values{display:grid;gap:.42rem;max-height:17rem;overflow:auto;margin:1rem 0;padding:.75rem 0;border-block:1px solid #e2e8f0}.atenea-column-filter-values label{display:flex;gap:.45rem;align-items:center;font-size:.85rem}.atenea-column-filter-menu footer{justify-content:flex-end}.atenea-column-filter-menu footer .primary{background:#2563eb;border-color:#2563eb;color:#fff}
.atenea-sticky-table .fi-ta-filters-trigger-action-ctn{display:none!important}

@media (max-width: 639px) {
    .atenea-sticky-table .fi-ta-content-ctn {
        max-height: calc(100dvh - 9rem);
    }
}
