body.aux-bg {
    background: linear-gradient(135deg, #eff5ff 0%, #f4fff3 100%);
    min-height: 100vh;
}

.full-width-btn {
    width: 100%;
}

.app-section {
    display: none;
}

.active-section {
    display: block;
}

/* Select2 */
.select2-container {
    width: 100% !important;
}
.select2-container .select2-selection--single {
    height: 38px;
    border: 1px solid #d5d5d5;
    border-radius: 2px;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 10px;
}
.select2-container .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

/* Inputs auxiliares (sin Materialize label flotante) */
.input-aux {
    border: 1px solid #bdbdbd;
    border-radius: 3px;
    padding: 6px 10px;
    height: 38px;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
}
.input-aux:focus {
    border-color: #1565c0;
    outline: none;
}

.packing-filters-row .input-field {
    margin-top: 0;
    margin-bottom: 8px;
}

.packing-filters-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.packing-filters-actions .btn {
    margin-top: 4px;
}

.aux-select-field > label {
    display: block;
    font-size: 0.75rem;
    color: rgba(27, 42, 47, 0.6);
    margin-bottom: 6px;
}

.aux-select-field .select2-container {
    width: 100% !important;
}

.aux-select-field > select {
    display: none !important;
}

.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #bdbdbd;
    border-radius: 3px;
    height: 40px;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    padding: 0 12px;
    color: #212121;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 9px;
    right: 8px;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #1565c0;
    box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.12);
}

.aux-pagination-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    justify-content: space-between;
    margin-top: 12px;
}

.aux-pagination-size {
    min-width: 180px;
}

.aux-pagination-info {
    color: #5d6d72;
    font-size: 0.9rem;
    line-height: 1.4;
}

.aux-pagination-actions {
    display: flex;
    gap: 6px;
}

.aux-pagination-actions .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Tabla packing */
#tblPacking th, #tblPacking td {
    font-size: 0.88rem;
    padding: 6px 8px;
    white-space: nowrap;
}
#tblPacking .packing-row:hover {
    background: #e3f2fd;
    cursor: pointer;
}
.aux-col-id { width: 60px; }
.aux-col-fecha { width: 95px; }

/* Paginacion */
.pag-btn {
    margin: 0 2px;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 0.85rem;
}
.pag-btn.active {
    background-color: #1565c0 !important;
    color: #fff !important;
}

/* Detalle packing */
.detail-field {
    margin-bottom: 8px;
}
.detail-field .field-label {
    font-size: 0.78rem;
    color: #757575;
    display: block;
    margin-bottom: 1px;
}
.detail-field .field-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212121;
}

#tblEtiquetas th, #tblEtiquetas td {
    font-size: 0.85rem;
    padding: 5px 8px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .brand-logo {
        font-size: 1.3rem !important;
        padding-left: 10px !important;
    }

    .packing-filters-actions {
        justify-content: stretch;
        flex-direction: column;
    }

    .packing-filters-actions .btn {
        width: 100%;
    }

    .aux-pagination-row {
        align-items: stretch;
    }

    .aux-pagination-size {
        width: 100%;
    }

    .aux-pagination-actions {
        width: 100%;
        justify-content: space-between;
    }

    #tblPacking th, #tblPacking td {
        font-size: 0.78rem;
        padding: 4px 5px;
    }
}
